*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Arial,sans-serif;
  background:#0a1f44;
  color:white;
}

/* HEADER */
.site-header{
  width: 90%;
  margin: 0 auto;
  height: 20vh;
  background:#0a1f44;
  border: 2px solid gold;
  border-radius: 15px;
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.company-name{
  font-size:28px;
  font-weight:bold;
}

.logo img{
  height:220px;
  animation:lighthouse 7s infinite;
}

@keyframes lighthouse{
  0%,48%,52%,100%{filter:brightness(1);}
  50%{filter:brightness(4);}
}

/* NAVIGATION */
.nav{
  position:relative;
}

.hamburger{
  width:30px;
  cursor:pointer;
  display:none;
}

.hamburger span{
  display:block;
  height:4px;
  background:white;
  margin:6px 0;
}

#menu-list{
  display:flex;
  gap:15px;
  list-style:none;
}

#menu-list.active{
display:flex;
}

#menu-list li a{
  color:white;
  text-decoration:none;
  font-weight:500;
  font-size: 14px; /* ← Ovdje postavljaš veličinu slova u izborniku */
}

#menu-list li a::after{
  content:'';
  display:block;
  height:2px;
  width:0;
  background:gold;
  transition:0.3s;
}

#menu-list li a:hover::after{
  width:100%;
}

/* MEGA MENU */
.mega-parent{
  position:relative;
}

.mega-menu{
  display:none;
  position:absolute;
  top:40px;
  background:#0a1f44;
  border:2px solid gold;
  border-radius:10px;
  padding:15px;
  min-width:230px;
  z-index:100;
  flex-direction:column;
}

.mega-menu a{
  display:block;
  padding:8px;
  color:white;
  text-decoration:none;
}

.mega-parent.active .mega-menu{
  display:flex;
}

/* HERO PARALLAX */

.hero-image{
width:90%;
margin:0 auto;
border-radius:15px;
overflow:hidden;
position:relative;
}

/* OVDJE MIJENJAŠ VISINU SLIKE */
.hero-image img{
width:100%;
height:85vh;   /* promijeni npr 60vh, 70vh, 90vh */
object-fit:cover;
display:block;
border-radius:15px;
box-shadow:0 10px 20px rgba(0,0,0,0.3);
transition:transform 0.6s ease;
}

.hero-image img:hover{
transform: scale(1.05);
filter: brightness(1.15);
}





/* OVDJE MIJENJAŠ VELIČINU FONTA */

#typing-text{

font-family:inherit; /* koristi isti font kao header */
font-size:60px;   /* OVDJE MIJENJAŠ VELIČINU */

color:#0b2a4a;   /* tamno plava */

-webkit-text-stroke:2px #FFD700;  /* žuti rub */

font-weight:700;
letter-spacing:3px;

}

/* HERO TITLE */
.hero-title{
  text-align:center;
  margin: 30px 0;
}
.hero-title h1{
  font-size: 36px;
  color: white;
  margin-bottom: 10px;
}
.animated-underline{
  width: 200px;
  height: 4px;
  margin: 0 auto;
  border-radius: 2px;
  animation: underlineColor 4s infinite;
}

@keyframes underlineColor {
  0%   { background: gold; }
  25%  { background: white; }
  50%  { background: #0a1f44; }
  75%  { background: gold; }
  100% { background: gold; }
}

/* BOX STYLE */
.box{
  display:flex;
  width: 99%;
  margin: 20px auto;
  border-radius: 15px;
  overflow:hidden;
}
.box-light{
  background: #c8e3d4;
  color: #0a1f44;
}
.box-dark{
  background: #0a1f44;
  color: white;
  flex-direction: row-reverse;
}
.box-img{
  width: 30%;
  padding: 10px;
}
.box-img img{
  width: 100%;
  border: 2px solid gold;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.box-img img:hover{
  transform: scale(1.05);
  filter: brightness(1.1);
}
.box-text{
  width: 70%;
  padding: 20px;
  display:flex;
  flex-direction: column;
  justify-content: center;
}
.box-text h2{
  margin-bottom: 10px;
}
.box-underline{
  width: 150px;
  height: 3px;
  background: linear-gradient(to right, gold, white, #0a1f44, gold);
  margin-bottom: 15px;
  border-radius: 2px;
}

/* BUTTONS */
.btn{
  display:inline-block;
  padding: 12px 25px;
  margin-top: 15px;
  background: gold;
  color: #0a1f44;
  text-decoration:none;
  font-weight:bold;
  border-radius: 8px;
  border:1px solid white; /* 1px bijeli okvir */
  width:auto; /* samo oko teksta */
  text-align:center;
  transition: all 0.3s ease;
}
.btn:hover{
  background: #ffd700;
  color: #0a1f44;
  transform: scale(1.05);
}

/* PRVI BOX - gumb samo oko teksta (krajnji dodatak) */
.box-light .btn {
  width: auto !important;
  padding: 10px 20px !important;
  font-size: 16px !important;
  border: 1px solid white !important;
}

/* TREĆI BOX - TRI DJELA */
.box-triple{
  display:flex;
  width:75%;
  max-width:1200px;
  margin:40px auto;
  gap:25px;
  padding:25px;
  border-radius:20px;
  border:4px solid white;
}

.box-triple{
  display:flex;
  flex-wrap:wrap;
}


.triple-section{
  flex:1;
  background:#689cf8;
  border:3px solid white !important;
  border-radius:20px;
  padding:20px;
  text-align:center;
}

.box-triple .triple-section{
  border:3px solid white;
}


/* Slider setup */
.slider{
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  border-radius:10px;
}
.slider img{
  width: 100%;
  height: 100%;
  position:absolute;
  top:0;
  left:0;
  opacity:0;
  transition: opacity 1s ease-in-out;
}
.slider img.active{
  opacity:1;
}


/* =================== FLEXIBLE FOOTER SA FIXIRANIM SADRŽAJEM =================== */

.site-footer {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  background: #0a1f44;
  border: 2px solid gold;
  border-radius: 15px;
  box-sizing: border-box;
  
  display: flex;
  justify-content: center;
  align-items: center;  /* centriranje vertikalno */
  
  /* RUČNO MOGUĆA VISINA */
  height: 150px;        /* ovdje mijenjaš visinu footera */
  padding: 0 10px;      /* horizontalni padding */
}

.footer-inner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: center;  /* centriranje po visini */
}

/* Lijevo: 4 boxa */
.footer-reference {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
}

.reference-box {
  border: 2px solid gold;
  border-radius: 10px;
  padding: 5px 10px;           /* fiksni padding */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #0a1f44;
  color: white;
  font-weight: bold;
  white-space: nowrap;
  min-width: 120px;            /* fiksna minimalna širina */
  box-sizing: border-box;
  /* FIKSNA VISINA SADRŽAJA */
  height: auto;                /* sadržaj se ne rasteže */
}

/* Sredina: tekst */
.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* centriranje po visini */
  align-items: center;
  text-align: center;
  font-size: 1rem;           /* fiksna veličina fonta */
}

.footer-info h3,
.footer-info p {
  margin: 3px 0;
  color: white;
}

/* Desno: logo */
.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo img {
  height: 200px;             /* fiksna visina loga */
  width: auto;
  display: block;
}

/* RESPONSIVE */
@media(max-width:768px){
  .site-footer {
    flex-direction: column;
    height: auto;             /* automatski raste na malim ekranima */
    padding: 20px 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .footer-logo img {
    height: 150px;           /* smanji logo na mobilnim uređajima */
  }
}



/* RESPONSIVE */
@media(max-width:768px){
  .site-header, .site-footer{
    flex-direction:column;
    height:auto;
    padding:20px;
  }
  .footer-grid{
    grid-template-columns:1fr;
    gap:20px;
    text-align:center;
  }
  .footer-logo{
    text-align:center;
  }
  #menu-list{
    flex-direction:column;
    display:none;
  }
  .hamburger{
    display:block;
  }
  .mega-menu{
    position:static;
    border:none;
    padding:10px;
  }
  .box{
    flex-direction:column;
    text-align:center;
  }
  .box-img, .box-text, .triple-section{
    width:100%;
    margin-bottom:20px;
  }
  .btn{
    margin: 15px auto 0 auto;
  }
}

/* FOOTER REFERENCE CLEANUP */
.footer-reference ul,
.footer-reference li {
  list-style: none;  /* uklanja bullet points */
  padding: 0;
  margin: 0;
}

/* MODAL PROZOR */

.modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
display:none;
align-items:center;
justify-content:center;
z-index:999;
}

.modal-content{
background:white;
width:80%;
max-width:1000px;
border-radius:10px;
padding:30px;
position:relative;
animation:fadeIn 0.4s;
}

.close{
position:absolute;
top:10px;
right:20px;
font-size:28px;
cursor:pointer;
}

.modal-grid{
display:grid;
grid-template-columns:40% 60%;
gap:30px;
align-items:center;
}

.modal-image img{
width:100%;
border:1px solid #c9a43b;
border-radius:10px;
transition:transform 0.4s;
}

.modal-image img:hover{
transform:scale(1.05);
}

.modal-text{
color:#333;
line-height:1.6;
}

@keyframes fadeIn{
from{opacity:0; transform:scale(0.9);}
to{opacity:1; transform:scale(1);}
}

/* MOBILE */

@media(max-width:768px){

.modal-grid{
grid-template-columns:1fr;
}

}

/* GLASS EFFECT */

.site-header,
.site-footer{
background: rgba(10,31,68,0.85);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}

/* PREMIUM BUTTON EFFECT */

.btn{
position:relative;
overflow:hidden;
}

.btn::before{
content:"";
position:absolute;
top:0;
left:-100%;
width:100%;
height:100%;
background:linear-gradient(120deg,transparent,rgba(255,255,255,0.6),transparent);
transition:0.5s;
}

.btn:hover::before{
left:100%;
}

.btn:hover{
box-shadow:0 0 15px gold;
transform:translateY(-2px);
}

/* PRVI BOX - veća slika */
.box-light .box-img{
  width:60%;
}

.box-light .box-text{
  width:40%;
}

.box-light .box-text{
  width:40%;
  padding:40px;
}

.box-light{
  min-height:350px;
}

/* BOX NOVI DIZAJN */

.box{
display:flex;
width:99%;
margin:40px auto;
border-radius:15px;
overflow:hidden;
background:#689cf8;
color:#0a1f44;
align-items:center;
}

.box-img{
width:60%;
padding:15px;
}

