/* ================================================================
   PRE-PRIMARY WING - AUTHENTIC REPLICA & PREMIUM STYLES
   Faithful to https://about.rudrathepraticalschool.com/pre-primary/
   120fps Smooth, High-DPI Assets, Fully Mobile Responsive
   ================================================================ */

/* ===== 1. SPLIT HERO BANNER ===== */
.pre-exact-hero {
  background: #08291f;
  overflow: hidden;
  border-bottom: 3px solid #f59e0b;
}

.pre-hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  position: relative;
}

.pre-hero-left {
  background: linear-gradient(135deg, rgba(13, 56, 45, 0.9), rgba(7, 37, 28, 0.95)), 
              url('/assets/pre-primary/hero-doodle-bg.jpg') center/cover no-repeat;
  padding: 50px 70px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pre-hero-left-content {
  position: relative;
  z-index: 3;
}

.pre-hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: #f59e0b;
  margin: 0 0 10px 0;
  line-height: 1.15;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.pre-hero-pencil-wrap {
  display: inline-block;
}

.pre-hero-pencil {
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.pre-hero-curve-divider {
  position: absolute;
  right: -60px;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 4;
  pointer-events: none;
}

.pre-hero-curve-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pre-hero-right {
  position: relative;
  overflow: hidden;
  background: #0d382d;
}

.pre-hero-toddler-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== 2. MAIN HEADLINE & INTRO ===== */
.pre-intro-section {
  padding: 65px 0 45px;
  background: #ffffff;
}

.pre-intro-header {
  max-width: 960px;
  margin: 0 auto;
}

.pre-main-title {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 12px;
  line-height: 1.3;
}

.pre-sub-title {
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: #0c6843;
  margin-bottom: 24px;
}

.pre-intro-p-highlight {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  background: var(--green-pale);
  border-left: 4px solid var(--green-primary);
  padding: 18px 24px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: 18px;
  text-align: left;
}

.pre-intro-p-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  margin: 0 auto;
}

/* ===== 3. CLASSES OFFERED & RADHA-KRISHNA PHOTO ===== */
.pre-classes-section {
  padding: 60px 0 75px;
  background: #fdfdfd;
}

.pre-classes-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.pre-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 86, 50, 0.1);
  color: var(--green-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.pre-section-heading {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: #0c6843;
  margin-bottom: 12px;
}

.pre-classes-intro-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 24px;
}

.classes-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.class-wing-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #ffffff;
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.class-wing-card:hover {
  transform: translateX(6px);
  border-color: var(--green-primary);
  box-shadow: 0 10px 25px rgba(26, 86, 50, 0.1);
}

.class-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  margin-top: 2px;
}

.class-icon-circle.nursery {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.class-icon-circle.lkg {
  background: linear-gradient(135deg, #10b981, #059669);
}

.class-icon-circle.ukg {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.class-info h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-darker);
  margin-bottom: 4px;
  display: inline-block;
  margin-right: 10px;
}

.age-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.class-info p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 6px 0 0 0;
}

.pre-photo-frame {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  border: 4px solid #ffffff;
  position: relative;
}

.pre-photo-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.pre-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 37, 28, 0.92) 50%, #07251c 100%);
  padding: 30px 24px 20px;
  color: #ffffff;
}

.caption-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--gold);
  color: #07251c;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.pre-photo-caption p {
  font-size: 0.85rem;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.5;
}

/* ===== 4. PRE-PRIMARY PHILOSOPHY & 6 FOCUS AREAS ===== */
.pre-philosophy-section {
  padding: 75px 0 85px;
  background: var(--green-pale);
}

.philosophy-sub-lead {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-top: 20px;
}

.philosophy-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.pillar-card {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 32px 26px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(26, 86, 50, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--green-primary);
  box-shadow: 0 16px 35px rgba(26, 86, 50, 0.12);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #ffffff;
}

