/* ===== Age timeline (group by age) ===== */
.age-timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
}

.age-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: linear-gradient(180deg,
    rgba(77,101,249,0.25) 0%,
    rgba(255,72,128,0.30) 50%,
    rgba(77,101,249,0.25) 100%);
  border-radius: 4px;
  z-index: 0;
}

.tl-divider {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 1.4rem 0 0.6rem;
}

.tl-divider-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  box-shadow: 0 4px 14px rgba(77,101,249,0.15);
  font-family: 'Montserrat', sans-serif;
}

.tl-divider-inner i { font-size: 1.1rem; }
.tl-divider-title { font-weight: 700; font-size: 0.95rem; line-height: 1.1; }
.tl-divider-sub { font-size: 0.78rem; color: #6c757d; line-height: 1.1; margin-top: 2px; }

.tl-divider-preschool .tl-divider-inner {
  border-color: var(--bs-secondary);
  color: var(--bs-secondary);
  background: linear-gradient(135deg, #fff 0%, #fff5f8 100%);
}

.tl-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  grid-auto-flow: dense;
  align-items: center;
  margin: 0.5rem 0;
}

.tl-dot {
  grid-column: 2;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50% 20% / 10% 40%;
  background: linear-gradient(135deg, #eaf0ff, #ffe7ee);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(77,101,249,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.tl-row.tl-preschool .tl-dot {
  border-color: var(--bs-secondary);
  background: linear-gradient(135deg, #ffe7ee, #fff5f8);
}

.tl-card {
  background: #fff;
  border: 2px solid #eef1ff;
  border-radius: 22px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 6px 18px rgba(77, 101, 249, 0.10);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.tl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(77, 101, 249, 0.18);
  border-color: var(--bs-primary);
}

.tl-row-left .tl-card {
  grid-column: 1;
  text-align: right;
  margin-right: 0.5rem;
}
.tl-row-right .tl-card {
  grid-column: 3;
  text-align: left;
  margin-left: 0.5rem;
}

/* Connector arrow from card to dot */
.tl-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid #eef1ff;
  transform: translateY(-50%) rotate(45deg);
}
.tl-row-left .tl-card::after {
  right: -8px;
  border-left: none;
  border-bottom: none;
}
.tl-row-right .tl-card::after {
  left: -8px;
  border-right: none;
  border-top: none;
}

.tl-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  margin-bottom: 0.15rem;
  white-space: nowrap;
}

.tl-row-left .tl-card-head { justify-content: flex-end; flex-direction: row-reverse; }
.tl-row-right .tl-card-head { flex-direction: row; }

.tl-name {
  font-family: 'Shantell Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--bs-primary);
  line-height: 1.1;
}

.tl-age {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--bs-primary);
  background: rgba(77,101,249,0.10);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.tl-row.tl-preschool .tl-name { color: var(--bs-secondary); }
.tl-row.tl-preschool .tl-age {
  color: var(--bs-secondary);
  background: rgba(255,72,128,0.12);
}

.tl-dob {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  color: #6c757d;
}

.tl-dob i { color: var(--bs-secondary); margin-right: 0.3rem; }

@media (max-width: 720px) {
  .age-timeline::before {
    left: 32px;
    transform: none;
  }
  .tl-row {
    grid-template-columns: 64px 1fr;
    gap: 0.5rem;
  }
  .tl-dot { grid-column: 1; }
  .tl-row-left .tl-card,
  .tl-row-right .tl-card {
    grid-column: 2;
    text-align: left;
    margin: 0;
  }
  .tl-row-left .tl-card-head { justify-content: flex-start; }
  .tl-card::after {
    left: -8px;
    right: auto;
    border-right: none;
    border-top: none;
    border-left: 2px solid #eef1ff;
    border-bottom: 2px solid #eef1ff;
  }
  .tl-divider { justify-content: flex-start; padding-left: 12px; }
}

/* ===== Feature card image variant ===== */
.feature-card.has-image {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card.has-image .feature-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #eaf0ff 0%, #ffe7ee 100%);
  background-image: var(--card-img, none), linear-gradient(135deg, #eaf0ff 0%, #ffe7ee 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 2px solid #eef1ff;
}

.feature-card.has-image .feature-image span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--bs-primary);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(77, 101, 249, 0.15);
}

.feature-card.has-image .feature-image span::before {
  content: "📷";
  font-size: 0.9rem;
}

