/* ========== MODERNIZOVAN EKOVANJA DIZAJN 2026 ========== */

:root {
  --bg-darker: #08130f;
  --bg-dark: #0b1d14;
  --card: #133024;
  --ink: #e6f2ea;
  --muted: #cfe3d6;
  --accent: #6bd08c;
  --accent-bright: #7de49d;
  --shadow: 0 16px 36px rgba(0,0,0,.45);

  /* STEP45: premium rhythm + light section */
  --light: #f2f7f4;
  --ink-dark: #0b2b1f;
  --muted-dark: rgba(11,43,31,.85);
  --border-soft: rgba(120, 200, 160, 0.15);
  --border-hover: rgba(120, 220, 170, 0.35);
}

/* Base image safety: prevent overflow while keeping section-specific sizes intact */
img{
  max-width: 100%;
  height: auto;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-darker);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--accent); text-decoration: none; }

/* ========== NAVIGATION ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(8, 19, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 208, 140, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--accent);
}

nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 85vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1400px 60% at 50% 10%, rgba(107, 208, 140, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.5), rgba(8,19,15,.85)),
    url('/slike/bg-header.webp') center/cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 50% at 50% 0%, rgba(107, 208, 140, 0.25), transparent 65%);
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero__inner {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .brand {
  font-family: Georgia, serif;
  font-size: clamp(48px, 10vw, 86px);
  font-weight: 800;
  letter-spacing: 3px;
  text-shadow: 0 8px 32px rgba(0,0,0,.65);
  background: linear-gradient(135deg, #e6f2ea 0%, #6bd08c 50%, #e6f2ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tagline {
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--muted);
  margin: 16px 0 32px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ========== MODERN CTA BUTTON ========== */
.btn-cta {
  display: inline-block;
  padding: 16px 42px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  color: #0b1d14;
  background: linear-gradient(135deg, #7de49d 0%, #6bd08c 100%);
  box-shadow: 0 8px 24px rgba(107, 208, 140, 0.35);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(107, 208, 140, 0.5);
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:active {
  transform: translateY(-1px);
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* ========== CONTENT SECTION ========== */
.content-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
  padding: 60px 0;
}

@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
  }
}

.content-section h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--ink);
}

.lead {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ========== CARDS ========== */
.card {
  background: var(--card);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(107, 208, 140, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.55);
  border-color: rgba(107, 208, 140, 0.3);
}

.card strong {
  color: var(--accent);
  font-size: 18px;
}

.card .muted {
  color: #d7e6dd;
  margin-top: 12px;
}

/* ========== VIDEO EMBED ========== */
.embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: var(--shadow);
}

.embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== GRID ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.grid img:hover {
  transform: scale(1.03);
}

/* ========== SECTION TITLES ========== */
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

/* ========== CONTACT FORM ========== */
.kontakt-form {
  margin: 24px 0;
}

.row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .row.two {
    grid-template-columns: 1fr;
  }
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(107, 208, 140, 0.2);
  background: rgba(19, 48, 36, 0.5);
  color: var(--ink);
  font-size: 16px;
  transition: all 0.3s ease;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 208, 140, 0.1);
}

.kontakt-form textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

.btn {
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #7de49d 0%, #6bd08c 100%);
  color: #0b1d14;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(107, 208, 140, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 208, 140, 0.4);
}

/* ========== SOCIAL CARDS ========== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 720px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 16px;
  background: rgba(19, 48, 36, 0.5);
  border: 1px solid rgba(107, 208, 140, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  background: rgba(19, 48, 36, 0.8);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.social-card .icon svg {
  width: 24px;
  height: 24px;
}

.social-card .label {
  font-weight: 600;
  font-size: 14px;
}

.social-card.tiktok { color: #69c9d0; }
.social-card.instagram { color: #e4405f; }
.social-card.youtube { color: #ff0000; }
.social-card.facebook { color: #1877f2; }
.social-card.linkedin { color: #0a66c2; }
.social-card.x { color: #e7e9ea; }

/* ========== INICIJATIVA SECTION ========== */
.section-inicijativa {
  background: linear-gradient(180deg, rgba(11,29,20,0), rgba(11,29,20,.35));
  padding: 80px 24px;
}

.inicijativa-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .inicijativa-wrap {
    grid-template-columns: 1fr;
  }
}

.inicijativa-media {
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.inicijativa-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.inicijativa-content h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
  color: var(--ink);
}

.underline {
  width: 100px;
  height: 5px;
  background: var(--accent);
  border-radius: 10px;
  margin: 12px 0 24px;
}

