/* ==========================================================================
   Dayanand Arya Vedic Public School — Professional Master Stylesheet
   ========================================================================== */

:root {
  --primary: #0b2545;
  --primary-light: #133a68;
  --primary-gradient: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  --secondary: #c9933b;
  --secondary-hover: #b37e29;
  --secondary-gradient: linear-gradient(135deg, #dfa84f 0%, #c9933b 100%);
  --accent: #d90429;
  --accent-soft: rgba(217, 4, 41, 0.08);
  --dark: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  --bg-light: #bfcce3;
  --bg-card: #ffffff;
  --white: #ffffff;
  --border-color: #e2e8f0;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 4px 6px -1px rgba(11, 37, 69, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 20px 35px -8px rgba(11, 37, 69, 0.12);
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cabinet Grotesk', sans-serif;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- REUSABLE UTILITIES --- */
.gradient-text {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title-wrap {
  margin-bottom: 3.5rem;
}

.section-title-wrap.text-center {
  text-align: center;
}

.sub-heading {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.section-title-wrap h2 {
  font-size: 2.6rem;
  letter-spacing: -0.5px;
}

.section-title-wrap p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0.8rem auto 0 auto;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--secondary-gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(201, 147, 59, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 147, 59, 0.45);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

/* Scroll Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   DAYANAND ARYA VEDIC PUBLIC SCHOOL — COMPACT HERO & PILLARS BAR
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Yatra+One&display=swap');

/* Base Section Wrap */
.dav-showcase-hero {
  position: relative;
  width: 100%;
  background: #ffffff;
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow: visible;
}

/* Reusable Container Fallback for Hero */
.dav-showcase-hero .container {
  width: 92%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0;
}

/* ==========================================================================
   MASTER STAGE: FULL CSS BACKGROUND (EDGE-TO-EDGE PANORAMA)
   ========================================================================== */

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 560px;
  overflow: hidden;

  /* Layer 1: Left-to-right fade for editorial text readability */
  /* Layer 2: Campus Photo extending edge-to-edge from position 0 0 */
  background-image: 
    linear-gradient(
      90deg, 
      #ffffff 0%, 
      rgba(255, 255, 255, 0.96) 16%, 
      rgba(255, 255, 255, 0.65) 24%, 
      rgba(255, 255, 255, 0) 80%
    ),
    url('../assets/hero.png');
  
  background-position: left center, center 30%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

/* --- Left Botanical Leaves & Sparkle Accents --- */
.hero-botanical-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

.botanical-svg {
  width: 100%;
  height: 250px;
}

.gold-sparkle {
  position: absolute;
  color: #f59e0b;
  font-size: 1rem;
  opacity: 0.65;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
}

.sp-1 { top: 50px; left: 65px; }
.sp-2 { top: 150px; left: 35px; font-size: 0.8rem; }

/* --- Left Editorial Column --- */
.hero-editorial {
  position: relative;
  width: 44%;
  max-width: 580px;
  flex-shrink: 0;
  z-index: 5;
  padding: 2.5rem 2rem 2.5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-school-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1e3a8a;
  margin-bottom: 0.65rem;
  opacity: 0.9;
}

/* 3-Tier Title */
.hero-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.hero-main-title span {
  display: block;
}

.hero-main-title .line-navy {
  color: #0b2545;
}

.hero-main-title .line-gold {
  color: #d97706;
}

.hero-description {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #000000;
  margin-bottom: 1.4rem;
  max-width: 420px;
  font-weight: 500;
}

/* Call to Action Buttons */
.hero-cta-cluster {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.btn-primary-pill {
  background: linear-gradient(90deg, #ea580c 0%, #f59e0b 100%);
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.65rem 1.6rem;
  border-radius: 40px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 5px 15px rgba(234, 88, 12, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.45);
}

.btn-outline-pill {
  background: #ffffff;
  color: #0b2545 !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.62rem 1.5rem;
  border-radius: 40px;
  border: 1.5px solid #0b2545;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-outline-pill:hover {
  background: #0b2545;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* --- Right Wing: Convex Arch & Angled Typography --- */
.hero-right-wing {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 270px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.wing-curve-svg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(-6px 0 14px rgba(0, 0, 0, 0.05));
}

.wing-content {
  position: relative;
  z-index: 7;
  width: 100%;
  padding-left: 45px;
  padding-right: 0;
  padding-top: 10rem;
  display: flex;
  justify-content: center;
}

.wing-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: rotate(-13deg);
  transform-origin: center center;
  gap: 1px;
}

.wing-italic-lead {
  font-family: 'Dancing Script', cursive;
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 600;
  color: #f59e0b;
  line-height: 1.1;
}

.wing-serif-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0b2545;
  line-height: 1.15;
  margin: 0.1rem 0 0.35rem 0;
}

.wing-accent-underline {
  width: 125px;
  height: 14px;
  margin-top: 0.1rem;
  align-self: flex-end;
}

/* Organic Wave Divider Transitioning to Pillars */
.hero-bottom-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 32px;
  z-index: 8;
  pointer-events: none;
}

.hero-bottom-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   BOTTOM 4 BILINGUAL PILLARS STRIP (COLLISION-PROOF BLOCK)
   ========================================================================== */

#home-hero {
  display: block !important;
  width: 100% !important;
  clear: both !important;
}

.hero-pillars-bar {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  background: #fffdf9 !important;
  border-bottom: 1px solid #ede4d3 !important;
  padding: 1rem 0 !important;
  z-index: 10 !important;
  clear: both !important;
  box-sizing: border-box !important;
  min-height: 70px !important;
}

.hero-pillars-container {
  width: 92% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
}

.pillars-flex {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pillar-block {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.85rem !important;
  padding: 0.2rem 1rem !important;
  border-right: 1px solid #eedec8 !important;
  box-sizing: border-box !important;
}

.pillar-block:last-child {
  border-right: none !important;
}

.pillar-ring {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1.6px solid #f4a261 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0b2545 !important;
  font-size: 1.15rem !important;
  box-shadow: 0 3px 8px rgba(244, 162, 97, 0.18) !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease !important;
}

.pillar-block:hover .pillar-ring {
  background: #d97706 !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
  transform: translateY(-2px) !important;
}

.pillar-meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.pillar-meta .hindi-text {
  font-family: 'Yatra One', 'Mukta', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0b2545 !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}

.pillar-meta .eng-text {
  font-size: 0.74rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  margin-top: 2px !important;
}

.hero-botanical-right {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 80px !important;
  height: 80px !important;
  pointer-events: none !important;
  opacity: 0.45 !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1200px) {
  .hero-editorial {
    padding: 2rem 1.5rem 2rem 3rem;
  }
  .hero-main-title {
    font-size: 2.15rem;
  }
  .hero-right-wing {
    width: 210px;
  }
  .wing-content {
    padding-left: 30px;
  }
  .wing-italic-lead {
    font-size: 1.15rem;
  }
  .wing-serif-heading {
    font-size: 1.35rem;
  }
  .wing-accent-underline {
    width: 105px;
  }
}

@media (max-width: 980px) {
  .hero-stage {
    height: auto;
    min-height: 480px;
    background-image: 
      linear-gradient(
        180deg, 
        rgba(255, 255, 255, 0.96) 0%, 
        rgba(255, 255, 255, 0.88) 60%, 
        rgba(255, 255, 255, 0.5) 100%
      ),
      url('https://davgodda.nletschool.com/public/school_content/davgodda/gallery/media/197_1-1.jpg');
    background-position: top center, center top;
  }

  .hero-editorial {
    width: 100%;
    max-width: 100%;
    padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  }

  .hero-right-wing {
    display: none;
  }

  .pillars-flex {
    grid-template-columns: repeat(2, 1fr) !important;
    row-gap: 1.2rem !important;
  }

  .pillar-block:nth-child(2) {
    border-right: none !important;
  }
}

@media (max-width: 480px) {
  .hero-main-title {
    font-size: 1.85rem;
  }

  .hero-cta-cluster {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary-pill, 
  .btn-outline-pill {
    justify-content: center;
  }

  .pillars-flex {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .pillar-block {
    border-right: none !important;
    border-bottom: 1px solid #eedec8 !important;
    padding-bottom: 0.6rem !important;
    justify-content: flex-start !important;
    padding-left: 2rem !important;
  }

  .pillar-block:last-child {
    border-bottom: none !important;
  }
}

/* ==========================================================================
   DAYANAND ARYA VEDIC — ABOUT OUR SCHOOL SECTION
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@500;600;700&family=Yatra+One&display=swap');

.dav-about-section .container {
  max-width: 1400px; /* Expands width to use screen naturally */
  width: 94%;
  margin-top: 40px;
  padding: 0 1rem;
}

.dav-about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr auto;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}

/* --- Left Column: Campus Photography Frame & Collage --- */
.about-visual-pane {
  position: relative;
  width: 100%;
}

.about-image-card {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 14px;
}

/* 3-Card Collage Stack Container */
.about-collage-stack {
  position: relative;
  width: 100%;
  height: 420px;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.collage-item {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 28px rgba(11, 37, 69, 0.14);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.25, 1),
              opacity 0.45s ease,
              box-shadow 0.45s ease;
  user-select: none;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.collage-item:hover img {
  transform: scale(1.04);
}

.collage-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(11, 37, 69, 0.85);
  backdrop-filter: blur(4px);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  pointer-events: none;
  letter-spacing: 0.4px;
}

/* Position 1 (Front / Active Hero) */
.collage-item.collage-pos-1 {
  width: 78%;
  height: 290px;
  top: 0;
  left: 0;
  z-index: 3;
  transform: rotate(0deg);
  opacity: 1;
  box-shadow: 0 18px 40px rgba(11, 37, 69, 0.22);
}

/* Position 2 (Middle / Right-Top) */
.collage-item.collage-pos-2 {
  width: 62%;
  height: 220px;
  top: 25px;
  right: 0;
  z-index: 2;
  transform: rotate(4deg);
  opacity: 0.94;
}

.collage-item.collage-pos-2:hover {
  transform: rotate(1.5deg) translateY(-4px);
  opacity: 1;
}

/* Position 3 (Bottom / Center-Left) */
.collage-item.collage-pos-3 {
  width: 66%;
  height: 210px;
  bottom: 0;
  left: 18%;
  z-index: 1;
  transform: rotate(-3.5deg);
  opacity: 0.9;
}

.collage-item.collage-pos-3:hover {
  transform: rotate(-1deg) translateY(-4px);
  opacity: 1;
}

/* Floating Legacy Badge */
.legacy-float-pill {
  position: absolute;
  bottom: 1.4rem;
  left: 1.4rem;
  background: rgba(255, 252, 240, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(224, 180, 110, 0.35);
  border-radius: 8px;
  padding: 0.85rem 1.4rem 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

.legacy-text {
  display: flex;
  flex-direction: column;
}

.legacy-lead {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #0b2545;
  line-height: 1.2;
}

.legacy-highlight {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.18rem;
  font-weight: 700;
  color: #0b2545;
  line-height: 1.2;
}

.legacy-leaf-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* --- Center Column: Editorial --- */
.about-content-pane {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.about-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #d97706; /* Golden amber matching eyebrow */
  margin-bottom: 0.75rem;
}

.about-main-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: #0b2545;
  line-height: 1.18;
  letter-spacing: -0.3px;
  margin-bottom: 1.1rem;
}

.about-body-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 1.5rem;
}

/* Feature Bullet Points */
.about-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0b2545;
}

.feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0b2545;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* Discover Button */
.btn-discover-pill {
  background: #0b2545;
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.85rem;
  border-radius: 40px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.25);
  transition: all 0.25s ease;
  margin-bottom: 15px;
}

.btn-discover-pill:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}

/* --- Right Column: Vedic Motif Watermark --- */
.about-vedic-watermark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 1.5rem;
  pointer-events: none;
}