.box-img img{
width:100%;
border-radius:15px;
border:1px solid gold;
box-shadow:0 8px 20px rgba(0,0,0,0.25);
transition:all 0.4s ease;
}

.box-img img:hover{
transform:scale(1.04);
filter:brightness(1.1);
}

.box-text{
width:40%;
padding:30px;
display:flex;
flex-direction:column;
justify-content:center;
}

.box-text h2{
font-size:28px;
margin-bottom:10px;
}

.box-underline{
width:120px;
height:3px;
background:gold;
margin-bottom:20px;
border-radius:3px;
}


/* MODERN BUTTON */

.btn{
display:inline-block;
padding:12px 25px;
background:gold;
color:#0a1f44;
text-decoration:none;
font-weight:bold;
border-radius:8px;
border:1px solid white;
width:auto;
transition:all 0.3s ease;
}

.btn:hover{
background:#ffd700;
transform:scale(1.05);
}


/* SCROLL REVEAL */

.reveal{
opacity:0;
transform:translateY(80px);
transition:all 1s ease;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}


/* RESPONSIVE */

@media(max-width:768px){

.box{
flex-direction:column;
}

.box-img,
.box-text{
width:100%;
}

.box-text{
text-align:center;
}

.btn{
margin:auto;
}

}

/* GALERIJA POGONA */

.factory-gallery{

width:99%;
margin:60px auto;
text-align:center;
color:white;

}

.factory-gallery h1{
  font-size:35px;   /* povećava naslov */
  text-align:center;
  margin-bottom:20px;
}


.center-line{

margin:auto;
margin-bottom:40px;

}

.factory-grid{

display:grid;
grid-template-columns:repeat(2,1fr);
gap:25px;

}

.factory-img{

overflow:hidden;
border-radius:15px;
border:1px solid gold;
box-shadow:0 8px 20px rgba(0,0,0,0.3);

}

.factory-img img{

width:100%;
display:block;
transition:transform 0.5s ease, filter 0.5s ease;

}

.factory-img img:hover{

transform:scale(1.05);
filter:brightness(1.1);

}


/* SCROLL REVEAL */

.reveal{

opacity:0;
transform:translateY(80px);
transition:all 1s ease;

}

.reveal.active{

opacity:1;
transform:translateY(0);

}

.parallax-dynamic {
  background-image: url('slike/pogon_parallax.jpg'); /* stavi svoju fotografiju */
  height: 450px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-overlay {
  background: rgba(0,0,0,0.4); /* poluprozirni overlay */
  padding: 20px 40px;
  border-radius: 15px;
  text-align: center;
  color: white;
}

.parallax-overlay h2{
  font-size: 32px;
  margin-bottom: 10px;
}

.parallax-overlay p{
  font-size: 18px;
}

/* ================================ */
/* SEKUNDARNA BOJA #689cf8 ZA BOXEVE */
/* ================================ */

/* SVI BOXEVI KOJI SU IMALI "DRUGU BOJU" */
.box-light,
.factory-img,
.btn:hover,
.box-img img:hover{
  background: #689cf8 !important;
  border-color: #0a1f44 !important;
  color: #0a1f44 !important;
}


/* ================================ */
/* SEKUNDARNA BOJA #689cf8 ZA BOXEVE */
/* ================================ */

/* SVI BOXEVI KOJI SU IMALI "DRUGU BOJU" */
.box-light,
.factory-img,
.btn:hover,
.box-img img:hover{
  background: #689cf8 !important;
  border-color: #0a1f44 !important;
  color: #0a1f44 !important;
}


/* BOX UNDERLINE - gradient prilagodba */

.box-underline{
  background: linear-gradient(to right, gold, white, #689cf8, #0a1f44);
}


/* PARALLAX OVERLAY - diskretan gradient sa svijetlo plavom */

.parallax-overlay{
  background: linear-gradient(
    rgba(104,156,248,0.6),
    rgba(10,31,68,0.6)
  );
}


/* PREMIUM BUTTON EFFECT - hover svijetlo plava */

.btn:hover{
  background: #689cf8 !important;
  box-shadow: 0 0 15px #689cf8;
  transform: translateY(-2px) scale(1.05);
}


/* MODERN BOX HOVER - svijetlo plava glow */

.box-img img:hover{
  filter: brightness(1.15) drop-shadow(0 0 10px #689cf8);
}


/* ANIMACIJA UNDERLINE HERO */

.animated-underline{
  animation: underlineColor 4s infinite;
}

@keyframes underlineColor {

  0%{
    background: gold;
  }

  25%{
    background: #689cf8;
  }

  50%{
    background: #0a1f44;
  }

  75%{
    background: gold;
  }

  100%{
    background: gold;
  }

}


/* ================================ */
/* STICKY HEADER */
/* ================================ */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
}


/* ================================ */
/* SMOOTH SCROLL */
/* ================================ */

html{
  scroll-behavior: smooth;
}


/* ================================ */
/* BONUS GALERIJA HOVER */
/* ================================ */

.factory-img{
  transition: all 0.4s ease;
}

.factory-img:hover{
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}


/* ================================ */
/* IMAGE REVEAL */
/* ================================ */

.box-img img,
.factory-img img{
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
}

.box-img img.reveal-img,
.factory-img img.reveal-img{
  opacity: 1;
  transform: translateY(0);
}


/* ================================ */
/* NAVIGATION GLOW */
/* ================================ */

#menu-list li a{
  position: relative;
  transition: 0.3s;
}

#menu-list li a:hover{
  color: gold;
  text-shadow: 0 0 10px gold;
}


/* ================================ */
/* CURSOR LIGHT EFFECT */
/* ================================ */

.cursor-light{
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  pointer-events: none;

  background: radial-gradient(
    circle,
    rgba(104,156,248,0.35) 0%,
    rgba(104,156,248,0.15) 40%,
    transparent 70%
  );

  transform: translate(-50%,-50%);
  z-index: 0;
  transition: transform 0.05s linear;
}

/* ================================ */
/* INDEX STRANICA - SVI FONTOVI BIJELI */
/* ================================ */

body.index-page,
body.index-page * {
  color: white !important; /* bijela boja za sav tekst */
}

/* Ako postoje posebni elementi kojima želimo zadržati originalnu boju, dodaj klasu .original-color */
.original-color {
  color: initial !important;
}

/* ================================ */
/* INDEX STRANICA - VELIČINA FONTOVA */
/* ================================ */
body.index-page {
  font-size: 20px; /* osnovna veličina teksta za cijelu stranicu */
}

/* Po želji možeš povećati i naslove */
body.index-page h1 { font-size: 48px; }
body.index-page h2 { font-size: 36px; }
body.index-page h3 { font-size: 28px; }
body.index-page p  { font-size: 18px; line-height: 1.6; }

.box, .box-triple {
  overflow: visible; /* umjesto hidden */
}

body{
  color:white;
}


.box, .box-triple {
  overflow: visible;          /* animacije više nisu blokirane */
}

.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-image img {
  transform: translateY(0);
  transition: transform 0.6s ease;
}

.reference-box {
  background: #689cf8;
  color: #0a1f44;
  border: 2px solid white;
  border-radius: 10px;
  padding: 15px 25px;
  font-weight: bold;
  font-size: 18px;
  min-width: 120px;
  text-align: center;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

.reference-box:hover {
  transform: scale(1.05);
  background: #ffd700;
  color: #0a1f44;
}

/* CATEGORY SECTION */

.category-section{
display:flex;
justify-content:center;
margin:100px 0;
}

/* BOX */

.category-large{
width:55%;
display:flex;
align-items:center;
background:#689cf8;
border-radius:18px;
overflow:hidden;
border:2px solid gold;
box-shadow:0 15px 35px rgba(0,0,0,0.45);
text-decoration:none;
transition:all 0.45s ease;
}

/* SLIKA */

/* KONTEJNER BOXA */
.category-large {
  width: 55%;              /* širina boxa */
  max-width: 700px;        /* opcionalno da ne raste previše na velikim ekranima */
  margin: 40px auto;       /* automatsko centriranje */
  display: flex;
  background: #689cf8;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid gold;
  box-shadow: 0 15px 35px rgba(0,0,0,0.45);
  text-decoration: none;
  transition: all 0.45s ease;
}

/* SLIKA UNUTAR BOXA */
.category-image {
  width: 100%;             /* zauzima cijelu širinu boxa */
  height: 400px;           /* fiksna visina za sve slike */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;           /* razmak oko slike */
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* sve slike isti crop */
  display: block;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: transform 0.6s ease;
}


/* TEKST */

.category-text{
width:50%;
padding:45px;
}

.category-text h2{
font-size:30px;
margin-bottom:15px;
}

.category-text p{
margin-bottom:20px;
line-height:1.6;
}

/* HOVER */

.category-large:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(104,156,248,0.5);
}

.category-large:hover img{
transform:scale(1.08);
}

/* ALTERNATING BOX */

.category-large.reverse{
flex-direction:row-reverse;
}

/* RESPONSIVE */

@media(max-width:1100px){

.category-large{
width:75%;
}

}

@media(max-width:768px){

.category-large{
flex-direction:column;
width:90%;
}

.category-large.reverse{
flex-direction:column;
}

.category-image{
width:100%;
aspect-ratio:16 / 9;
}

.category-text{
width:100%;
text-align:center;
padding:30px;
}

}

.category-overlay {
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: linear-gradient(to bottom, rgba(104,156,248,0.2), rgba(10,31,68,0.6));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 12px;
  transition: background 0.4s ease;
}

.category-large:hover .category-overlay {
  background: linear-gradient(to bottom, rgba(104,156,248,0.4), rgba(10,31,68,0.8));
}

