html {
  scroll-behavior: smooth;
}

/* ==================================================
   TAMNIJE PLAVE – GLOBALNE VARIJABLE
   (default gradijenti tamniji; hover ostaje kao prije)
   ================================================== */
:root{
  --nav-h: 70px;

  /* TAMNIJI DEFAULT */
  --blue-1: #003a6a;    /* umjesto #004a87 */
  --blue-2: #005294;    /* umjesto #0064b4 */

  /* HOVER (OSTAJE) */
  --blue-hover-1: #0064b4;
  --blue-hover-2: #0080e0;

  /* AKCENTI */
  --accent-blue: #0080e0;
  --accent-blue-2: #00a0ff;
  --light-blue: #a8d5ff;

  /* ostalo */
  --line-height-base: 1.8;
  --heading-font: 'Georgia', 'Palatino', 'Times New Roman', serif;
}

body{
  padding-top: var(--nav-h);
}

section{
  padding: 0;
  scroll-margin-top: calc(var(--nav-h) + 10px);
}

section>.container{
  padding: 0;
  background-color:#fff;
}

.divider{ border-top: 1px solid #eee; }

/* ===== CONTENT ===== */
.section-title{
  font-weight: 700;
  margin-bottom: 15px;
}

.section-text{
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

.img-holder{
  width: 100%;
  height: 280px;
  background: #e9ecef;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 25px;
}

@media (min-width: 992px){
  .img-holder{ height: 360px; }
}

/* ===== LISTE ===== */
.ul-clean,
.ul-clean2{
  list-style: none;
  margin-left: 0;
  padding-left: 30%;
  text-align: left;
}

.ul-clean2{ margin-bottom: 20px; }

.subpoint{ margin-left: 20px; }

/* ===== SLIDER CAPTION ===== */
.ratni-slider .media-wrap{ position: relative; }

.ratni-slider .rp-caption{
  left: 0;
  right: 0;
  bottom: 20px;
  padding: 0;
}

.ratni-slider .rp-caption-box{
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  border-radius: 12px;
}

.ratni-slider .rp-kicker{
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: .9;
  margin-bottom: 4px;
}

.ratni-slider .rp-title{
  margin: 0 0 6px 0;
  font-weight: 800;
  font-size: 18px;
}

.ratni-slider .rp-text{
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  opacity: .95;
}

/* ===== FILTER SELECT / GALLERY GRID ===== */
.filter-select{
  width: 25%;
  margin: 10px auto;
  display: block;
  clear: both;
  position: relative;
  padding: 10px;
}

#gallery-single-section.gallery-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0 auto;
  justify-content: flex-start;
}

.isotope-item{
  width: calc(25% - 15px);
  margin: 0;
  box-sizing: border-box;
  display: block;
  position: static !important;
  left: auto !important;
  top: auto !important;
}

@media (max-width: 991px){
  .isotope-item{ width: calc(33.333% - 15px); }
}

@media (max-width: 768px){
  .filter-select{
    width: 95%;
    margin: 10px auto;
    display: block;
    clear: both;
    position: relative;
    padding: 10px;
  }

  #gallery-single-section.gallery-grid{ gap: 8px; }

  .isotope-item{ width: calc(50% - 8px); }
}

.lightgallery{
  position: relative;
  height: auto;
  min-height: 400px !important;
  overflow-y: auto;
  height: auto !important;
}

/* ===== BRAND desktop/mobile ===== */
.brand-desktop{ display: inline; }
.brand-mobile{ display: none; }

@media (max-width: 767px){
  .brand-desktop{ display: none; }

  .ul-clean,
  .ul-clean2{
    list-style: none;
    padding-left: 10px;
    margin-left: 0;
    text-align:left;
  }

  .ul-clean2{ margin-bottom:20px; }

  .brand-mobile{
    display: inline;
    font-size: 1.1rem;
    letter-spacing: 0.4px;
  }
}

/* ==================================================
   NAVBAR (DEFAULT TAMNIJI)
   ================================================== */
#mainNav{
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%) !important;
  border-bottom: 3px solid var(--accent-blue);
}

#mainNav .container{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
}

#mainNav .navbar-brand{
  flex: 1 1 auto;
  min-width: 0;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

#mainNav .navbar-brand:hover{ color: var(--light-blue) !important; }

#mainNav .nav-link{
  color: rgba(255,255,255,0.9) !important;
  font-weight: 600;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus{ color: #ffffff !important; }

#mainNav .navbar-toggler{ border-color: rgba(255,255,255,0.6); }
#mainNav .navbar-toggler-icon{ filter: invert(1); }

.dropdown-toggle::after{ display:none; }

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show>.btn-primary.dropdown-toggle{
  background-color:transparent;
  color:#fff;
  border:0px;
}

.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.show>.btn-primary.dropdown-toggle:focus{ box-shadow: none; }

/* ==================================================
   DROPDOWN MENU – default TAMNIJI, hover OSTANE, focus SOLID
   ================================================== */
#mainNav .dropdown-menu{
  padding: 6px 0;
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
  border-radius: 8px;
  border: 1px solid rgba(0, 128, 224, 0.35);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* Stavke */
#mainNav .dropdown-menu .dropdown-item{
  padding: 10px 18px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  transition: all 0.3s ease;
}