.vedic-diya-svg {
  width: 220px;
  height: auto;
  opacity: 0.7;
}

.vedic-slogan-text {
  font-family: 'Yatra One', 'Mukta', sans-serif;
  font-size: 1.25rem;
  color: #d97706;
  opacity: 0.75;
  letter-spacing: 1px;
  margin-top: 0.4rem;
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 1200px) {
  .dav-about-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
  }
  .about-vedic-watermark {
    display: none; /* Hide large watermark on smaller viewports */
  }
  .about-main-heading {
    font-size: 2.1rem;
  }
}

@media (max-width: 960px) {
  .dav-about-section {
    padding: 3rem 0 3.5rem 0;
  }
  .dav-about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image-card,
  .about-collage-stack {
    height: 380px;
  }
  .about-content-pane {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .about-image-card,
  .about-collage-stack {
    height: 320px;
  }
  .collage-item.collage-pos-1 {
    width: 82%;
    height: 220px;
  }
  .collage-item.collage-pos-2 {
    width: 62%;
    height: 160px;
  }
  .collage-item.collage-pos-3 {
    width: 66%;
    height: 150px;
  }
}

@media (max-width: 520px) {
  .about-main-heading {
    font-size: 1.85rem;
  }
  .legacy-float-pill {
    bottom: 0.8rem;
    left: 0.8rem;
    padding: 0.6rem 1rem;
  }
  .legacy-lead {
    font-size: 0.88rem;
  }
  .legacy-highlight {
    font-size: 1rem;
  }
  .btn-discover-pill {
    width: 100%;
    justify-content: center;
  }
}
/* ==========================================================================
   DAYANAND ARYA VEDIC — PRINCIPAL'S MESSAGE & QUICK LINKS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

.dav-principal-section {
  position: relative;
  width: 100%;
  background: #fdfbf7;
  padding: 3rem 0;
  border-top: 1px solid #f2ecdf;
  border-bottom: 1px solid #ede4d3;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.dav-principal-section .container {
  max-width: 1360px;
  width: 92%;
  margin: 0 auto;
  padding: 0 1rem;
}

.principal-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 2.5rem;
  align-items: stretch; /* Forces both columns to identical track height */
}