.category-overlay h2,
.category-overlay .btn {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.category-large:hover .category-overlay h2,
.category-large:hover .category-overlay .btn {
  transform: translateY(0);
  opacity: 1;
}

@media(max-width:768px) {
  .category-large {
    width:90%;
    flex-direction: column;
  }

  .category-image {
    height:300px;
    padding:10px;
  }
}

/* PRODUKT BOX */
.product-box{
  width: 55%;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #689cf8;
  border-radius: 18px;
  overflow: hidden;
  border:2px solid gold;
  box-shadow:0 15px 35px rgba(0,0,0,0.45);
  text-decoration: none;
  transition: all 0.45s ease;
}

.product-box:hover{
  transform: translateY(-8px);
  box-shadow:0 25px 50px rgba(104,156,248,0.5);
}

.product-image{
  width: 100%;
  padding:15px;
}

.product-image img{
  width:100%;
  height:400px;
  object-fit:cover;
  border-radius:12px;
  border:2px solid rgba(255,255,255,0.4);
  transition: transform 0.6s ease;
}

.product-text{
  padding:20px;
  text-align:center;
}

.product-text h3{
  margin-bottom:10px;
}

.product-text p{
  margin-bottom:5px;
}

/* TABLICA CIJENA */
.price-table{
  width:90%;
  margin:60px auto;
  overflow-x:auto;
}

.price-table h2{
  text-align:center;
  margin-bottom:30px;
  font-size:36px;
}

.price-table table{
  width:100%;
  border-collapse: collapse;
  text-align:center;
}

.price-table th, .price-table td{
  padding:15px 10px;
  border:2px solid gold;
}

.price-table th{
  background: linear-gradient(45deg,#689cf8,gold);
  color:#0a1f44;
  font-size:18px;
}

.price-table tbody tr{
  background:#0a1f44;
  color:white;
  transition: all 0.3s ease;
}

.price-table tbody tr:hover{
  background:#689cf8;
  color:#0a1f44;
  transform: scale(1.02);
}

/* TEKST BOX */
.text-boxes{
  width:90%;
  margin:60px auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:25px;
}

.text-box{
  background:#689cf8;
  border:2px solid gold;
  border-radius:18px;
  padding:25px;
  text-align:center;
  box-shadow:0 15px 35px rgba(0,0,0,0.45);
  transition: all 0.45s ease;
}

.text-box:hover{
  transform:translateY(-5px);
  box-shadow:0 25px 50px rgba(104,156,248,0.5);
}

/* MODAL */
.modal{
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:rgba(0,0,0,0.7);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}

.modal-content{
  background:white;
  width:80%;
  max-width:800px;
  border-radius:15px;
  padding:30px;
  position:relative;
}

.close{
  position:absolute;
  top:10px;
  right:20px;
  font-size:28px;
  cursor:pointer;
}

/* RESPONSIVE */
@media(max-width:768px){
  .product-box{
    width:90%;
  }
  .product-image img{
    height:300px;
  }
  .price-table table, .price-table th, .price-table td{
    font-size:14px;
    padding:10px 5px;
  }
}

/* UNIFORMNE SLIKE S SVJETLO PLAVIM OKVIROM */
.product-image {
  width: 100%;
  height: 400px;               /* fiksna visina svih boxova */
  padding: 5px;                /* prostor za svijetlo plavi rub */
  background: #cce0ff;         /* svijetlo plavi rub */
  border-radius: 12px;         /* zaobljeni kutovi rubova */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;         /* cijela slika se vidi */
  border-radius: 8px;          /* malo zaobljeni kutovi same slike */
  transition: transform 0.6s ease;
}

/* Hover efekt */
.product-image img:hover {
  transform: scale(1.05);
}

/* MODERN ČITAJ VIŠE MODAL */
.read-more-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none; /* sakriven dok se ne otvori */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.read-more-modal.active {
  display: flex;
}

.read-more-content {
  background: #689cf8; /* svijetlo plava pozadina */
  color: #0a1f44;
  width: 80%;
  max-width: 900px;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.45);
  position: relative;
  overflow-y: auto;
  max-height: 80vh;
  animation: fadeInScale 0.4s ease;
}

.read-more-content h2 {
  margin-bottom: 15px;
  font-size: 28px;
}

.read-more-content p {
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Zatvori gumb */
.read-more-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #ffd700;
  transition: color 0.3s ease;
}

.read-more-close:hover {
  color: white;
}

/* Animacija */
@keyframes fadeInScale {
  0% {opacity: 0; transform: scale(0.9);}
  100% {opacity: 1; transform: scale(1);}
}

/* BUTTON ČITAJ VIŠE */
.read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  background: gold;
  color: #0a1f44;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: #ffd700;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 15px #ffd700;
}

/* TEKST BOXEVI */
.text-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: space-between;
  margin: 50px auto;
  width: 90%;
}

.text-box {
  flex: 1 1 calc(45% - 25px); /* dva boxa u redu */
  background: #689cf8;
  color: #0a1f44;
  border-radius: 18px;
  padding: 25px 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s ease;
}

.text-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
}

.text-box h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

.text-box p {
  line-height: 1.6;
  flex-grow: 1;
}

.text-box .btn {
  display: block;           /* čini gumb blok elementom */
  margin: 20px auto 0 auto; /* centriranje gumbića ispod teksta */
  text-align: center;
}

/* RESPONSIVE */
@media(max-width:768px){
  .text-box {
    flex: 1 1 100%;
  }
}

/* MODAL */
.read-more-modal {
  position: fixed;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.read-more-modal.active {
  display: flex;
}

.read-more-content {
  background: #689cf8;
  color: #0a1f44;
  width: 80%;
  max-width: 900px;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.45);
  position: relative;
  overflow-y: auto;
  max-height: 80vh;
  animation: fadeInScale 0.4s ease;
}

.read-more-content h2 {
  margin-bottom: 15px;
  font-size: 28px;
}

.read-more-content p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #ffd700;
  transition: color 0.3s ease;
}

.read-more-close:hover {
  color: white;
}

@keyframes fadeInScale {
  0% {opacity:0; transform: scale(0.9);}
  100% {opacity:1; transform: scale(1);}
}

/* glavni raspored */
.box.box-light{
display:flex;
padding:25px;
}

/* svi boxovi */
.box.box-light .triple-section{
flex:1;
}

/* srednji box malo veći kao prije */
.box.box-light .triple-section:nth-child(2){
flex:1.4;
}

/* razmak između boxova */
.box.box-light .triple-section:not(:last-child){
margin-right:25px;
}

.factory-grid{
display:grid;
grid-template-columns:1fr 1fr; /* dvije slike u redu */
gap:25px;
width:80%;        /* galerija zauzima 80% širine stranice */
margin:0 auto;    /* centrira galeriju */
}

/* okvir oko slike */
.factory-img{
border:2px solid white;
padding:6px;
background:#fff;
}

/* slika */
.factory-img img{
width:100%;
display:block;
}

/* STRANICA O NAMA - SVI TEKSTOVI CENTRIRANI */
/* ================================ */
body.o-nama-page,
body.o-nama-page h1,
body.o-nama-page h2,
body.o-nama-page h3,
body.o-nama-page h4,
body.o-nama-page h5,
body.o-nama-page h6,
body.o-nama-page p,
body.o-nama-page li,
body.o-nama-page a,
body.o-nama-page span,
body.o-nama-page div {
    text-align: center !important;
}

.btn-primary {
  display: inline-block;
  padding: 12px 25px;
  margin-top: 15px;
  background-color: #0a1f44;
  color: #fff;
  font-weight: 600;
  font-family: 'Maven Pro', sans-serif;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background-color: #0d8b92;
  transform: translateY(-2px);
}

/* Parallax Section Style */
.parallax-dynamic {
  position: relative;
  overflow: hidden;
  background: url('slike/parallax-bg.jpg') center/cover no-repeat;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  transition: transform 0.2s ease-out;
}

.parallax-overlay {
  position: relative;
  z-index: 2;
}

.parallax-dynamic::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15), transparent 80%);
  transition: background 0.2s ease-out;
  z-index: 1;
}

.parallax-overlay h2 {
  transition: text-shadow 0.3s ease;
}

.parallax-overlay:hover h2 {
  text-shadow: 0 0 15px #0FA4AF, 0 0 30px #0FA4AF, 0 0 45px #0FA4AF;
}

.parallax-overlay p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.parallax-overlay.active p {
  opacity: 1;
  transform: translateY(0);
}

.box-img img {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* Hover efekt za prvi box */
.box-img {
  overflow: hidden; /* sprječava da slika izlazi iz okvira */
  display: inline-block;
}

.box-img img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.box-img:hover img {
  transform: scale(1.05); /* blago povećanje */
  box-shadow: 0 20px 40px rgba(0,0,0,0.2); /* lagano isticanje */
}

/* =====================================
   FOOTER SOCIAL ICONS FIX
   ===================================== */

.socials{
  margin-top:15px;
  display:flex;
  gap:12px;
  justify-content:center;
}

.socials img{
  width:28px;
  height:28px;
  object-fit:contain;
  transition:transform 0.3s ease, opacity 0.3s ease;
}

/* hover efekt */
.socials img:hover{
  transform:scale(1.15);
  opacity:0.8;
}

.box-triple {
  display: flex;
  flex-direction: column; /* stavlja svaki box jedan ispod drugog */
  align-items: center;    /* centriranje boxova */
  gap: 40px;              /* razmak između boxova */
}

.triple-section.single-box {
  width: 60%;             /* širina svakog boxa 70% stranice */
  text-align: center;     /* tekst centriran */
}

.triple-section.single-box img {
  width: 100%;            /* slika se prilagođava boxu */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}

/* Stil za tri boxa jedan ispod drugog */
.box-triple .single-box {
  width: 70%;          /* manja širina boxa */
  margin: 20px auto;   /* centriranje i razmak između boxova */
  text-align: center;  /* centriranje teksta */
  padding: 15px;       /* smanjen padding */
  box-sizing: border-box;
}

.box-triple .single-box img {
  width: 100%;         /* slika zauzima cijeli box */
  max-width: 400px;    /* ograničena širina slike */
  height: auto;
  display: block;
  margin: 0 auto 15px;
}

/* TREĆI BOX - TRI DJELA U REDU */
.box-triple {
  display: flex;
  flex-direction: row;       /* stavlja boxove u red */
  justify-content: space-between; /* razmak između boxova */
  align-items: stretch;      /* svi boxovi iste visine */
  gap: 25px;                 /* razmak između boxova */
  width: 99%;
  margin: 40px auto;
  padding: 25px;
  border-radius: 20px;
  border: 4px solid white;
  box-sizing: border-box;
}

/* Svaki pojedinačni box */
.box-triple .triple-section {
  flex: 1;                   /* jednaka širina svih boxova */
  background: #689cf8;
  border: 3px solid white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: all 0.4s ease;
}

/* Hover efekt */
.box-triple .triple-section:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* RESPONSIVE - manji ekrani */
@media(max-width: 768px) {
  .box-triple {
    flex-direction: column;   /* na mobitelima stavlja boxove jedan ispod drugog */
    gap: 30px;
    padding: 15px;
  }
  .box-triple .triple-section {
    width: 100%;
  }
}

@media(max-width:768px){
  #menu-list{
    flex-direction:column;
    display:none; /* sakriva listu */
  }
  .mega-menu{
    position:static;
    border:none;
    padding:10px;
  }
}

