/* /new/assets/css/app.css */

/* ===== Reset ===== */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font:inherit; }

/* ===== Theme ===== */
:root{
  --blue0:#073a7a;
  --blue1:#0a4ea3;
  --blue2:#0b66d4;
  --blue3:#0e79f0;

  --text:#0b1220;
  --muted:#6b7b93;

  --border: rgba(15, 23, 42, .12);
  --shadow: 0 18px 40px rgba(2, 6, 23, .18);
  --shadowSoft: 0 10px 25px rgba(2, 6, 23, .12);

  --container: 1180px;

  --topH: 44px;
  --mainH: 74px;

  --radius: 18px;

  /* Header V2 tuning */
  --headerWhiteW: 430px;
  --headerWhiteSlant: 78%;
  --headerBrandOffsetX: -100px;

  /* Logo/Brand fine tuning */
  --headerBrandOffsetY: 0px;
  --headerLogoSize: 100px;
  --headerLogoShiftY: -15px;
  --headerTitleShiftY: -15px;
  --headerTitleSize: 18px;
  --headerSubSize: 13px;

  /* Hero visina */
  --heroH: 640px;
  --heroHMobile: 520px;
}

/* ===== Base ===== */
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}
.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}
.small{ font-size: 13px; color: var(--muted); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor:pointer;
  transition: .15s ease;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--blue2), var(--blue3));
  color: #fff;
  box-shadow: 0 14px 25px rgba(11, 102, 212, .22);
}
.btn-primary:hover{ transform: translateY(-1px); }
.btn-outline{
  border-color: rgba(11,102,212,.35);
  color: var(--blue2);
  background: rgba(11,102,212,.06);
}
.btn-outline:hover{ background: rgba(11,102,212,.1); }

/* =========================================================
   ===== Header (OLD) ===== (ne diramo radi kompatibilnosti)
========================================================= */
.site-header{ position: sticky; top:0; z-index:50; background:#fff; }

.topbar{
  height: var(--topH);
  border-bottom: 1px solid var(--border);
  display:flex; align-items:center;
}
.topbar .container{ display:flex; justify-content:flex-end; gap: 10px; }
.topbar a{
  display:inline-flex; align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  background: rgba(15,23,42,.03);
}
.topbar a:hover{ background: rgba(15,23,42,.06); color: var(--text); }

.navbar{
  height: var(--mainH);
  border-bottom: 1px solid var(--border);
  display:flex; align-items:center;
}
.navbar .container{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
}
.brand{
  display:flex; align-items:center;
  gap: 10px;
}
.brand img{ width: 42px; height: 42px; object-fit:contain; }
.brand .t1{ font-weight: 900; letter-spacing: -.02em; }
.brand .t2{ font-weight: 700; color: var(--muted); font-size: 12px; margin-top: -2px; }

.nav{ display:flex; align-items:center; gap: 8px; }
.nav a{
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}
.nav a:hover{ background: rgba(15,23,42,.05); }

.burger{
  display:none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#fff;
}
.burger span{
  display:block;
  width: 18px; height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 2px;
}

/* old mobile overlay (ne koristiš, ali ostaje) */
.mnav{
  display:none;
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  z-index: 60;
}
.mnav .panel{
  position: absolute;
  inset: 0 0 0 auto;
  width: min(360px, 92vw);
  background:#fff;
  padding: 18px;
  box-shadow: var(--shadow);
}
.mnav .panel a{
  display:block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.mnav .panel a:hover{ background: rgba(15,23,42,.04); }

@media (max-width: 920px){
  .nav{ display:none; }
  .burger{ display:inline-flex; align-items:center; justify-content:center; }
}

/* =========================================================
   ✅ Header V2 (header.php koji koristiš)
========================================================= */
.site-header{
  position: sticky;
  top:0;
  z-index: 9999; /* finalni sloj */
  background: transparent;
}

.header-shell{
  position: relative;
  z-index: 9999;
  background: linear-gradient(90deg, var(--blue0) 0%, var(--blue2) 55%, var(--blue1) 100%);
  box-shadow: var(--shadowSoft);
  border-bottom: 1px solid rgba(255,255,255,.10);
  overflow: visible; /* dropdown */
}

/* bijeli “klin” lijevo (desktop) */
.header-shell::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  height: calc(var(--topH) + var(--mainH));
  width: var(--headerWhiteW);
  background: rgba(255,255,255,.96);
  clip-path: polygon(0 0, var(--headerWhiteSlant) 0, 70% 100%, 0% 100%);
  box-shadow: 0 10px 25px rgba(2,6,23,.10);
  z-index: 1;
}

.header-inner{ position: relative; z-index: 2; }

/* TOP ROW (desktop) */
.top-row{
  height: var(--topH);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 12px;
}
.top-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}
.top-link:hover{ background: rgba(255,255,255,.14); }
.top-ico{ opacity:.95; }

/* MAIN ROW */
.main-row{
  height: var(--mainH);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding-bottom: 10px;
}

/* Brand */
.header-shell .brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 320px;
  color: var(--text);
  transform: translateX(var(--headerBrandOffsetX)) translateY(var(--headerBrandOffsetY));
}
.header-shell .brand .logo-img{ position: relative; top: var(--headerLogoShiftY); }
.header-shell .brand .logo-img img{
  width: var(--headerLogoSize);
  height: var(--headerLogoSize);
  object-fit: contain;
}
.header-shell .brand .title{ position: relative; top: var(--headerTitleShiftY); }
.header-shell .brand .title strong{
  display:block;
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: var(--headerTitleSize);
  line-height: 1.05;
}
.header-shell .brand .title small{
  display:block;
  font-weight: 800;
  color: var(--muted);
  font-size: var(--headerSubSize);
  margin-top: 2px;
}

/* Desktop nav */
.header-shell .nav{
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 1;
  gap: 0;
}
.header-shell .nav > ul{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 18px;
}
.header-shell .nav-link{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  color: rgba(255,255,255,.96);
  letter-spacing: .02em;
}
.header-shell .nav-link:hover{ background: rgba(255,255,255,.12); }

/* Dropdown */
.dropdown{ position: relative; }
.header-shell .dropdown-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width: 260px;
  background:#fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
  margin-top: 0;
  z-index: 5000;
}
.header-shell .dropdown:hover .dropdown-menu,
.header-shell .dropdown-menu:hover{ display:block; }

/* hover bridge */
.header-shell .dropdown-menu::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:-12px;
  height:12px;
}

