/*
Theme Name: child-theme-reference2
Template: popularfx
Version: 1.0
*/

.page-hero {
  background-size: cover;
  background-position: center;
  padding: 120px 20px;
  color: white;
  text-align: center;
}
.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
}

/* === Flip Card Container === */
.flip-card {
  background-color: transparent;
  width: 100%;
  aspect-ratio: 4 / 3;
  perspective: 1000px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

/* === Inner Flip Logic === */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* === Front Side === */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 10px;
}



/* === Image Styling + Hover Hologram Effect === */
.flip-card-front img {
  width: 100%;
  height: 100%;
  width: 100%; height: auto;
  transition: filter 0.5s ease;
  object-fit: cover;
  object-position: center;
  border-radius: 10px 10px 0 0;
}

.flip-card:hover img {
  filter: brightness(1.1) contrast(1.05);
}


/* === Text Overlay Front === */
.flip-card-front .p-2 {
  background-color: #85a6a6;
  color: #fff;
  padding: 10px;
  text-align: left;
  border-radius: 0;
}

.flip-card-front .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.flip-card-front .text-muted {
  font-size: 0.9rem;
  color: #fff !important;
}



/* === Back Side Styling === */
.flip-card-back {
  transform: rotateY(180deg);
  background-color: #163838;
  justify-content: center;
  align-items: center;
}

.flip-card-back .btn {
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
}

/* === Grid Adjustments for 4 Columns on XL Screens === */
@media (min-width: 1400px) {
  .reference-grid .col-xl-3 {
    flex: 0 0 auto;
    width: 25%;
  }
}

/* === Table Styling (single-reference2.php) === */



.custom-table th {
  background-color: #f9f9f9;
  font-weight: 600;
  text-align: left;
  padding-left: 20px;
  white-space: nowrap;
  border: none;
}

.custom-table td {
  text-align: right;
  padding-right: 20px;
  white-space: nowrap;
  border: none;
}

.custom-table td:first-child {
  text-align: left;
  font-weight: 600; /* ako želiš da naziv bude podebljan kao labela */
}

.custom-table td:last-child {
  text-align: right;
}



/* === Featured Image Styling on Single Page === */
.single-reference-featured {
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* === Navigation Arrows === */
.reference-nav a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #0f172a;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: background-color 0.3s ease;
}
.reference-nav a:hover::after {
  content: attr(title);
  position: absolute;
  background: #0f172a;
  color: white;
  padding: 5px 10px;
  font-size: 0.75rem;
  white-space: nowrap;
  border-radius: 5px;
  top: -30px;
}

/* === video u referencama na full width + galerija=== */
.reference-video {
  margin: 40px 0;
  max-width: 100%;
}

.reference-video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

.reference-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.reference-gallery a {
  display: block;
  width: calc(33.33% - 10px); /* tri slike u redu na desktopu */
}

.reference-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.reference-gallery img:hover {
  transform: scale(1.03);
}

/* Mobile prikaz: 2 slike u redu */
@media (max-width: 768px) {
  .reference-gallery a {
    width: calc(50% - 10px);
  }
}

/* Mali mobiteli: 1 slika u redu */
@media (max-width: 480px) {
  .reference-gallery a {
    width: 100%;
  }
}

/* === Ensure Hover Does Not Mirror Text === */
.flip-card-back {
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

.product-navigation-wrapper {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  min-height: 60px;
}

.circle-arrow {
  position: absolute;
  bottom: 0;
  width: 48px;
  height: 48px;
  background-color: #06332f;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 48px;
  font-size: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.circle-arrow:hover {
  background-color: #0a4d47;
}

.circle-arrow.left {
  left: 20px;
}

.circle-arrow.right {
  right: 20px;
}

a.nav-arrow {
  background-color: #00403c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: fixed;
  bottom: 40px;
  z-index: 99;
  text-decoration: none;
}

a.nav-arrow.left {
  left: 40px;
}

a.nav-arrow.right {
  right: 40px;
}

a.nav-arrow:visited {
  color: #ccc !important;
}

a.nav-arrow:hover {
  color: #6ec1e4;
  transform: scale(1.1);
}

.tooltip-title {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

a.btn:hover .tooltip-title {
    opacity: 1;
}

.products-heading {
  font-family: "Open Sans", sans-serif;
  font-size: 32px !important; /* ili 2.5em, po tvom izboru */
  font-weight: 600;
  margin: 0.1em 0;
  text-align: left;
  color: #222;
  text-transform: uppercase;
}

/* Sakrij desni sidebar */
aside.sidebar, .widget-area, .right-sidebar {
  display: none !important;
}

/* Sakrij datum */
.entry-meta, .posted-on {
  display: none !important;
}

.p-mue2352 .pagelayer-wposts-meta  {

  display: none;}

/* Sakrij "Read more" ako postoji */
.more-link, .read-more {
  display: none !important;
}
  
.p-mue2352 .pagelayer-wposts-mdiv  {

  display: none;}
  
  /* Kraj sakrivanja */
  
  .custom-category-header {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
}




/* Globalno isključi kapitalizaciju */
.page-title,
h1, h2, h3, h4, h5, h6,
.pagelayer-heading,
.pagelayer-list-item,
.pagelayer-button,
.pagelayer-text {
  text-transform: none !important;
}


body [class^="p-"] .pagelayer-heading-holder {
  text-transform: none !important;
}

body [class^="p-"] .pagelayer-service-heading {
  text-transform: none !important;
}

body [class^="p-"] .pagelayer-copyright {
  text-transform: none !important;
}

body [class^="p-"] .pagelayer-btn-text {
  text-transform: none !important;
}

/*
footer [class^="p-"] .pagelayer-heading-holder {
  text-transform: uppercase !important;
}
*/
