/*
Theme Name:   DV Panda Child
Theme URI:    https://staging.dv-panda.hr
Description:  Custom child theme for Dječji Vrtić Panda
Author:       DV Panda
Template:     astra
Version:      2.0.0
Text Domain:  dv-panda-child
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand – yellow */
  --yellow:         #FFC82C;
  --yellow-dark:    #E6A800;
  --yellow-light:   #FFF6DB;

  /* Brand – purple */
  --purple:         #94489B;
  --purple-dark:    #7A3A80;
  --purple-light:   #F2EAF3;

  /* Legacy aliases — existing HTML class names stay working */
  --mint:           #FFC82C;
  --mint-dark:      #E6A800;
  --mint-light:     #FFF6DB;
  --peach:          #94489B;
  --peach-dark:     #7A3A80;
  --peach-light:    #F2EAF3;
  --lavender:       #94489B;
  --lavender-dark:  #7A3A80;
  --lavender-light: #F2EAF3;

  /* Neutrals */
  --white:          #ffffff;
  --bg-page:        #ffffff;
  --bg-section:     #f8f8f8;
  --text-dark:      #1d1d2e;
  --text-medium:    #555560;
  --text-light:     #9999aa;
  --border:         #e5e5e5;

  /* Typography */
  --font-heading:   'Poppins', sans-serif;
  --font-body:      'Nunito', sans-serif;

  /* Radius — refined, professional */
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-full:    9999px;

  /* Shadows */
  --shadow-card:    0 2px 16px rgba(0,0,0,0.07);
  --shadow-hover:   0 8px 28px rgba(0,0,0,0.12);
  --shadow-btn:     0 2px 8px rgba(0,0,0,0.1);
  --shadow-btn-hover: 0 4px 16px rgba(0,0,0,0.16);

  --transition:     all 0.2s ease;
}

/* ============================================================
   BASE RESET & GLOBALS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin-top: 0; margin-bottom: 1rem; }

a {
  color: var(--purple);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--purple-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5rem; }

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

.section {
  padding: 80px 0;
  position: relative;
}

.section--sm { padding: 48px 0; }
.section--lg { padding: 100px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.text-center { text-align: center; }
.text-left   { text-align: left; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 16px;
}
.badge--mint     { background: var(--yellow-light);  color: var(--yellow-dark); }
.badge--peach    { background: var(--purple-light);  color: var(--purple-dark); }
.badge--lavender { background: var(--purple-light);  color: var(--purple-dark); }
.badge--yellow   { background: var(--yellow-light);  color: var(--yellow-dark); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  text-decoration: none;
}
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--yellow);
  color: var(--text-dark);
  border-color: var(--yellow-dark);
}
.btn--primary:hover {
  background: var(--yellow-dark);
  color: var(--text-dark);
}

.btn--secondary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple-dark);
}
.btn--secondary:hover { background: var(--purple-dark); color: #fff; }

.btn--lavender {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple-dark);
}
.btn--lavender:hover { background: var(--purple-dark); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
  box-shadow: none;
}
.btn--outline:hover {
  background: var(--text-dark);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn--sm { padding: 8px 18px; font-size: 0.85rem; }
.btn--lg { padding: 14px 34px; font-size: 1.05rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--yellow);
}

.card--mint     { background: var(--white); border-color: var(--border); }
.card--peach    { background: var(--white); border-color: var(--border); }
.card--lavender { background: var(--white); border-color: var(--border); }
.card--yellow   { background: var(--white); border-color: var(--border); }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  background: var(--yellow-light);
}
.card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.card__text {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo img {
  height: 48px;
  width: auto;
}

/* Main Navigation */
.main-nav { display: flex; align-items: center; }

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
  background: var(--yellow-light);
  color: var(--yellow-dark);
  text-decoration: none;
}

/* Dropdown arrow */
.nav-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  transition: transform 0.2s ease;
}
.nav-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease-out;
  z-index: 100;
}
.nav-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li a {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.sub-menu li a:hover {
  background: var(--yellow-light);
  color: var(--yellow-dark);
  text-decoration: none;
  padding-left: 18px;
}

/* Header CTA */
.header-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-medium);
}
.header-contact a { color: var(--purple); font-weight: 700; }
.header-contact a:hover { color: var(--purple-dark); }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: var(--yellow-light);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}
.hero::after { display: none; }

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.hero-content h1 span { color: var(--purple); }

