/* ================================================================
   WHY RUDRA? - AUTHENTIC REPLICA STYLES
   Faithful to https://about.rudrathepraticalschool.com/why-rudra/
   120fps Smooth, High-DPI Assets, Fully Mobile Responsive
   ================================================================ */

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

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

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

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

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

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

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

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

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

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

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

/* ===== 2. THE 10 REASONS WATERMARK SECTION ===== */
.why-ten-reasons-watermark-section {
  padding: 70px 0 80px;
  position: relative;
  background: #ffffff;
}

.watermark-overlay {
  position: absolute;
  inset: 0;
  background: url('/assets/why-rudra/school-building.jpg') center/cover fixed no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.relative-z {
  position: relative;
  z-index: 2;
}

.why-reasons-header {
  max-width: 960px;
  margin: 0 auto 45px;
}

.why-main-heading {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 12px;
  line-height: 1.3;
}

.why-sub-heading {
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: #0c6843;
  margin-bottom: 20px;
}

.why-intro-paragraph {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
  max-width: 900px;
  margin: 0 auto;
}

.why-reasons-list-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.why-reason-item {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.why-reason-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.why-reason-title {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
  line-height: 1.4;
}

.why-reason-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4b5563;
  margin: 0 auto;
  max-width: 880px;
}

/* ===== 3. SCHOOL FOCUS ON SECTION ===== */
.school-focus-exact-section {
  padding: 70px 0;
  background: #f8faf9;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.school-focus-heading {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: #0c6843;
  margin-bottom: 36px;
}

.school-focus-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.school-focus-pills-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.focus-pill {
  padding: 14px 26px;
  border-radius: 50px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.focus-pill:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.pill-caramel {
  background: linear-gradient(135deg, #cc8b5e, #b87545);
}

.pill-coral {
  background: linear-gradient(135deg, #d97070, #c45656);
}

.pill-olive {
  background: linear-gradient(135deg, #9fb355, #839638);
}

.pill-mauve {
  background: linear-gradient(135deg, #d198a4, #b87b88);
}

.pill-teal {
  background: linear-gradient(135deg, #58aebd, #3c8f9e);
}

.pill-ocean {
  background: linear-gradient(135deg, #3e8797, #286877);
}

.focus-image-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border: 4px solid #ffffff;
}

.focus-real-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ===== 4. SIGNATURE INTERACTIVE CHALKBOARD ARC DIAGRAM ===== */
.chalkboard-arc-section {
  background: #08291f url('/assets/why-rudra/chalkboard-bg.jpg') center/cover no-repeat;
  padding: 70px 20px 85px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6);
}

.chalkboard-inner-container {
  max-width: 900px;
  margin: 0 auto;
}

.chalkboard-title {
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #f59e0b;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.arc-interactive-wrapper {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
}

/* The Semicircular Glowing Golden Path */
.arc-semi-circle {
  width: 540px;
  height: 270px;
  border: 4px solid #f59e0b;
  border-bottom: none;
  border-radius: 270px 270px 0 0;
  margin: 45px auto 0;
  position: relative;
  box-shadow: 0 -6px 30px rgba(245, 158, 11, 0.4);
}

/* The 5 Circular Nodes Along the Arc */
.arc-node {
  position: absolute;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  color: #b91c1c;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  z-index: 10;
  padding: 6px;
}

/* Node Positions along the 540x270 Semicircle */
.arc-node[data-index="1"] {
  left: -47px;
  bottom: -15px;
}

.arc-node[data-index="2"] {
  left: 36px;
  top: 26px;
}

.arc-node[data-index="3"] {
  left: 50%;
  top: -47px;
  transform: translateX(-50%);
}

.arc-node[data-index="4"] {
  right: 36px;
  top: 26px;
}

.arc-node[data-index="5"] {
  right: -47px;
  bottom: -15px;
}

/* Node Hover & Active States */
.arc-node:hover,
.arc-node.active {
  background: #fffbeb;
  color: #991b1b;
  border-color: #f59e0b;
  transform: scale(1.12);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.95);
}

.arc-node[data-index="3"]:hover,
.arc-node[data-index="3"].active {
  transform: translateX(-50%) scale(1.12);
}

/* Content Inside the Arc */
.arc-content-display {
  margin-top: 15px;
  text-align: center;
  min-height: 250px;
  position: relative;
  z-index: 2;
}

.arc-slide {
  display: none;
  animation: arcFadeIn 0.35s ease forwards;
}

.arc-slide.active {
  display: block;
}

@keyframes arcFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.arc-slide-img-wrap {
  display: inline-block;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.25);
  max-width: 320px;
}

.arc-slide-img {
  height: 160px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.arc-slide-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  font-weight: 500;
}

/* ===== 5. CALL TO ACTION SECTION ===== */
.why-admissions-cta-section {
  padding: 70px 0;
  background: #ffffff;
}

.why-cta-box {
  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);
}

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

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

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

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 992px) {
  .why-hero-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .why-hero-curve-divider {
    display: none;
  }
  .why-hero-left {
    padding: 40px 30px;
    text-align: center;
  }
  .why-hero-right {
    height: 240px;
  }
  .school-focus-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .focus-real-photo {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .why-hero-left {
    padding: 35px 20px;
  }
  .why-hero-title {
    font-size: 2.2rem;
  }
  .why-reasons-header {
    margin-bottom: 30px;
  }

  /* Mobile Arc Layout: Turns gracefully into flex-wrap circular badges with zero overflow */
  .arc-semi-circle {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px auto 25px;
  }

  .arc-node {
    position: static !important;
    width: 82px;
    height: 82px;
    font-size: 10px;
    transform: none !important;
  }

  .arc-node:hover,
  .arc-node.active {
    transform: scale(1.08) !important;
  }

  .arc-slide-img {
    height: 130px;
  }

  .arc-slide-text {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .why-cta-btn-row {
    flex-direction: column;
  }
  .why-cta-btn-row .btn {
    width: 100%;
  }
}