.inicijativa-content h3 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--accent);
  margin: 24px 0 16px;
}

.inicijativa-content p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: #d7e6dd;
  font-size: 17px;
}

/* ========== FOOTER ========== */
.footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(107, 208, 140, 0.1);
  margin-top: 60px;
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav {
    padding: 12px 20px;
  }

  nav {
    gap: 16px;
  }

  .hero {
    min-height: 70vh;
  }
}

/* === Step41: dodatna poboljšanja za mobilni prikaz (početna) === */
@media (max-width: 480px) {
  body {
    font-size: 15px;
    line-height: 1.65;
  }

  header.nav {
    padding: 10px 14px;
  }

  header.nav nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero .brand {
    font-size: clamp(32px, 10vw, 48px);
  }

  .tagline {
    font-size: 15px;
    margin: 12px 0 24px;
  }

  main.container {
    padding: 20px 16px;
  }

  .content-section h1 {
    font-size: 22px;
    line-height: 1.35;
  }

  .lead {
    font-size: 15px;
  }
}

/* === Mobilna optimizacija 360–414px (globalno) === */
@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
  }

  nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  nav a {
    font-size: 0.9rem;
  }

  .container {
    padding: 24px 16px;
  }

  .page-header {
    padding: 40px 16px;
    min-height: 30vh;
  }

  .page-header__inner {
    padding: 24px 0;
  }

  .stories-grid,
  .gallery-grid,
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .featured-story {
    grid-template-columns: 1fr;
  }
}


/* === Mobile navigation toggle === */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(107, 208, 140, 0.4);
  background: rgba(8, 19, 15, 0.85);
  color: var(--ink, #e6f2ea);
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 768px) {
  .nav {
    gap: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    background: rgba(8, 19, 15, 0.98);
    border-radius: 16px;
    padding: 12px 16px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 16px 40px rgba(0,0,0,.7);
    border: 1px solid rgba(107, 208, 140, 0.35);
  }

  body.nav-open .nav nav {
    display: flex;
  }

  .nav nav a {
    display: block;
    width: 100%;
  }
}