/* HOVER (OSTAJE GRADIJENT) */
#mainNav .dropdown-menu .dropdown-item:hover{
  background: linear-gradient(135deg, rgba(0, 128, 224, 0.6), rgba(0, 160, 255, 0.6));
  color: #ffffff;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 128, 224, 0.3);
}

/* FOCUS (SOLID, bez gradijenta) */
#mainNav .dropdown-menu .dropdown-item:focus{
  background-color: rgba(0, 128, 224, 0.35);
  color: #ffffff;
  transform: none;
  box-shadow: none;
}

/* ACTIVE ostaje kako je bilo */
#mainNav .dropdown-menu .dropdown-item.active{
  background: linear-gradient(135deg, rgba(0, 74, 135, 0.3), rgba(0, 100, 180, 0.3)) !important;
  color: #ffffff !important;
}

#mainNav .dropdown-menu .dropdown-item.active:hover{
  background: linear-gradient(135deg, rgba(0, 74, 135, 0.3), rgba(0, 100, 180, 0.3)) !important;
  color: #ffffff !important;
}

/* ==================================================
   MOBILNI DROPDOWN / TOOLS
   ================================================== */
.nav-mobile-dropdown{ display: none; }

#mainNav .nav-right-tools{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap: 10px;
  margin-left:auto;
}

#mainNav .tt-menu-tools{
  float: none;
  margin-left: 0;
  min-width: auto;
}

#mainNav .language-dropdown{
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: 1060;
}

@media (max-width: 991.98px){
  .navbar-toggler{ display: none !important; }
  #navMenu{ display: none !important; }

  .nav-mobile-dropdown{ display: block; }

  /* DEFAULT TAMNIJI */
  .nav-mobile-dropdown .btn{
    background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
    border: 1px solid #fff;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    padding: 7px 7px;
    margin-right: 0px;
    display:inline;
  }

  /* HOVER (OSTAJE) */
  .nav-mobile-dropdown .btn:hover{
    color: #fff;
    background: linear-gradient(135deg, var(--blue-hover-1) 0%, var(--blue-hover-2) 100%);
  }

  /* FOCUS (SOLID) */
  .nav-mobile-dropdown .btn:focus{
    color:#fff;
    background-color: rgba(0, 128, 224, 0.35);
  }

  /* Fullscreen dropdown panel za poglavlja – DEFAULT TAMNIJI */
  #mainNav .nav-mobile-dropdown .chapters-menu{
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: var(--nav-h) !important;

    width: 100vw !important;
    height: calc(100vh - var(--nav-h)) !important;

    margin: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;

    background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
    padding: 14px 10px;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
  }

  #mainNav .nav-mobile-dropdown .chapters-menu .dropdown-item{
    font-size: 18px;
    line-height: 1.25;
    padding: 14px 14px;
    border-radius: 12px;
    white-space: normal;
  }
}

/* ==================================================
   HERO
   ================================================== */
.hero-video-section{
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 420px;
  overflow: hidden;
  margin-top: -20px;
}

.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.25), rgba(0,0,0,0));
  z-index: 1;
}

.hero-caption{
  position: absolute;
  left: 8%;
  bottom: 40px;
  z-index: 2;
  text-align: left;
}

.hero-title{
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.hero-subtitle{
  font-size: 1.15rem;
  color: #f1f1f1;
  margin: 0;
}

@media (max-width: 767px){
  .hero-video-section{ height: 60vh; }
  .hero-title{ font-size: 1.8rem; }
  .hero-subtitle{ font-size: 1rem; }
  .hero-caption{ left: 6%; bottom: 30px; }
}

.hero-slider{ margin-top: calc(-1 * var(--nav-h)); }
.hero-slider .carousel-inner{ border-top: 3px solid var(--blue-1); }

#top{ scroll-margin-top: var(--nav-h); }

/* ==================================================
   FOOTER (DEFAULT TAMNIJI)
   ================================================== */
.footer-5gbr{
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
  color:rgba(255,255,255,.88);
  border-top:3px solid var(--accent-blue);
}

.footer-title{
  color:#fff;
  font-weight:700;
  letter-spacing:.3px;
}

.footer-desc{
  max-width:860px;
  margin:0 auto;
  color:rgba(255,255,255,.75);
  line-height:1.6;
}

.footer-chapters{
  max-width:980px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px 16px;
  text-align:left;
}

.footer-link{
  display:block;
  padding:10px 14px;
  border-radius:8px;
  text-decoration:none!important;
  color:rgba(255,255,255,.82);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  transition:all .2s ease;
}

/* hover ostaje kao prije */
.footer-link:hover{
  color:#fff;
  background: linear-gradient(135deg, rgba(0, 74, 135, 0.4), rgba(0, 128, 224, 0.4));
  border-color:rgba(0, 128, 224, .4);
  transform:translateY(-1px);
}

.footer-quick{ color:rgba(255,255,255,.78); }

.footer-img{
  width:20%;
  height:auto;
  display:inline;
  text-align:center;
  margin:0 auto 40px auto;
}

.footer-quick-link{
  color:rgba(255,255,255,.85);
  text-decoration:none!important;
  border-bottom:1px dotted rgba(0, 128, 224, .65);
}

.footer-quick-link:hover{
  color:#fff;
  border-bottom-color:var(--accent-blue);
}

.footer-sep{ margin:0 10px; color:rgba(255,255,255,.55); }
.footer-copy{ color:rgba(255,255,255,.7); }

@media (max-width:991.98px){
  .footer-chapters{ grid-template-columns:repeat(2,1fr); }
  .nav-mobile-dropdown .btn{ padding: 7px 8px!important; }
  .footer-img{ width:150px; height:auto; display:inline; text-align:center; margin:0 auto 40px auto; }
}
@media (max-width:575.98px){
  .footer-chapters{ grid-template-columns:1fr; }
}

/* ==================================================
   BACK TO TOP (DEFAULT TAMNIJI, hover ostaje)
   ================================================== */
#backToTop{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  line-height: 46px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none !important;

  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
  color: #ffffff;
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0,74,135,0.35);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 9999;
}