.drop-item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  color: var(--text);
}
.drop-item:hover{ background: rgba(14,121,240,.10); }
.drop-ico{
  width: 22px;
  height: 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* Right actions (desktop) */
.header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}
.pill-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  color: rgba(255,255,255,.96);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}
.pill-btn:hover{ background: rgba(255,255,255,.14); }
.pill-btn.white{
  background: rgba(255,255,255,.95);
  color: var(--blue0);
  border-color: rgba(255,255,255,.9);
}
.pill-btn.white:hover{ background:#fff; }

.nav-underline{ height: 1px; background: rgba(255,255,255,.12); }

@media (max-width: 1020px){
  :root{ --headerWhiteW: 380px; }
  .header-shell .nav > ul{ gap: 12px; flex-wrap: wrap; }
}

/* =========================================================
   ✅ MOBILE (PRO / ULTRA) — čisto i kompaktno
========================================================= */
.mnav-btn{
  display:none;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  color: rgba(255,255,255,.96);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
  cursor:pointer;
}
.mnav-btn:hover{ background: rgba(255,255,255,.16); }
.mnav-ico{ font-size: 18px; line-height: 1; }

@media (max-width: 820px){
  /* kompaktna visina */
  :root{
    --topH: 0px;
    --mainH: 64px;
  }

  /* ugasi klin na mobitelu */
  .header-shell::before{ display:none; }

  /* brzi meni (top-row) skini (ima ga u overlay) */
  .top-row{ display:none !important; }

  /* sakrij desktop nav + akcije */
  .header-shell .nav{ display:none !important; }
  .header-actions{ display:none !important; }

  /* layout */
  .main-row{
    height: var(--mainH);
    padding: 10px 0 12px;
    gap: 12px;
    justify-content:space-between;
    flex-wrap: nowrap;
  }

  /* brand: na plavoj pozadini, bez bijele kartice */
  .header-shell .brand{
    min-width: 0;
    transform: translateX(0) translateY(0);
    color: #fff;
  }

  .header-shell .brand .logo-img img{
    width: 46px !important;
    height: 46px !important;
    filter:
      drop-shadow(0 6px 14px rgba(0,0,0,.35))
      drop-shadow(0 2px 4px rgba(0,0,0,.25));
  }

  .header-shell .brand .title strong{
    font-size: 16px !important;
    text-shadow:
      0 2px 4px rgba(0,0,0,.45),
      0 8px 18px rgba(0,0,0,.25);
  }
  .header-shell .brand .title small{
    font-size: 12px !important;
    color: rgba(255,255,255,.78) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.45);
  }

  /* pokaži burger */
  .mnav-btn{ display:inline-flex; }
}

/* =========================================================
   ✅ MOBILE OVERLAY MENU (mnav2) — iznad svega
========================================================= */
.mnav2{
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display:none;
}
.mnav2.is-open{ display:block; }

.mnav2-backdrop{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.60);
  z-index: 100000;
}

.mnav2-panel{
  position:absolute;
  inset: 0 0 0 auto;
  width: min(420px, 92vw);
  background: #fff;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction: column;
  z-index: 100001;
}

.mnav2-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.mnav2-brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.mnav2-brand img{
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.mnav2-brand .b1{ font-weight: 900; }
.mnav2-brand .b2{ font-weight: 800; color: var(--muted); font-size: 12px; margin-top:2px; }

.mnav2-close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-size: 18px;
}

.mnav2-body{
  padding: 14px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

.mnav2-section{ margin-bottom: 16px; }
.mnav2-title{
  font-weight: 900;
  margin-bottom: 10px;
  color: #0b1220;
}

.mnav2-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.mnav2-chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,.02);
  font-weight: 900;
}
.mnav2-chip:hover{ background: rgba(11,102,212,.08); }

.mnav2-list{ display:flex; flex-direction: column; gap: 10px; }
.mnav2-item{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 900;
  background:#fff;
}
.mnav2-item.link:hover{ background: rgba(11,102,212,.08); }

.mnav2-details summary{ list-style:none; cursor:pointer; }
.mnav2-details summary::-webkit-details-marker{ display:none; }
.mnav2-caret{ opacity:.7; }

.mnav2-sub{
  margin-top: 10px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 8px;
}
.mnav2-subitem{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,.02);
  font-weight: 800;
}
.mnav2-subitem:hover{ background: rgba(11,102,212,.08); }

.mnav2-sep{
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* lock scroll when menu open */
html.mnav-lock, html.mnav-lock body{
  overflow:hidden !important;
  height:100% !important;
}

/* ✅ osiguraj da hero nikad ne pregazi overlay (stacking fix) */
.hero{ position: relative; z-index: 1 !important; }
.hero-slide{ z-index: 1 !important; }
.hero-bg{ z-index: 1 !important; }
.hero-inner{ z-index: 2 !important; }
.hero-arrow, .hero-dots, .hero-minidots{ z-index: 3 !important; }

/* =========================================================
   ===== Hero =====
========================================================= */
.hero{
  position: relative;
  min-height: var(--heroH);
  background: #0b1220;
  overflow:hidden;
}
.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transition: opacity .35s ease;
}
.hero-slide.is-active{
  opacity:1;
  pointer-events:auto;
}
.hero-bg{
  position:absolute;
  inset:0;
  background: #0b1220;
}
.hero-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(115deg, rgba(7,58,122,.88), rgba(7,58,122,.2) 55%, rgba(0,0,0,.0));
  z-index:2;
}
.hero-slide[data-type="image"] .hero-bg{
  background-size: cover;
  background-position:center;
  background-repeat:no-repeat;
}
.hero-inner{
  position: relative;
  z-index: 3;
  min-height: var(--heroH);
  display:flex;
  align-items: center;
}
.hero-content{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}
.hero-text{
  width: min(640px, 100%);
  padding: 28px 0;
}
.hero-num{
  font-weight: 900;
  letter-spacing: .14em;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
}
.hero-title{
  margin: 0 0 10px 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.hero-sub{
  margin: 0 0 18px 0;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
  max-width: 56ch;
}
.hero-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue0);
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(0,0,0,.25);
}
.hero-cta:hover{ transform: translateY(-1px); }

.hero-arrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.25);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 6;
}
.hero-arrow span{ font-size: 28px; line-height: 1; }
.hero-arrow.left{ left: 16px; }
.hero-arrow.right{ right: 16px; }
.hero-arrow:hover{ background: rgba(0,0,0,.35); }

.hero-dots{
  position:absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display:flex;
  gap: 8px;
  z-index: 6;
}
.hero-dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: transparent;
  opacity: .8;
}
.hero-dot.active{ background: #fff; opacity: 1; }

.hero-minidots{
  position:absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display:none;
  gap: 6px;
  z-index: 6;
}
.hero-minidots i{
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}

@media (max-width: 700px){
  .hero{ min-height: var(--heroHMobile); }
  .hero-inner{ min-height: var(--heroHMobile); }
  .hero-arrow{ display:none; }
  .hero-dots{ display:none; }
  .hero-minidots{ display:flex; }
}

/* ===== Footer ===== */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  background: rgba(15,23,42,.02);
}

/* ===== Content pages ===== */
.page{ padding: 26px 0 38px; }
.page h1{ margin: 0 0 12px 0; letter-spacing: -.02em; }
.page .content{ color: #1b2436; line-height: 1.7; }
.page .content p{ margin: 0 0 12px; }

/* ===== Posts list ===== */
.posts{ padding: 26px 0 38px; }
.posts-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.post-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  overflow:hidden;
  box-shadow: var(--shadowSoft);
}
.post-card .inner{ padding: 14px; }
.post-card h3{ margin:0 0 8px 0; letter-spacing: -.02em; }
.post-card p{ margin:0; color: var(--muted); line-height: 1.55; }