/* ==========================================================================
   DYNAMIC SLOT INTERMEDIARY FIX
   ========================================================================== */

#slot-quicklinks {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
}

/* ==========================================================================
   LEFT CARD: PRINCIPAL'S MESSAGE
   ========================================================================== */

.principal-card-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.8rem 2.2rem 1.8rem 1.8rem;
  box-shadow: 0 6px 24px rgba(11, 37, 69, 0.05);
  border: 1px solid rgba(224, 180, 110, 0.25);
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
}

/* Photo Container with Gold Corner Tab */
.principal-photo-frame {
  position: relative;
  width: 250px;
  height: 250px;
  flex-shrink: 0;
}

.photo-gold-tab {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 50%;
  height: 90%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 14px 0 0 14px;
  z-index: 1;
}

.photo-box {
  position: relative;
  width: 100%;
  height: 110%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 2;
  background: #f1f5f9;
}

.principal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Content Area */
.principal-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  position: relative;
  z-index: 3;
}

.principal-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #d97706;
  margin-bottom: 0.6rem;
}

/* Quote Layout */
.principal-quote-body {
  position: relative;
  margin-bottom: 1.2rem;
}

.quote-mark-svg {
  position: absolute;
  top: -14px;
  left: -32px;
  font-size: 2.8rem;
  line-height: 1;
  color: #f59e0b;
  opacity: 0.85;
  font-family: Georgia, serif;
}

.principal-quote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  text-align: justify;
  line-height: 1.45;
  color: #0b2545;
  margin: 0;
  border-left: 2px solid #f59e0b;
  padding-left: 1rem;
}

/* Principal Identity */
.principal-meta {
  margin-bottom: 1.2rem;
  padding-left: 1.1rem;
}

.principal-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b2545;
  margin: 0 0 2px 0;
}

.principal-designation {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

/* Pill CTA Button */
.btn-read-message {
  align-self: flex-start;
  margin-left: 1.1rem;
  background: #ffffff;
  color: #0b2545 !important;
  border: 1.5px solid #0b2545;
  border-radius: 40px;
  padding: 0.55rem 1.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.25s ease;
}

.btn-read-message:hover {
  background: #0b2545;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.2);
}

/* ==========================================================================
   RIGHT CARD: QUICK LINKS (MATCHED 100% HEIGHT)
   ========================================================================== */

.quick-links-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 6px 24px rgba(11, 37, 69, 0.05);
  border: 1px solid rgba(224, 180, 110, 0.25);
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.quick-links-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0b2545;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.quick-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important; /* Distributes links evenly to fill card height */
  flex-grow: 1 !important;
}

.quick-link-item {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.ql-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(11, 37, 69, 0.05);
  color: #0b2545;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  margin-right: 0.85rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ql-text {
  flex-grow: 1;
}

.ql-arrow {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.quick-link-item:hover {
  background: #bfcce3;
  color: #0b2545;
  border-color: #e2e8f0;
  transform: translateX(3px);
}

.quick-link-item:hover .ql-icon {
  background: #0b2545;
  color: #ffffff;
}

.quick-link-item:hover .ql-arrow {
  color: #d97706;
  transform: translateX(3px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1100px) {
  .principal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #slot-quicklinks,
  .quick-links-card {
    height: auto !important;
  }

  .quick-links-list {
    justify-content: flex-start !important;
    gap: 0.5rem !important;
  }
}

@media (max-width: 680px) {
  .principal-card-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .principal-photo-frame {
    width: 200px;
    height: 200px;
  }

  .principal-quote {
    border-left: none;
    padding-left: 0;
    font-size: 0.8rem;
  }

  .quote-mark-svg {
    position: static;
    display: block;
    margin-bottom: 0.3rem;
  }

  .principal-meta,
  .btn-read-message {
    padding-left: 0;
    margin-left: 0;
    align-self: center;
  }
}

/* ==========================================================================
   DAYANAND ARYA VEDIC — NOTICES, EVENTS & ACADEMIC SHOWCASE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

.dav-updates-section {
  width: 100%;
  background: #ffffff;
  padding: 3.5rem 0 4rem 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.dav-updates-section .container {
  max-width: 1380px;
  width: 92%;
  margin: 0 auto;
  padding: 0 1rem;
}

.updates-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr;
  gap: 1.8rem;
  align-items: stretch;
}

/* ==========================================================================
   MODULAR SLOT INTERMEDIARY BRIDGES
   ========================================================================== */

#slot-notices,
#slot-events {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
}

#slot-notices .update-card,
#slot-events .update-card {
  height: 100% !important;
  flex: 1 1 auto !important;
}

/* ==========================================================================
   MASTER CARD BASE
   ========================================================================== */

.update-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   CARD 1: NOTICE BOARD
   ========================================================================== */

.card-notice-board {
  border: 1px solid rgba(11, 37, 69, 0.1);
}

.card-header-navy {
  background: linear-gradient(135deg, #07192f 0%, #0d284f 100%);
  padding: 1.3rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.header-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 0.25rem;
}

.header-title-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
}

.link-view-all {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  padding-bottom: 2px;
}

.link-view-all:hover {
  color: #f59e0b;
  transform: translateX(2px);
}

/* Notice Rows */
.card-body-items {
  padding: 0.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.notice-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 8px;
  position: relative;
  transition: background-color 0.25s ease, padding-left 0.25s ease;
}

.notice-row:last-child {
  border-bottom: none;
}

.notice-row:hover {
  background-color: #bfcce3;
  padding-left: 0.85rem;
}

.date-pill-soft {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f1f6fb;
  border: 1px solid #dce8f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notice-row:hover .date-pill-soft {
  background: #0284c7;
  border-color: #0284c7;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.d-day {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0d284f;
  line-height: 1;
}

.d-mon {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.notice-row:hover .date-pill-soft .d-day,
.notice-row:hover .date-pill-soft .d-mon {
  color: #ffffff;
}

.notice-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

/* Notice Title & Recent Badge Wrapper */
.notice-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.notice-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
}

/* Dynamic RECENT Badge */
.tag-recent {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 0.16rem 0.46rem;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
  animation: davRecentPulse 2.4s ease-in-out infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

.tag-recent i {
  font-size: 0.55rem;
}

@keyframes davRecentPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.88;
    transform: scale(0.96);
  }
}

/* ==========================================================================
   NOTICE DUAL ACTIONS (VIEW & DOWNLOAD)
   ========================================================================== */

.notice-actions-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.notice-action-link {
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  transition: all 0.2s ease;
}

.notice-action-link.view-link {
  color: #0284c7;
}

.notice-action-link.download-link {
  color: #64748b;
}

.notice-action-link.view-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

.notice-action-link.download-link:hover {
  color: #d97706;
}

.notice-action-link i {
  font-size: 0.76rem;
  transition: transform 0.2s ease;
}

.notice-action-link.download-link:hover i {
  transform: translateY(1.5px);
}

.notice-action-link.view-link:hover i {
  transform: scale(1.15);
}