.hero-content p {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4/3;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  background: var(--bg-section);
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.stat-item {
  text-align: center;
  padding: 24px 12px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-item:nth-child(odd)  { border-top: 3px solid var(--yellow); }
.stat-item:nth-child(even) { border-top: 3px solid var(--purple); }
.stat-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item:nth-child(odd)  .stat-value { color: var(--yellow-dark); }
.stat-item:nth-child(even) .stat-value { color: var(--purple); }
.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.quote-section {
  background: var(--purple-light);
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid rgba(148,72,155,0.15);
  border-bottom: 1px solid rgba(148,72,155,0.15);
  position: relative;
}
.quote-section blockquote {
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.5;
  position: relative;
  padding: 0 20px;
  border: none;
  letter-spacing: 0.01em;
}
.quote-section blockquote::before {
  content: '"';
  font-size: 5rem;
  color: var(--purple);
  line-height: 0;
  position: absolute;
  top: 28px; left: -10px;
  font-family: Georgia, serif;
  opacity: 0.4;
}
.quote-section cite {
  display: block;
  margin-top: 16px;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 700;
  color: var(--purple-dark);
}

/* ============================================================
   PROGRAMS SECTION
   ============================================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.program-card:nth-child(odd)::before  { background: var(--yellow); }
.program-card:nth-child(even)::before { background: var(--purple); }
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--yellow);
}
.program-card:nth-child(1) { border-color: var(--border); }
.program-card:nth-child(2) { border-color: var(--border); }
.program-card:nth-child(3) { border-color: var(--border); }
.program-card:nth-child(4) { border-color: var(--border); }
.program-card:nth-child(5) { border-color: var(--border); }

.program-card__icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.program-card:nth-child(odd) .program-card__icon  { background: var(--yellow-light); }
.program-card:nth-child(even) .program-card__icon { background: var(--purple-light); }

.program-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.program-card__desc {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-item:hover {
  transform: scale(1.03);
  border-color: var(--yellow);
  box-shadow: var(--shadow-hover);
}
.gallery-item img {
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  z-index: 10;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.35); }
@media (max-width: 480px) {
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-prev,
  .lightbox-next { font-size: 2rem; padding: 8px 12px; }
}

/* ============================================================
   DOCUMENTS
   ============================================================ */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 10px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.doc-item:hover {
  border-color: var(--yellow);
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}
.doc-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.doc-icon--pdf  { background: #fff0f0; }
.doc-icon--doc  { background: #f0f4ff; }
.doc-icon--docx { background: #f0f4ff; }
.doc-info { flex: 1; }
.doc-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.doc-meta { font-size: 0.8rem; color: var(--text-light); }
.doc-download { flex-shrink: 0; }

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.video-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--white);
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--yellow);
}
.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}
.video-card__title {
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.contact-info__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--yellow-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contact-info__value {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.contact-info__value a { color: var(--purple); }
.contact-info__value a:hover { color: var(--purple-dark); }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 36px;
}
.contact-form-wrap h3 {
  font-family: var(--font-heading);
  margin-bottom: 24px;
  font-size: 1.35rem;
  font-weight: 600;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-medium);
  margin-bottom: 5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fafafa;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--yellow-light);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--bg-section);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 80px; height: 4px;
  background: var(--yellow);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}
.page-hero .breadcrumb {
  font-size: 0.82rem;
  color: var(--text-medium);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-hero .breadcrumb a { color: var(--purple); font-weight: 600; }
.page-hero .breadcrumb span { color: var(--text-light); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.about-image img { width: 100%; height: auto; }

/* ============================================================
   EU PROJECT
   ============================================================ */
.eu-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 40px;
}
.eu-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}
.eu-logos img { height: 60px; width: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1d1d2e;
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col {}
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-desc { font-size: 0.88rem; line-height: 1.7; opacity: 0.65; }

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: '→';
  color: var(--yellow);
  font-size: 0.8rem;
}
.footer-links a:hover { color: var(--yellow); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}
.footer-contact-item .icon { color: var(--yellow); font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.footer-contact-item a { color: rgba(255,255,255,0.8); }
.footer-contact-item a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.5;
}

/* ============================================================
   SUB-PAGE CARDS
   ============================================================ */
.subpage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.subpage-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}
.subpage-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.subpage-card:nth-child(odd)::before  { background: var(--yellow); }
.subpage-card:nth-child(even)::before { background: var(--purple); }
.subpage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--yellow);
  text-decoration: none;
  color: inherit;
}
.subpage-card:nth-child(1) { border-color: var(--border); }
.subpage-card:nth-child(2) { border-color: var(--border); }
.subpage-card:nth-child(3) { border-color: var(--border); }
.subpage-card:nth-child(4) { border-color: var(--border); }
.subpage-card:nth-child(5) { border-color: var(--border); }
.subpage-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}
.subpage-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.subpage-card__desc { font-size: 0.88rem; color: var(--text-medium); }

/* ============================================================
   WORKSHOPS LIST
   ============================================================ */