@media (max-width: 920px){
  .posts-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .posts-grid{ grid-template-columns: 1fr; }
}

/* ===== Single post ===== */
.post{ padding: 26px 0 38px; }
.post h1{ margin:0 0 12px 0; letter-spacing: -.02em; }
.post .meta{ color: var(--muted); margin-bottom: 18px; }
.post .content{ line-height: 1.75; }

/* ===== Home blocks ===== */
.home-block{ padding: 28px 0; }
.home-block-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.home-block-head h2{
  margin:0;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
}
.home-block-more{
  color: var(--blue2);
  font-weight: 700;
  font-size: 14px;
}
.home-block-more:hover{ text-decoration: underline; }

/* Info bar (ispod hero) */
.info-bar{
  padding: 12px 0;
  background: rgba(7, 58, 122, .06);
  border-bottom: 1px solid var(--border);
}
.info-bar-inner{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.info-item{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(2,6,23,.06);
}

.info-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.info-icon{
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(2,6,23,.10);
}

.info-msg{ color: var(--text); font-weight: 600; }
.info-link{
  flex: 0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11,102,212,.10);
  color: var(--blue2);
  font-weight: 800;
  font-size: 13px;
}
.info-link:hover{ background: rgba(11,102,212,.16); }

.info-info{ border-left: 4px solid rgba(11,102,212,.65); }
.info-success{ border-left: 4px solid rgba(34,197,94,.7); }
.info-warning{ border-left: 4px solid rgba(245,158,11,.8); }
.info-danger{ border-left: 4px solid rgba(239,68,68,.75); }

/* News grid */
.news-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}
.news-card{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadowSoft);
  overflow:hidden;
}
.news-card.featured{ min-height: 100%; }
.news-card-body{ padding: 16px; }
.news-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue0);
  background: rgba(10,78,163,.10);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.news-title{
  margin: 0 0 8px 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.news-title a:hover{ text-decoration: underline; }
.news-excerpt{
  margin: 0 0 12px 0;
  color: var(--muted);
  line-height: 1.5;
}
.news-meta{
  display:flex;
  align-items:center;
  gap:8px;
  color: var(--muted);
  font-size: 13px;
}
.news-meta .dot{ opacity:.7; }
.news-read{ color: var(--blue2); font-weight: 800; }
.news-read:hover{ text-decoration: underline; }

.news-list{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 900px){
  .news-grid{ grid-template-columns: 1fr; }
  .news-card-body{ padding: 14px; }
}

/* ==========================================
   ✅ MOBILE: poravnaj logo + tekst (pobjegao gore)
   Dodaj na KRAJ app.css
========================================== */
@media (max-width: 820px){

  /* malo više “zraka” gore da ništa ne bude odrezano */
  .header-shell{
    padding-top: max(6px, env(safe-area-inset-top));
  }

  /* vrati brand u normalu (bez onih -15px shiftova) */
  .header-shell .brand .logo-img{ top: 0 !important; }
  .header-shell .brand .title{ top: 0 !important; }

  /* fino vertikalno centriranje */
  .main-row{
    padding-top: 10px !important;
    padding-bottom: 12px !important;
    align-items: center !important;
  }

  /* malo spusti kompletan brand blok (logo + tekst) */
  .header-shell .brand{
    padding-top: 4px !important;
    align-items: center !important;
  }

  /* opcionalno: nijansu manji naslov da bolje “sjedne” */
  .header-shell .brand .title strong{
    line-height: 1.08 !important;
  }
}

/* =========================================================
   ✅ HERO -> CONTENT SPACING (odvoji slider od vijesti)
========================================================= */
.hero{
  margin-bottom: 28px; /* desktop */
}

@media (max-width: 700px){
  .hero{
    margin-bottom: 18px; /* mobile */
  }
}

/* Ako ti sekcija vijesti ima .home-block ili .posts/.news wrapper */
.home-block:first-of-type,
.posts:first-of-type,
.news:first-of-type{
  padding-top: 10px;
}

/* =========================================================
   ✅ POST/NEWS CARD THUMBNAIL
========================================================= */
.post-card .thumb{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1220;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}

.post-card .inner{
  padding: 14px;
}

/* featured/first card malo jači */
.post-card.is-featured .thumb{
  aspect-ratio: 21 / 9;
}

/* single post image */
.post-hero-img{
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadowSoft);
  margin: 0 0 16px 0;
}

.post-hero-img img{
  width: 100%;
  height: auto;
  display: block;
}

.home-sections{
  padding-top: 6px;
}

/* ✅ HARD FIX: razmak između slidera (hero) i sekcije "Vijesti i objave" */
.hero{
  margin-top: 0 !important;        /* ubija -6px i slične fore */
  margin-bottom: 0 !important;
}

.home-sections{
  margin-top: 0 !important;
  padding-top: 44px !important;    /* OVO je stvarni razmak */
}

/* malo manje na mobitelu */
@media (max-width: 700px){
  .home-sections{
    padding-top: 26px !important;
  }
}
.home-sections{
  border-top: 1px solid rgba(15,23,42,.08);
}

/* =========================================================
   ✅ HERO → VIJESTI RAZMAK (100% fix)
========================================================= */
.hero-separator{
  height: 28px;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 -12px 26px rgba(2,6,23,.08);
}

@media (max-width: 820px){
  .hero-separator{ height: 18px; }
}

/* =========================================================
   ✅ COVER IMAGE u vijestima/objavama (home cards)
========================================================= */
.post-cover{
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: rgba(15,23,42,.04);
}

.post-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* ✅ ODVAJANJE HERO / SLIDER od sadržaja ispod */
.home-sections{
  padding-top: 34px;
  background: #fff;
  border-top: 1px solid rgba(15,23,42,.10);
}

@media (max-width: 820px){
  .home-sections{ padding-top: 22px; }
}

/* =========================
   PATCH: News cards sizing
   (Home + /vijesti)
========================= */

/* osiguraj da kartice ne "pobjegnu" */
.news-card{
  overflow: hidden;
}

/* fiksna visina cover-a */
.news-cover{
  width: 100%;
  height: 180px;            /* normalne kartice */
  overflow: hidden;
  background: #eef2f7;
}

/* featured malo veći cover */
.news-card.featured .news-cover{
  height: 340px;
}

/* slika uvijek popuni, bez deformacije */
.news-cover img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* na mobitelu smanji featured */
@media (max-width: 820px){
  .news-card.featured .news-cover{ height: 220px; }
  .news-cover{ height: 160px; }
}

/* =========================
   PATCH: Info bar icon/image sizing
========================= */

.info-left{
  align-items: center;
}

/* veći prostor za ikonu/sliku */
.info-icon{
  width: 200px;
  height: 200px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  padding: 4px; /* da SVG ne zalijepi ivice */
  box-shadow: 0 6px 12px rgba(2,6,23,.10);
  border: 1px solid rgba(15,23,42,.10);
}

/* ako želiš baš da izgleda kao "prava slika" (bez paddinga), zamijeni gore padding sa 0 */

/* =========================
   Info bar image fix (NO CROP)
========================= */

