/* ===========================
   HOME PAGE STYLES
   =========================== */

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
  background: var(--cream);
}

.hero-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.blob-1 {
  width: 500px; height: 500px;
  background: var(--mint);
  top: -100px; left: -100px;
}

.blob-2 {
  width: 400px; height: 400px;
  background: var(--lavender);
  top: 100px; right: -80px;
}

.blob-3 {
  width: 300px; height: 300px;
  background: var(--pink);
  bottom: -60px; left: 40%;
}

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

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--mint-light);
  color: var(--brown);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-text h1 {
  margin-bottom: 20px;
}

.hero-highlight {
  position: relative;
  color: var(--pink-deep);
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--mint);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.6;
}

.hero-text p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--brown);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-text);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--mint);
}

/* Hero mascot area */
.hero-mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.mascot-img {
  width: 300px;
  max-width: 100%;
  filter: drop-shadow(0 20px 40px rgba(61,31,31,0.12));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.mascot-bubble {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--mint);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brown);
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  animation: bubble-pop 0.6s 0.3s both;
}

@keyframes bubble-pop {
  from { opacity: 0; transform: scale(0.8) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.mascot-float-tag {
  display: none;
}

/* ===========================
   SUBJECTS STRIP
   =========================== */

.subjects-strip {
  background: var(--mint-light);
  border-top: 1px solid var(--mint);
  border-bottom: 1px solid var(--mint);
}

.strip-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-light);
  margin-bottom: 16px;
}

.subjects-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subject-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--white);
  color: var(--brown);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--mint);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.subject-chip:hover {
  background: var(--mint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* ===========================
   ABOUT STRIP
   =========================== */

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-strip-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--mint-light);
  transition: transform 0.2s ease;
}

.about-card:hover {
  transform: translateX(6px);
}

.about-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.about-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.about-card p {
  font-size: 0.88rem;
  color: var(--gray-text);
}

/* ===========================
   FEATURED RESOURCES
   =========================== */

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

.featured-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.featured-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cover-mascot-sm {
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}

.cover-subject {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.85);
  color: var(--brown);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.featured-body {
  padding: 20px 24px 24px;
}

.featured-body h4 {
  margin: 10px 0 8px;
  font-size: 1rem;
  line-height: 1.3;
}

.featured-body p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ===========================
   COMMUNITY CTA
   =========================== */

.cta-card {
  background: linear-gradient(135deg, var(--mint-light), var(--lavender-light));
  border-radius: var(--radius-xl);
  padding: 64px 80px;
  display: flex;
  align-items: center;
  gap: 60px;
  border: 1px solid var(--mint);
}

.cta-mascot img {
  width: 160px;
  filter: drop-shadow(0 16px 32px rgba(61,31,31,0.12));
  animation: float 4s ease-in-out infinite;
}

.cta-text h2 {
  margin-bottom: 16px;
}

.cta-text p {
  max-width: 460px;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p,
  .hero-actions {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-mascot {
    order: -1;
  }

  .mascot-img {
    width: 240px;
  }

  .mascot-float-tag { display: none; }
  .mascot-bubble { right: auto; left: 50%; transform: translateX(-50%); }

  .about-strip-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
    gap: 32px;
  }
}