#backToTop.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* hover ostaje */
#backToTop:hover{
  background: linear-gradient(135deg, var(--blue-hover-1) 0%, var(--blue-hover-2) 100%) !important;
  color: #fff;
  transform: translateY(-2px);
}

/* ==================================================
   NAV LOGO
   ================================================== */
.nav-logo{
  height: 40px;
  width: auto;
  display: inline-block;
}
@media (max-width: 767.98px){
  .nav-logo{ height: 30px; }
}

/* ===== HERO VIDEO SLIDE ===== */
.hero-video-slide{
  position: relative;
  overflow: hidden;
}

.hero-video{
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-video-slide .carousel-overlay{ z-index: 1; }
.hero-video-slide .carousel-caption{ z-index: 2; }

.img-holder{
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
  background: #e9ecef;
}

.img-holder img{
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 992px){
  .img-holder{ height:auto; }
}

.video-holder{
  position: relative;
  overflow: hidden;
}

.video-holder video{
  width: 100%;
  height: auto%;
  display: block;
}

section>.container{ padding:0; }
section>.container>p{ padding:10px; text-align: justify; }
span,.section-text{ padding:10px; }
.list-unstyled{ padding:10px; }
.section-title{ padding:10px; color: var(--blue-1); }

.btn-hamburger{
  padding: 8px 12px;
  font-size: 1.25rem;
  line-height: 1;
}

.btn-hamburger i{ color: #fff; }

/* ==================================================
   AUDIO + VIDEO (DEFAULT TAMNIJI, hover ostaje)
   ================================================== */
.section-title{
  font-weight: 700;
  color: var(--blue-1);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.section-title-text{ flex: 0 1 auto; }

.audio-player-wrapper{
  margin: 0;
  max-width: none;
}

.audio-play-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;

  /* DEFAULT TAMNIJI */
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);

  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 74, 135, 0.3);
  flex-shrink: 0;
}

/* HOVER OSTANE */
.audio-play-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 74, 135, 0.4);
  background: linear-gradient(135deg, var(--blue-hover-1) 0%, var(--blue-hover-2) 100%);
}

.audio-play-btn:active{ transform: translateY(0); }

.audio-play-btn svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.audio-controls{
  display: none;

  /* DEFAULT TAMNIJI + slika */
  background-image:
    linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%),
    url("../img/5-gbr-sokolovi.png");
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 100px 100px;
  background-position: center, left 10px bottom 60px;

  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  margin: 20px auto 30px;
  max-width: 600px;
  position: relative;
}