/* Featured statistics strip on home page */
.featured-stats {
  margin-top: 24px;
  margin-bottom: 32px;
}
.featured-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-chip {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(circle at top left, rgba(144,238,144,0.2), rgba(0,0,0,0.7));
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-number {
  font-weight: 700;
  font-size: 1.2rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Featured stories cards on home page */
.featured-links.card {
  margin-top: 32px;
}
.featured-links__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.featured-links__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.featured-card {
  border-radius: 18px;
  padding: 16px 18px;
  background: radial-gradient(circle at top left, rgba(144,238,144,0.18), rgba(0,0,0,0.8));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  border-color: rgba(144,238,144,0.45);
}
.featured-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  background: rgba(0,0,0,0.55);
  color: var(--muted);
  margin-bottom: 8px;
}
.featured-card-title {
  font-size: 1.02rem;
  margin: 0 0 6px;
}
.featured-card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.featured-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
.featured-links__more {
  margin-top: 14px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .featured-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured-links__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .featured-stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Hide nav on scroll (JS adds .nav.hidden) */
.nav.hidden {
  transform: translateY(-100%);
}
/* === Performance overrides (mobile) === */
@media (max-width: 640px) {
  .nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .badge, .category-badge { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .animate-on-scroll, .animated { transition: none !important; animation: none !important; }
}



/* Perf: click-to-load YouTube (loads iframe only after click) */
.embed .yt-lite{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  cursor:pointer;
  border-radius:20px;
  overflow:hidden;
}
.embed .yt-lite img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.05) contrast(1.05);
}
.embed .yt-play{
  width:74px;
  height:52px;
  border-radius:14px;
  background: rgba(0,0,0,.55);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  position:absolute;
}
.embed .yt-play::before{
  content:"";
  position:absolute;
  left:30px;
  top:50%;
  transform:translateY(-50%);
  width:0;height:0;
  border-left:18px solid #fff;
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
}
.embed .yt-lite:focus-visible{
  outline: 3px solid rgba(183, 242, 203, .9);
  outline-offset: 4px;
}


/* Featured stories thumbnails */
.featured-thumb{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:14px;
  margin: 10px 0 12px;
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}


/* ===== Hero actions + secondary button (2026-02-12) ===== */
.hero__actions{
  margin-top: 22px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline{
  display: inline-block;
  padding: 16px 42px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(230,242,234,.45);
  background: rgba(8,19,15,.35);
  backdrop-filter: blur(6px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn-outline:hover{
  transform: translateY(-1px);
  background: rgba(8,19,15,.5);
  border-color: rgba(125,228,157,.65);
}



/* ====== HOME: ISTAKNUTE PRIČE + TEME (2026) ====== */
.home-section{
  padding: 44px 0;
}
.home-section .container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.section-head h2{
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2.0rem);
  letter-spacing:-0.02em;
}
.section-head p{
  color: var(--muted);
  margin-top: 6px;
  max-width: 62ch;
}
.section-link{
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}
.section-link:hover{ text-decoration: underline; }

.featured-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.fcard{
  grid-column: span 6;
  display:flex;
  flex-direction:column;
  border-radius: 18px;
  overflow:hidden;
  text-decoration:none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  transform: translateZ(0);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.fcard:hover{
  transform: translateY(-3px);
  border-color: rgba(125,228,157,0.40);
  box-shadow: 0 18px 40px rgba(0,0,0,.38);
}
.fcard__img{
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.25);
}
.fcard__img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.fcard__body{
  padding: 14px 14px 16px;
  min-height: 168px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.fcard__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color: rgba(230,242,234,.75);
  font-size: .88rem;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(107,208,140,.14);
  border: 1px solid rgba(107,208,140,.22);
  color: var(--ink);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
}
.fcard h3{
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.fcard p{
  color: rgba(230,242,234,.82);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topics-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.topic-card{
  grid-column: span 4;
  border-radius: 16px;
  padding: 16px 16px 14px;
  text-decoration:none;
  background: rgba(19,48,36,.58);
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.topic-card:hover{
  transform: translateY(-2px);
  border-color: rgba(125,228,157,0.35);
  background: rgba(19,48,36,.72);
}
.topic-title{
  display:block;
  font-weight: 800;
  color: var(--ink);
  letter-spacing:-0.01em;
  margin-bottom: 6px;
}
.topic-sub{
  display:block;
  color: rgba(230,242,234,.78);
  line-height: 1.35;
  font-size: .95rem;
}

@media (max-width: 900px){
  .fcard{ grid-column: span 12; }
  .topic-card{ grid-column: span 6; }
}
@media (max-width: 560px){
  .section-head{ flex-direction: column; align-items:flex-start; }
  .topic-card{ grid-column: span 12; }
}

/* Social icons row (homepage) */
.social-row{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items:center;
}
.social-icon{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration:none;
  background: rgba(19,48,36,.55);
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  color: var(--ink);
  font-weight: 800;
}
.social-icon img{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  padding: 10px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,0.12);
  filter: brightness(0) invert(1);
}
.social-icon.yt img{ background: rgba(255,0,0,0.18); }
.social-icon.tt img{ background: rgba(0,240,255,0.14); }
.social-icon.li img{ background: rgba(10,102,194,0.18); }
.social-icon span{ letter-spacing: -0.01em; }

.social-icon:hover{
  transform: translateY(-2px);
  background: rgba(19,48,36,.72);
  border-color: rgba(255,255,255,0.18);
}

/* platform glow */
.social-icon.yt:hover{ box-shadow: 0 0 0 1px rgba(255,0,0,0.25), 0 18px 40px rgba(255,0,0,0.10); }
.social-icon.tt:hover{ box-shadow: 0 0 0 1px rgba(0,240,255,0.25), 0 18px 40px rgba(0,240,255,0.10); }
.social-icon.li:hover{ box-shadow: 0 0 0 1px rgba(10,102,194,0.25), 0 18px 40px rgba(10,102,194,0.10); }

@media (max-width: 560px){
  .social-icon{ width: 100%; justify-content:flex-start; }
}
/* ==========================
   STEP45 PREMIUM OVERRIDES
   ========================== */

/* stronger section rhythm */
.home-section{ padding: 80px 0 !important; }
.home-section:nth-of-type(even){ background: var(--bg-dark); }
.home-section:nth-of-type(odd){ background: var(--bg-darker); }

/* give cards more depth + clear hover */
.story-card,
.card,
.topic-card,
.featured-card{
  border: 1px solid var(--border-soft) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.25) !important;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.story-card:hover,
.card:hover,
.topic-card:hover,
.featured-card:hover{
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 32px rgba(0,0,0,.35) !important;
  border-color: var(--border-hover) !important;
}

/* footer polish */
.footer{ border-top: 1px solid rgba(255,255,255,.06) !important; padding: 60px 24px !important; }

/* ==========================
   STEP38 FINAL HOMEPAGE POLISH
   ========================== */
.hero{
  min-height: 68svh;
  padding: 110px 18px 84px;
}
.hero__inner{
  max-width: 760px;
}
.hero h1{
  font-size: clamp(2.7rem, 5.8vw, 4.6rem);
  line-height: 1.05;
  max-width: 11ch;
  margin-inline: auto;
}
.hero .lead{
  max-width: 40ch;
  margin-inline: auto;
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
}
.hero__actions{
  margin-top: 18px;
}
.hero__actions .btn-cta,
.hero__actions .btn-outline{
  padding: 15px 34px;
  font-size: 1rem;
}
.home-section{ padding: 56px 0 !important; }
.featured .section-head,
[aria-label="Vodiči"] .section-head{
  align-items: center;
  margin-bottom: 24px;
}
.featured .section-link,
[aria-label="Vodiči"] .section-link{
  display:inline-flex;
  align-items:center;
  border-radius: 999px;
  padding: 12px 20px;
  background: rgba(107,208,140,.14);
  border: 1px solid rgba(107,208,140,.28);
  color: var(--ink);
  text-decoration:none;
}
.featured .section-link:hover,
[aria-label="Vodiči"] .section-link:hover{
  text-decoration:none;
  background: rgba(107,208,140,.22);
}
.featured-grid{
  gap: 18px;
}
.featured-grid .fcard{
  grid-column: span 4;
}
.featured-grid .fcard__body{
  min-height: 200px;
}
.story-grid{
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.story-grid .story-card,
.story-grid .card{
  height: 100%;
}
.story-grid .story-card__content,
.story-grid .card__body{
  display:flex;
  flex-direction:column;
}
.social{
  padding-top: 34px !important;
  padding-bottom: 34px !important;
}
.social .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(19,48,36,.46);
  border: 1px solid rgba(255,255,255,.08);
}
.social .section-head{
  margin:0;
}
.social .section-head h2{
  font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem);
}
.social .section-head p{
  margin-top:4px;
}
.social-row{
  justify-content:flex-end;
}
.social-icon{
  padding: 10px 12px;
}
.social-icon img{
  width: 40px;
  height: 40px;
}
.section-inicijativa{
  margin-top: 20px;
}
.inicijativa-wrap{
  gap: 28px;
  padding: 18px;
  align-items:center;
}
.inicijativa-media{
  flex: 0 0 34%;
}
.inicijativa-content h2{
  font-size: clamp(2rem, 2vw + 1rem, 3.1rem);
}
.inicijativa-content p{
  max-width: 52ch;
}
.footer{
  padding: 34px 24px !important;
}
.footer-inner{
  max-width: 1120px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.footer-note{
  margin-left:auto;
}
@media (max-width: 980px){
  .featured-grid .fcard,
  .story-grid > *{
    grid-column: span 6;
  }
  .story-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .social .container{
    flex-direction:column;
    align-items:flex-start;
  }
  .social-row{
    justify-content:flex-start;
  }
}
@media (max-width: 700px){
  .hero{
    min-height: 58svh;
    padding: 92px 16px 66px;
  }
  .hero h1{
    font-size: clamp(2.3rem, 10vw, 3.4rem);
    max-width: 12ch;
  }
  .featured-grid .fcard,
  .story-grid > *{
    grid-column: span 12;
  }
  .story-grid{
    grid-template-columns: 1fr;
  }
  .featured .section-head,
  [aria-label="Vodiči"] .section-head{
    align-items:flex-start;
  }
  .social .container{
    padding:16px;
  }
  .inicijativa-wrap{
    padding: 14px;
  }
  .footer-note{
    margin-left:0;
  }
}


/* ==========================
   STEP39 FINAL TECH CLEANUP
   ========================== */
.featured .section-head,
[aria-label="Vodiči"] .section-head{
  align-items:center;
}
.featured .section-head > div,
[aria-label="Vodiči"] .section-head > div{
  flex:1 1 auto;
}
.featured .section-link,
[aria-label="Vodiči"] .section-link{
  margin-left:auto;
  flex:0 0 auto;
}
.featured-grid .fcard__body{
  min-height: 184px;
}
.featured-grid .fcard p{
  -webkit-line-clamp: 2;
}
#homeGuides.story-grid{
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  align-items: stretch;
}
#homeGuides .story-card{
  display:flex;
  flex-direction:column;
  min-height:100%;
  overflow:hidden;
  border-radius:18px;
}
#homeGuides .story-card__thumb{
  display:block;
  aspect-ratio: 16 / 9;
  overflow:hidden;
}
#homeGuides .story-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
#homeGuides .story-card__body{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height: 268px;
  padding: 14px 16px 16px;
}
#homeGuides .story-card__kicker{
  color: rgba(230,242,234,.78);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
}
#homeGuides .story-card__title{
  font-size: 1.05rem;
  line-height: 1.24;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#homeGuides .story-card__desc{
  color: rgba(230,242,234,.82);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#homeGuides .story-card__meta{
  margin-top:auto;
}
.social{
  padding-top: 26px !important;
  padding-bottom: 26px !important;
}
.social .container{
  padding: 14px 18px;
}
.social-icon{
  padding: 9px 12px;
}
.section-inicijativa{
  margin-top: 10px;
}
.inicijativa-content p{
  max-width: 44ch;
}
@media (max-width: 980px){
  #homeGuides.story-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 700px){
  #homeGuides.story-grid{
    grid-template-columns: 1fr;
  }
  #homeGuides .story-card__body{
    min-height: auto;
  }
}