/* ISKLJUČIVO ZA PRVI BOX */
#product-boxes {
  display: flex;
  flex-direction: column;   /* jedna ispod druge */
  align-items: center;
  gap: 40px;                /* razmak između boxova */
  width: 100%;
  margin: 40px auto;
}

#product-boxes .product-img-container {
  width: 70%;
  max-width: 800px;
  min-height: 500px;       /* minimalna visina boxa */
  display: flex;
  flex-direction: column;  /* slika + tekst */
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  border: 3px solid white;
  border-radius: 20px;
  padding: 20px;
  background: #689cf8;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#product-boxes .product-img-container img {
  width: auto;             /* širina proporcionalna visini */
  height: 400px;           /* visina slike */
  object-fit: contain;     /* cijela slika se vidi */
  border-radius: 12px;
  margin-bottom: 15px;
  transition: transform 0.5s ease, filter 0.5s ease;
}

#product-boxes .product-img-container img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

#product-boxes .product-img-container h3 {
  margin: 10px 0 5px 0;
  font-size: 24px;
  color: #0a1f44;
}

#product-boxes .product-img-container p {
  margin: 5px 0;
  font-size: 18px;
  color: #0a1f44;
}

/* Hover efekti na cijeli box */
#product-boxes .product-img-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* RESPONSIVE */
@media(max-width:768px){
  #product-boxes .product-img-container {
    width: 90%;
    min-height: auto;
    padding: 15px;
  }
  
  #product-boxes .product-img-container img {
    height: 200px;
  }
  
  #product-boxes .product-img-container h3 {
    font-size: 20px;
  }
  
  #product-boxes .product-img-container p {
    font-size: 16px;
  }
}

/* ===== MEGA MENU GLOBAL ===== */