.audio-controls.active{
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown{
  from{ opacity: 0; transform: translateY(-10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.audio-info{
  color: #fff;
  margin-bottom: 15px;
  text-align: center;
}

.audio-info h4{
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.audio-info p{
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Progress Bar */
.progress-container{
  margin: 15px 0;
  cursor: pointer;
}

.progress-bar-custom{
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.progress-fill{
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-2));
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 3px;
}

.time-display{
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  margin-top: 5px;
}

/* Control Buttons */
.control-buttons{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.control-btn{
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover ostaje */
.control-btn:hover{
  background: linear-gradient(135deg, rgba(0, 128, 224, 0.4), rgba(0, 160, 255, 0.4));
  border-color: rgba(0, 128, 224, 0.5);
  transform: scale(1.05);
}

.control-btn.play-pause{
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-2) 100%);
  border-color: var(--accent-blue);
}

/* hover ostaje */
.control-btn.play-pause:hover{
  background: linear-gradient(135deg, var(--accent-blue-2) 0%, #00c0ff 100%);
  transform: scale(1.1);
}

.control-btn svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.control-btn.play-pause svg{
  width: 24px;
  height: 24px;
}

/* Volume */
.volume-control{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.volume-icon{
  color: rgba(255,255,255,0.7);
  width: 20px;
  height: 20px;
}

.volume-slider{
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  outline: none;
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  border: none;
}

/* Close button */
.close-audio{
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 0, 0, 0.15);
  border: 2px solid rgba(255, 0, 0, 0.3);
  color: #ff6b6b;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  font-weight: 700;
  font-size: 20px;
}

.close-audio:hover{
  background: rgba(255, 0, 0, 0.25);
  border-color: rgba(255, 0, 0, 0.5);
  color: #fff;
  transform: rotate(90deg) scale(1.1);
}

.close-audio:active{ transform: rotate(90deg) scale(0.95); }

/* Responsive audio/video buttons */
@media (max-width: 576px){
  .section-title{ font-size: 1.4rem; }
  .section-title-text{ flex: 1 1 100%; text-align: center; }
  .audio-play-btn{ font-size: 14px; padding: 8px 16px; }
  .audio-controls{ padding: 15px; }
  .control-buttons{ gap: 10px; }
  .control-btn{ width: 40px; height: 40px; }
  .control-btn.play-pause{ width: 50px; height: 50px; }
}

.media-player-wrapper{
  display: block;
  align-items: center;
  gap: 10px;
  margin:0px auto;
}

/* Video button – DEFAULT TAMNIJI */
.video-play-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 74, 135, 0.3);
  flex-shrink: 0;
}

/* hover ostaje */
.video-play-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 74, 135, 0.4);
  background: linear-gradient(135deg, var(--blue-hover-1) 0%, var(--blue-hover-2) 100%);
}

.video-play-btn:active{ transform: translateY(0); }

.video-play-btn svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 576px){
  .audio-play-btn,
  .video-play-btn{
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* ==================================================
   VIDEO MODAL (unchanged)
   ================================================== */
.video-modal-dialog{
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  height: 100dvh;
  max-height: 100dvh;
}

.video-modal-content{
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  background: #000;
  position: relative;
}

.video-modal-player{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;

  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
}

.video-modal-close:hover{ background: rgba(255,255,255,0.22); }

/* FULLSCREEN modal – stabilno na mobilnim browserima */
:root{ --vh: 1vh; }

#narrationVideoModal.modal{ padding: 0 !important; }

#narrationVideoModal .video-modal-dialog,
#narrationVideoModal .video-modal-content{
  width: 100vw;
  height: calc(var(--vh) * 100);
  max-width: 100vw;
  max-height: calc(var(--vh) * 100);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
}

#narrationVideoModal .modal-dialog-centered{ align-items: stretch; }

#narrationVideoModal .video-modal-player{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

@supports (-webkit-touch-callout: none){
  .video-modal-dialog,
  .video-modal-content{ height: -webkit-fill-available; }
}

/* ==================================================
   GLOBALNI PRORED + NASLOVI (unchanged layout)
   ================================================== */
body,
p,
span,
.section-text,
.list-unstyled,
li,
.footer-desc{
  line-height: var(--line-height-base) !important;
}

.section-title{
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 32px !important;
  color: var(--blue-1);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 30px 0 0 0;
  padding: 0;
  display: block;
  position: relative;
  text-align: center;
}

.section-title .crno{
  color: #2c3e50;
  font-style: normal;
  text-transform: none;
  display: block;
  font-size: 24px;
  margin-top: 0px;
  font-weight: 400;
  padding:0;
  font-family: monospace;
}

.section-title::after{
  content: '';
  display: block;
  width: 420px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-blue) 20%, var(--accent-blue) 80%, transparent 100%);
  margin: -1px auto 20px auto;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 128, 224, 0.3);
}

.section-title.with-symbol::before{
  content: '⚔';
  display: block;
  font-size: 28px;
  color: var(--accent-blue);
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.section-text{
  color: #555;
  font-size: 1.05rem;
  line-height: var(--line-height-base);
  text-align: justify;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  padding: 0 10px;
}

section > .container > p{
  padding: 10px;
  text-align: justify;
  line-height: var(--line-height-base);
}

span,
.list-unstyled{
  padding: 10px;
  line-height: var(--line-height-base);
}

@media (max-width: 768px){
  .media-player-wrapper{ margin:20px auto 0 auto; }

  .section-title{ font-size: 24px !important; }

  .section-title .crno{
    font-size: 20px;
    font-family: monospace;
  }

  .section-title::after{
    width: 220px;
    margin: -1px auto 10px auto;
  }
}

/* Alt title styles (unchanged) */
.section-title.style-lines{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.section-title.style-lines::before,
.section-title.style-lines::after{
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  max-width: 150px;
}

.section-title.style-shadow{
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1), 0 0 20px rgba(0, 74, 135, 0.1);
}

.section-title.style-box{
  background: linear-gradient(135deg, rgba(0, 74, 135, 0.05) 0%, rgba(0, 128, 224, 0.05) 100%);
  padding: 20px;
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 8px 8px 0;
  text-align: left;
  max-width: 90%;
  margin: 30px auto;
}
.section-title.style-box::after{ display: none; }

/* ===== SAMSUNG INTERNET FIX ===== */
@font-face{
  font-family: 'SystemSerif';
  src: local('Georgia'), local('Times New Roman');
  font-display: swap;
}

.section-title,
.section-text,
p,
span{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==================================================
   CAROUSEL ARROWS (unchanged)
   ================================================== */
.carousel img{ width: 100%; height: auto; }

.carousel-control-prev-icon,
.carousel-control-next-icon{ background-image: none; }

.carousel-control-prev::after{
  content: "‹";
  font-size: 48px;
  color: #000;
}

.carousel-control-next::after{
  content: "›";
  font-size: 48px;
  color: #000;
}

/* show-only */
.show-only-mobile{ display: none; }
@media (max-width: 767.98px){ .show-only-mobile{ display: block; } }

.show-only-desktop{ display: block; }
@media (max-width: 767.98px){ .show-only-desktop{ display: none; } }

/* ==================================================
   STATS (DEFAULT TAMNIJI, hover ostaje)
   ================================================== */
.intro-text{
  background: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  border-left: 4px solid var(--accent-blue);
}

.intro-text p{
  color: #555;
  font-size: 1.1rem;
  margin: 0;
  text-align: center;
}

.stats-container{
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 250px));
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

.stat-card{
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
  color: white;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 74, 135, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.stat-card::before{
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 128, 224, 0.2) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse{
  0%, 100%{ transform: scale(1); opacity: 0.5; }
  50%{ transform: scale(1.1); opacity: 0.8; }
}

/* hover ostaje */
.stat-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 74, 135, 0.4);
}