.workshop-list { list-style: none; padding: 0; margin: 0; }
.workshop-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 22px;
  margin-bottom: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.workshop-item:hover { transform: translateX(4px); border-color: var(--yellow); }
.workshop-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  color: var(--text-dark);
}
.workshop-item:nth-child(odd) .workshop-num  { background: var(--yellow-light); }
.workshop-item:nth-child(even) .workshop-num { background: var(--purple-light); }
.workshop-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.workshop-desc { font-size: 0.88rem; color: var(--text-medium); margin: 0; }

/* ============================================================
   CONTENT PROSE
   ============================================================ */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; margin-bottom: 14px; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; }
.prose p  { margin-bottom: 1.1rem; color: var(--text-medium); }
.prose ul, .prose ol { color: var(--text-medium); margin-bottom: 1rem; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text-dark); }
.prose a { color: var(--purple); font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 40px; }
  .hero::before { display: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-image { order: -1; }
  .hero-content h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0 0;
    background: white;
    padding: 20px;
    overflow-y: auto;
    gap: 2px;
    z-index: 999;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .main-nav.open .nav-menu > li > a { font-size: 1rem; padding: 12px 16px; }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--yellow-light);
    border-radius: var(--radius-sm);
    display: none;
    padding: 6px 8px;
    margin-top: 4px;
  }
  .nav-menu > li.open > .sub-menu { display: block; }
  .header-contact { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 1.6rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Programs page image layouts — stack on mobile */
@media (max-width: 768px) {
  /* quality section: text + side photo */
  [style*="grid-template-columns:1fr 340px"],
  [style*="grid-template-columns:340px 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* approach cards with photos */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* 3-photo strip */
  [style*="grid-template-columns:1fr 1.4fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    height: auto !important;
  }
  [style*="grid-template-columns:1fr 1.4fr 1fr"] > div:last-child {
    display: none;
  }
}

/* ============================================================
   JELOVNIK SECTION
   ============================================================ */
.jelovnik-section {
  position: relative;
  background-image: url("https://staging.dv-panda.hr/wp-content/uploads/jelovnik-bg.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 110px 0 120px;
  text-align: center;
  overflow: hidden;
}
.jelovnik-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}
.jelovnik-section .container {
  position: relative;
  z-index: 2;
}
.jelovnik-section h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.jelovnik-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Wave dividers blending jelovnik into adjacent sections */
.jelo-wave {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: 64px;
  pointer-events: none;
  z-index: 1;
  line-height: 0;
}
.jelo-wave--top { top: 0; }
.jelo-wave--bottom { bottom: 0; }
.jelo-wave svg { width: 100%; height: 100%; display: block; }

/* EU Banner */
.eu-banner {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.eu-banner-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.eu-banner-inner img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.eu-banner-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}

@media (max-width: 768px) {
  .jelovnik-section { padding: 80px 0 90px; }
  .jelo-wave { height: 40px; }
}

/* ============================================================
   ELEMENTOR NATIVE WIDGET BRIDGE  v2
   Covers only things that cannot be set in Elementor settings.
   ============================================================ */

/* ── Hero: image column fills with aspect-ratio cover ── */
.hero-image > .elementor-widget-wrap { padding: 0 !important; }
.hero-image .elementor-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hover); aspect-ratio: 4/3; }
.hero-image .elementor-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) {
  .hero-image.elementor-column { order: -1; }
  .hero-content.elementor-column { order: 0; }
  .hero-image .elementor-image { aspect-ratio: 4/3; }
}

/* ── About: image column ── */
.about-image > .elementor-widget-wrap { padding: 0 !important; }
.about-image .elementor-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hover); }
.about-image .elementor-image img { width: 100%; height: auto; display: block; }

