/* ==========================================================================
   Landing page — mirrors the existing edsyeducation.com design.
   Mobile-first: single column by default, multi-column from the breakpoints.
   ========================================================================== */

/* ---------- Announcement bar --------------------------------------------- */

.topbar {
  background: var(--edsy-primary-hover);
  color: var(--edsy-accent);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  background:
    radial-gradient(ellipse at top right, rgba(165, 201, 60, 0.08) 0%, transparent 70%),
    linear-gradient(135deg, var(--edsy-bg) 60%, var(--edsy-primary) 100%);
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 4rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
}

.hero__title {
  color: #fff;
  font-family: var(--edsy-heading-font);
  font-size: clamp(1.75rem, 1.1rem + 3.2vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero__subtitle {
  color: var(--edsy-text-secondary);
  font-size: clamp(0.875rem, 0.8rem + 0.6vw, 1.125rem);
  font-style: italic;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero__figure img {
  width: 100%;
  border-radius: var(--edsy-radius-lg);
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Circular logo badge under the hero. */
.brand-badge {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 2rem auto 0;
  padding: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(165, 201, 60, 0.25), 0 8px 24px rgba(0, 0, 0, 0.3);
}
.brand-badge img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    text-align: left;
  }
  .hero__subtitle { margin-inline: 0; }
  .hero__actions { justify-content: flex-start; }
}

/* ---------- Section scaffolding ------------------------------------------ */

.section {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  scroll-margin-top: 80px;
}
.section--alt { background: #21453A; }

.section__title {
  color: var(--edsy-primary);
  font-family: var(--edsy-heading-font);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section__subtitle {
  color: var(--edsy-text-secondary);
  font-style: italic;
  text-align: center;
  margin-bottom: clamp(1.75rem, 1rem + 3vw, 3rem);
}

/* ---------- Feature / step / testimonial cards --------------------------- */

.cards {
  display: grid;
  gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
  background: var(--edsy-surface);
  border: 1px solid var(--edsy-border);
  border-radius: 16px;
  text-align: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2rem) 1.5rem;
}
.feature-card h3 { color: #fff; font-size: 1.125rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--edsy-text-muted); font-size: 0.9375rem; margin: 0; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--edsy-primary);
}
.feature-icon svg { width: 44px; height: 44px; }

.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--edsy-primary);
  background: rgba(165, 201, 60, 0.12);
  border: 1px solid var(--edsy-border);
  border-radius: 12px;
}

.testimonial {
  background: var(--edsy-surface);
  border: 1px solid var(--edsy-border);
  border-radius: 16px;
  padding: 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.testimonial__quote { font-size: 0.9375rem; line-height: 1.6; margin: 0; }
.testimonial__who { color: var(--edsy-text-muted); font-size: 0.8125rem; font-weight: 600; }
.stars { color: var(--edsy-accent); letter-spacing: 2px; font-size: 0.9375rem; }
.stars .off { color: var(--edsy-text-subtle); }

/* ---------- News & Events panels ----------------------------------------- */

.panels {
  display: grid;
  gap: clamp(1rem, 0.75rem + 1.5vw, 1.75rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .panels { grid-template-columns: 1fr 1fr; }
}

.panel {
  background: var(--edsy-surface);
  border: 1px solid var(--edsy-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
}
.panel__head img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  flex: none;
}
.panel__head h3 { margin: 0; font-size: 1.0625rem; line-height: 1.2; }
.panel__head p { margin: 0; font-size: 0.75rem; opacity: 0.85; }

.panel--news .panel__head {
  background: linear-gradient(135deg, var(--edsy-primary) 0%, var(--edsy-primary-hover) 100%);
  color: var(--edsy-on-primary);
}
.panel--events .panel__head {
  background: linear-gradient(135deg, var(--edsy-accent) 0%, #d9c477 100%);
  color: #3d3410;
}

.panel__body { padding: 0.5rem 1rem; flex: 1 0 auto; }

.post-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--edsy-border-light);
}
.post-item:last-child { border-bottom: 0; }
.post-item__thumb {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: var(--edsy-elevated);
}
.post-item__date {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--edsy-text-muted);
  background: var(--edsy-bg);
  border: 1px solid var(--edsy-border-light);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  margin-bottom: 0.35rem;
}
.post-item__title {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.post-item__title:hover { color: var(--edsy-primary); text-decoration: none; }
.post-item__excerpt {
  color: var(--edsy-text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}
.panel__foot { padding: 1rem; }
.panel__foot .btn { width: 100%; }

.panel__empty { color: var(--edsy-text-muted); padding: 1.5rem 0; text-align: center; }

/* ---------- Contact ------------------------------------------------------- */

.contact-card {
  background: var(--edsy-surface);
  border: 1px solid var(--edsy-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: rgba(165, 201, 60, 0.14);
  color: var(--edsy-primary);
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__icon--wa { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.contact-card__label { color: var(--edsy-text-secondary); font-weight: 700; font-size: 0.9375rem; }
.contact-card__value {
  display: block;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0.25rem 0;
  word-break: break-word;
}
.contact-card__value:hover { color: var(--edsy-primary); text-decoration: none; }
.contact-card__note { color: var(--edsy-text-subtle); font-size: 0.75rem; }

.email-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--edsy-surface);
  border: 1px solid var(--edsy-border);
  border-radius: var(--edsy-radius-lg);
  text-align: center;
}
.email-bar svg { width: 20px; height: 20px; color: var(--edsy-primary); flex: none; }