.stat-icon{
  font-size: 2.5rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.stat-icon svg{
  width: 48px;
  height: 48px;
  stroke: #ffffff;
  fill: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)) drop-shadow(0 0 2px rgba(0,0,0,0.8));
}

.stat-number{
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  margin: 8px 0;
  position: relative;
  z-index: 1;
}

.stat-label{
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

.section-subtitle{
  text-align: center;
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 40px;
  font-style: italic;
}

@media (max-width: 1024px){
  .stats-container{ grid-template-columns: repeat(3, minmax(180px, 1fr)); }
}

@media (max-width: 768px){
  .stats-container{
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .stat-card{ padding: 18px 15px; }
  .section-title{ font-size: 1.8rem; }
  .stat-icon svg{ width: 36px; height: 36px; }
  .stat-number{ font-size: 1.8rem; margin: 6px 0; }
  .stat-label{ font-size: 0.8rem; }
}

@media (max-width: 480px){
  .stats-container{
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  .stat-card{ padding: 15px 12px; }
  .stat-icon svg{ width: 32px; height: 32px; }
  .stat-number{ font-size: 46px; }
  .stat-label{ font-size: 18px; }
}

/* ==================================================
   RATNI SLIDER MOBILE TEXT (unchanged)
   ================================================== */
@media (max-width: 767.98px){
  .ratni-slider .rp-caption{
    left: 0;
    right: 0;
    bottom: 8px;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  .ratni-slider .rp-caption-box{
    width: 98%;
    max-width: none;
    background: rgba(0,0,0,0.85);
    padding: 8px 8px;
    border-radius: 8px;
    text-align: center;
  }

  .ratni-slider .rp-text{
    font-size: 10px;
    line-height: 1.;
    color: #ffffff;
    margin: 0;
  }
}

@media (max-width: 767.98px){
  #ratniPutSlider .carousel-indicators{ display: none !important; }
}

/* ==================================================
   FILTER BUTTONS (default TAMNIJI; hover ostaje)
   ================================================== */
.filter-buttons{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn{
  padding: 12px 22px;
  border: 2px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
  border-radius: 25px;
  font-size: 0.95em;
  font-weight: 700;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  user-select: none;
}

/* hover ostaje (ali default/active malo tamniji) */
.filter-btn:hover{
  background: linear-gradient(135deg, var(--blue-hover-1) 0%, var(--blue-hover-2) 100%);
  color: white;
  transform: translateY(-2px);
}

.filter-btn.active{
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
  color: white;
  box-shadow: 0 5px 15px rgba(0,74,135,0.3);
}

/* ==================================================
   GALLERY + LIGHTBOX (unchanged colors)
   ================================================== */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  animation: fadeIn 0.35s ease-in;
}

@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}

.gallery-item{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,0.08);
}

.gallery-item:hover{
  transform: translateY(-8px);
  box-shadow: 0 16px 44px rgba(0,74,135,0.35);
}

.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,74,135,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .overlay{ opacity: 1; }

.overlay .icon{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  color: white;
  font-size: 26px;
  line-height: 1;
}

.hidden{ display: none !important; }

.stats{
  text-align: center;
  color: white;
  margin-top: 40px;
  font-size: 1.05em;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.22);
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  z-index: 9999;
  padding: 18px;
}
.lightbox.open{ display: flex; align-items: center; justify-content: center; }

.lb-wrap{
  width: min(1100px, 100%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
}

.lb-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  gap: 10px;
  user-select: none;
}

.lb-counter{ font-size: 0.95em; opacity: 0.9; }

.lb-btn{
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,74,135,0.3);
  color: white;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.lb-btn:hover{
  background: linear-gradient(135deg, rgba(0, 74, 135, 0.5), rgba(0, 100, 180, 0.5));
  transform: translateY(-1px);
}

.lb-btn:active{ transform: translateY(0); }

.lb-stage{
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.lb-stage img{
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  display: block;
}

.lb-nav{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.lb-arrow{
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,74,135,0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  font-size: 22px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.lb-arrow:hover{
  background: linear-gradient(135deg, rgba(0, 74, 135, 0.5), rgba(0, 100, 180, 0.5));
  transform: scale(1.03);
}

.lb-caption{
  color: rgba(255,255,255,0.92);
  text-align: center;
  line-height: 1.35;
  padding: 6px 10px;
}

.lb-caption h4{ font-size: 1.05em; margin-bottom: 2px; }
.lb-caption p{ font-size: 0.95em; opacity: 0.9; }

@media (max-width: 520px){
  h1{ font-size: 1.9em; }
  .lb-stage img{ max-height: 68vh; }
  .lb-arrow{ width: 44px; height: 44px; }
}

.filter-select-wrap{
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.lang-selector{
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-left: 6px;
}

.lang-selector::after{
  content: "▼";
  font-size: 0.75em;
  color: #fff;
  margin-left: 3px;
}

.crno{
  color: #000;
  font-style: italic;
  text-transform: none;
  display: block;
  line-height: 1.4!important;
  margin-top:7px!important;
}

/* mobile gallery grid */
@media (max-width: 767px){
  .gallery{
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 10px;
  }

  .gallery-item{
    border-radius: 0;
    transition: transform 0.3s ease;
  }

  .gallery-item:hover{ transform: scale(1.05); }

  .gallery-item .overlay{
    background: rgba(0,74,135,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .gallery-item:hover .overlay{ opacity: 1; }

  .gallery-item .overlay .icon{
    color: #fff;
    font-size: 48px;
    font-weight: bold;
  }
}

/* ==================================================
   TIMELINE (unchanged)
   ================================================== */
.timeline-bar-wrap{
  position: relative;
  height: 70px;
  margin-bottom: 0px;
  width: 100%;
}

.timeline-bar{
  position: absolute;
  left: 8%;
  right: 8%;
  top: 32px;
  height: 6px;
  background: #e3e3e3;
  border-radius: 8px;
  margin-bottom:5px;
}

.timeline-bar .timeline-dot{
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: #fff;
  border: 3px solid #bbb;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: border .25s, background .25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-bar .timeline-dot.active{
  background: #000;
  border-color: #000;
}

.timeline-bar .timeline-dot .dot-year{
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #555;
  font-weight: bold;
  white-space: nowrap;
  z-index: 5;
  background: #fff;
  padding: 0 2px;
}

.timeline-bar .timeline-dot.active .dot-year{ color: #000; }

.caption{
  padding:5px;
  background: #fff;
  border-radius: 10px;
  box-shadow: none;
  margin-top: 5px;
  text-align: center;
}

#timeline-slider .item img{
  width: 100%;
  height: auto;
  object-fit: cover;
}

.timeline-mobile-select-wrap{ display: none; }

.chevron-icon{
  transition: transform 0.3s ease;
  margin-right:3px;
}
.chevron-icon.rotated{ transform: rotate(180deg); }

.video-slide{ position: relative; }

.video-caption{
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  background: rgb(0 0 0 / 45%);
  color: #fff;
  font-size: 16px;
  padding: 5px;
  border-radius: 8px;
  max-width: 94%;
  text-align: center;
  z-index: 10;
  box-shadow: 0 2px 16px rgb(0 0 0 / 18%);
  letter-spacing: 0.01em;
  pointer-events: none;
  font-family: inherit;
  width: 94%;
}

.owl-dots{ display: none !important; }
#timeline-slider > .owl-nav > .owl-prev{ top: 40%; left: 0; }
#timeline-slider > .owl-nav > .owl-next{ top: 40%; right: 0; }

@media (max-width: 767px){
  .timeline-bar-wrap,
  .timeline-bar{ display: none !important; }

  .timeline-mobile-bar{
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    width: 95%;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent;
  }

  .timeline-mobile-bar::-webkit-scrollbar{ display: none; }

  .timeline-mobile-bar-line{
    position: absolute;
    top: 50%;
    left: 6%;
    right: 6%;
    height: 5px;
    background: #e3e3e3;
    border-radius: 8px;
    z-index: 1;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .timeline-mobile-bar-scroll{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scrollbar-width: none;
    position: relative;
    height: 100px;
  }

  .timeline-mobile-bar-scroll::-webkit-scrollbar{ display: none; }

  .timeline-mobile-bar .timeline-dot{
    position: relative !important;
    margin: 0 8px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    background: #fff;
    border: 3px solid #bbb;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: border .25s, background .25s;
    box-sizing: border-box;
  }

  .timeline-mobile-bar .timeline-dot.active{
    background: #000;
    border-color: #000;
  }

  .timeline-mobile-bar .dot-year{
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #555;
    font-weight: bold;
    white-space: nowrap;
    line-height: 1;
    pointer-events: none;
    z-index: 5;
    background: #fff;
    padding: 0 2px;
    border-radius: 3px;
    min-width: 28px;
    text-align: center;
  }

  .timeline-mobile-bar .timeline-dot.active .dot-year{
    color: #000;
    background: #fff;
  }
}

/* ostalo */
.timeline-dot.active{ background-color: #d4af37 !important; }
/* =========================================================
   LIGHTBOX FIX (tvoj .lightbox / .lb-*)
   - bez skakanja zbog teksta
   - z-index iznad back-to-top
   - jače strelice
   - veća slika na desktopu
   STAVI NA KRAJ CSS-a
   ========================================================= */

/* 1) Z-index: modal iznad svega */
.lightbox{
  z-index: 100000 !important;
}
#backToTop{
  z-index: 9999 !important; /* ostaje, ali ispod lightboxa */
}

/* 2) Fiksiraj layout: caption ima fiksnu visinu -> slika više ne skače */
:root{
  --lb-topbar-h: 56px;
  --lb-caption-h: 120px;   /* mobitel default */
  --lb-gap: 10px;
  --lb-pad: 18px;
}

/* Modal zauzima cijeli viewport stabilno (dvh za mobile address bar) */
.lightbox.open{
  align-items: center;
  justify-content: center;
}

.lb-wrap{
  /* umjesto "auto 1fr auto" -> fiksiramo topbar i caption */
  grid-template-rows: var(--lb-topbar-h) 1fr var(--lb-caption-h) !important;

  /* maksimalna visina modala = viewport minus padding lightboxa */
  max-height: calc(100dvh - (var(--lb-pad) * 2)) !important;
  height: calc(100dvh - (var(--lb-pad) * 2)) !important;
}

/* Topbar visina stabilna */
.lb-topbar{
  min-height: var(--lb-topbar-h) !important;
}

/* Stage (slika) uvijek dobije isti prostor */
.lb-stage{
  min-height: 0 !important; /* bitno za grid + overflow */
  height: 100% !important;
}

/* Caption: fiksna visina + scroll kad je tekst predug (nema pomaka slike) */
.lb-caption{
  height: var(--lb-caption-h) !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px !important;
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
}

/* Malo uredniji tekst */
.lb-caption h4{
  margin: 0 0 6px 0 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
.lb-caption p{
  margin: 0 !important;
  font-size: 14px !important;
  opacity: .92 !important;
  line-height: 1.25 !important;
}

/* 3) Strelice: veće, kontrastne, s pozadinom, uvijek vidljive */
.lb-nav{
  pointer-events: none;
  padding: 0 14px !important;
}

.lb-arrow{
  pointer-events: auto;
  width: 64px !important;
  height: 64px !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  border-radius: 999px !important;

  background: rgba(0,0,0,0.60) !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.55) !important;

  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.lb-arrow:hover{
  background: rgba(0,0,0,0.78) !important;
  transform: scale(1.06) !important;
}

/* 4) Desktop: slika puno veća */
@media (min-width: 992px){
  :root{
    --lb-caption-h: 150px;  /* desktop caption fiksno */
    --lb-topbar-h: 60px;
  }

  .lb-wrap{
    width: min(1400px, 96vw) !important; /* širi modal */
  }

  .lb-stage img{
    max-height: calc(100dvh - (var(--lb-pad) * 2) - var(--lb-topbar-h) - var(--lb-caption-h) - (var(--lb-gap) * 2)) !important;
    max-width: 96vw !important;
  }
}

/* 5) Mobile: malo manji caption ako želiš više mjesta za sliku */
@media (max-width: 520px){
  :root{
    --lb-caption-h: 110px;
    --lb-topbar-h: 52px;
  }

  .lb-arrow{
    width: 54px !important;
    height: 54px !important;
    font-size: 30px !important;
  }
}
/* ===== MOBILE: caption ne smije prekrivati sliku ===== */
@media (max-width: 767.98px){

  :root{
    --lb-topbar-h: 52px;
    --lb-caption-h: 104px;  /* smanji/pojačaj po želji */
    --lb-gap: 10px;
    --lb-pad: 16px;
  }

  /* wrapper mora imati fiksnu visinu */
  .lb-wrap{
    height: calc(100dvh - (var(--lb-pad) * 2)) !important;
    max-height: calc(100dvh - (var(--lb-pad) * 2)) !important;

    /* topbar + stage + caption = fiksno */
    grid-template-rows: var(--lb-topbar-h) 1fr var(--lb-caption-h) !important;
    gap: var(--lb-gap) !important;
  }

  /* STAGE: strogo samo iznad captiona */
  .lb-stage{
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
  }

  /* slika stane unutar stage-a */
  .lb-stage img,
  #lbImage{
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* CAPTION: fiksna visina, ali vizualno lakši (ne “pojede” sliku) */
  .lb-caption{
    height: var(--lb-caption-h) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;

    background: rgba(0,0,0,0.55) !important; /* manje agresivno */
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 12px !important;

    padding: 10px 12px !important;
    margin: 0 !important;
  }

  /* malo kompaktniji tekst */
  .lb-caption h4{
    font-size: 15px !important;
    margin: 0 0 4px 0 !important;
  }
  .lb-caption p{
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }
}
#lg-mini-set a {
  display: block;
  cursor: zoom-in;
}

#lg-mini-set img {
  transition: transform .25s ease, box-shadow .25s ease;
}

#lg-mini-set a:hover img {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

@media (min-width: 768px){
  #lg-mini-set .col-md-4 img{
    height: calc(50% - 6px);
    object-fit: cover;
  }
}
.table-5gbr {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
}

.table-5gbr th {
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.table-5gbr td,
.table-5gbr th {
  padding: 14px 12px;
  vertical-align: middle;
}

.table-5gbr tbody tr:nth-child(odd) {
  background: #f2f2f2;
}

.table-5gbr tbody tr:nth-child(even) {
  background: #ffffff;
}

.table-5gbr td {
  font-size: 1.05rem;
}

.table-5gbr .table-total {
  background: #e6e6e6;
  font-size: 1.1rem;
}

/* Caption iznad tablice */
.table-caption {
  caption-side: top;
  font-size: 1.15rem;
  color: #222;
}

/* MOBILNO – veći razmaci i čitljivost */
@media (max-width: 576px) {
  .table-5gbr th,
  .table-5gbr td {
    font-size: 0.95rem;
    padding: 10px 8px;
  }

  .table-caption {
    font-size: 1rem;
  }
}

@media (min-width: 576px){
  #lg-vertical-pair img{
    height: 100%;
    max-height: 520px; /* prilagodi po potrebi */
    object-fit: cover;
  }
}

#chaptersDropdown > .dropdown-menu > .dropdown-item,
.chapters-menu > .dropdown-item {
  padding: 8px 12px !important;
  line-height: 1.3 !important;
}
.tt-menu-tools {
  position: relative !important;
}

#langSelector {
  position: relative !important;
}

#langOptions {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important; /* centrirano ispod */
  top: calc(100% + 8px) !important;
  width: 150px !important;
  z-index: 10000 !important;
}
.lang-option {
  padding: 5px 10px !important;
  margin: 0 !important;
  gap: 6px !important; /* razmak između zastavice i teksta */
}

#langOptions {
  padding: 3px 0 !important;
  gap: 0 !important;
}
.impresum p {
  margin: 4px 0;
  padding: 0 10px;
  line-height: 1.4;
  text-align:left
}

:root{
  --btn-grad: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
  --btn-grad-hover: linear-gradient(135deg, var(--blue-hover-1) 0%, var(--blue-hover-2) 100%);
  --btn-shadow: 0 6px 18px rgba(0, 74, 135, 0.35);
}
section {
  scroll-margin-top: 90px !important;
  scroll-snap-margin-top: 90px !important; /* Safari fallback */
}

/* Spriječi browser native scroll */
html {
  scroll-behavior: auto !important; /* JS će raditi smooth scroll */
}



.impresum br {
  line-height: 0.6!important; 
}

body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background-image: url('img/5-gbr-sokolovi.webp'); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08; /
  pointer-events: none; 
  z-index: -1; 
}
       .cookies-box{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: var(--btn-grad);
  border-top: 3px solid var(--accent-blue);
  padding: 25px;
  color: #fff;
  display: none;
  z-index: 1040;
  font-family: sans-serif;
  box-shadow: 0 -8px 30px rgba(0, 74, 135, 0.45);
}

.cookies-box.show{
  display: block !important;
  animation: slideUp .4s ease;
}

@keyframes slideUp{
  from{ transform: translateY(100%); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

.cookies__title{
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 12px;
}

.cookies__text{
  color: rgba(255,255,255,.9);
  line-height: 1.6;
  font-size: 1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px;
}

.cookies__text a{
  color: var(--light-blue);
  font-weight: 600;
  text-decoration: underline;
}

.cookies__text a:hover{
  color: #fff;
  text-decoration: none;
}

.cookies__buttons{
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* ===== COOKIE GUMBI – BRAND STYLE ===== */
.cookies__btn{
  padding: 12px 32px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  border: 2px solid var(--accent-blue) !important;
  background: var(--btn-grad) !important;
  color: #fff !important;
  box-shadow: var(--btn-shadow) !important;
  cursor: pointer;
  transition: all .25s ease !important;
}

.cookies__btn:hover{
  background: var(--btn-grad-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,74,135,.45);
}

.cookies__btn:active{
  transform: translateY(0);
}

/* diskretna razlika za ODBIJ */
.cookies__btn--decline{ opacity: .85; }
.cookies__btn--decline:hover{ opacity: 1; }

.cookies__btn i{
  margin-left: 8px;
  font-size: 1.1em;
}

/* Mobile */
@media (max-width:767px){
  .cookies-box{ padding: 20px 15px; }
  .cookies__title{ font-size: 1.2rem; }
  .cookies__text{ font-size: .95rem; }
.cookies__buttons{
    flex-direction: row !important;
    justify-content: center;
    gap: 10px;
  }

  .cookies__btn{
    width: auto !important;
    flex: 1 1 0;
    max-width: 160px;
    padding: 12px 14px !important;
  }
}

/* ==================================================
   MODALI – BRAND USKLAĐENI
   ================================================== */

/* Backdrop */
.modal-backdrop{
  background-color: rgba(0,0,0,.75);
}

/* Content */
.modal-content{
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  overflow: hidden;
}

/* Header */
.modal-header{
  background: var(--btn-grad);
  border-bottom: 3px solid var(--accent-blue);
  padding: 20px 25px;
  color: #fff;
}

.modal-title{
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Close (X) */
.modal-header .close{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
}

.modal-header .close:hover{
  background: rgba(255,255,255,.25);
  transform: rotate(90deg) scale(1.05);
}

/* Body */
.modal-body{
  max-height: 70vh;
  overflow-y: auto;
  padding: 25px 30px;
  background: #fff;
  color: #333;
  line-height: 1.7;
}

/* Footer */
.modal-footer{
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 15px 25px;
}

/* ===== GUMB ZATVORI – BRAND ===== */
.modal-footer .btn-secondary{
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid var(--accent-blue);
  background: var(--btn-grad);
  color: #fff;
  box-shadow: var(--btn-shadow);
  transition: all .25s ease;
}

.modal-footer .btn-secondary:hover{
  background: var(--btn-grad-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,74,135,.45);
}

.modal-footer .btn-secondary:active{
  transform: translateY(0);
}

/* Mobile modali */
@media (max-width:767px){
  .modal-dialog{ margin: 15px; }
  .modal-body{ padding: 20px; max-height: 60vh; }
  .modal-footer .btn-secondary{ width: 100%; }
}

/* Animacija */
.modal.fade .modal-dialog{
  transform: scale(.9);
  opacity: 0;
  transition: all .3s ease;
}

.modal.show .modal-dialog{
  transform: scale(1);
  opacity: 1;
}