/* ── Stat items — each column's widget-wrap is the white card ── */
.stat-item > .elementor-widget-wrap {
  padding: 24px 12px !important;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
}
.stat-item:hover > .elementor-widget-wrap { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.stat-odd  > .elementor-widget-wrap { border-top: 3px solid var(--yellow) !important; }
.stat-even > .elementor-widget-wrap { border-top: 3px solid var(--purple) !important; }
.stat-odd  .stat-value { color: var(--yellow-dark) !important; }
.stat-even .stat-value { color: var(--purple) !important; }

/* ── CTA section: gradient background ── */
.cta-section.elementor-section { background: linear-gradient(135deg, #FFF6DB 0%, #F2EAF3 100%) !important; }

/* ── EU banner: small logo + long text side by side ── */
.eu-logo-col > .elementor-widget-wrap { align-items: center !important; justify-content: center !important; }
.eu-logo-col .elementor-image img { height: 52px; width: auto; }
.eu-text-col p { margin: 0; font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

/* ── Jelovnik: content needs z-index above ::before overlay ── */
.jelovnik-section .elementor-container { position: relative; z-index: 2; }
.jelovnik-section .elementor-widget-wrap { position: relative; z-index: 2; }

/* ── Programs page ── */
.prog-hero-img .elementor-image img {
  width: 100%; height: 380px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); display: block;
}
.prog-side-img > .elementor-widget-wrap { padding: 0 !important; }
.prog-side-img .elementor-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); height: 100%; }
.prog-side-img .elementor-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Approach cards: card border wraps the whole column */
.approach-card > .elementor-widget-wrap {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-card) !important;
  overflow: hidden !important;
  padding: 0 !important;
}
/* Image at top fills card width */
.approach-img .elementor-image img { width: 100%; height: 180px; object-fit: cover; object-position: top; display: block; }
/* Text content inside card gets padding */
.approach-card .elementor-widget-heading,
.approach-card .elementor-widget-text-editor { padding: 0 24px; }
.approach-card .elementor-widget-heading { padding-top: 20px; }

/* Photo strip */
.strip-img .elementor-image img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); width: 100%; height: 240px; object-fit: cover; display: block; }
.strip-img--mid .elementor-image img { box-shadow: var(--shadow-hover); }

/* Goals section image */
.goals-img .elementor-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; height: auto; display: block; }

/* ── Inner section flex-wrap so program/activity grids wrap on mobile ── */
.elementor-inner-section > .elementor-container { flex-wrap: wrap !important; }

/* ── Mobile responsive for 2-col sections ── */
@media (max-width: 768px) {
  .prog-side-img.elementor-column { display: none; }
}

/* ============================================================
   ELEMENTOR NATIVE WIDGET BRIDGE  v2
   Only covers things that cannot be set in Elementor settings:
   pseudo-elements, widget-wrap card styles for stat columns,
   image sizing inside columns, and the CTA gradient.
   ============================================================ */

/* ── hero-content / hero-image col padding is set in Elementor.
   These rules only handle the image aspect-ratio fill.  ── */
.hero-image > .elementor-widget-wrap { padding: 0 !important; }
.hero-image .elementor-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hover); aspect-ratio: 4/3; }
.hero-image .elementor-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .hero-image.elementor-column { order: -1; }
  .hero-content.elementor-column { order: 0; }
}

/* ── About image column ── */
.about-image > .elementor-widget-wrap { padding: 0 !important; }
.about-image .elementor-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hover); }
.about-image .elementor-image img { width: 100%; height: auto; display: block; }

/* ── Stat items — each column's widget-wrap IS the card ── */
.stat-item > .elementor-widget-wrap {
  padding: 24px 12px !important;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  justify-content: center;
  align-items: center;
  text-align: center;
}
.stat-item:hover > .elementor-widget-wrap { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.stat-odd  > .elementor-widget-wrap { border-top: 3px solid var(--yellow); }
.stat-even > .elementor-widget-wrap { border-top: 3px solid var(--purple); }
.stat-odd  .stat-value { color: var(--yellow-dark); }
.stat-even .stat-value { color: var(--purple); }

/* ── CTA gradient (can't be set as gradient in Elementor Free section settings) ── */
.cta-section.elementor-section { background: linear-gradient(135deg, #FFF6DB 0%, #F2EAF3 100%) !important; }

/* ── EU banner: flex image + text ── */
.eu-logo-col > .elementor-widget-wrap { align-items: center; justify-content: center; }
.eu-logo-col .elementor-image img { height: 52px; width: auto; }
.eu-text-col p { margin: 0; font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

/* ── Programs page images ── */
.prog-hero-img .elementor-image img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); display: block; }
.prog-side-img > .elementor-widget-wrap { padding: 0 !important; }
.prog-side-img .elementor-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; height: 100%; object-fit: cover; }
.approach-card > .elementor-widget-wrap { border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-card); overflow: hidden; padding: 0 0 24px 0 !important; }
.approach-img .elementor-image img { width: 100%; height: 180px; object-fit: cover; object-position: top; display: block; }
.strip-img .elementor-image img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); width: 100%; height: 240px; object-fit: cover; display: block; }
.strip-img--mid .elementor-image img { box-shadow: var(--shadow-hover); }
.goals-img .elementor-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; height: auto; display: block; }

/* ── Inner section containers (programs / activities / verified grids) ── */
.elementor-section.elementor-inner-section .elementor-container { flex-wrap: wrap; }

/* ── Jelovnik: widgets need z-index above ::before overlay ── */
.jelovnik-section > .elementor-container { position: relative; z-index: 2; }
.jelovnik-section > .elementor-container .elementor-widget-wrap { position: relative; z-index: 2; }