.action-divider {
  font-size: 0.72rem;
  color: #cbd5e1;
  user-select: none;
}

/* ==========================================================================
   NOTICE POPUP MODAL
   ========================================================================== */

.dav-notice-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dav-notice-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dav-notice-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 2rem 2.2rem;
  box-shadow: 0 20px 45px rgba(11, 37, 69, 0.25);
  border: 1px solid rgba(11, 37, 69, 0.15);
  transform: scale(0.9) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dav-notice-modal-backdrop.is-active .dav-notice-modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #0b2545;
}

.notice-modal-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.notice-modal-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0284c7;
  display: block;
  margin-bottom: 0.2rem;
}

.notice-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: #0b2545;
  margin: 0;
  line-height: 1.3;
}

.notice-modal-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 1.8rem 0;
}

.notice-modal-actions {
  display: flex;
  gap: 0.85rem;
}

.btn-notice-modal-view {
  flex: 1;
  background: #f1f6fb;
  color: #0284c7;
  border: 1.5px solid #dce8f4;
  padding: 0.65rem 1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-notice-modal-view:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.btn-notice-modal-download {
  flex: 1;
  background: #0b2545;
  color: #ffffff;
  border: 1.5px solid #0b2545;
  padding: 0.65rem 1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-notice-modal-download:hover {
  background: #d97706;
  border-color: #d97706;
  transform: translateY(-2px);
}
/* ==========================================================================
   CARD 2: UPCOMING EVENTS
   ========================================================================== */

.card-events {
  background: #fffdf9;
  border: 1px solid #fae8ce;
}

.card-header-cream {
  padding: 1.35rem 1.6rem 0.85rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f9ebd8;
}

.header-icon-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.calendar-icon-box {
  color: #d97706;
  font-size: 1.35rem;
}

.events-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #d97706;
  margin: 0;
}

.link-view-all-amber {
  color: #d97706;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s ease;
}

.link-view-all-amber:hover {
  transform: translateX(3px);
}

.event-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.82rem 0.5rem;
  border-bottom: 1px solid #f6ecdc;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding-left 0.25s ease;
}

.event-row:last-child {
  border-bottom: none;
}

.event-row:hover {
  background-color: #fefcf8;
  padding-left: 0.85rem;
  transform: translateX(4px);
}

.date-pill-amber {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fef5e7;
  border: 1px solid #fedbb0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.date-pill-amber .d-day {
  color: #d97706;
}

.date-pill-amber .d-mon {
  color: #b45309;
}

.event-row:hover .date-pill-amber {
  background: #d97706;
  border-color: #d97706;
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28);
}

.event-row:hover .date-pill-amber .d-day,
.event-row:hover .date-pill-amber .d-mon {
  color: #ffffff;
}

.event-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f2b48;
  margin: 0 0 2px 0;
}

.event-venue {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
}

.event-arrow {
  font-size: 0.8rem;
  color: #0f2b48;
  opacity: 0.4;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, opacity 0.2s ease;
  margin-right: 0.4rem;
}

.event-row:hover .event-arrow {
  opacity: 1;
  color: #d97706;
  transform: translateX(6px) scale(1.15);
}

.card-events:hover .calendar-icon-box i {
  animation: bellRing 0.8s ease both;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-4deg); }
}

/* ==========================================================================
   CARD 3: OUR ACADEMICS PHOTO FEATURE
   ========================================================================== */

.card-academics-feature {
  position: relative;
  min-height: 380px;
  border: none;
  overflow: hidden;
}

.academics-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-academics-feature:hover .academics-bg-photo {
  transform: scale(1.08);
}

.academics-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg, 
    rgba(11, 37, 69, 0.1) 0%, 
    rgba(7, 25, 49, 0.6) 45%, 
    rgba(6, 20, 39, 0.94) 100%
  );
  z-index: 2;
}

.card-academics-feature::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  transition: all 0.75s ease;
  pointer-events: none;
  z-index: 4;
}

.card-academics-feature:hover::after {
  left: 120%;
}

.academics-overlay-box {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.academic-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 0.4rem;
}

.academic-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.academic-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #e2e8f0;
  margin-bottom: 1.2rem;
  max-width: 320px;
}

.btn-academic-gold {
  background: linear-gradient(90deg, #ea580c 0%, #f59e0b 100%);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1.35rem;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.btn-academic-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.6);
}

.btn-academic-gold i {
  transition: transform 0.25s ease;
}

.card-academics-feature:hover .btn-academic-gold i {
  transform: translateX(4px);
}

/* ==========================================================================
   SCROLL ENTRANCE & HOVER ELEVATION (SLOT-AWARE)
   ========================================================================== */

/* Target both direct grid tracks and nested update cards */
.updates-grid-3 > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Staggered entrance applied to the 3 grid columns */
.updates-grid-3.is-visible > *:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.updates-grid-3.is-visible > *:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.updates-grid-3.is-visible > *:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.update-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.update-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 37, 69, 0.12);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1100px) {
  .updates-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .card-academics-feature {
    grid-column: span 2;
    min-height: 280px;
  }
  .academics-overlay-box {
    max-width: 500px;
  }
}

@media (max-width: 720px) {
  .updates-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .card-academics-feature {
    grid-column: span 1;
    min-height: 320px;
  }
}

/* ==========================================================================
   SCROLL REVEAL & INTERACTIVE STATE HOOKS
   ========================================================================== */

/* 1. About Section Scroll Reveal */
.dav-about-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.dav-about-section.about-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Principal Section Scroll Reveal */
.dav-principal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.dav-principal-section.principal-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Smooth Dynamic Pillar Ring Hover Transition */
.pillar-block .pillar-ring {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease;
}

/* 4. Updates Triad Initial Hidden State */
.updates-grid-3 .update-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}

/* Updates Triad Staggered Entrance */
.updates-grid-3.is-visible .update-card:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.updates-grid-3.is-visible .update-card:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.18s;
}

.updates-grid-3.is-visible .update-card:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}

/* ==========================================================================
   LIFE AT DAV — 6-CARD SINGLE ROW WITH HOVER OVERLAY & DETAIL MODAL
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

.dav-life-section {
  width: 100%;
  background: #ffffff;
  padding: 3.5rem 0 3rem 0;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.dav-life-section .container {
  max-width: 1380px;
  width: 92%;
  margin: 0 auto;
  padding: 0;
}

/* Header Layout */
.life-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  padding: 0;
}

.life-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.15rem;
  font-weight: 700;
  color: #0b2545;
  margin: 0 0 0.35rem 0;
  line-height: 1.1;
}

