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

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

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

.prim-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;
}

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

.prim-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);
}

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

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

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

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

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

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

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

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

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

.prim-sub-title {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.prim-intro-p-highlight {
  font-size: 1.12rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 18px;
  font-weight: 450;
}

.prim-intro-p-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
}

.prim-intro-p-sub strong {
  color: #0b3d2c;
  font-weight: 700;
}

/* ===== 3. SUBJECTS & PRACTICAL METHOD ===== */
.prim-curriculum-section {
  padding: 55px 0 70px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.prim-curriculum-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 45px;
  align-items: center;
}

.prim-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.prim-section-heading {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.25;
}

.prim-curriculum-intro-text {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 24px;
}

.prim-subjects-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.subject-item-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.subject-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(11, 61, 44, 0.08);
  border-color: #059669;
}

.subject-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.subject-icon-box.math { background: #fef3c7; color: #d97706; }
.subject-icon-box.science { background: #ecfdf5; color: #059669; }
.subject-icon-box.english { background: #eff6ff; color: #2563eb; }
.subject-icon-box.languages { background: #fdf2f8; color: #db2777; }
.subject-icon-box.social { background: #fef2f2; color: #dc2626; }
.subject-icon-box.computer { background: #f3e8ff; color: #7c3aed; }

.subject-info h4 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.subject-info p {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

/* Photo Frame */
.prim-photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border: 4px solid #ffffff;
  background: #ffffff;
}

.prim-photo-img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.prim-photo-frame:hover .prim-photo-img {
  transform: scale(1.03);
}

.prim-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(8, 41, 31, 0.95) 0%, rgba(8, 41, 31, 0.7) 60%, transparent 100%);
  color: #ffffff;
}

.caption-badge {
  display: inline-block;
  background: #f59e0b;
  color: #111827;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.prim-photo-caption p {
  font-size: 0.92rem;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.45;
}

/* ===== 4. SPECIAL PROGRAMS (Abacus, Vedic Math, Robotics) ===== */
.prim-special-section {
  padding: 70px 0;
  background: #ffffff;
}

.prim-special-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}

.special-program-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px 26px;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.special-program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
}

.special-program-card.abacus::before { background: #f59e0b; }
.special-program-card.vedic::before { background: #059669; }
.special-program-card.robotics::before { background: #2563eb; }

.special-program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(11, 61, 44, 0.1);
  border-color: #cbd5e1;
}

.special-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.special-program-card.abacus .special-icon-wrap { background: #fef3c7; color: #d97706; }
.special-program-card.vedic .special-icon-wrap { background: #ecfdf5; color: #059669; }
.special-program-card.robotics .special-icon-wrap { background: #eff6ff; color: #2563eb; }

.special-program-card h4 {
  font-family: var(--font-primary);
  font-size: 1.22rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.special-grade-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  width: fit-content;
}

.special-program-card p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
}

/* ===== 5. ACTIVITY-BASED LEARNING & BAGLESS ===== */
.prim-activity-section {
  padding: 70px 0;
  background: linear-gradient(135deg, #0b3d2c 0%, #062a1e 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.prim-activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.prim-activity-content h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 18px;
  line-height: 1.25;
}

.prim-activity-content p {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 24px;
}

.prim-bagless-banner-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.prim-bagless-banner-card h4 {
  font-family: var(--font-primary);
  font-size: 1.18rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prim-bagless-banner-card p {
  font-size: 0.94rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.6;
}

.prim-activity-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.activity-feature-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 14px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.activity-feature-box:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.feature-box-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f59e0b;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.activity-feature-box h5 {
  font-family: var(--font-primary);
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.activity-feature-box p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

/* ===== 6. ADVANTAGES & SKILLS ===== */
.prim-advantages-section {
  padding: 70px 0;
  background: #ffffff;
}

.prim-advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 45px;
  align-items: center;
  margin-top: 36px;
}

.skills-pills-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.94rem;
  transition: all 0.2s ease;
}

.skill-pill-item:hover {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
  transform: translateX(4px);
}

.skill-pill-item svg {
  color: #059669;
  flex-shrink: 0;
}

.advantages-diagram-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 16px;
}

.advantages-diagram-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ===== 7. ADMISSIONS CALLOUT ===== */
.prim-admission-section {
  padding: 60px 0 80px;
  background: #f8fafc;
}

.prim-admission-card {
  background: linear-gradient(135deg, #0b3d2c 0%, #062a1e 100%);
  border-radius: 24px;
  padding: 50px 60px;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(11, 61, 44, 0.18);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.prim-admission-content h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 12px;
}

.prim-admission-content p {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 20px;
}

.admission-criteria-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.prim-admission-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.btn-admission-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f59e0b;
  color: #111827;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-admission-primary:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-admission-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-admission-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== RESPONSIVENESS ===== */
@media (max-width: 992px) {
  .prim-hero-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .prim-hero-left {
    padding: 40px 30px;
  }

  .prim-hero-curve-divider {
    display: none;
  }

  .prim-hero-right {
    height: 280px;
  }

  .prim-curriculum-grid,
  .prim-activity-grid,
  .prim-advantages-grid,
  .prim-admission-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .prim-special-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .prim-admission-card {
    padding: 36px 28px;
  }

  .prim-photo-img {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .prim-activity-features {
    grid-template-columns: 1fr;
  }

  .prim-hero-title {
    font-size: 2.2rem;
  }

  .prim-main-title {
    font-size: 1.45rem;
  }
}