.feature-card.has-image .feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Make <a> feature-cards behave like the <div> ones */
a.feature-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
a.feature-card:hover { text-decoration: none; color: inherit; }

a.feature-card.is-link h6 { color: var(--bs-primary); }

.feature-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #d97312;
  transition: gap .2s ease, color .2s ease;
}
.feature-cta i { font-size: 0.7rem; transition: transform .2s ease; }
a.feature-card:hover .feature-cta { gap: 0.6rem; color: #b54f0a; }
a.feature-card:hover .feature-cta i { transform: translateX(3px); }

/* All feature cards — slightly bigger images, less body padding */
.features-grid-top { margin-bottom: 1.5rem; }
.features-grid .feature-card.has-image .feature-image { aspect-ratio: 4 / 5; }
.features-grid .feature-card-body { padding: 0.15rem 0.75rem 0.35rem !important; }
.features-grid .feature-card-body h6 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-top: 0.2rem !important;
  margin-bottom: 0 !important;
}
.features-grid .feature-card .feature-icon {
  width: 50px;
  height: 50px;
  font-size: 1.15rem;
  margin-bottom: 0.25rem !important;
}
.features-grid .feature-card.has-image .feature-cta { margin-top: 0.3rem; }

/* Widen the homepage About container on large screens so the 8 feature cards have more room.
   Uses :has — gracefully ignored on browsers without support (cards stay at default width). */
@media (min-width: 1200px) {
  .container:has(> .row > .col-lg-12 > .features-grid),
  .container:has(.features-grid-top) {
    max-width: 1520px;
  }
}

/* Slightly tighter padding on small viewports so cards stay readable */
@media (max-width: 575px) {
  .features-grid .feature-card-body { padding: 0.5rem 0.75rem 1rem !important; }
  .features-grid .feature-card-body h6 { font-size: 0.95rem; }
}

.feature-card.has-image .feature-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-card.has-image .feature-icon {
  width: 56px;
  height: 56px;
  font-size: 22px;
  margin-top: -28px !important;
  border: 4px solid #fff;
  background: linear-gradient(135deg, var(--bs-primary), #6b7ffb);
}

.feature-card.has-image:hover .feature-icon {
  transform: rotate(-6deg) scale(1.05);
  background: linear-gradient(135deg, var(--bs-secondary), #ff7aa2);
}

.feature-card.has-image h6 {
  font-size: 0.95rem;
  margin-top: 0.6rem !important;
  margin-bottom: 0.5rem !important;
  min-height: auto;
  padding: 0 0.3rem;
}

@media (max-width: 991px) {
  .feature-card.has-image .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
    margin-top: -24px !important;
  }
}


/* ===== Availability CTA (enrollment top) ===== */
.availability-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 820px;
  background: linear-gradient(135deg, #fff 0%, #f4f7ff 100%);
  border: 2px solid rgba(77,101,249,0.15);
  border-radius: 28px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 28px rgba(77,101,249,0.10);
  flex-wrap: wrap;
}

.availability-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 50% 20% / 10% 40%;
  background: linear-gradient(135deg, var(--bs-primary), #6b7ffb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(77,101,249,0.25);
}

.availability-cta-body {
  flex: 1;
  min-width: 220px;
}

.availability-cta-title {
  font-family: 'Shantell Sans', sans-serif;
  font-weight: 700;
  color: var(--bs-primary);
  font-size: 1.25rem;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.availability-cta-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  color: #495057;
  line-height: 1.4;
}

.availability-cta-text strong { color: var(--bs-secondary); }

.availability-cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--bs-secondary);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255,72,128,0.25);
}

.availability-cta-btn:hover {
  background: #ff2e6d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255,72,128,0.35);
}

@media (max-width: 575px) {
  .availability-cta { padding: 1rem; gap: 0.9rem; }
  .availability-cta-btn { width: 100%; justify-content: center; }
}

/* Enrollment documents — two PDF cards below the form */
.docs-card {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 2px solid rgba(77, 101, 249, 0.16);
  border-radius: 22px;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 12px 28px rgba(77, 101, 249, 0.10);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.docs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(77, 101, 249, 0.16);
  border-color: rgba(77, 101, 249, 0.32);
}

.docs-card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50% 20% / 10% 40%;
  background: linear-gradient(135deg, var(--bs-primary), #6b7ffb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 6px 16px rgba(77, 101, 249, 0.25);
}

.docs-card-icon--alt {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28);
}

.docs-card-body { flex: 1; min-width: 0; }