.life-subheading {
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

.life-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0b2545;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.life-gallery-link i {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.life-gallery-link:hover {
  color: #d97706;
}

.life-gallery-link:hover i {
  transform: translateX(5px);
}

/* ==========================================================================
   STRICT SINGLE-ROW HORIZONTAL FLEX CONTAINER (ALL 6 CARDS IN ONE LINE)
   ========================================================================== */
.life-cards-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  gap: 1.1rem !important;
  width: 100% !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.8rem;
}

/* Custom Scrollbar for Smooth Swiping */
.life-cards-grid::-webkit-scrollbar {
  height: 5px;
}
.life-cards-grid::-webkit-scrollbar-track {
  background: transparent;
}
.life-cards-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Base Card Architecture (Exactly 1/6 Width on Desktop) */
.life-card {
  flex: 0 0 calc((100% - 4.4rem) / 5) !important;
  min-width: 210px !important;
  position: relative;
  height: 340px;
  border-radius: 16px;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(35px) scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  box-sizing: border-box;
}

/* Staggered Scroll Entrance */
.life-cards-grid.is-visible .life-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(var(--i) * 0.08s);
}

.life-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(11, 37, 69, 0.09);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s ease;
}

.life-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease;
}

/* Bottom Vignette Gradient */
.life-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    rgba(11, 37, 69, 0.02) 40%, 
    rgba(11, 37, 69, 0.45) 75%, 
    rgba(7, 23, 43, 0.95) 100%
  );
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

/* Frosted Bottom Pill Badge (Visible by Default) */
.life-card-pill {
  position: absolute;
  bottom: 1.1rem;
  left: 0.8rem;
  right: 0.8rem;
  background: rgba(7, 23, 43, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
  z-index: 3;
}

.pill-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              background 0.3s ease, 
              color 0.3s ease;
}

.pill-label {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   HOVER OVERLAY PANE (Title, Description Snippet & View Details Button)
   ========================================================================== */
.life-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 25, 47, 0.4) 0%, rgba(7, 23, 43, 0.95) 75%);
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 4;
}

.overlay-tag {
  color: #f59e0b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transform: translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-title {
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  line-height: 1.25;
  transform: translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.04s;
}

.overlay-desc {
  color: #cbd5e1;
  font-size: 0.75rem;
  line-height: 1.45;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transform: translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.btn-life-view-more {
  background: #d97706;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 0.45rem 0.9rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  transition: background 0.2s ease, transform 0.2s ease;
  transform: translateY(12px);
}

.btn-life-view-more:hover {
  background: #f59e0b;
  transform: scale(1.05);
}

/* Hover Physics */
.life-card:hover .life-card-inner {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(11, 37, 69, 0.22);
  border-color: rgba(217, 119, 6, 0.4);
}

.life-card:hover .life-card-img {
  transform: scale(1.12);
  filter: brightness(1.05) contrast(1.03);
}

.life-card:hover .life-card-pill {
  opacity: 0;
  transform: translateY(8px);
}

.life-card:hover .life-card-overlay {
  opacity: 1;
  visibility: visible;
}

.life-card:hover .overlay-tag,
.life-card:hover .overlay-title,
.life-card:hover .overlay-desc,
.life-card:hover .btn-life-view-more {
  transform: translateY(0);
}

/* Shimmer Light Sweep */
.life-card-inner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  transition: all 0.75s ease;
  pointer-events: none;
  z-index: 5;
}

.life-card:hover .life-card-inner::after {
  left: 140%;
}

/* ==========================================================================
   DETAIL POPUP MODAL (FULL PHOTO & DESCRIPTION)
   ========================================================================== */
.dav-life-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dav-life-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dav-life-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  width: 100%;
  max-width: 880px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dav-life-modal-backdrop.is-active .dav-life-modal-dialog {
  transform: scale(1) translateY(0);
}

.life-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}

.life-modal-close:hover {
  background: #d97706;
  transform: scale(1.1);
}

.life-modal-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.life-modal-media {
  background: #0b1d33;
  min-height: 420px;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.life-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.life-modal-body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.life-modal-tag {
  color: #d97706;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.life-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  color: #0b2545;
  margin: 0;
  line-height: 1.25;
}

.life-modal-divider {
  width: 48px;
  height: 3px;
  background: #d97706;
  border-radius: 2px;
  margin: 1.1rem 0;
}

.life-modal-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 1.8rem 0;
}

.life-modal-footer {
  display: flex;
}

.life-modal-cta {
  background: #0b2545;
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.life-modal-cta:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (HORIZONTAL SWIPE ON SMALLER VIEWPORTS)
   ========================================================================== */
@media (max-width: 1200px) {
  .life-card {
    flex: 0 0 220px !important;
    height: 320px;
  }
}

@media (max-width: 768px) {
  .life-modal-grid {
    grid-template-columns: 1fr;
  }
  .life-modal-media {
    min-height: 240px;
    max-height: 280px;
  }
  .life-modal-body {
    padding: 1.8rem 1.4rem;
  }
  .life-modal-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 520px) {
  .life-card {
    flex: 0 0 200px !important;
    height: 300px;
  }
  .life-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .life-heading {
    font-size: 1.85rem;
  }
}
/* ==========================================================================
   DAYANAND ARYA VEDIC — OUR ACADEMICS & ACHIEVEMENTS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

.dav-academics-section {
  width: 100%;
  background: #ffffff;
  padding: 3.5rem 0 4.5rem 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow: hidden;
}

.academics-container {
  max-width: 1380px;
  width: 92%;
  margin: 0 auto;
  padding: 0;
}

/* Header Layout */
.academics-header-block {
  margin-bottom: 2rem;
}

.academics-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.15rem;
  font-weight: 700;
  color: #0b2545;
  margin: 0 0 0.35rem 0;
  line-height: 1.15;
}

.academics-sub-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

/* Master Grid: 3 Academic Cards (62%) + Achievement Card (38%) */
.academics-achieve-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
}

/* Left: 3 Sub-Cards */
.academic-cards-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* Stage Card Foundation */
.academic-stage-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.4rem 1.2rem 1.2rem 1.2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 20px rgba(11, 37, 69, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.academic-stage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 37, 69, 0.1);
}

/* Organic Wave Decal in Card Top Corner */
.card-wave-corner {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 90px;
  height: 90px;
  background: var(--accent-bg);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.stage-card-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stage-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.stage-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.6px solid var(--accent);
  background: #ffffff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.academic-stage-card:hover .stage-icon-circle {
  transform: scale(1.08) rotate(-6deg);
}

.stage-meta {
  display: flex;
  flex-direction: column;
}

.stage-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  line-height: 1.15;
}

.stage-classes {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.stage-description {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 1.4rem;
  flex-grow: 1;
  max-width: 85%;
}

.stage-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.25s ease;
}

.stage-learn-more:hover {
  gap: 0.7rem;
}

/* Floating Student Cutout Bottom-Right */
.stage-student-cutout {
  position: absolute;
  right: -5px;
  bottom: 0;
  width: 105px;
  height: 130px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.stage-student-cutout img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(-4px -4px 8px rgba(0, 0, 0, 0.08));
}

/* ==========================================================================
   RIGHT: ACHIEVEMENTS SHOWCASE CARD
   ========================================================================== */