/* ==========================
   STEP103 HOME HERO + STARTER FLOW
   ========================== */
.hero__mini-links{
  margin-top: 18px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
}
.hero__mini-links a{
  display:inline-flex;
  align-items:center;
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(230,242,234,.96);
  background: rgba(8,19,15,.38);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  font-size: .94rem;
  font-weight: 650;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.hero__mini-links a:hover{
  transform: translateY(-1px);
  border-color: rgba(125,228,157,.45);
  background: rgba(8,19,15,.56);
  text-decoration:none;
}

.home-quickstart{
  padding-top: 22px !important;
}
.stats-strip{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:14px;
  margin-bottom: 24px;
}
.stat-card{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19,48,36,.74), rgba(19,48,36,.52));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
}
.stat-card strong{
  font-size: clamp(1.7rem, 1.2rem + 1vw, 2.4rem);
  line-height: 1;
  color: var(--accent-bright);
  letter-spacing: -0.03em;
}
.stat-card span{
  color: rgba(230,242,234,.86);
  font-weight: 600;
}
.quickstart-panel{
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 36px rgba(0,0,0,.24);
}
.quickstart-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:16px;
}
.quickstart-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height: 100%;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(19,48,36,.55);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--ink);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.quickstart-card:hover{
  transform: translateY(-3px);
  border-color: rgba(125,228,157,.34);
  background: rgba(19,48,36,.72);
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
  text-decoration:none;
}
.quickstart-card__eyebrow{
  color: rgba(230,242,234,.72);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .74rem;
  font-weight: 700;
}
.quickstart-card h3{
  font-size: 1.08rem;
  line-height: 1.24;
  color: var(--ink);
}
.quickstart-card p{
  color: rgba(230,242,234,.82);
  line-height: 1.5;
}
.quickstart-card__cta{
  margin-top:auto;
  color: var(--accent-bright);
  font-weight: 700;
}