/* Osnovno - sakriven menu */
.mega-menu {
  display: none;                 /* skriva izbornik */
  position: absolute;             /* pozicionira ispod roditelja */
  top: 100%;                      /* odmah ispod linka */
  left: 0;
  background: #0a1f44;
  border: 2px solid gold;
  border-radius: 10px;
  padding: 15px;
  min-width: 230px;
  z-index: 100;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Linkovi unutar mega-menu */
.mega-menu a {
  display: block;
  padding: 8px 12px;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.mega-menu a:hover {
  background: gold;
  color: #0a1f44;
  border-radius: 5px;
}

/* Otvara menu na hover, radi globalno na svim stranicama */
.mega-parent:hover .mega-menu {
  display: flex;   /* pokazuje izbornik */
}

/* Opcionalno: dodaje blagi efekt kada se hovera roditelj */
.mega-parent {
  position: relative;  /* neophodno za apsolutno pozicioniranje .mega-menu */
  cursor: pointer;
  transition: all 0.3s ease;
}

.mega-parent:hover {
  transform: translateY(-1px);
}

/* ===== ZAKRPA – MODAL SCROLL ZA MALI EKRAN ===== */
.modal-content {
  max-height: 90vh;        /* maksimalna visina modala = 90% visine prozora */
  overflow-y: auto;        /* omogućava scroll ako sadržaj premašuje visinu */
  box-sizing: border-box;  /* padding se uračunava u širinu/visinu */
  padding: 20px 30px;      /* malo manji padding za mobilne uređaje */
}

/* Opcionalno: smanjenje fonta i paddinga na vrlo malim ekranima */
@media (max-width: 480px) {
  .modal-content {
    padding: 15px 20px;
    font-size: 16px;
  }
}


@media (max-width: 768px) {
  .mega-parent .mega-menu {
    display: none !important;
  }

  .mega-parent > a {
    pointer-events: auto;
  }
}


.colorful-gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 20px 0;
}

.gallery-row {
  display: flex;
  justify-content: space-between;
  gap: 10%;
}

.gallery-item {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-wrapper {
  width: 100%;
  border: 4px solid #fff; /* početna boja */
  border-radius: 15px;
  overflow: hidden;
  animation: borderColors 8s infinite linear;
}

.image-wrapper img {
  width: 100%;
  display: block;
  border-radius: 15px;
}

@keyframes borderColors {
  0% { border-color: #fff; }
  25% { border-color: #FFD700; } /* žuta */
  50% { border-color: #ADD8E6; } /* svijetlo plava */
  75% { border-color: #0FA4AF; } /* tamno plava */
  100% { border-color: #fff; }
}

.caption-box {
  margin-top: 10px;
  background-color: #EAE7DC;
  width: 100%;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  font-family: 'Maven Pro', sans-serif;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.caption-box h3 {
  font-size: 1.2rem;
  margin: 0 0 5px 0;
  color: #0FA4AF;
}

.caption-box p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.colorful-gallery {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 20px 0;
}

.gallery-row {
  display: flex;
  justify-content: space-between;
  gap: 10%; /* prostor između slika i rubova */
}

.gallery-item {
  width: 35%; /* svaka slika zauzima 35% */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-wrapper {
  width: 100%;
  border: 5px solid #fff; /* početna boja */
  border-radius: 15px;
  overflow: hidden;
  animation: borderColors 8s infinite linear;
}

.image-wrapper img {
  width: 100%;
  display: block;
  border-radius: 15px;
}

@keyframes borderColors {
  0% { border-color: #fff; }
  25% { border-color: #FFD700; } /* žuta */
  50% { border-color: #ADD8E6; } /* svijetlo plava */
  75% { border-color: #0FA4AF; } /* tamno plava */
  100% { border-color: #fff; }
}

.caption-box {
  margin-top: 12px;
  background-color: #EAE7DC;
  width: 100%;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  font-family: 'Maven Pro', sans-serif;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.caption-box h3 {
  font-size: 1.2rem;
  margin: 0 0 5px 0;
  color: #0FA4AF;
}

.caption-box p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

/* GALERIJA */

.gallery-section{
width:100%;
padding:80px 5%;
}

.gallery-container{
max-width:1400px;
margin:auto;
}

.gallery-row{
display:flex;
justify-content:space-between;
margin-bottom:70px;
}

.gallery-item{
width:30%;
text-align:center;
cursor:pointer;
}

/* SLIKA */

.gallery-item img{
width:100%;
border-radius:14px;
border:5px solid white;
transition:transform .4s ease;
animation:borderColorFlow 6s linear infinite;
}

/* HOVER ZOOM */

.gallery-item:hover img{
transform:scale(1.08);
}

/* ANIMACIJA OKVIRA */

@keyframes borderColorFlow{

0%{border-color:white;}
33%{border-color:#ffd84d;}
66%{border-color:#7ec8ff;}
100%{border-color:white;}

}

/* TEXT BOX */

.gallery-text{
width:35%;
margin:15px auto 0 auto;
border-radius:10px;
padding:10px;
border:3px solid white;
animation:borderColorFlow 6s linear infinite;
background:rgba(255,255,255,0.2);
}

.gallery-text h3{
margin:0;
font-size:18px;
}

.gallery-text p{
margin:4px 0 0 0;
font-size:14px;
}

/* LIGHTBOX */

.lightbox{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.lightbox img{
max-width:90%;
max-height:90%;
border-radius:12px;
border:6px solid white;
animation:borderColorFlow 6s linear infinite;
}

.lightbox.active{
display:flex;
}

.lightbox-close{
position:absolute;
top:40px;
right:50px;
font-size:40px;
color:white;
cursor:pointer;
}

/* GALERIJA */

.gallery-section{

padding:80px 5%;

}

.gallery-container{

max-width:1400px;
margin:auto;

}

.gallery-row{

display:flex;
justify-content:space-between;
margin-bottom:70px;

}

.gallery-item{

width:30%;
text-align:center;
cursor:pointer;

}

.gallery-item img{

width:100%;
border-radius:14px;
border:5px solid white;
transition:0.4s;
animation:borderColorFlow 6s linear infinite;

}

/* HOVER ZOOM */

.gallery-item:hover img{

transform:scale(1.08);

}

/* OKVIR ANIMACIJA */

@keyframes borderColorFlow{

0%{border-color:white;}
33%{border-color:#FFD84D;}
66%{border-color:#7EC8FF;}
100%{border-color:white;}

}

/* TEXT BOX */

.gallery-text{

width:35%;
margin:15px auto 0 auto;
padding:10px;

border-radius:10px;
border:3px solid white;

animation:borderColorFlow 6s linear infinite;

}

.gallery-text h3{

margin:0;
font-size:18px;

}

.gallery-text p{

margin:4px 0 0 0;
font-size:14px;

}


/* POPUP */

.image-popup{

position:fixed;
top:0;
left:0;

width:100%;
height:100%;

background:rgba(0,0,0,0.9);

display:none;
align-items:center;
justify-content:center;

z-index:9999;

}

.image-popup img{

max-width:90%;
max-height:90%;

border-radius:12px;

border:5px solid white;

animation:borderColorFlow 6s linear infinite;

}

.popup-close{

position:absolute;
top:40px;
right:60px;

font-size:40px;
color:white;

cursor:pointer;

}

/* LIGHTBOX STIL */
.lightbox {
  display: none; /* default skriveno */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 5px;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
}
.gallery-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px 0;
}

/* Opći hover efekt */
.gallery-box {
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-box:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.gallery-box img {
  width: 80%;           /* širina slike */
  height: auto;         /* proporcionalna visina */
  display: block;       /* za margin auto */
  margin: 0 auto;       /* centriranje horizontalno */
  transition: transform 0.3s ease;
  border-radius: 15px;  /* zaobljeni kutovi - možeš mijenjati vrijednost */
}


.gallery-box:hover img {
  transform: scale(1.1);
}

/* NASLOV GALERIJE */
.gallery-grid h1 {
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Maven Pro', sans-serif;
}

/* RUČNO PODEŠAVANJE VISINE I ŠIRINE */
.box1 img { width: 200px; height: 100px; }
.box2 img { width: 350px; height: 250px; }
.box3 img { width: 300px; height: 300px; }
.box4 img { width: 400px; height: 200px; }
.box5 img { width: 250px; height: 250px; }
.box6 img { width: 350px; height: 300px; }

/* RESPONSIVE za mobitel */
@media screen and (max-width: 768px) {
  .gallery-container {
    grid-template-columns: 1fr; /* 1 slika po redu */
  }
  .box1 img, .box2 img, .box3 img, .box4 img, .box5 img, .box6 img {
    width: 100%; /* slike pune širinu ekrana */
    height: auto; /* proporcionalna visina */
  }
}

/* Contact box stilovi */
.contact-box {
  width: 70%;
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background-color: #689cf8;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.contact-box:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  transform: translateY(-5px);
}

/* Hover link za podatke */
.hover-link {
  color: #0FA4AF;
  text-decoration: none;
  transition: color 0.3s;
}
.hover-link:hover {
  color: #D8C3A5; /* svijetlo plava po tvojoj paleti */
}

/* Forma */
.contact-box form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

.contact-box form input,
.contact-box form textarea {
  width: 100%;
  padding: 10px 15px;
  margin-top: 5px;
  border: 3px solid #FFD700; /* žuti okvir */
  border-radius: 8px;
  background-color: #D8C3A5; /* svijetloplava podloga */
  transition: all 0.3s ease;
}

.contact-box form input:focus,
.contact-box form textarea:focus {
  background-color: #FFFFFF; /* mijenja boju kad se počinje upisivati */
  outline: none;
  border-color: #0FA4AF;
}

/* Dugme */
.contact-box form button.btn {
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #0FA4AF;
  color: #EAE7DC;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-box form button.btn:hover {
  background-color: #D8C3A5;
  color: #0FA4AF;
}

/* Socials */
.socials.social-contact a img {
  width: 50px;
  margin-right: 15px;
  transition: transform 0.3s, opacity 0.3s;
}
.socials.social-contact a:hover img {
  transform: scale(1.2);
  opacity: 0.8;
}

/* Map container */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-box { width: 90%; padding: 20px; }
  .socials.social-contact a img { width: 40px; margin-right: 10px; }
}

.contact-box {
  margin-bottom: 50px;
}

/* ============================
   KONTAKT STRANICA CSS
============================ */

/* Centriranje boxeva i osnovni stil */
.contact-box {
  width: 70%;
  margin: 50px auto;
  padding: 30px;
  background-color: #689cf8; /* svijetloplavi box */
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); /* žuto svjetlo */
  transition: all 0.3s ease;
}
.contact-box:hover {
  box-shadow: 0 0 25px rgba(15, 164, 175, 0.5); /* svijetloplavi hover efekt */
}



/* Kontakt forma input i textarea */
.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 12px 15px;
  margin: 8px 0 20px 0;
  border: 3px solid #FFD700; /* žuti okvir */
  border-radius: 8px;
  background-color: #FFFFFF !important; /* bijela podloga */
  color: #0a1f44 !important;           /* crni tekst pri unosu */
  transition: all 0.3s ease;
  font-size: 16px;
}

/* Hover efekt – tamno plava pozadina, bijeli tekst */
.contact-box input:hover,
.contact-box textarea:hover {
  background-color: #0E374F !important; /* tamno plava */
  color: #FFFFFF !important;             /* bijeli tekst */
}

/* Fokus – kad korisnik klikne u polje */
.contact-box input:focus,
.contact-box textarea:focus {
  background-color: #0E374F !important; /* tamno plava */
  color: #FFFFFF !important;             /* crni tekst dok se upisuje */
  border-color: #0FA4AF !important;     /* okvir postaje svijetloplav */
  outline: none;
}


/* Gumb forme */
.contact-box button.btn {
  background-color: #0FA4AF;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}
.contact-box button.btn:hover {
  background-color: #0E374F;
  color: #fff;
}

/* Socials centrirano i s hover efektom */
.social-contact {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.social-contact a img {
  width: 50px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.social-contact a img:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

/* Google mapa */
.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

/* Footer */
.site-footer {
  width: 100%;
  clear: both;
  margin-top: 60px;
}

/* Scroll reveal efekti */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivno za mobitele */
@media (max-width: 768px) {
  .contact-box {
    width: 90%;
    padding: 20px;
  }
  .social-contact a img {
    width: 40px;
  }
  .map-container iframe {
    height: 300px;
  }
  .contact-box button.btn {
    width: 100%;
  }
}

/* SAMO ZA STRANICU KONTAKT */
body.kontakt-page .box {
  width: 60%;          /* širina svih boxova na kontakt stranici */
  max-width: 800px;    /* maksimalna širina */
  margin: 40px auto;   /* centriranje */
}

body.kontakt-page .box-light {
  width: 55%;          /* možeš zasebno podesiti light box */
}

body.kontakt-page .box-triple {
  width: 95%;          /* triple box na kontakt stranici */
}

/* RESPONSIVE za mobitele */
@media(max-width:768px){
  body.kontakt-page .box,
  body.kontakt-page .box-light,
  body.kontakt-page .box-triple {
    width: 100%;        /* zauzima cijeli ekran na manjim uređajima */
  }
}

/* Samo na kontakt stranici */
body.kontakt-page .box-light {
  display: flex;
  align-items: center; /* vertikalno centriranje cijelog sadržaja boxa */
}

/* Centriranje teksta u prvom boxu na kontakt stranici */
body.kontakt-page .box-light:first-of-type .box-text {
  margin: 0 auto;      /* horizontalno centriranje ako je block element */
  text-align: center;  /* centrirani redovi teksta */
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertikalno centriranje */
  height: 100%;
}

/* Flex container unutar boxa */
.contact-box-content {
  display: flex;
  align-items: center;      /* vertikalno centriranje */
  justify-content: space-between; /* tekst lijevo, logo desno */
  gap: 20px;                /* razmak između teksta i loga */
}

/* Tekst zauzima preostali prostor */
.contact-box-text {
  flex: 1;
}

/* Logo */
.contact-box-logo {
  max-width: 500px;  /* prilagodi veličinu loga */
  height: auto;
}

/* SAMO ZA 4. BOX - social icons */
.contact-box .socials.social-contact {
  display: flex;
  justify-content: center; /* centrira sve ikone */
  align-items: center;
  gap: 25px;               /* veći razmak između ikona */
  margin-top: 20px;
}

.contact-box .socials.social-contact img {
  width: 50px;     /* povećaj po želji */
  height: 50px;    /* proporcionalno */
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-box .socials.social-contact img:hover {
  transform: scale(1.2); /* veći hover efekt */
  opacity: 0.85;
}

/* ===== UVALNI GUMB ZA POVRATAK NA VRH ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFD700; /* žuta */
  color: #000;
  font-size: 24px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  display: none;
}

.scroll-top-btn:hover {
  background: #0FA4AF; /* plava na hover */
  color: #fff;
  transform: scale(1.1);
}

/* Samo za stranicu dotisak-papir-pvc */
body.dotisak-page #product-boxes .single-box img {
  border-radius: 15px; /* možeš povećati ili smanjiti po želji */
  transition: transform 0.5s ease, filter 0.5s ease;
}

body.dotisak-page #product-boxes .single-box:hover img {
  transform: scale(1.08) translateY(-8px);
  filter: brightness(1.15);
}

/* ============================= */
/* FOOTER - LOGO + SOCIALS COLUMN */
/* ============================= */
.footer-logo-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* logo ide gore */
    align-items: center;          /* centrirano horizontalno */
    gap: 10px;                    /* razmak između loga i ikona */
}

.footer-logo-column .footer-logo img {
    height: 180px;       /* veličina loga, možeš mijenjati */
    max-width: 100%;     
    object-fit: contain;  /* logo ne rasteži proporcije */
}

.footer-logo-column .socials {
    display: flex;
    gap: 10px;            /* razmak između ikona */
    margin-top: 5px;      /* malo prostora ispod loga */
}

.footer-logo-column .socials img {
    height: 35px;         /* veličina ikona, možeš mijenjati */
    width: auto;
}

/* GLOBAL WHITE TEXT */
body,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body li,
body span,
body div,
body a {
  color: white !important;
}

/* BLOG PAGE – BOXOVI JEDAN ISPOD DRUGOG */

.blog-page .text-boxes{
width:70%;
margin:60px auto;
display:grid;
grid-template-columns:1fr;
gap:40px;
}

.blog-page .text-box{
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
padding:30px;
}

/* slika */
.blog-page .blog-img{
width:100%;
max-width:700px;
height:auto;
border-radius:10px;
margin:15px 0;
}

.box{
  transition: all 0.35s ease;
}

.box:hover{
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

/* ===== PRVI BOX - O NAMA STRANICA ===== */

.o-nama-page .box-light{
  width:90%;
  margin:60px auto;
}

/* omogućuje da se sadržaj lijepo prilagođava */
.o-nama-page .box-light .box-img,
.o-nama-page .box-light .box-text{
  flex:1;
}

/* ===== SVI BOXOVI - Proizvodnja vrećica stranica ===== */

.index-page .box-light {
  width: 90%;          /* postavi željenu širinu */
  margin: 60px auto;   /* centrira boxove */
  max-width: 1200px;   /* opcionalno: ograniči maksimalnu širinu za velike ekrane */
  box-sizing: border-box; /* sprječava probijanje paddinga */
}

/* fleksibilni raspored sadržaja unutar boxova */
.index-page .box-light .box-img,
.index-page .box-light .box-text {
  flex: 1;
}

.ai-video-box {
  text-align: center;
  margin: 40px auto;
  max-width: 600px; /* možeš prilagoditi širinu */
}

.video-container {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.ai-box-title {
  margin-top: 12px;
  font-family: 'Maven Pro', sans-serif;
  font-size: 1.3rem;
  color: #0FA4AF; /* koristi tvoj akcent */
}

/* Box container */
.ai-video-box {
  text-align: center;
  margin: 40px auto;
  max-width: 600px;
  position: relative;
  cursor: pointer; /* pokazuje da je interaktivan */
}

/* Video container sa overlay */
.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

/* Video sam */
.video-container video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

/* Overlay za hover efekat */
.video-container::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 200, 0, 0); /* žuto svjetlo, početno prozirno */
  mix-blend-mode: overlay;
  transition: background 0.3s ease;
  border-radius: 12px;
}

/* Hover efekt */
.ai-video-box:hover .video-container::after {
  background: rgba(255, 200, 0, 0.25); /* žuto svjetlo */
}

.ai-video-box:hover .video-container video {
  transform: scale(1.05); /* lagano zumiranje */
}

/* Naslov efekti */
.ai-box-title {
  margin-top: 12px;
  font-family: 'Maven Pro', sans-serif;
  font-size: 1.3rem;
  color: #0FA4AF;
  transition: color 0.3s ease, transform 0.3s ease;
}

.ai-video-box:hover .ai-box-title {
  color: #FFD700; /* naglašena žuta boja */
  transform: translateY(-5px); /* lagano podizanje naslova */
}

/* CONTAINER */

.promo-container{
width:70%;
margin:80px auto 140px auto;
position:relative;
clear:both;
}


/* BOX */

.promo-box{
background:#689cf8; /* ovdje možeš staviti svoju plavu */
border:3px solid #FFD700;
border-radius:14px;
overflow:hidden;
padding:18px 0;
box-shadow:0 8px 20px rgba(0,0,0,0.15);
transition:all 0.3s ease;
position:relative;
}


/* LIGHT SWEEP EFEKT */

.promo-box::after{
content:"";
position:absolute;
top:0;
left:-150%;
width:60%;
height:100%;

background:linear-gradient(
120deg,
transparent,
rgba(255,255,255,0.6),
transparent
);

transform:skewX(-25deg);

animation:lightMove 6s infinite;
}


/* HOVER GLOW */

.promo-box:hover{
box-shadow:0 0 30px rgba(255,215,0,0.9);
}


/* TRACK */

.promo-track{
display:flex;
white-space:nowrap;
width:max-content;
padding:10px 0;
}

.promo-track:first-child{
animation:scrollLeft 40s linear infinite;
}

.promo-track:last-child{
animation:scrollRight 40s linear infinite;
}



/* TEKST */

.promo-track span{
display:inline-flex;
align-items:center;
font-family:'Maven Pro', sans-serif;
font-size:1.1rem;
color:#222;
padding:0 40px;
text-transform:uppercase;
}


/* IKONE */

.promo-track i{
margin-right:10px;
color:#0FA4AF;
font-size:1rem;

animation:iconPulse 3s ease-in-out infinite;
}



/* UBRZANJE NA HOVER */

.promo-box:hover .promo-track{
animation-duration:18s;
}


/* ANIMACIJA TEKSTA */

@keyframes scrollLeft{

0%{
transform:translateX(0);
}

100%{
transform:translateX(-50%);
}

}

@keyframes scrollRight{

0%{
transform:translateX(-50%);
}

100%{
transform:translateX(0);
}

}



/* ANIMACIJA SVJETLA */

@keyframes lightMove{

0%{
left:-150%;
}

100%{
left:150%;
}

}

@keyframes iconPulse{

0%{
transform:scale(1);
opacity:0.9;
}

50%{
transform:scale(1.2);
opacity:1;
}

100%{
transform:scale(1);
opacity:0.9;
}

}

/* FOOTER COLOR ANIMATION */

.footer-color-text{
animation:footerColors 8s infinite linear;
}

@keyframes footerColors{

0%{
color:#ffffff;
}

25%{
color:#FFD700;
}

50%{
color:#CFEFFF;
}

75%{
color:#0FA4AF;
}

100%{
color:#ffffff;
}

}

.promo-container{
  width:70%;
  margin:0 auto;           /* centriranje horizontalno */
  position:relative;
  
  /* centriranje vertikalno između video boxa i footera */
  display:flex;
  flex-direction:column;
  justify-content:center;

  /* minimalni gornji i donji razmak */
  margin-top:60px;          /* udaljenost od video boxa */
  margin-bottom:60px;       /* udaljenost od footera */
}

/* ============================= */
/* BIJELE IKONE – GLOBALNI FIX */
/* ============================= */

/* Ikone unutar blog/text boxova */
.text-box i,
.text-box .promo-track i,
.read-more-btn i,
.footer-reference i,
.footer-info i,
.footer-logo i,
.promo-box i {
    color: #ffffff !important; /* forsira bijelu boju */
}

/* Hover efekti za ikone unutar text-boxova i promo tracka */
.text-box i:hover,
.text-box .promo-track i:hover,
.read-more-btn i:hover,
.footer-reference i:hover,
.footer-info i:hover,
.footer-logo i:hover,
.promo-box i:hover {
    color: #ffffff !important; /* ostaje bijelo i na hover */
}

/* Ako su ikone unutar linkova, osigurava da se ne mijenja boja linka */
.text-box a i,
.promo-box a i,
.footer-info a i,
.footer-reference a i {
    color: #ffffff !important;
}

/* Za sve nove ikone koje dodamo u budućnosti u text-box ili footer */
.icon,
.icon * {
    color: #ffffff !important;
}

/* Hover efekt na sve divove u footer-info */
.footer-info div,
.footer-info h4 {
  transition: color 0.3s ease, transform 0.2s ease; /* glatka animacija */
}

/* Hover boja i lagano podizanje */
.footer-info div:hover,
.footer-info h4:hover {
  color: #FFD700; /* žuta */
  transform: translateY(-2px); /* lagano podiže tekst */
}

/* Hover efekt na sve divove u footer-info */
.footer-info div,
.footer-info h4 {
  transition: color 0.3s ease, transform 0.2s ease; /* glatka animacija */
}

/* Hover boja i lagano podizanje */
.footer-info div:hover,
.footer-info h4:hover {
  color: #FFD700; /* žuta */
  transform: translateY(-2px); /* lagano podiže tekst */
}

.footer-info div:hover,
.footer-info h4:hover {
  color: #FFD700;
  text-shadow: 0 0 8px #FFD700; /* suptilni glow */
}

.footer-info div {
  position: relative;
}

.footer-info div:hover::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #FFD700;
  left: 0;
  bottom: -2px;
  animation: underlineGrow 0.3s forwards;
}

@keyframes underlineGrow {
  from { width: 0; }
  to { width: 100%; }
}

/* Hover efekt samo na footer link 4-IT */
.footer-credit-text a:hover {
  color: #FFD700; /* žuta boja */
  transition: color 0.3s ease;
}

/* STIL ZA FOOTER LINK “WEBSITE BY 4-IT” */
.footer-credit-text {
  margin-top: 6px;
  font-family: 'Maven Pro', sans-serif;
  font-size: 0.85rem;
  text-align: left; /* ili center ako želiš centrirano */
}

/* LINK STIL */
.footer-credit-text a {
  color: #ffffff;           /* default bijela boja */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.2s ease, text-shadow 0.3s ease;
  display: inline-block;
}

/* HOVER EFEKTI */
.footer-credit-text a:hover {
  color: #FFD700;            /* žuta boja na hover */
  transform: translateY(-2px); /* lagano podiže tekst */
  text-shadow: 0 0 8px #FFD700; /* suptilni glow */
}

.site-header .nav ul li a {
    white-space: nowrap !important;
}



/* =========================================================
   MOBILNI RASPORED - ZAVRSNA KOREKCIJA
   Ne mijenja desktop izgled
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------------------
       1. OSNOVNO - stranica ne smije probijati ekran
       ----------------------------------------------------- */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
    }


    /* -----------------------------------------------------
       2. HEADER
       ----------------------------------------------------- */

    .site-header {
        width: 95% !important;
        max-width: 95% !important;
        height: auto !important;
        min-height: 110px;
        margin: 10px auto !important;
        padding: 12px 15px !important;
        box-sizing: border-box;
    }

    .company-name {
        font-size: 22px;
        text-align: center;
    }

    .logo img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 120px;
    }


    /* -----------------------------------------------------
       3. MOBILNI MENU
       ----------------------------------------------------- */

    .hamburger {
        display: block;
    }

    #menu-list {
        width: 100%;
        box-sizing: border-box;
    }

    #menu-list li a {
        white-space: normal !important;
        line-height: 1.3;
    }

    .mega-menu {
        position: static !important;
        width: 100%;
        min-width: 0 !important;
        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       4. HERO
       ----------------------------------------------------- */

    .hero-image {
        width: 95% !important;
        max-width: 95% !important;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image img {
        width: 100%;
        height: auto !important;
        max-height: 60vh;
        object-fit: cover;
    }

    #typing-text {
        font-size: 32px;
        letter-spacing: 1px;
        -webkit-text-stroke: 1px #FFD700;
    }

    .hero-title h1 {
        font-size: 28px;
        line-height: 1.2;
    }


    /* =====================================================
       5. GLAVNI BOXOVI
       
       VAŽNO:
       Ne stavljamo sve boxove u column.
       Zadržavamo osnovni raspored slike + teksta.
       ===================================================== */

    .box {
        width: 95% !important;
        max-width: 1200px;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
        min-width: 0;
    }

    /* Slika i tekst ne smiju prisilno zauzeti 100% */
    .box-img,
    .box-text {
        box-sizing: border-box;
        min-width: 0;
    }

    /* Standardni box - slika lijevo, tekst desno */
    .box:not(.box-dark) {
        flex-direction: row !important;
    }

    /* Tamni box - zadržava svoj obrnut raspored */
    .box.box-dark {
        flex-direction: row-reverse !important;
    }

    /* Standardne širine na mobitelu */
    .box .box-img {
        width: 35% !important;
        flex: 0 0 35%;
        padding: 8px;
    }

    .box .box-text {
        width: 65% !important;
        flex: 0 0 65%;
        padding: 15px;
    }

    .box .box-img img {
        width: 100%;
        height: auto;
        display: block;
    }

    .box-text h2 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .box-text p {
        font-size: 16px;
        line-height: 1.45;
    }


    /* -----------------------------------------------------
       6. O NAMA - zadržava vlastiti raspored
       ----------------------------------------------------- */

    body.o-nama-page .box-light {
        width: 95% !important;
        display: flex !important;
        flex-direction: row !important;
    }

    body.o-nama-page .box-light .box-img {
        width: 40% !important;
        flex: 0 0 40%;
    }

    body.o-nama-page .box-light .box-text {
        width: 60% !important;
        flex: 0 0 60%;
    }


    /* -----------------------------------------------------
       7. INDEX / NASLOVNA - box-light
       ----------------------------------------------------- */

    body.index-page .box-light {
        width: 95% !important;
        max-width: 1200px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
    }

    body.index-page .box-light .box-img {
        width: 35% !important;
        flex: 0 0 35%;
    }

    body.index-page .box-light .box-text {
        width: 65% !important;
        flex: 0 0 65%;
    }


    /* -----------------------------------------------------
       8. GUMBI
       ----------------------------------------------------- */

    .box .btn {
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
    }


    /* -----------------------------------------------------
       9. TRIPLE BOX
       
       Ovaj je poseban element i na mobitelu ide
       jedan odjeljak ispod drugoga.
       ----------------------------------------------------- */

    .box-triple {
        width: 95% !important;
        max-width: 95% !important;
        box-sizing: border-box;
        padding: 12px !important;
        gap: 12px !important;
    }

    .box-triple .triple-section {
        width: 100% !important;
        flex: 0 0 100%;
        box-sizing: border-box;
        min-width: 0;
    }


    /* -----------------------------------------------------
       10. KONTAKT BOX
       ----------------------------------------------------- */

    .contact-box {
        width: 95% !important;
        max-width: 900px;
        box-sizing: border-box;
        padding: 20px;
    }

    .contact-box-content {
        width: 100%;
        box-sizing: border-box;
    }

    .contact-box input,
    .contact-box textarea {
        max-width: 100%;
        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       11. GALERIJA
       ----------------------------------------------------- */

    .gallery-section {
        width: 100%;
        box-sizing: border-box;
        padding: 40px 15px;
    }

    .gallery-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .gallery-row {
        width: 100%;
        box-sizing: border-box;
    }

    .gallery-item {
        box-sizing: border-box;
        max-width: 100%;
    }

    .gallery-item img {
        max-width: 100%;
        height: auto;
    }

    .gallery-text {
        max-width: 90%;
    }


    /* -----------------------------------------------------
       12. VIDEO
       ----------------------------------------------------- */

    .ai-video-box {
        width: 95%;
        max-width: 600px;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    .video-container {
        width: 100%;
    }


    /* -----------------------------------------------------
       13. PROMO BOX
       ----------------------------------------------------- */

    .promo-container {
        width: 95%;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    .promo-box {
        width: 100%;
        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       14. FOOTER
       ----------------------------------------------------- */

    .site-footer {
        width: 95% !important;
        max-width: 1200px;
        height: auto !important;
        min-height: 180px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding: 20px 10px;
    }

    .footer-grid {
        width: 100%;
        box-sizing: border-box;
    }

    .footer-logo img,
    .footer-logo-column .footer-logo img {
        max-width: 100%;
        height: auto;
        max-height: 130px;
    }

    .footer-reference {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    
}



 /* =========================================================
    TOM MARKETING
    PRVA DVA BOXA - IZOLIRANI RESPONSIVE CSS
    NE UTJEČE NA OSTALE BOXOVE
    ========================================================= */


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 769px) and (max-width: 1100px) {

    body.index-page .first-home-box,
    body.index-page .second-home-box {

        width: 92% !important;
        max-width: 950px !important;

        margin: 35px auto !important;
        padding: 15px !important;

        box-sizing: border-box !important;

        display: grid !important;

        grid-template-columns: 44% 56% !important;

        gap: 20px !important;

        align-items: center !important;

        height: auto !important;
        min-height: 0 !important;

        overflow: hidden !important;
    }


    body.index-page .first-home-box .box-img,
    body.index-page .second-home-box .box-img {

        width: 100% !important;

        height: 300px !important;
        min-height: 300px !important;

        padding: 0 !important;
        margin: 0 !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }


    body.index-page .first-home-box .box-img img,
    body.index-page .second-home-box .box-img img {

        display: block !important;

        width: 100% !important;
        height: 300px !important;

        min-height: 0 !important;
        max-height: none !important;

        object-fit: cover !important;

        margin: 0 !important;
    }


    body.index-page .first-home-box .box-text,
    body.index-page .second-home-box .box-text {

        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        padding: 25px !important;

        box-sizing: border-box !important;

        align-self: center !important;
    }
}


/* =========================================================
   MOBITEL
   ========================================================= */

@media (max-width: 768px) {

    body.index-page .first-home-box,
    body.index-page .second-home-box {

        width: 92% !important;

        margin: 28px auto !important;

        padding: 8px !important;

        box-sizing: border-box !important;

        display: flex !important;

        flex-direction: column !important;

        gap: 0 !important;

        height: auto !important;
        min-height: 0 !important;

        overflow: hidden !important;

        border-radius: 18px !important;
    }


    /* SLIKA */

    body.index-page .first-home-box .box-img,
    body.index-page .second-home-box .box-img {

        width: 100% !important;

        height: 210px !important;
        min-height: 210px !important;
        max-height: 210px !important;

        padding: 0 !important;
        margin: 0 !important;

        flex: none !important;

        overflow: hidden !important;

        order: 1 !important;
    }


    body.index-page .first-home-box .box-img img,
    body.index-page .second-home-box .box-img img {

        display: block !important;

        width: 100% !important;

        height: 210px !important;

        min-height: 210px !important;
        max-height: 210px !important;

        object-fit: cover !important;

        object-position: center !important;

        margin: 0 !important;

        box-sizing: border-box !important;
    }


    /* TEKST */

    body.index-page .first-home-box .box-text,
    body.index-page .second-home-box .box-text {

        width: 100% !important;

        height: auto !important;

        min-height: 0 !important;

        padding: 25px 20px 28px !important;

        box-sizing: border-box !important;

        display: flex !important;

        flex-direction: column !important;

        justify-content: flex-start !important;

        align-items: center !important;

        text-align: center !important;

        order: 2 !important;
    }


    body.index-page .first-home-box .box-text p,
    body.index-page .second-home-box .box-text p {

        width: 100% !important;

        margin: 0 !important;

        font-size: 16px !important;

        line-height: 1.6 !important;
    }


    /* NASLOV DRUGOG */

    body.index-page .second-home-box .box-text h2 {

        margin-top: 0 !important;

        margin-bottom: 10px !important;

        font-size: 26px !important;
    }


    /* LINIJA */

    body.index-page .second-home-box .box-underline {

        width: 90px !important;

        height: 3px !important;

        margin: 0 auto 18px !important;
    }


    /* GUMBI */

    body.index-page .first-home-box .btn,
    body.index-page .second-home-box .btn {

        display: inline-flex !important;

        align-items: center !important;
        justify-content: center !important;

        width: auto !important;

        max-width: 100% !important;

        margin: 20px auto 0 !important;

        padding: 11px 18px !important;

        font-size: 14px !important;

        line-height: 1.3 !important;

        box-sizing: border-box !important;
    }


    /* DRUGI BOX:
       SLIKA IDE IZNAD TEKSTA */

    body.index-page .second-home-box .box-img {
        order: 1 !important;
    }

    body.index-page .second-home-box .box-text {
        order: 2 !important;
    }
}


/* =========================================================
   MALI MOBITEL
   ========================================================= */

@media (max-width: 480px) {

    body.index-page .first-home-box,
    body.index-page .second-home-box {

        width: 94% !important;

        margin: 24px auto !important;

        padding: 7px !important;

        border-radius: 16px !important;
    }


    body.index-page .first-home-box .box-img,
    body.index-page .second-home-box .box-img {

        height: 190px !important;

        min-height: 190px !important;
        max-height: 190px !important;
    }


    body.index-page .first-home-box .box-img img,
    body.index-page .second-home-box .box-img img {

        height: 190px !important;

        min-height: 190px !important;
        max-height: 190px !important;

        border-radius: 11px !important;
    }


    body.index-page .first-home-box .box-text,
    body.index-page .second-home-box .box-text {

        padding: 22px 16px 25px !important;
    }


    body.index-page .first-home-box .box-text p,
    body.index-page .second-home-box .box-text p {

        font-size: 15px !important;

        line-height: 1.6 !important;
    }


    body.index-page .second-home-box .box-text h2 {

        font-size: 24px !important;
    }


    body.index-page .first-home-box .btn,
    body.index-page .second-home-box .btn {

        font-size: 13px !important;

        padding: 10px 15px !important;
    }
}


/* =========================================================
   TOM MARKETING - TREĆI BOX
   TRIPLE HOME BOX
   ========================================================= */

body.index-page .triple-home-box {
    width: 92% !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 0 !important;

    display: grid !important;
    grid-template-columns: 1fr 1.35fr 1fr !important;

    gap: 0 !important;

    overflow: hidden !important;
    box-sizing: border-box !important;

    border-radius: 20px !important;
}


/* =========================================================
   TRI DJELA
   ========================================================= */

body.index-page .triple-home-box > .triple-section {
    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 35px 25px !important;

    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;

    justify-content: center !important;
    align-items: center !important;

    text-align: center !important;

    background: #689cf8 !important;

    border: 3px solid white !important;
    border-radius: 0 !important;
}


/* =========================================================
   DESKTOP REDOSLIJED

   TEKST | CAROUSEL | KONTAKT
   ========================================================= */

body.index-page .triple-home-box .triple-text {
    grid-column: 1 !important;
}

body.index-page .triple-home-box .triple-slider {
    grid-column: 2 !important;
}

body.index-page .triple-home-box .triple-contact {
    grid-column: 3 !important;
}


/* =========================================================
   CAROUSEL
   ========================================================= */

body.index-page .triple-home-box .triple-slider {
    padding: 0 !important;

    min-height: 300px !important;

    display: block !important;

    overflow: hidden !important;
}

body.index-page .triple-home-box .slider {
    position: relative !important;

    width: 100% !important;
    height: 300px !important;

    min-height: 300px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    box-sizing: border-box !important;
}

body.index-page .triple-home-box .slider img {
    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    min-height: 100% !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    object-fit: cover !important;
    object-position: center !important;

    border: none !important;
    border-radius: 0 !important;

    opacity: 0 !important;
    visibility: hidden !important;

    transition: opacity 0.8s ease !important;
}

body.index-page .triple-home-box .slider img.active {
    opacity: 1 !important;
    visibility: visible !important;
}


/* =========================================================
   GUMBI
   ========================================================= */

body.index-page .triple-home-box .btn {
    margin-top: 20px !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 769px) and (max-width: 1100px) {

    body.index-page .triple-home-box {
        width: 92% !important;
        max-width: 1000px !important;

        grid-template-columns: 1fr 1.2fr 1fr !important;
    }

    body.index-page .triple-home-box > .triple-section {
        padding: 30px 18px !important;
    }

    body.index-page .triple-home-box .triple-slider,
    body.index-page .triple-home-box .slider {
        min-height: 280px !important;
        height: 280px !important;
    }
}


/* =========================================================
   MOBITEL

   REDOSLIJED:

   1. TEKST
   2. KONTAKT
   3. CAROUSEL
   ========================================================= */

@media (max-width: 768px) {

    body.index-page .triple-home-box {
        width: 92% !important;
        max-width: 92% !important;

        margin: 28px auto !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        gap: 0 !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       1. TEKST
       ===================================================== */

    body.index-page .triple-home-box .triple-text {
        order: 1 !important;

        width: 100% !important;

        min-height: 0 !important;

        padding: 28px 20px !important;

        box-sizing: border-box !important;

        display: flex !important;
        flex-direction: column !important;

        justify-content: center !important;
        align-items: center !important;

        text-align: center !important;
    }


    /* =====================================================
       2. KONTAKT
       ===================================================== */

    body.index-page .triple-home-box .triple-contact {
        order: 2 !important;

        width: 100% !important;

        min-height: 0 !important;

        padding: 28px 20px !important;

        box-sizing: border-box !important;

        display: flex !important;
        flex-direction: column !important;

        justify-content: center !important;
        align-items: center !important;

        text-align: center !important;
    }


    /* =====================================================
       3. CAROUSEL
       ===================================================== */

    body.index-page .triple-home-box .triple-slider {
        order: 3 !important;

        width: 100% !important;

        height: 220px !important;
        min-height: 220px !important;

        padding: 0 !important;

        box-sizing: border-box !important;

        display: block !important;

        overflow: hidden !important;
    }


    body.index-page .triple-home-box .slider {
        position: relative !important;

        width: 100% !important;

        height: 220px !important;
        min-height: 220px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }


    body.index-page .triple-home-box .slider img {
        position: absolute !important;

        top: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 220px !important;

        min-width: 100% !important;
        min-height: 220px !important;

        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;

        object-fit: cover !important;
        object-position: center !important;

        border: none !important;
        border-radius: 0 !important;

        opacity: 0 !important;
        visibility: hidden !important;

        transition: opacity 0.8s ease !important;
    }


    body.index-page .triple-home-box .slider img.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

}


/* =========================================================
   MALI MOBITEL
   ========================================================= */

@media (max-width: 480px) {

    body.index-page .triple-home-box {
        width: 94% !important;
        max-width: 94% !important;

        margin: 24px auto !important;
    }


    body.index-page .triple-home-box .triple-text,
    body.index-page .triple-home-box .triple-contact {
        padding: 24px 16px !important;
    }


    body.index-page .triple-home-box .triple-slider {
        height: 190px !important;
        min-height: 190px !important;
    }


    body.index-page .triple-home-box .slider {
        height: 190px !important;
        min-height: 190px !important;
    }


    body.index-page .triple-home-box .slider img {
        height: 190px !important;
        min-height: 190px !important;
    }

}


/* =========================================================
   MOBITEL VODORAVNO - PUNA ŠIRINA
   ========================================================= */

@media (orientation: landscape) and (max-width: 900px) {

    html,
    body {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    .site-header,
    .hero-image,
    .hero-title,
    .first-home-box,
    .second-home-box,
    .triple-home-box,
    .ai-video-box,
    .promo-container,
    .site-footer {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .first-home-box,
    .second-home-box {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .triple-home-box {
        width: 92% !important;
        max-width: 92% !important;
    }
}


/* O NAMA - PRVI BOX - MOBITEL */

.about-first-box {
    width: 92%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #689cf8;
    color: #0a1f44;
    border-radius: 15px;
    overflow: hidden;
    height: auto;
    min-height: 0;
}

.about-first-image {
    width: 60%;
    flex: 0 0 60%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.about-first-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 1px solid gold;
    border-radius: 15px;
    box-sizing: border-box;
}

.about-first-text {
    width: 40%;
    flex: 0 0 40%;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-first-text h2 {
    width: 100%;
    margin: 0 0 10px 0;
    font-size: 28px;
    line-height: 1.25;
    text-align: center;
}

.about-first-underline {
    width: 120px;
    height: 3px;
    margin: 0 auto 20px auto;
    background: gold;
    border-radius: 3px;
}

.about-first-text p {
    width: 100%;
    margin: 0 0 16px 0;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}


/* TABLET */

@media (min-width: 769px) and (max-width: 1100px) {

    .about-first-box {
        width: 92%;
        margin: 35px auto;
        padding: 12px;
    }

    .about-first-image {
        width: 50%;
        flex: 0 0 50%;
    }

    .about-first-text {
        width: 50%;
        flex: 0 0 50%;
        padding: 25px;
    }

    .about-first-text h2 {
        font-size: 26px;
    }
}


/* MOBITEL */

@media (max-width: 768px) {

    .about-first-box {
        width: 92% !important;
        margin: 25px auto !important;
        padding: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
        border-radius: 18px !important;
        overflow: hidden !important;
    }

    .about-first-image {
        width: 100% !important;
        flex: 0 0 auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        order: 1 !important;
    }

    .about-first-image img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 12px !important;
        object-fit: contain !important;
    }

    .about-first-text {
        width: 100% !important;
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 25px 18px 28px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
        order: 2 !important;
    }

    .about-first-text h2 {
        width: 100% !important;
        margin: 0 0 10px 0 !important;
        font-size: 23px !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    .about-first-underline {
        width: 85px !important;
        height: 3px !important;
        margin: 0 auto 18px auto !important;
    }

    .about-first-text p {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 16px 0 !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }

    .about-first-text p:last-child {
        margin-bottom: 0 !important;
    }
}


/* MALI MOBITEL */

@media (max-width: 480px) {

    .about-first-box {
        width: 94% !important;
        margin: 22px auto !important;
        padding: 7px !important;
        border-radius: 16px !important;
    }

    .about-first-text {
        padding: 22px 15px 25px !important;
    }

    .about-first-text h2 {
        font-size: 21px !important;
    }

    .about-first-text p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .about-first-underline {
        width: 75px !important;
        margin-bottom: 16px !important;
    }
}

/* ================= KONTAKT - AUTOMATSKO UKLAPANJE LOGA ================= */
/* Samo logo u kontakt boxu */

.contact-box .contact-box-logo-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.contact-box .contact-box-logo {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
}

/* ================= MOBITEL ================= */

@media screen and (max-width: 768px) {

  .contact-box .contact-box-logo-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .contact-box .contact-box-logo {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 180px !important;
    object-fit: contain !important;
  }
}

/* ================= MOBITEL - VODORAVNO ================= */

@media screen and (max-width: 768px) and (orientation: landscape) {

  .contact-box .contact-box-logo-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .contact-box .contact-box-logo {
    width: auto !important;
    max-width: 70% !important;
    max-height: 100px !important;
    height: auto !important;
    object-fit: contain !important;
  }
}


/* ===== CENTRIRANJE CJENIKA PLASTIFICIRANE NA MOBITELU ===== */
@media (max-width: 768px) {
  .price-table-plastificirane {
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
  }

  .price-table-plastificirane table {
    margin-left: auto;
    margin-right: auto;
  }
}


/* ===== TEKSTILNE VREĆICE - SLIKE NA MOBITELU VODORAVNO ===== */
@media (max-width: 900px) and (orientation: landscape) {
  #product-boxes .product-img-container img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    box-sizing: border-box;
  }
}


/* ===== DOTISAK PAPIR/PVC - FOTO BOXOVI NA MOBITELU ===== */

@media (max-width: 768px) {

  body.dotisak-page #product-boxes .triple-section.single-box {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  body.dotisak-page #product-boxes .triple-section.single-box img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  
} 
/* =========================================================
   TOM MARKETING - POPRAVAK MOBILNE NAVIGACIJE
   PODIZBORNIK MORA BITI KLIKABILAN NA MOBITELU
   ========================================================= */

@media (max-width: 768px) {

    /* Glavni izbornik */
    .site-header {
        position: sticky !important;
        z-index: 10000 !important;
    }

    .site-header .nav {
        position: relative !important;
        z-index: 10001 !important;
    }

    #menu-list {
        position: relative !important;
        z-index: 10002 !important;
    }

    #menu-list .mega-parent {
        position: relative !important;
        z-index: 10003 !important;
        transform: none !important;
    }

    /* Podizbornik */
    #menu-list .mega-menu {
        position: static !important;

        display: none !important;

        width: 100% !important;
        min-width: 0 !important;

        padding: 10px !important;
        margin: 0 !important;

        border: none !important;

        box-sizing: border-box !important;

        z-index: 10004 !important;

        pointer-events: auto !important;
    }

    /* Podizbornik otvoren klikom */
    #menu-list .mega-parent.active .mega-menu {
        display: flex !important;
        flex-direction: column !important;

        pointer-events: auto !important;
    }

    /* SVAKA podstavka mora biti pravi klik */
    #menu-list .mega-menu a {
        position: relative !important;

        display: block !important;

        width: 100% !important;

        min-height: 44px !important;

        padding: 12px !important;
        margin: 0 !important;

        box-sizing: border-box !important;

        color: white !important;
        text-decoration: none !important;

        pointer-events: auto !important;

        touch-action: manipulation !important;

        z-index: 10005 !important;
    }

    /*
       VAŽNO:
       Na mobitelu isključujemo desktop hover ponašanje.
       Touch uređaji znaju "zadržati" :hover nakon dodira.
    */
    #menu-list .mega-parent:hover .mega-menu {
        display: none !important;
    }

    #menu-list .mega-parent.active:hover .mega-menu {
        display: flex !important;
        flex-direction: column !important;
    }

    /*
       Isključujemo žutu hover pozadinu podstavki
       na touch uređajima.
    */
    #menu-list .mega-menu a:hover {
        background: transparent !important;
        color: white !important;
    }

    /*
       Pseudo-element ::after iz glavne navigacije
       ne smije stvarati dodatne hover efekte na podstavkama.
    */
    #menu-list .mega-menu a::after {
        display: none !important;
        content: none !important;
    }

    /*
       Glavni link "Kategorije proizvoda"
       ostaje normalno klikabilan.
    */
    #menu-list .mega-parent > a {
        position: relative !important;
        z-index: 10006 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
}


@media screen and (max-width: 900px) and (orientation: landscape) {

    .site-header .logo img {
        width: 90px !important;
        height: auto !important;
    }

    .site-header .logo {
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-header {
        min-height: 60px !important;
    }

}


@media screen and (max-width: 900px) and (orientation: landscape) {

  .reference-box {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

}

/* ================= PORUKA NAKON SLANJA FORME ================= */

#form-message {
  width: 92%;
  max-width: 700px;
  margin: 20px auto;
  padding: 18px 20px;
  box-sizing: border-box;
  border: 2px solid gold;
  border-radius: 12px;
  background: #0a1f44;
  color: white;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  display: none;
}

#form-message.success {
  display: block;
}

#form-message.error {
  display: block;
  border-color: #ff5555;
}



































