.achievements-card {
  position: relative;
  background: linear-gradient(135deg, #05162a 0%, #0b2545 100%);
  border-radius: 18px;
  padding: 1.8rem 2rem;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Soft Ambient Radial Light */
.achieve-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

/* Top Bar: Titles + Trophy */
.achieve-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.achieve-kicker {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.achieve-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.trophy-wreath-box {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  animation: floatTrophy 4s ease-in-out infinite;
}

@keyframes floatTrophy {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.trophy-svg {
  width: 100%;
  height: 100%;
}

/* Metrics Row */
.achieve-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-col {
  text-align: center;
}

.metric-col.highlight-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.6rem 0.4rem;
}

.metric-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #f59e0b;
  margin: 0 0 2px 0;
  line-height: 1;
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

/* Bottom 3 Pillars */
.achieve-sub-features {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sub-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
}

.sub-feature-item i {
  color: #f59e0b;
  font-size: 0.88rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
  .academics-achieve-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .academic-cards-cluster {
    grid-template-columns: 1fr;
  }
  .stage-description {
    max-width: 100%;
  }
  .achieve-metrics-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1rem;
  }
  .achieve-sub-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}

/* ==========================================================================
   COMMUNITY & MOMENTS: MOBILE-FIRST RESPONSIVE ENGINE (community.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

.dav-community-section {
  width: 100%;
  background: #fdfbf7;
  padding: 3rem 0;
  border-top: 1px solid #f1e9dd;
  border-bottom: 1px solid #ebe2d3;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: clip;
}

.dav-community-section .container {
  max-width: 1380px;
  width: 92%;
  margin: 0 auto;
  padding: 0;
}

.community-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.moments-col,
.testimonials-col {
  min-width: 0; /* CRITICAL: Allows flex/grid children to shrink below content width */
  width: 100%;
}

.community-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.2rem;
}

.community-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #0b2545;
  margin: 0 0 0.25rem 0;
  line-height: 1.15;
}

.community-subheading {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  font-weight: 600;
}

.community-view-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0b2545;
  text-decoration: none;
  transition: all 0.25s ease;
}

.community-view-link:hover {
  color: #d97706;
  transform: translateX(3px);
}

/* ==========================================================================
   LEFT COLUMN: MOMENTS HORIZONTAL REEL
   ========================================================================== */

.moments-reel-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.moments-reel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
  width: 100%;
}

.moments-reel::-webkit-scrollbar {
  display: none;
}

.moment-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  flex: 0 0 auto;
}

.card-wide {
  width: 190px;
  height: 200px;
}

.card-portrait {
  width: 110px;
  height: 200px;
}

.moment-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 110px;
  height: 200px;
  flex: 0 0 auto;
}

.card-half {
  width: 100%;
  height: 94px;
}

.moment-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.moment-overlay-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(11, 37, 69, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.reel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0b2545;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.reel-nav-btn.btn-prev { left: -14px; }
.reel-nav-btn.btn-next { right: -14px; }

/* ==========================================================================
   RIGHT COLUMN: TESTIMONIALS (ZERO-OVERFLOW VIEWPORT)
   ========================================================================== */

.carousel-nav-arrows {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.caro-arrow-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0b2545;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
}

.testi-viewport {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 14px;
  position: relative;
}

.testi-track {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.testi-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #f0e6d6;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 6px 20px rgba(11, 37, 69, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.testi-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.testi-avatar-frame {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  overflow: hidden;
  flex-shrink: 0;
}

.testi-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testi-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.45;
  margin: 0;
  font-style: italic;
  overflow-wrap: break-word;
  word-break: break-word;
}

.testi-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #bfcce3;
  padding-top: 0.75rem;
  margin-top: 1rem;
}

.testi-author-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0b2545;
  margin: 0 0 2px 0;
}

.testi-author-role {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
}

.testi-rating-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 0.8rem;
}

.testi-pagination-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
}

.testi-pagination-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testi-pagination-dots .dot.active {
  width: 18px;
  border-radius: 10px;
  background: #0b2545;
}

/* ==========================================================================
   MOBILE BREAKPOINTS (<= 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .dav-community-section {
    padding: 2.2rem 0 2.5rem 0;
  }

  .community-dual-grid {
    grid-template-columns: 100%;
    gap: 2.5rem;
  }

  .community-heading {
    font-size: 1.55rem;
  }

  /* 1. Mobile Reel: Native Touch Snap */
  .reel-nav-btn {
    display: none !important;
  }

  .moments-reel {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0 0.6rem 0;
  }

  .moment-card,
  .moment-stack {
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .card-wide {
    width: 180px;
    height: 170px;
  }

  .moment-stack {
    width: 110px;
    height: 170px;
  }

  .card-half {
    height: 80px;
  }

  .card-portrait {
    width: 110px;
    height: 170px;
  }

  /* 2. Mobile Testimonials Viewport */
  .testi-viewport {
    width: 100% !important;
    max-width: 100% !important;
  }

  .testi-track {
    gap: 0 !important;
    width: 100% !important;
  }

  .testi-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem 1.1rem !important;
  }

  .testi-avatar-frame {
    width: 44px;
    height: 44px;
  }

  .testi-quote {
    font-size: 0.88rem;
    line-height: 1.4;
  }
}

.moments-reel > * {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  user-select: none;
}

.moments-reel > *:hover {
  transform: translateY(-4px);
}
/* ==========================================================================
   DAYANAND ARYA VEDIC PUBLIC SCHOOL — COMPLETE UNIVERSAL FOOTER (footer.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --dav-navy-dark: #071c35;
  --dav-navy-base: #0a2544;
  --dav-navy-bottom: #051427;
  --dav-gold-grad: linear-gradient(90deg, #ea580c 0%, #f59e0b 100%);
  --dav-gold: #f59e0b;
}

.dav-universal-footer {
  position: relative;
  width: 100%;
  background: var(--dav-navy-base);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #e2e8f0;
  overflow: hidden;
}

.dav-universal-footer .container {
  max-width: 1380px;
  width: 92%;
  margin: 0 auto;
  padding: 0;
}

/* ==========================================================================
   1. UPPER PANORAMIC CTA RIBBON
   ========================================================================== */

.footer-cta-ribbon {
  position: relative;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-panoramic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.92);
}

/* Left-to-Right Midnight Vignette Mask */
.cta-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 21, 39, 0.96) 0%,
    rgba(7, 24, 46, 0.88) 32%,
    rgba(7, 24, 46, 0.55) 55%,
    rgba(7, 24, 46, 0.15) 100%
  );
}

.cta-container {
  position: relative;
  z-index: 3;
}

.cta-editorial-box {
  max-width: 580px;
}

.cta-serif-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 0.45rem 0;
  letter-spacing: -0.2px;
}

.cta-lead-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 1.2rem 0;
  max-width: 480px;
}

.cta-buttons-cluster {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.btn-cta-amber {
  background: var(--dav-gold-grad);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.65rem 1.45rem;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.25s ease;
}

.btn-cta-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.5);
}