.docs-card-body h5 {
  font-family: 'Shantell Sans', sans-serif;
  color: #2c3354;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.docs-card-body p {
  color: #5a6478;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.docs-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(77, 101, 249, 0.08);
  color: var(--bs-primary);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.docs-card-link:hover {
  background: var(--bs-primary);
  color: #fff;
}

@media (max-width: 575px) {
  .docs-card { flex-direction: column; padding: 1.2rem; }
  .docs-card-icon { width: 48px; height: 48px; }
  .docs-card-link { width: 100%; justify-content: center; }
}

/* Card-style checkboxes used at the bottom of the enrollment form
   (first choice + privacy consent) — same shape, different accent. */
.form-check-card {
  background: #fff;
  border: 1.5px solid rgba(77, 101, 249, 0.20);
  border-radius: 14px;
  padding: 0.95rem 1.1rem 0.95rem 2.7rem;
  transition: border-color 0.18s, background 0.18s;
}

.form-check-card .form-check-input {
  margin-left: -1.7rem;
  margin-top: 0.25rem;
  width: 1.15rem;
  height: 1.15rem;
  cursor: pointer;
}

.form-check-card .form-check-label {
  cursor: pointer;
  line-height: 1.4;
}

.form-check-card .form-check-label strong {
  color: #2c3354;
  font-size: 0.96rem;
  display: inline;
}

.form-check-card .form-check-card-sub {
  display: block;
  font-size: 0.82rem;
  color: #6c757d;
  margin-top: 0.3rem;
  line-height: 1.45;
}

.form-check-card .form-check-card-sub a,
.form-check-card .form-check-label a {
  color: var(--bs-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-check-card .form-check-card-sub a:hover,
.form-check-card .form-check-label a:hover {
  color: #2a3eb6;
}

.form-check-card .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

/* Highlight variant — warm amber for "Zvonček nam je prvi izbor" */
.form-check-card--highlight {
  background: rgba(255, 198, 80, 0.10);
  border-color: rgba(217, 119, 6, 0.32);
}

.form-check-card--highlight .form-check-label strong {
  color: #b45309;
}

.form-check-card--highlight .form-check-input:checked {
  background-color: #f59e0b;
  border-color: #f59e0b;
}

/* OPEN variant — visually warmer and more inviting (1+ slobodno mjesto) */
.availability-cta--open {
  background: linear-gradient(135deg, #fffaf0 0%, #fff3d6 100%);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.14);
}

.availability-cta--open .availability-cta-icon {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.30);
}

.availability-cta--open .availability-cta-title {
  color: #b45309;
}


/* ===== Anonymized timeline overrides ===== */
.tl-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: 0.1rem;
}

.tl-row.tl-preschool .tl-meta { color: #b54469; }

.tl-name {
  letter-spacing: 1px;
}

/* Make sure FA icons in divider chips & pills sit on the same baseline as the text */
.tl-divider-inner {
  align-items: center;
}

.tl-divider-inner i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

.tl-divider-inner > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

/* Pills above the timeline */
.group-summary .pill {
  align-items: center;
  line-height: 1;
}

/* ===== Kids grid (Naša skupina) ===== */
.kids-section {
  position: relative;
}

.kids-group-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2rem 0 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px dashed rgba(77,101,249,0.18);
}

.kids-group-header .kgh-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bs-primary), #6b7ffb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(77,101,249,0.25);
  flex-shrink: 0;
}