#homeLatestStories.story-grid{
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  align-items: stretch;
}
#homeLatestStories .story-card{
  display:flex;
  flex-direction:column;
  min-height:100%;
  overflow:hidden;
  border-radius:18px;
}
#homeLatestStories .story-card__thumb{
  display:block;
  aspect-ratio: 16 / 9;
  overflow:hidden;
}
#homeLatestStories .story-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
#homeLatestStories .story-card__body{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height: 272px;
  padding: 14px 16px 16px;
}
#homeLatestStories .story-card__meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color: rgba(230,242,234,.75);
  font-size: .86rem;
}
#homeLatestStories .story-card__title{
  font-size: 1.04rem;
  line-height: 1.24;
  color: var(--ink);
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
#homeLatestStories .story-card__desc{
  color: rgba(230,242,234,.82);
  line-height: 1.5;
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
#homeLatestStories .story-card__meta{
  margin-top:auto;
}

.inicijativa-actions{
  margin-top: 18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.btn-cta--small,
.btn-outline--small{
  padding: 12px 22px !important;
  font-size: .96rem !important;
}

@media (max-width: 1100px){
  .quickstart-grid,
  #homeLatestStories.story-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 760px){
  .stats-strip{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .quickstart-panel{
    padding: 16px;
  }
}
@media (max-width: 700px){
  #homeLatestStories.story-grid,
  .quickstart-grid{
    grid-template-columns: 1fr;
  }
  #homeLatestStories .story-card__body{
    min-height: auto;
  }
}
@media (max-width: 560px){
  .hero__mini-links a{
    width: 100%;
    justify-content:center;
  }
  .stats-strip{
    grid-template-columns: 1fr;
  }
}