.btn-cta-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.62rem 1.35rem;
  border-radius: 30px;
  border: 1.4px solid rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.btn-cta-outline:hover {
  background: #ffffff;
  color: var(--dav-navy-base) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   2. MAIN MIDNIGHT NAVY FOOTER MATRIX
   ========================================================================== */

.footer-main-matrix {
  background: var(--dav-navy-dark);
  padding: 3rem 0;
}

.footer-columns-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

.footer-col {
  flex: 1;
}

/* Vertical Column Divider */
.footer-v-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0.5rem;
}

/* Column 1: Brand Stacked Layout (Centered 200px Logo) */
.footer-col-brand {
  flex: 2.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
}

.brand-crest-frame {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto;
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-school-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-indent: 0.8px;
  color: #ffffff;
  margin: 0 auto 0.35rem auto;
  line-height: 1.35;
  max-width: 320px;
  text-align: center;
}

.footer-school-motto {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  margin: 0 auto;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Navigation & Titles */
.footer-col-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  letter-spacing: 0.3px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-list li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-nav-list li a:hover {
  color: #f59e0b;
  transform: translateX(3px);
}

/* Column 4: Contact */
.footer-col-contact {
  flex: 1.8;
}

.contact-entry-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}

.contact-entry-icon {
  color: #38bdf8;
  font-size: 0.8rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-entry a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-entry a:hover {
  color: #ffffff;
}

/* Column 5: Social Channels */
.footer-col-social {
  flex: 1.1;
}

.social-pills-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-circle:hover {
  transform: translateY(-3px);
  border-color: transparent;
}

.soc-facebook:hover { background: #1877f2; }
.soc-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.soc-youtube:hover { background: #ff0000; }

/* Desktop Default: Static layout, chevron hidden */
.footer-accordion-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
}

.footer-chevron {
  display: none;
}

.footer-accordion-content {
  display: block;
}

/* ==========================================================================
   3. BOTTOM LEGAL BAR
   ========================================================================== */

.footer-bottom-bar {
  background: var(--dav-navy-bottom);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem 0;
  font-size: 0.74rem;
  color: #64748b;
}

.bottom-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-copy {
  font-weight: 500;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: #cbd5e1;
}

.legal-sep {
  opacity: 0.4;
}

/* ==========================================================================
   4. RESPONSIVE BREAKPOINTS & MOBILE ACCORDIONS
   ========================================================================== */

@media (max-width: 1080px) {
  .footer-columns-grid {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .footer-v-divider {
    display: none;
  }
  .footer-col-brand {
    flex: 100%;
    margin-bottom: 0.5rem;
  }
  .brand-crest-frame {
    width: 160px;
    height: 160px;
  }
  .footer-col-nav {
    flex: 1 1 30%;
  }
  .footer-col-contact {
    flex: 1 1 45%;
  }
  .footer-col-social {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .footer-main-matrix {
    padding: 2.2rem 0;
  }
  
  /* Centered Column Stack */
  .footer-columns-grid {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
  }

  /* Center Brand Container & Eliminate Left Bias */
  .footer-col-brand {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto 1.8rem auto;
    padding: 0;
  }

  .brand-crest-frame {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-logo-img {
    margin: 0 auto;
    display: block;
  }

  .brand-text-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
  }

  .footer-school-title {
    width: 100%;
    text-align: center;
    margin: 0 auto 0.35rem auto;
    letter-spacing: 0.4px;
    text-indent: 0.4px;
  }

  .footer-school-motto {
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .footer-col-social {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.2rem;
    padding-top: 0.5rem;
  }

  .footer-col-social .footer-col-title {
    text-align: center;
    margin-bottom: 0.6rem;
  }

  .social-pills-row {
    justify-content: center;
  }

  /* Mobile Collapsible Accordions */
  .footer-accordion {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .footer-accordion-btn {
    cursor: pointer;
    padding: 0.5rem 0;
    user-select: none;
  }

  .footer-accordion-btn .footer-col-title {
    margin: 0;
    font-size: 0.95rem;
    color: #ffffff;
  }

  .footer-chevron {
    display: inline-block;
    color: #f59e0b;
    font-size: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .footer-accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
  }

  .footer-accordion-content > * {
    overflow: hidden;
  }

  /* Active Expanded State */
  .footer-accordion.is-open .footer-accordion-content {
    grid-template-rows: 1fr;
    padding-top: 0.8rem;
  }

  .footer-accordion.is-open .footer-chevron {
    transform: rotate(180deg);
  }
}

@media (max-width: 680px) {
  .footer-cta-ribbon {
    height: auto;
    padding: 2.5rem 0;
  }
  
  .cta-serif-heading {
    font-size: 1.45rem;
  }
  
  .cta-buttons-cluster {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-cta-amber, 
  .btn-cta-outline {
    justify-content: center;
  }
  
  .bottom-bar-flex {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
}

.legacy-leaf-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.legacy-float-pill:hover .legacy-leaf-icon {
  transform: translateY(-2px) scale(1.06);
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.35));
}

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');


/* ==========================================================================
   ANIMATED EVENT MODAL (POPUP)
   ========================================================================== */

.dav-event-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dav-event-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dav-event-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 2rem 2.2rem;
  box-shadow: 0 20px 45px rgba(11, 37, 69, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.3);
  transform: scale(0.9) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dav-event-modal-backdrop.is-active .dav-event-modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  color: #d97706;
  transform: rotate(90deg);
}

.modal-meta-strip {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.modal-date-tag {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #fef5e7;
  border: 1.5px solid #fedbb0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #d97706;
  font-weight: 800;
  flex-shrink: 0;
}

.modal-date-tag span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}

.modal-date-tag span:last-child {
  font-size: 0.65rem;
  color: #b45309;
  letter-spacing: 0.5px;
}

.modal-quick-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-info-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-info-item i {
  color: #d97706;
  width: 14px;
}

.modal-event-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  color: #0b2545;
  margin: 0 0 0.85rem 0;
  line-height: 1.25;
}

.modal-event-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 1.8rem 0;
}

.modal-action-row {
  display: flex;
  justify-content: flex-end;
}

.btn-modal-dismiss {
  background: #0b2545;
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.6rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-modal-dismiss:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO CAROUSEL / SLIDER (MINIMAL REQUIRED CSS)
   ========================================================================== */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(217, 119, 6, 0.35);
  box-shadow: 0 16px 36px rgba(11, 37, 69, 0.12);
  background: #0b2545;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease-in-out, visibility 0.55s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.2rem 1.4rem 1rem 1.4rem;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 37, 69, 0.88) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.slide-badge {
  background: #d97706;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
}

.slide-caption p {
  font-size: 0.88rem;
  margin: 0;
  color: #f1f5f9;
  font-weight: 500;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 37, 69, 0.75);
  color: #ffffff;
  font-size: 0.8rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-btn:hover {
  background: #d97706;
  transform: translateY(-50%) scale(1.08);
}

.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.slider-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.slider-dots .dot.is-active {
  background: #f59e0b;
  width: 20px;
  border-radius: 10px;
}

@media (max-width: 992px) {
  .hero-slider-wrap {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .hero-slider-wrap {
    height: 240px;
  }
  .slide-caption {
    padding: 1.5rem 1rem 0.8rem 1rem;
  }
}

/* ==========================================================================
   CONCEPT 1: EXECUTIVE FACULTY PLINTH
   ========================================================================== */
.about-teachers-section {
  padding: 90px 0;
  background: #ffffff;
}

.container-teachers {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.teachers-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.teachers-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.teacher-showcase-card {
  position: relative;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  background: #040e1b;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(4, 14, 27, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.teacher-showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(4, 14, 27, 0.18);
}

.teacher-photo-frame {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.teacher-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.95);
}

.teacher-showcase-card:hover .teacher-photo-frame img {
  transform: scale(1.06);
}

/* Permanent contrast scrim */
.teacher-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 14, 27, 0.1) 0%, rgba(4, 14, 27, 0.3) 50%, rgba(4, 14, 27, 0.95) 100%);
}

.teacher-tag-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #0b2545;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.teacher-exp-chip {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  background: rgba(4, 14, 27, 0.7);
  backdrop-filter: blur(8px);
  color: #f59e0b;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.teacher-info-block {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 30px 26px;
  color: #ffffff;
  transform: translateY(28px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.teacher-showcase-card:hover .teacher-info-block {
  transform: translateY(0);
}

.teacher-designation {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 4px;
}

.teacher-person-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.teacher-brief {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 16px 0;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.35s ease, max-height 0.4s ease;
  overflow: hidden;
}

.teacher-showcase-card:hover .teacher-brief {
  opacity: 1;
  max-height: 80px;
}

.teacher-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
  font-size: 0.8rem;
  color: #f1f5f9;
}

.teacher-card-bottom i {
  color: #f59e0b;
}

@media (max-width: 992px) {
  .teachers-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .teachers-cards-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MINIMAL FLOATING PORTRAIT FACULTY CARDS (MATCHING REFERENCE EXACTLY)
   ========================================================================== */

:root {
  --dav-navy-900: #0b2545;
  --dav-gold-500: #f59e0b;
  --dav-gold-600: #d97706;
  --dav-slate-600: #64748b;
  --dav-slate-100: #f1f5f9;
  --dav-card-w: 195px;
  --dav-card-h: 275px;
}

/* Outer Section */
.about-teachers-section {
  padding: 60px 0 75px 0;
  background: #ffffff;
  overflow: hidden;
}

.container-teachers {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.teachers-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  gap: 16px;
}

.sub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dav-gold-600);
  margin-bottom: 6px;
}

