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

/* ===== 1. SPLIT HERO BANNER ===== */
.sec-exact-hero {
  background: #062a1e;
  overflow: hidden;
  border-bottom: 3px solid #0284c7;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===== 3. SECONDARY CURRICULUM ===== */
.sec-curriculum-section {
  padding: 55px 0 70px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

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

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

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

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

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

.sec-subject-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;
}

.sec-subject-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.1);
  border-color: #0284c7;
}

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

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

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

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

/* Photo Frame */
.sec-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;
}

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

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

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

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

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

/* ===== 4. CBSE BOARD EXAM PREPARATION ===== */
.sec-board-section {
  padding: 70px 0;
  background: #ffffff;
}

.sec-board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.sec-board-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.sec-board-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #0284c7;
}

.sec-board-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.1);
  border-color: #7dd3fc;
}

.sec-board-card-num {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 8px;
  line-height: 1;
}

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

.sec-board-card p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* ===== 5. SCIENCE LABS & ROBOTICS ===== */
.sec-labs-section {
  padding: 70px 0;
  background: linear-gradient(135deg, #0b3d2c 0%, #062a1e 100%);
  color: #ffffff;
}

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

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

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

.sec-labs-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sec-lab-highlight-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.sec-lab-highlight-box:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.sec-lab-highlight-box h4 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-lab-highlight-box p {
  font-size: 0.94rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.6;
}

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

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

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

.sec-skill-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;
}

.sec-skill-item:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #0369a1;
  transform: translateX(4px);
}

.sec-skill-item svg {
  color: #0284c7;
  flex-shrink: 0;
}

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

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

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

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

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

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

.sec-criteria-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.btn-sec-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0284c7;
  color: #ffffff;
  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(2, 132, 199, 0.3);
}

.btn-sec-primary:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
}

.btn-sec-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-sec-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

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

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

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

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

  .sec-board-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

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

@media (max-width: 640px) {
  .sec-hero-title {
    font-size: 2.2rem;
  }

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