.info-icon{
  width: 120px;      /* realno i lijepo */
  height: 120px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #fff;
  padding: 10px;    /* da SVG diše */
  object-fit: contain; /* ✅ ključno: da se logo ne reže */
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 6px 12px rgba(2,6,23,.10);
}

/* na mobitelu malo manje */
@media (max-width: 640px){
  .info-icon{ width:72px; height:72px; padding:8px; border-radius:14px; }
}

/* =========================
   News cards equal height + consistent layout
========================= */

.news-grid{
  align-items: stretch;
}

.news-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.news-cover{
  width: 100%;
  height: 220px;          /* normal card */
  overflow: hidden;
  background: #eef2f7;
}

.news-card.featured .news-cover{
  height: 360px;          /* featured */
}

.news-cover img{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: cover;
}

.news-card-body{
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  flex: 1 1 auto;
}

.news-title{
  margin: 0;
}

/* ograniči excerpt na 3 reda (da sve kartice budu jednake) */
.news-excerpt{
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* meta uvijek na dno */
.news-meta{
  margin-top: auto;
}

/* mobile adjustments */
@media (max-width: 820px){
  .news-card.featured .news-cover{ height: 240px; }
  .news-cover{ height: 180px; }
}

/* =========================
   News auto grid layout
========================= */

.news-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* featured ostaje kao veliki lijevo (ako ima) */
.news-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

/* na manjem ekranu sve ide u jednu kolonu */
@media (max-width: 980px){
  .news-grid{ grid-template-columns: 1fr; }
}


/* =========================
   FIX: Home news equal cards (featured + side)
========================= */

/* grid: lijevo featured, desno lista */
.news-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

/* sve kartice iste visine u gridu */
.news-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* FEATURED i SIDE kartice: zaključaj visinu (da budu jednaki blokovi) */
.news-card.featured,
.news-list .news-card{
  min-height: 520px;   /* po potrebi: 480-560 */
}

/* cover visine (slike) */
.news-card.featured .news-cover{
  height: 320px;
}
.news-list .news-card .news-cover{
  height: 320px;       /* ✅ isto kao featured, pa će slike biti jednake */
}

/* slika uvijek lijepo popuni */
.news-cover img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* body neka bude fleksibilan, ali da ne pravi ogromne praznine */
.news-card-body{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  flex: 1 1 auto;
}

/* naslov max 2 reda */
.news-title{
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* excerpt max 3 reda */
.news-excerpt{
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* meta uvijek dole */
.news-meta{
  margin-top: auto;
}

/* responsive */
@media (max-width: 980px){
  .news-grid{ grid-template-columns: 1fr; }
  .news-card.featured,
  .news-list .news-card{ min-height: auto; }
  .news-card.featured .news-cover,
  .news-list .news-card .news-cover{ height: 220px; }
}


/* =========================
   NEWS: uniform grid (1-4 items)
========================= */

/* svi boxovi u news sekciji idu kao isti grid */
.news-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

/* ako ima puno prostora (desktop), da ne ide preko 4 kolone */
@media (min-width: 1200px){
  .news-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* featured NE smije biti poseban */
.news-card.featured{
  grid-column: auto !important;
}

/* sve kartice iste visine */
.news-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* svi cover-i isti */
.news-cover{
  height: 220px;
  overflow: hidden;
  background: #eef2f7;
}
.news-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* body isti ritam */
.news-card-body{
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

/* naslov i tekst clamp da ne razvlači */
.news-title{
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-excerpt{
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.news-meta{ margin-top:auto; }


/* =========================================================
   ✅ FINAL OVERRIDE: HOME NEWS UNIFORM GRID (kao JLO)
========================================================= */

.news-grid.news-grid-uniform{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

@media (max-width: 1200px){
  .news-grid.news-grid-uniform{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .news-grid.news-grid-uniform{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .news-grid.news-grid-uniform{ grid-template-columns: 1fr; }
}

.news-grid.news-grid-uniform .news-card{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadowSoft);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-grid.news-grid-uniform .news-cover{
  width: 100%;
  aspect-ratio: 16 / 9; /* ✅ ista slika svima */
  overflow: hidden;
  background: #eef2f7;
}
.news-grid.news-grid-uniform .news-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-grid.news-grid-uniform .news-card-body{
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.news-grid.news-grid-uniform .news-title{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.2;

  display: -webkit-box;
  -webkit-line-clamp: 2; /* ✅ isti naslovi */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-grid.news-grid-uniform .news-excerpt{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 3; /* ✅ isti excerpti */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-grid.news-grid-uniform .news-meta{
  margin-top: auto;
  display:flex;
  align-items:center;
  gap:8px;
  color: var(--muted);
  font-size: 13px;
}
.news-grid.news-grid-uniform .news-meta .dot{ opacity:.7; }
.news-grid.news-grid-uniform .news-read{ color: var(--blue2); font-weight: 800; }
.news-grid.news-grid-uniform .news-read:hover{ text-decoration: underline; }

/* =========================================================
   ✅ FINAL OVERRIDE: INFO ICON (da logo ne bude odrezan)
========================================================= */
.info-icon{
  width: 200px !important;
  height: 200px !important;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  object-fit: contain !important; /* ✅ NE REŽE LOGO */
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 6px 12px rgba(2,6,23,.10);
}

@media (max-width: 640px){
  .info-icon{
    width: 72px !important;
    height: 72px !important;
    padding: 8px;
    border-radius: 14px;
  }
}

/* =========================================================
   BHUDRUZENJE – NEWS / POSTS GRID (equal cards like JLO)
   (moved from src/Core/App.php to here to fix parse error)
========================================================= */

/* Shared news/posts card system */
.posts-grid,
.home-sections .grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
}

/* make it 1/2/3/4 columns nicely at common breakpoints */
@media (min-width: 520px){
  .posts-grid,
  .home-sections .grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px){
  .posts-grid,
  .home-sections .grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px){
  .posts-grid,
  .home-sections .grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
}

/* Cards */
.post-card,
.home-sections .card{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(2,6,23,.06);
  display:flex;
  flex-direction:column;
  height:100%;
  transform:translateY(0);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.post-card:hover,
.home-sections .card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 45px rgba(2,6,23,.10);
  border-color:rgba(37, 99, 235, .22);
}

.post-card .post-cover,
.home-sections .post-cover{
  width:100%;
  aspect-ratio: 16 / 10;      /* jednaka visina svih kartica */
  overflow:hidden;
  background:#f1f5f9;
  border-bottom:1px solid rgba(15,23,42,.08);
  display:flex;               /* ✅ centriraj sliku */
  align-items:center;
  justify-content:center;
}

.post-cover img,
.post-card .post-cover img,
.home-sections .post-cover img{
  width:100%;
  height:100%;
  object-fit:contain;         /* ✅ pokaži CIJELU sliku u okviru */
  object-position:center;
  display:block;
}

/* lagani hover bez zumiranja (da ništa ne “iskače” iz okvira) */
.post-card:hover .post-cover img,
.home-sections .card:hover .post-cover img{
  transform:none;
  filter:saturate(1.05) contrast(1.02);
}

.post-card .inner,
.home-sections .card__body{
  padding:18px 18px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}

.post-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.badge-soft{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(37, 99, 235, .10);
  color:#0b3aa4;
  font-weight:800;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  width:max-content;
}

.post-title{
  margin:0;
  line-height:1.25;
  letter-spacing:-.02em;
  font-weight:900;
}

.post-title a{
  color:#0f172a;
}

.post-excerpt{
  color:#334155;
  line-height:1.55;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.post-meta{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#64748b;
  font-size:.92rem;
  padding-top:6px;
}

.post-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  background:#2563eb;
  color:#fff;
  font-weight:800;
  text-decoration:none;
  width:max-content;
  transition:filter .18s ease, transform .18s ease;
}

.post-btn:hover{
  filter:brightness(.95);
  transform:translateY(-1px);
}

/* Empty state */
.posts-empty{
  border:1px dashed rgba(15,23,42,.22);
  border-radius:18px;
  padding:18px;
  color:#64748b;
  background:#fff;
}

/* ADMIN: sticky toolbar on /admin/posts */
.admin-sticky-toolbar{
  position:sticky;
  top:10px;
  z-index:20;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:14px 14px 10px;
  box-shadow:0 10px 30px rgba(2,6,23,.06);
}

/* INFO BAR: prevent logo cropping */
.info-bar .info-icon{
  object-fit:contain !important;
  background:#fff;
  padding:4px;
}

/* ============================
   HOME: Vijesti i objave – fix image crop/overflow
   (home koristi druge klase od /vijesti)
============================ */

/* pokrij sve varijante cover wrappera na home */
.home .post-cover,
.home .card-cover,
.home .news-cover,
.home .news-card__cover,
.home [class*="cover"]{
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* pokrij sve slike u karticama na home */
.home .post-cover img,
.home .card-cover img,
.home .news-cover img,
.home .news-card__cover img,
.home .post-card img,
.home .news-card img,
.home [class*="cover"] img{
  width: 100%;
  height: 100%;
  object-fit: contain !important;   /* ✅ cijela slika u okviru */
  object-position: center;
  display: block;
  transform: none !important;
}

/* ako home cover nema visinu, forsiraj isti okvir kao /vijesti */
.home .post-cover,
.home .card-cover,
.home .news-cover,
.home .news-card__cover{
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
}

/* ============================
   GLOBAL POST CARDS: images always fit inside frame (HOME + /vijesti)
   Force override at the end of app.css
============================ */

.post-card .post-cover{
  width: 100%;
  aspect-ratio: 16 / 10;     /* jednaka visina svuda */
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid rgba(15,23,42,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card .post-cover img{
  width: 100%;
  height: 100%;
  object-fit: contain !important;  /* ✅ cijela slika u okviru */
  object-position: center;
  display: block;
  transform: none !important;      /* ✅ nema “iskačanja” */
}

/* ubij hover zoom ako postoji negdje ranije */
.post-card:hover .post-cover img{
  transform: none !important;
  filter: saturate(1.05) contrast(1.02);
}

/* HOME Vijesti i objave – force fit images */
.home-news .post-cover,
.home-news .post-card__cover,
.home-news .news-cover,
.home-news .card-cover,
.home-news .thumb,
.home-news .image{
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
}

.home-news img{
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  display: block;
  transform: none !important;
}

.home-news .post-card:hover img{
  transform: none !important;
}

/* HOME/POST cards: fixed image frame */
.post-cover.post-cover--fixed{
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-cover.post-cover--fixed img{
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  display: block;
  transform: none !important;
}

/* ============================
   FORCE FIX for FEATURED card (home)
   (ovo pregazi stara card--featured pravila)
============================ */

.card--featured .post-cover,
.card--featured .post-cover.post-cover--fixed{
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  height: auto !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.card--featured .post-cover img{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  transform: none !important;
}


/* =========================================================
   PATCH 2026-02-22 (safe overrides only)
   - HERO subtitle readability (was black in some slides)
   - Home "Vijesti i objave" cards polish (news-grid/news-card)
   NOTE: This block is appended; nothing above is removed.
========================================================= */

/* HERO: make subtitle + smaller text always readable on dark overlay */
.hero .hero-subtitle,
.hero .hero-sub,
.hero .hero-text p{
  color: rgba(255,255,255,.84);
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hero .hero-subtitle{ max-width: 60ch; }

/* HERO: buttons keep contrast on photos */
.hero .hero-btn,
.hero a.hero-btn{
  color:#0b1220;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 14px 30px rgba(2,6,23,.20);
}
.hero .hero-btn:hover,
.hero a.hero-btn:hover{
  background:#fff;
  transform: translateY(-1px);
}

/* HOME NEWS: modern cards (only affects home where these classes exist) */
.home-news .home-block-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.home-news .home-block-head h2{
  margin:0;
  letter-spacing:-.02em;
}
.home-news .home-block-more{
  font-weight:700;
  color:#0b4e9e;
}

.home-news .news-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:22px;
}
@media (max-width: 1100px){
  .home-news .news-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px){
  .home-news .news-grid{ grid-template-columns:1fr; }
}

.home-news .news-card{
  position:relative;
  background:#fff;
  border:1px solid rgba(2,6,23,.08);
  border-radius:22px;
  overflow:hidden;
  box-shadow: 0 18px 46px rgba(2,6,23,.10);
  display:flex;
  flex-direction:column;
  min-height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-news .news-card:hover{
  transform: translateY(-4px);
  border-color: rgba(2,6,23,.14);
  box-shadow: 0 26px 64px rgba(2,6,23,.16);
}

.home-news .news-cover{
  display:block;
  aspect-ratio: 16/9;
  background:#eef2f7;
}
.home-news .news-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.home-news .news-card-body{
  padding:16px 16px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}

.home-news .news-kicker{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(14,121,240,.12);
  color:#0b4e9e;
  font-weight:800;
  font-size:12px;
  letter-spacing:.06em;
}

.home-news .news-title{
  margin:0;
  font-size:18px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:-.02em;
}
.home-news .news-title a{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.home-news .news-excerpt{
  margin:0;
  color:#475569;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.home-news .news-meta{
  margin-top:auto;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  color:#64748b;
}
.home-news .news-meta .dot{
  opacity:.7;
}
.home-news .news-read{
  margin-left:auto;
  font-weight:800;
  color:#0b4e9e;
}

/* ===== HERO: subtitle/text readable (svijetlo) ===== */
.hero .hero-subtitle,
.hero .hero-text p,
.hero .hero-text {
  color: rgba(255,255,255,.88) !important;
}

.hero .hero-subtitle {
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.hero .hero-title {
  text-shadow: 0 3px 18px rgba(0,0,0,.55);
}

/* ===== HOME NEWS: da izgleda moderno kao /vijesti ===== */

.home-news .news-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:18px;
  align-items: stretch;
}

@media (max-width: 1100px){
  .home-news .news-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .home-news .news-grid{ grid-template-columns: 1fr; }
}

.home-news .news-card{
  background:#fff;
  border:1px solid rgba(2,6,23,.10);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 14px 34px rgba(2,6,23,.08);
  transition: transform .18s ease, box-shadow .18s ease;
  display:flex;
  flex-direction:column;
  min-height: 100%;
}

.home-news .news-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(2,6,23,.12);
}

.home-news .news-cover{
  display:block;
  background:#f1f5f9;
  aspect-ratio: 16 / 9;
  overflow:hidden;
}

.home-news .news-cover img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.home-news .news-card-body{
  padding:16px 16px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}

.home-news .news-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  letter-spacing:.08em;
  font-size:12px;
  padding:7px 12px;
  border-radius:999px;
  width: fit-content;
  background: rgba(37,99,235,.10);
  color: #1d4ed8;
}

.home-news .news-title{
  margin:0;
  line-height:1.15;
  font-size:20px;
  font-weight:900;
  color:#0b1220;
}

.home-news .news-title a{
  color:inherit;
  text-decoration:none;
}

.home-news .news-title a:hover{
  text-decoration:underline;
}

.home-news .news-excerpt{
  margin:0;
  color: rgba(2,6,23,.72);
  line-height:1.55;
}

.home-news .news-meta{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color: rgba(2,6,23,.55);
  font-size:14px;
  padding-top:8px;
  border-top:1px solid rgba(2,6,23,.08);
}

.home-news .news-meta .dot{ opacity:.5; }

.home-news .news-read{
  color:#1d4ed8;
  font-weight:700;
  text-decoration:none;
}

.home-news .news-read:hover{
  text-decoration:underline;
}

/* =========================================================
   HOME NEWS (početna) – moderni boxovi
   Ne dira /vijesti stranice, samo .home-news sekciju
========================================================= */
.home-news .news-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 1100px){
  .home-news .news-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .home-news .news-grid{ grid-template-columns: 1fr; }
}

.home-news .news-card{
  background:#fff;
  border:1px solid rgba(2, 6, 23, .10);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 12px 30px rgba(2,6,23,.10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex;
  flex-direction: column;
  min-height: 100%;
}

.home-news .news-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(2,6,23,.16);
  border-color: rgba(14, 121, 240, .25);
}

.home-news .news-cover{
  display:block;
  position:relative;
  background:#eef2f7;
}

.home-news .news-cover img{
  width:100%;
  height: 220px;
  object-fit: cover;
  display:block;
}

.home-news .news-card-body{
  padding: 16px 16px 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  flex:1;
}

.home-news .news-kicker{
  display:inline-flex;
  align-self:flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(14,121,240,.12);
  color: #0b66d4;
}

.home-news .news-card.featured .news-kicker{
  background: rgba(245, 158, 11, .18);
  color: #b45309;
}

.home-news .news-title{
  margin:0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.home-news .news-title a{
  color:#0b1220;
  text-decoration:none;
}

.home-news .news-title a:hover{
  text-decoration: underline;
}

.home-news .news-excerpt{
  margin:0;
  color: #52637a;
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news .news-meta{
  margin-top:auto;
  padding-top: 10px;
  border-top: 1px solid rgba(2,6,23,.08);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  color:#6b7b93;
  font-size: 13px;
}

.home-news .news-meta .dot{
  display:none; /* na home ne treba */
}

.home-news .news-read{
  font-weight: 800;
  text-decoration: none;
  color: #0b66d4;
}

.home-news .news-read:hover{
  text-decoration: underline;
}

/* =========================================================
   HOME (Početna) – Vijesti boxovi (scoped)
   Cilja samo: <section class="home-section home-news">
========================================================= */

.home-section.home-news .news-grid,
.home-section.home-news .posts-grid,
.home-section.home-news .cards-grid,
.home-section.home-news .grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}

@media (max-width:1100px){
  .home-section.home-news .news-grid,
  .home-section.home-news .posts-grid,
  .home-section.home-news .cards-grid,
  .home-section.home-news .grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width:640px){
  .home-section.home-news .news-grid,
  .home-section.home-news .posts-grid,
  .home-section.home-news .cards-grid,
  .home-section.home-news .grid{
    grid-template-columns: 1fr;
  }
}

/* kartice – pokrij više varijanti klasa */
.home-section.home-news :is(.news-card, .post-card, .card){
  background:#fff;
  border:1px solid rgba(2,6,23,.10);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(2,6,23,.10);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.home-section.home-news :is(.news-card, .post-card, .card):hover{
  transform: translateY(-3px);
  box-shadow:0 18px 45px rgba(2,6,23,.16);
  border-color: rgba(14,121,240,.25);
}

/* cover (slika) – opet više varijanti */
.home-section.home-news :is(.news-cover, .post-cover, .card__cover, .cover){
  display:block;
  background:#eef2f7;
}
.home-section.home-news :is(.news-cover, .post-cover, .card__cover, .cover) img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

/* body */
.home-section.home-news :is(.news-card-body, .card__body, .post-body, .body){
  padding:16px 16px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}

/* ISTAKNUTO / NOVO badge */
.home-section.home-news :is(.news-kicker, .kicker, .badge, .pill){
  display:inline-flex;
  align-self:flex-start;
  padding:6px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  background: rgba(14,121,240,.12);
  color:#0b66d4;
}

/* title */
.home-section.home-news :is(.news-title, .card__title, .title) a,
.home-section.home-news :is(.news-title, .card__title, .title){
  color:#0b1220;
  text-decoration:none;
}
.home-section.home-news :is(.news-title, .card__title, .title) a:hover{
  text-decoration:underline;
}

/* excerpt */
.home-section.home-news :is(.news-excerpt, .excerpt, .card__text){
  margin:0;
  color:#52637a;
  font-size:15px;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* meta + read */
.home-section.home-news :is(.news-meta, .meta, .card__meta){
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid rgba(2,6,23,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#6b7b93;
  font-size:13px;
}
.home-section.home-news :is(.news-read, .read, .card__read){
  font-weight:800;
  text-decoration:none;
  color:#0b66d4;
}
.home-section.home-news :is(.news-read, .read, .card__read):hover{
  text-decoration:underline;
}

/* =========================
   HOME NEWS cards – image fit like /vijesti
   (append at END of app.css)
========================= */

.home-section.home-news .news-grid{
  align-items: stretch;
}

.home-section.home-news .news-card{
  overflow: hidden;
}

.home-section.home-news .news-cover{
  display:block;
  width:100%;
  height: 220px;          /* isto “polje” za sve slike */
  overflow:hidden;
  background:#eef3fb;     /* fallback kad slika kasni */
}

.home-section.home-news .news-cover img{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;      /* ✅ da slika popuni okvir */
  object-position: center;
}

/* ako želiš malo elegantniji hover */
.home-section.home-news .news-card:hover .news-cover img{
  transform: scale(1.03);
  transition: transform .25s ease;
}

/* opcionalno: “Pročitaj →” kao fin pill button (nije obavezno) */
.home-section.home-news .news-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.home-section.home-news .news-read{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(14,121,240,.10);
  border: 1px solid rgba(14,121,240,.18);
  font-weight:700;
  text-decoration:none;
}

.home-section.home-news .news-read:hover{
  background: rgba(14,121,240,.16);
}

/* responsive: malo manja visina slike */
@media (max-width: 980px){
  .home-section.home-news .news-cover{ height: 200px; }
}
@media (max-width: 640px){
  .home-section.home-news .news-cover{ height: 190px; }
}

/* =========================================================
   ✅ FINAL SAFE OVERRIDE (HOME NEWS CARDS)
   - cilj: <section class="home-section home-news"> ... kartice
   - ništa iznad ne brišemo
========================================================= */

.home-section.home-news :is(.news-cover, .post-cover, .card__cover, .cover){
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-section.home-news :is(.news-cover, .post-cover, .card__cover, .cover) img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;          /* ✅ cijela slika u okviru (promijeni u cover ako želiš crop) */
  object-position: center;
}

/* malo ljepši footer/meta + link poravnanje */
.home-section.home-news :is(.news-meta, .meta, .card__meta){
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(2,6,23,.08);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.home-section.home-news :is(.news-read, .read, .card__read){
  font-weight: 800;
  text-decoration: none;
}

/* =========================================================
   ✅ HOME (2026) – "Zašto odabrati" + "O Udruženju" + CTA
   - dodano na KRAJ (ne dira postojeće)
========================================================= */

.home-section{
  padding: 46px 0;
}

@media (max-width: 820px){
  .home-section{ padding: 34px 0; }
}

.section-head{
  text-align: center;
  margin-bottom: 22px;
}

.section-title{
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.title-dots{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .95); /* zlatno */
  box-shadow:
    0 0 0 5px rgba(245, 158, 11, .16),
    0 12px 28px rgba(245, 158, 11, .22);
}

.section-sub{
  margin: 10px auto 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== WHY (Zašto odabrati) ===== */
.home-why{
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(11, 102, 212, .10), transparent 60%),
    linear-gradient(180deg, rgba(15,23,42,.02), #fff);
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.why-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 1100px){
  .why-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .why-grid{ grid-template-columns: 1fr; }
}

.why-card{
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: 0 16px 40px rgba(2,6,23,.10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-align: left;
}

.why-card:hover{
  transform: translateY(-3px);
  border-color: rgba(11,102,212,.22);
  box-shadow: 0 22px 56px rgba(2,6,23,.14);
}

.why-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(11,102,212,.10);
  border: 1px solid rgba(11,102,212,.18);
  font-size: 20px;
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
  margin-bottom: 10px;
}

.why-title{
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.why-text{
  color: var(--muted);
  line-height: 1.55;
}

/* ===== ABOUT (O Udruženju) ===== */
.home-about{
  background: #fff;
}

.about-card{
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 22px 60px rgba(2,6,23,.10);
  overflow:hidden;

  display:grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: stretch;
}

@media (max-width: 980px){
  .about-card{ grid-template-columns: 1fr; }
}

.about-text{
  padding: 26px 26px 22px;
}

@media (max-width: 560px){
  .about-text{ padding: 20px 18px 18px; }
}

.about-kicker{
  margin: 10px 0 10px;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -0.02em;
  font-weight: 900;
}

.about-p{
  margin: 0 0 16px;
  color: rgba(2,6,23,.72);
  line-height: 1.7;
  max-width: 70ch;
}

/* stats */
.about-stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

@media (max-width: 980px){
  .about-stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stat{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.02);
  border-radius: 18px;
  padding: 14px 14px 12px;
}

.stat-num{
  font-weight: 950;
  letter-spacing: -0.02em;
  font-size: 22px;
  color: var(--blue0);
}

.stat-label{
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

/* actions */
.about-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* media side */
.about-media{
  position: relative;
  min-height: 280px;
  background: #0b1220;
}

.about-media::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(115deg, rgba(7,58,122,.18), rgba(0,0,0,0) 55%);
  z-index: 2;
}

.about-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

/* ===== CTA (Postani član) ===== */
.home-cta{
  padding-top: 28px;
  padding-bottom: 54px;
}

.cta-card{
  border-radius: 26px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 26px 72px rgba(2,6,23,.12);

  background:
    radial-gradient(900px 300px at 20% 0%, rgba(11, 102, 212, .22), transparent 60%),
    linear-gradient(90deg, rgba(7,58,122,.98) 0%, rgba(11,102,212,.95) 55%, rgba(10,78,163,.98) 100%);
  color: #fff;
}

.cta-inner{
  padding: 24px 26px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 820px){
  .cta-inner{
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px;
  }
}

.cta-title{
  margin:0 0 6px;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 950;
  text-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.cta-sub{
  margin:0;
  color: rgba(255,255,255,.86);
  line-height: 1.6;
  max-width: 70ch;
}

.cta-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* CTA buttons – keep contrast */
.home-cta .btn-outline{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.24);
  color: #fff;
}
.home-cta .btn-outline:hover{
  background: rgba(255,255,255,.16);
}

/* Small polish: keep section titles aligned on mobile */
@media (max-width: 560px){
  .section-head{ text-align: left; }
  .section-title{ justify-content: flex-start; }
  .section-sub{ margin-left: 0; }
}

/* ===== HERO NAV (brojevi umjesto crtica) ===== */
.hero-dots{
  gap: 10px;
  bottom: 18px;
}

.hero-dot{
  width: auto;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 14px;
  line-height: 1;

  border: 1px solid rgba(255,255,255,.55);
  background: rgba(0,0,0,.22);
  color: #fff;

  cursor: pointer;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}

.hero-dot:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.32);
}

.hero-dot.active{
  background: rgba(255,255,255,.95);
  color: #0b2d57; /* tamno plava da ide uz temu */
  border-color: rgba(255,255,255,.95);
}



/* =========================================================
   ✅ MOBILE FIX: HOME ABOUT / INFO SECTION
   - cilj: "O Udruženju" blok na telefonu
   - slika ide gore
   - tekst puna širina
   - dugmad ispod teksta
   - ništa drugo ne rušimo
========================================================= */
@media (max-width: 820px){

  .home-about .about-card{
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .home-about .about-media{
    order: -1 !important;
    min-height: 0 !important;
    height: auto !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 22px 18px 12px !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(15,23,42,.08) !important;
  }

  .home-about .about-media::before{
    display: none !important;
  }

  .home-about .about-media img{
    position: static !important;
    inset: auto !important;
    width: min(100%, 300px) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    filter: none !important;
  }

  .home-about .about-text{
    width: 100% !important;
    padding: 18px 18px 22px !important;
  }

  .home-about .about-kicker{
    margin-top: 8px !important;
    margin-bottom: 10px !important;
    font-size: clamp(18px, 6vw, 28px) !important;
    line-height: 1.18 !important;
  }

  .home-about .about-p{
    max-width: none !important;
    font-size: 16px !important;
    line-height: 1.68 !important;
    margin-bottom: 14px !important;
  }

  .home-about .about-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 14px 0 18px !important;
  }

  .home-about .stat{
    padding: 12px 12px 10px !important;
    border-radius: 16px !important;
  }

  .home-about .stat-num{
    font-size: 20px !important;
  }

  .home-about .stat-label{
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .home-about .about-actions{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }

  .home-about .about-actions .btn{
    width: 100% !important;
    min-height: 50px !important;
    padding: 13px 16px !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 560px){

  .home-about .about-card{
    border-radius: 22px !important;
  }

  .home-about .about-media{
    padding: 20px 14px 10px !important;
  }

  .home-about .about-media img{
    width: min(100%, 240px) !important;
  }

  .home-about .about-text{
    padding: 16px 14px 18px !important;
  }

  .home-about .about-stats{
    grid-template-columns: 1fr 1fr !important;
  }
}

/* =========================================================
   MOBILE POLISH PACK — safe final overrides
   - hero slider mobile
   - info bar mobile
   - menu button spacing
   - news cards mobile
   - appended at end intentionally to win cascade
========================================================= */

@media (max-width: 820px){
  :root{
    --mainH: 72px;
    --heroHMobile: 480px;
  }

  /* Header / mobile menu button */
  .site-header{ position: sticky; top: 0; z-index: 999; }
  .header-shell{ overflow: visible; }

  .main-row{
    min-height: var(--mainH);
    padding: 10px 0 12px !important;
    gap: 12px !important;
    align-items: center !important;
  }

  .header-shell .brand{
    gap: 10px !important;
    max-width: calc(100% - 150px);
  }

  .header-shell .brand .logo-img img{
    width: 44px !important;
    height: 44px !important;
  }

  .header-shell .brand .title strong{
    font-size: 15px !important;
    line-height: 1.08 !important;
  }

  .header-shell .brand .title small{
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  .mnav-btn{
    min-width: 122px;
    min-height: 54px;
    padding: 11px 16px !important;
    gap: 10px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    box-shadow: 0 12px 26px rgba(2,6,23,.18) !important;
    flex: 0 0 auto;
  }

  .mnav-ico{
    font-size: 18px !important;
  }

  .mnav-txt{
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: .01em;
  }

  /* Hero slider mobile */
  .hero,
  .hero-slide,
  .hero-inner{
    min-height: var(--heroHMobile) !important;
    height: auto !important;
  }

  .hero-slide{
    background-position: center center !important;
  }

  .hero-bg::before{
    background:
      linear-gradient(90deg, rgba(6,25,58,.66) 0%, rgba(6,25,58,.50) 38%, rgba(6,25,58,.18) 100%) !important;
  }

  .hero-content{
    width: 100% !important;
    padding: 28px 18px 34px !important;
    align-items: flex-end !important;
  }

  .hero-text{
    width: min(100%, 560px) !important;
    max-width: 100% !important;
    padding-right: 8px !important;
  }

  .hero-title{
    font-size: clamp(30px, 8.6vw, 48px) !important;
    line-height: .98 !important;
    letter-spacing: -.035em !important;
    margin: 0 0 12px !important;
    max-width: 11ch;
  }

  .hero .hero-subtitle,
  .hero .hero-sub,
  .hero .hero-text p{
    font-size: 15px !important;
    line-height: 1.42 !important;
    max-width: 30ch !important;
    margin: 0 0 16px !important;
    color: rgba(255,255,255,.92) !important;
  }

  .hero .hero-btn,
  .hero a.hero-btn{
    min-height: 46px !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    width: auto !important;
    max-width: 100%;
  }

  .hero-dots{
    bottom: 14px !important;
  }

  /* Info bar mobile */
  .info-bar{
    padding: 10px 0 8px !important;
  }

  .info-bar .container{
    width: min(var(--container), calc(100% - 20px)) !important;
  }

  .info-bar-inner{
    gap: 8px !important;
  }

  .info-item{
    padding: 10px 12px !important;
    border-radius: 14px !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .info-left{
    width: 100%;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .info-icon{
    width: 20px !important;
    height: 20px !important;
    padding: 3px !important;
    margin-top: 1px;
  }

  .info-msg{
    font-size: 14px !important;
    line-height: 1.45 !important;
    flex: 1 1 auto;
  }

  .info-link{
    align-self: flex-start !important;
    margin-left: 30px !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  /* Home news mobile */
  .home-news{
    padding-top: 8px;
  }

  .home-news .home-block-head{
    gap: 12px !important;
    margin-bottom: 14px !important;
    align-items: center !important;
  }

  .home-news .home-block-head h2{
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.08 !important;
  }

  .home-news .home-block-more{
    font-size: 14px !important;
    white-space: nowrap;
  }

  .posts-grid,
  .home-news .news-grid{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .post-card,
  .home-news .news-card{
    border-radius: 18px !important;
    box-shadow: 0 14px 34px rgba(2,6,23,.08) !important;
    overflow: hidden !important;
  }

  .post-card .post-cover,
  .home-news .news-cover,
  .home-news .post-cover,
  .home-news .post-cover--fixed{
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    background: #eef2f7 !important;
  }

  .post-card .post-cover img,
  .home-news .news-cover img,
  .home-news .post-cover img,
  .home-news .post-cover--fixed img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .post-card .inner,
  .home-news .news-card-body{
    padding: 14px 14px 12px !important;
  }

  .post-card h3,
  .home-news .news-title,
  .home-news .news-title a{
    font-size: 18px !important;
    line-height: 1.18 !important;
  }

  .post-card p,
  .home-news .news-excerpt{
    font-size: 15px !important;
    line-height: 1.55 !important;
    color: #5b6b81 !important;
  }

  .post-card .meta,
  .home-news .news-meta{
    font-size: 13px !important;
    line-height: 1.35 !important;
    gap: 8px !important;
    padding-top: 10px !important;
    margin-top: 8px !important;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px){
  :root{
    --mainH: 70px;
    --heroHMobile: 450px;
  }

  .container{
    width: min(var(--container), calc(100% - 20px)) !important;
  }

  .main-row{
    padding: 9px 0 11px !important;
  }

  .header-shell .brand{
    max-width: calc(100% - 136px);
  }

  .header-shell .brand .logo-img img{
    width: 42px !important;
    height: 42px !important;
  }

  .header-shell .brand .title strong{
    font-size: 14px !important;
  }

  .header-shell .brand .title small{
    font-size: 10.5px !important;
  }

  .mnav-btn{
    min-width: 112px;
    min-height: 50px;
    padding: 10px 14px !important;
  }

  .hero-content{
    padding: 22px 14px 28px !important;
  }

  .hero-title{
    font-size: clamp(26px, 9vw, 40px) !important;
    max-width: 10ch;
  }

  .hero .hero-subtitle,
  .hero .hero-sub,
  .hero .hero-text p{
    font-size: 14px !important;
    line-height: 1.38 !important;
    max-width: 28ch !important;
  }

  .hero .hero-btn,
  .hero a.hero-btn{
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  .info-item{
    padding: 9px 10px !important;
  }

  .info-msg{
    font-size: 13.5px !important;
  }

  .info-link{
    margin-left: 0 !important;
    width: 100%;
    justify-content: center !important;
  }

  .home-news .home-block-head{
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  .home-news .home-block-head h2{
    font-size: 24px !important;
  }

  .post-card .inner,
  .home-news .news-card-body{
    padding: 13px 13px 12px !important;
  }

  .post-card h3,
  .home-news .news-title,
  .home-news .news-title a{
    font-size: 17px !important;
  }
}