.teachers-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--dav-navy-900);
  margin: 0;
  line-height: 1.25;
}

.btn-teachers-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dav-navy-900);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-teachers-view-all:hover {
  background: var(--dav-gold-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.25);
}

/* HOMEPAGE: STRICT 6-CARD HORIZONTAL ROW + MOBILE SWIPE */
.teachers-cards-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 18px !important;
  width: 100% !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
}

.teachers-cards-grid::-webkit-scrollbar {
  height: 5px;
}
.teachers-cards-grid::-webkit-scrollbar-track {
  background: transparent;
}
.teachers-cards-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* FACULTY ARCHIVE GRID (about/faculty.html) */
.fac-id-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 22px;
  margin-bottom: 50px;
}

/* STRICT FIXED BOX: 195px W x 275px H */
.dav-ref-card {
  width: var(--dav-card-w) !important;
  min-width: var(--dav-card-w) !important;
  max-width: var(--dav-card-w) !important;
  height: var(--dav-card-h) !important;
  min-height: var(--dav-card-h) !important;
  max-height: var(--dav-card-h) !important;
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: transform 0.25s ease;
  box-sizing: border-box;
}

.dav-ref-card:hover {
  transform: translateY(-4px);
}

/* Photo Frame Container */
.dav-ref-frame {
  position: relative;
  width: 100%;
  height: 205px;
  border-radius: 20px;
  overflow: visible;
  background: #f1f5f9;
}

.dav-ref-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.06);
  border: 1px solid #e2e8f0;
  background: #bfcce3;
}

/* Image Framing */
.dav-ref-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8% !important; /* Preserves entire forehead & face */
  display: block;
  transition: transform 0.4s ease;
}

.dav-ref-card:hover .dav-ref-img {
  transform: scale(1.04);
}

/* Wing Tag Badge */
.dav-ref-wing-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--dav-navy-900);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* FAB Floating Action Button */
.dav-ref-fab-cluster {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  z-index: 5;
}

.dav-ref-fab-trigger {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
  transition: transform 0.25s ease;
}

.dav-ref-card:hover .dav-ref-fab-trigger {
  transform: rotate(45deg);
}

/* Typography Below Photo */
.dav-ref-content {
  height: 70px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dav-ref-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dav-navy-900);
  margin: 0 0 2px 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.dav-ref-card:hover .dav-ref-name {
  color: var(--dav-gold-600);
}

.dav-ref-role {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--dav-slate-600);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile Footer CTA */
.teachers-mobile-cta {
  display: none;
  margin-top: 24px;
  text-align: center;
}

/* Pagination Row */
.dav-pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 45px;
}

.dav-page-num {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--dav-slate-600);
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dav-page-num.active {
  color: var(--dav-gold-600);
  border-bottom: 2px solid var(--dav-gold-600);
  border-radius: 0;
}

.dav-page-num:hover:not(.active) {
  color: var(--dav-navy-900);
  background: var(--dav-slate-100);
}

@media (max-width: 650px) {
  .teachers-header-row .btn-teachers-view-all {
    display: none;
  }
  .teachers-mobile-cta {
    display: block;
  }
}

/* ==========================================================================
   FLOATING ACTION BUTTON (FAB) & EXPANDING 3-BUTTON DRAWER
   ========================================================================== */

.dav-ref-fab-cluster {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  flex-direction: column-reverse; /* Keeps the '+' button at the very bottom */
  align-items: center;
  z-index: 10;
  pointer-events: auto;
}

/* The bottom orange '+' circle */
.dav-ref-fab-trigger {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
  position: relative;
  z-index: 12;
}

/* When the card or cluster is hovered, rotate the '+' into an 'x' */
.dav-ref-card:hover .dav-ref-fab-trigger,
.dav-ref-fab-cluster:hover .dav-ref-fab-trigger {
  transform: rotate(45deg);
  background: #d97706;
}

/* Vertical 3-icon pill drawer extending upward */
.dav-ref-fab-drawer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 5px 16px 5px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  margin-bottom: -14px; /* Tucks seamlessly underneath the '+' circle */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.85);
  transform-origin: bottom center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 11;
}

/* Pop the 3 buttons out when hovering over the card or the button */
.dav-ref-card:hover .dav-ref-fab-drawer,
.dav-ref-fab-cluster:hover .dav-ref-fab-drawer {
  opacity: 1;
  visibility: visible;
  transform: translateY(-4px) scale(1);
}

/* Individual icons inside the drawer */
.dav-ref-fab-drawer .fab-action-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  opacity: 0.95;
}

.dav-ref-fab-drawer .fab-action-btn:hover {
  transform: scale(1.2);
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}