.kids-group-header.is-preschool .kgh-icon {
  background: linear-gradient(135deg, #ffb14a, #ff8e3c);
  box-shadow: 0 6px 16px rgba(255,142,60,0.30);
}

.kids-group-header.is-jaslice .kgh-icon {
  background: linear-gradient(135deg, #6cd4b0, #3eb38f);
  box-shadow: 0 6px 16px rgba(62,179,143,0.25);
}

.kids-group-header h3 {
  font-family: 'Shantell Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bs-primary);
  margin: 0;
  line-height: 1.1;
}

.kids-group-header.is-preschool h3 { color: #d97312; }
.kids-group-header.is-jaslice h3 { color: #2e8a6b; }

.kids-group-header small {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  color: #6c757d;
  margin-top: 2px;
}

.kids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.kid-card {
  --kid-tint: #6b8aff;
  --kid-bg: #eef3ff;
  position: relative;
  background: #fff;
  border: 2px solid var(--kid-bg);
  border-radius: 22px;
  padding: 1rem 0.8rem 0.9rem;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}

.kid-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 50%;
  background: linear-gradient(180deg, var(--kid-bg) 0%, transparent 100%);
  z-index: 0;
}

.kid-card.is-girl {
  --kid-tint: #ff5e92;
  --kid-bg: #ffe6ee;
}

.kid-card.is-boy {
  --kid-tint: #4d70ff;
  --kid-bg: #e3ebff;
}

.kid-card:hover {
  transform: translateY(-3px);
  border-color: var(--kid-tint);
  box-shadow: 0 12px 24px rgba(77,101,249,0.15);
}

.kid-symbol {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--kid-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.kid-name {
  position: relative;
  z-index: 1;
  font-family: 'Shantell Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--kid-tint);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.kid-age {
  position: relative;
  z-index: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6c757d;
  margin-top: 0.2rem;
}

.kid-card.has-leaving {
  border-color: rgba(217,115,18,0.3);
  background: linear-gradient(180deg, #fff8ef 0%, #fff 60%);
}

.kid-leaving {
  position: relative;
  z-index: 1;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(217,115,18,0.25);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  line-height: 1.25;
  color: #d97312;
  font-weight: 600;
}

.kid-leaving .leaving-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #b56210;
  font-weight: 700;
  margin-bottom: 1px;
}

.kid-leaving .leaving-date {
  display: block;
  font-family: 'Shantell Sans', sans-serif;
  font-size: 0.95rem;
  color: #d97312;
}

/* Legend */
.kids-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.kids-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #eef1ff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  color: #495057;
  font-weight: 600;
}

.kids-legend .swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.kids-legend .swatch-girl { background: #ff5e92; }
.kids-legend .swatch-boy { background: #4d70ff; }
.kids-legend .swatch-leaving {
  background: linear-gradient(135deg, #ffb14a, #ff8e3c);
}

.group-summary .pill i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.group-summary .pill strong {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}


/* ===== Naša skupina — lenta sa znakovima (slike) ===== */
.tl-dot img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

/* Boja po spolu (overrides default tl-dot tint) */
.tl-row.tl-girl .tl-dot {
  border-color: #ffb6cf;
  background: linear-gradient(135deg, #ffe7ef, #ffd1de);
  box-shadow: 0 4px 14px rgba(255,94,146,0.25);
}
.tl-row.tl-boy .tl-dot {
  border-color: #b4c5ff;
  background: linear-gradient(135deg, #e6ecff, #cdd9ff);
  box-shadow: 0 4px 14px rgba(77,112,255,0.25);
}

.tl-row.tl-girl .tl-name { color: #d63a72; }
.tl-row.tl-girl .tl-age {
  color: #d63a72;
  background: rgba(255,94,146,0.12);
}
.tl-row.tl-boy .tl-name { color: #2c4ed4; }
.tl-row.tl-boy .tl-age {
  color: #2c4ed4;
  background: rgba(77,112,255,0.12);
}

/* Top-3 najstariji — upozorenje o oslobađanju mjesta */
.tl-row.tl-leaving .tl-card {
  border-color: #ffd6a8;
  background: linear-gradient(180deg, #fff8ef 0%, #fff 70%);
}
.tl-row.tl-leaving .tl-card::after {
  border-color: #ffd6a8;
}
.tl-row.tl-leaving .tl-dot {
  border-color: #ffb14a;
  box-shadow: 0 4px 14px rgba(255,142,60,0.35), 0 0 0 4px rgba(255,177,74,0.18);
}

.tl-leaving-note {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #ffd6a8;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  color: #b56612;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tl-row-left .tl-leaving-note { justify-content: flex-end; }

.tl-leaving-note i {
  color: #ff8e3c;
  font-size: 0.85rem;
}
.tl-leaving-note strong {
  color: #d97312;
  white-space: nowrap;
}
.tl-leaving-sub {
  color: #a07954;
  font-size: 0.76rem;
}

@media (max-width: 720px) {
  .tl-row-left .tl-leaving-note { justify-content: flex-start; }
}

/* Group divider variants — 4 buckets aligned with HR/EU standard:
   mladja_jaslicka (1-2g) / starija_jaslicka (2-3g) / mladja_vrticka (3-5g) / predskolska (5+) */
.tl-divider-mladja_jaslicka .tl-divider-inner {
  border-color: #ffb6cc;
  color: #c14373;
  background: linear-gradient(135deg, #fff 0%, #fff5f8 100%);
}
.tl-divider-starija_jaslicka .tl-divider-inner {
  border-color: #ff8ab0;
  color: #d63a72;
  background: linear-gradient(135deg, #fff 0%, #ffeff4 100%);
}
.tl-divider-mladja_vrticka .tl-divider-inner {
  border-color: #6b87ff;
  color: #2c4ed4;
  background: linear-gradient(135deg, #fff 0%, #eef2ff 100%);
}
.tl-divider-predskolska .tl-divider-inner {
  border-color: #4caf6c;
  color: #1f7a3a;
  background: linear-gradient(135deg, #fff 0%, #ecfaf0 100%);
}
/* Legacy class names, keep for fallback */
.tl-divider-jaslice .tl-divider-inner,
.tl-divider-najmladji .tl-divider-inner {
  border-color: #ff8ab0;
  color: #d63a72;
  background: linear-gradient(135deg, #fff 0%, #ffeff4 100%);
}
.tl-divider-older .tl-divider-inner,
.tl-divider-vrticka .tl-divider-inner {
  border-color: #6b87ff;
  color: #2c4ed4;
  background: linear-gradient(135deg, #fff 0%, #eef2ff 100%);
}
.tl-divider-predskolci .tl-divider-inner {
  border-color: #4caf6c;
  color: #1f7a3a;
  background: linear-gradient(135deg, #fff 0%, #ecfaf0 100%);
}

/* Vertical line color softer */
.age-timeline { position: relative; padding: 1rem 0; }
.age-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: repeating-linear-gradient(to bottom, rgba(77,101,249,0.18) 0 8px, transparent 8px 14px);
  transform: translateX(-50%);
  z-index: 0;
}

/* tl-divider container — center on the line */
.tl-divider {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0.75rem;
}


/* ===== Dnevni ritam — fix overflow + items bez vremena ===== */
.horizontal-timeline .items .items-list .px-4 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.horizontal-timeline .items .items-list h5 {
  font-size: 0.95rem;
  line-height: 1.15;
  text-wrap: pretty;
  margin-bottom: 0;
}

/* Stavka bez vremena — drži istu visinu kao ostale (gdje stoji badge) */
.horizontal-timeline .items .items-list h5.no-time {
  margin-top: 0;
}

.horizontal-timeline .items .items-list h5.no-time::before {
  content: "";
  display: block;
  height: 36px;
}

@media (min-width: 1141px) {
  .horizontal-timeline .items .items-list h5 {
    font-size: 0.88rem;
  }
}


/* ===== Lenta — ime u istoj ravnini kao slika ===== */
@media (min-width: 721px) {
  .tl-row {
    align-items: center;
  }
  .tl-card {
    /* Tako da kartica ne prerasta dot-u u visinu pa centriramo */
  }
  .tl-card-head {
    flex-wrap: nowrap;
  }
  .tl-row-left .tl-card-head {
    justify-content: flex-end;
  }
}


/* ===== Benefit cards (skupina.html — pedagoške prednosti) ===== */
.benefit-card {
  background: #fff;
  border: 2px solid #eef1ff;
  border-radius: 18px;
  padding: 1.25rem 1.1rem 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(77, 101, 249, 0.14);
  border-color: #d9e1ff;
}

.benefit-card .benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e6ecff 0%, #f4f7ff 100%);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.benefit-card h5 {
  font-family: 'Shantell Sans', sans-serif;
  font-size: 1.05rem;
  color: var(--bs-primary);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.benefit-card p {
  font-size: 0.92rem;
  color: #5a6478;
  line-height: 1.5;
  margin-bottom: 0;
  text-wrap: pretty;
}

.benefit-card .benefit-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.92rem;
  color: #5a6478;
  line-height: 1.5;
}

.benefit-card .benefit-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.45rem;
}

.benefit-card .benefit-list li:last-child { margin-bottom: 0; }

.benefit-card .benefit-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -0.05em;
  font-weight: 700;
  color: var(--bs-primary);
  font-size: 1.05rem;
  line-height: 1;
}

/* Variranje boja po redu kako bi vizualno varirale */
.benefit-card:nth-child(2n) .benefit-icon {
  background: linear-gradient(135deg, #ffe7ef 0%, #fff5f8 100%);
  color: var(--bs-secondary);
}

/* Ratio callout — staff-to-children ratio (skupina page) */
.ratio-callout {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  margin: 0 0 1.2rem;
  background: linear-gradient(135deg, rgba(77, 101, 249, 0.08), rgba(255, 138, 64, 0.06));
  border-left: 4px solid var(--bs-primary);
  border-radius: 14px;
}

.ratio-callout-num {
  flex-shrink: 0;
  font-family: 'Shantell Sans', sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--bs-primary);
  letter-spacing: 0.5px;
}

.ratio-callout-text {
  font-size: 0.92rem;
  color: #424b5e;
  line-height: 1.5;
}

.ratio-callout-text strong { color: #2a3245; }

@media (max-width: 480px) {
  .ratio-callout { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .ratio-callout-num { font-size: 1.6rem; }
}


/* ===== O nama — story stats ===== */
.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.story-stat {
  background: #fff;
  border: 2px solid #eef1ff;
  border-radius: 18px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.story-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(77, 101, 249, 0.14);
}

.story-stat-num {
  font-family: 'Shantell Sans', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.story-stat-num span {
  font-size: 1.1rem;
  font-weight: 500;
  margin-left: 2px;
  color: #8893b0;
}

.story-stat-num.story-stat-text {
  font-size: 2.1rem;
  letter-spacing: 0.5px;
}

.story-stat-label {
  font-size: 0.86rem;
  color: #5a6478;
  line-height: 1.3;
  text-wrap: pretty;
}

.story-stat:nth-child(2) .story-stat-num,
.story-stat:nth-child(3) .story-stat-num {
  color: var(--bs-secondary);
}

/* ===== O nama — team cards ===== */
.team-card {
  background: #fff;
  border: 2px solid #eef1ff;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(77, 101, 249, 0.16);
  border-color: #d9e1ff;
}

.team-photo {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-photo.has-photo {
  background: #eef1ff;
  height: auto;
  aspect-ratio: 4 / 5;
}

.team-photo.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.team-initials {
  font-family: 'Shantell Sans', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.team-photo-vedran {
  background: linear-gradient(135deg, #5b6cff 0%, #7d8eff 60%, #a4b3ff 100%);
}

.team-photo-lucija {
  background: linear-gradient(135deg, #ff7aa6 0%, #ff9ec1 60%, #ffc0d4 100%);
}

.team-photo-ivana {
  background: linear-gradient(135deg, #ffa056 0%, #ffb87a 60%, #ffd0a3 100%);
}

.team-body {
  padding: 1.4rem 1.3rem 1.5rem;
}

.team-role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--bs-primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.team-card h4 {
  font-family: 'Shantell Sans', sans-serif;
  color: #2c3354;
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
}

.team-meta {
  font-size: 0.85rem;
  color: #8893b0;
  margin-bottom: 0.85rem;
}

.team-body p:last-child {
  font-size: 0.93rem;
  color: #5a6478;
  line-height: 1.55;
  margin-bottom: 0;
  text-wrap: pretty;
}

/* ===== CTA box ===== */
.cta-box {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #6b7eff 60%, #8e9dff 100%);
  border-radius: 28px;
  padding: 2.5rem 2.5rem;
  box-shadow: 0 18px 38px rgba(77, 101, 249, 0.28);
}

.cta-box h2 {
  font-family: 'Shantell Sans', sans-serif;
}

/* Enrollment CTA variant — warmer gradient + badge row */
.cta-box.cta-enroll {
  background: linear-gradient(135deg, #4d65f9 0%, #6b5bd5 55%, #d97312 130%);
}

.cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}
.cta-badge i { font-size: 0.78rem; opacity: 0.92; }

.cta-primary-btn {
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

@media (max-width: 575px) {
  .cta-box { padding: 1.8rem 1.5rem; text-align: center; }
  .cta-box .text-lg-end { text-align: center !important; }
  .cta-box .btn { margin-top: 0.5rem; }
  .cta-badges { justify-content: center; }
  .story-stat-num { font-size: 2.1rem; }
}

/* ===== Theme pills (Program page) ===== */
.theme-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
}

.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(77, 101, 249, 0.10);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
}

.theme-pill:hover {
  transform: translateY(-2px);
  border-color: var(--bs-secondary);
  color: var(--bs-secondary);
  box-shadow: 0 8px 20px rgba(255, 72, 128, 0.18);
}

.theme-pill i { font-size: 1rem; }

.theme-pill:nth-child(2n) {
  border-color: var(--bs-secondary);
  color: var(--bs-secondary);
  box-shadow: 0 4px 14px rgba(255, 72, 128, 0.10);
}

.theme-pill:nth-child(2n):hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  box-shadow: 0 8px 20px rgba(77, 101, 249, 0.18);
}