.pillar-icon.language { background: linear-gradient(135deg, #ec4899, #be185d); }
.pillar-icon.numbers { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.pillar-icon.arts { background: linear-gradient(135deg, #f59e0b, #b45309); }
.pillar-icon.motor { background: linear-gradient(135deg, #10b981, #047857); }
.pillar-icon.social { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.pillar-icon.environment { background: linear-gradient(135deg, #14b8a6, #0f766e); }

.pillar-card h4 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-darker);
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
  flex-grow: 1;
}

/* ===== 5. WHAT MAKES RUDRA PRE-PRIMARY THE BEST ===== */
.pre-why-best-section {
  padding: 80px 0;
  background: #ffffff;
}

.best-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 36px auto 0;
}

.best-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f9fafb;
  padding: 18px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all 0.25s ease;
}

.best-pillar-item:hover {
  background: var(--green-pale);
  border-color: var(--green-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 86, 50, 0.08);
}

.best-check-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.best-pillar-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--green-darker);
  margin-bottom: 4px;
}

.best-pillar-item p {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

/* ===== 6. ADMISSIONS CALLOUT BANNER ===== */
.pre-admissions-banner-section {
  padding: 20px 0 60px;
  background: #ffffff;
}

.pre-admissions-card {
  background: linear-gradient(135deg, #07251c 0%, #0d382d 70%, #155745 100%);
  border-radius: var(--radius-2xl);
  padding: 45px 50px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 15px 45px rgba(7, 37, 28, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.adm-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.adm-card-left h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.adm-card-left p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 16px;
}

.eligibility-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.eligibility-pill strong {
  color: var(--gold-light);
  display: inline-block;
  margin-right: 6px;
}

.eligibility-pill span {
  color: #f1f5f9;
}

.adm-card-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.adm-card-right .btn {
  width: 100%;
  max-width: 280px;
  text-align: center;
  justify-content: center;
}

/* ===== 7. SKILLS DEVELOPMENT & OUR ADVANTAGES DIAGRAM ===== */
.pre-skills-advantages-section {
  padding: 75px 0;
  background: #f8faf9;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.skills-advantages-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.skills-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(12, 104, 67, 0.1);
  color: #0c6843;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.skills-heading {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0c6843;
  margin-bottom: 24px;
}

.skills-numbered-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin-bottom: 28px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.skill-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
}

.skills-mission-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--green-lighter);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.skills-mission-box svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.skills-mission-box p {
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--green-darker);
  margin: 0;
  font-weight: 500;
}

.diagram-card-frame {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  border: 4px solid #ffffff;
  text-align: center;
}

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

.diagram-caption {
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid var(--gray-100);
}

.diagram-caption strong {
  display: block;
  font-size: 0.95rem;
  color: #0c6843;
  margin-bottom: 4px;
}

.diagram-caption p {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

/* ===== 8. FINAL CALL TO ACTION ===== */
.pre-final-cta-section {
  padding: 70px 0;
  background: #ffffff;
}

.pre-final-cta-card {
  background: linear-gradient(135deg, #07251c 0%, #0d382d 60%, #155745 100%);
  border-radius: var(--radius-2xl);
  padding: 50px 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(7, 37, 28, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pre-final-cta-card h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.pre-final-cta-card p {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 28px;
}

.cta-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 992px) {
  .pre-hero-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .pre-hero-curve-divider {
    display: none;
  }
  .pre-hero-left {
    padding: 40px 30px;
    text-align: center;
  }
  .pre-hero-right {
    height: 250px;
  }
  .pre-classes-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .pre-photo-img {
    height: 340px;
  }
  .philosophy-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-advantages-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pre-admissions-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 35px 25px;
  }
  .adm-card-right .btn {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .pre-hero-left {
    padding: 35px 20px;
  }
  .pre-hero-title {
    font-size: 2.2rem;
  }
  .philosophy-pillars-grid {
    grid-template-columns: 1fr;
  }
  .best-pillars-grid {
    grid-template-columns: 1fr;
  }
  .skills-numbered-grid {
    grid-template-columns: 1fr;
  }
  .cta-actions-row {
    flex-direction: column;
  }
  .cta-actions-row .btn {
    width: 100%;
  }
}
