/* =====================================================
   INDEX.CSS — Sunbeam Women's College, Varuna updated 
   Sections:
   1.  CSS Variables
   2.  Base & Typography
   3.  Animations & Keyframes
   4.  Carousel Dots
   5.  Desktop Navbar
   6.  Mobile Navbar & Hamburger
   7.  Hero Slider
   8.  Utilities (cover-img, dividers, labels)
   9.  Section Headings
   10. Leadership Section
   11. Principal Section
   12. Notifications / Events
   13. Achievements & Press
   14. Alumni Testimonials
   15. Alumni Stories Carousel
   16. Captured Memories
   17. About Page Components
   18. Footer
   19. Responsive Breakpoints
===================================================== */

/* ─── 1. CSS VARIABLES ─────────────────────────── */
:root {
  --maroon:       #800000;
  --maroon-dark:  #5f0000;
  --maroon-light: #9b0000;
  --yellow:       #FACC15;
  --yellow-alt:   #ca8a04;
  --cream:        #fdf8f3;
  --surface:      #f9fafb;
  --border:       #e5e7eb;
  --border-mid:   #d1d5db;
  --text-dark:    #111827;
  --text-mid:     #374151;
  --text-gray:    #6b7280;
  --text-light:   #9ca3af;
  --blue-link:    #2563eb;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 28px rgba(0,0,0,0.14);
  --radius-card:  16px;
  --radius-md:    12px;
  --radius-sm:    8px;
}

/* ─── 2. BASE & TYPOGRAPHY ─────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: 'Roboto', sans-serif;
  background: #f9fafb;
  color: var(--text-dark);
}

/* Slight global typography bump for better readability */
html {
  font-size: 16px;
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
}

a { text-decoration: none; }

/* Global focus-visible — WCAG AA keyboard navigation */
:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── 3. ANIMATIONS & KEYFRAMES ────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Scroll-reveal (JS adds .is-visible) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-delay-1 { transition-delay: 0.08s; }
.anim-delay-2 { transition-delay: 0.16s; }
.anim-delay-3 { transition-delay: 0.24s; }
.anim-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-infinite-scroll,
  .animate-infinite-scroll-excellence,
  .animate-infinite-scroll-achievements,
  .animate-infinite-scroll-newsletters,
  .stories-track.animate-infinite-scroll-stories {
    animation: none !important;
  }
  #hero-carousel .slide {
    transition: none;
  }
  .principal-card:hover,
  .btn-maroon:hover,
  .notif-item:hover,
  .achievement-panel-card:hover,
  .stories-track > div:hover,
  .footer-social-btn:hover,
  .hero-nav-btn:hover {
    transform: none !important;
  }
  .landing-popup-card {
    animation: none !important;
  }
}

/* ─── 4. CAROUSEL DOTS ─────────────────────────── */
.dot {
  width: 28px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s;
  cursor: pointer;
}
.dot.active { background: #fff; }

.leader-dot {
  width: 24px;
  height: 4px;
  border-radius: 3px;
  background: var(--border-mid);
  transition: background 0.3s;
  cursor: pointer;
}
.leader-dot.active { background: var(--maroon); }

/* ─── 5. DESKTOP NAVBAR ────────────────────────── */
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: #374151;
  transition: color 0.22s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--maroon);
  border-radius: 1px;
  transition: left 0.22s ease, right 0.22s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--maroon);
  font-weight: 600;
}
.nav-link:hover::after,
.nav-link.active::after {
  left: 12px;
  right: 12px;
}

/* ─── 6. MOBILE NAVBAR & HAMBURGER ─────────────── */
#mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
#mobile-menu.open { grid-template-rows: 1fr; }
#mobile-menu > div { overflow: hidden; }

.ham-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #800000;
  border-radius: 9999px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
  transform-origin: center;
}
#hamburger.open .ham-line {
  background: #5f0000;
}
#hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mob-link {
  transition: background 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
}
.mob-link.active {
  color: var(--maroon);
  background-color: #fff8f8;
  font-weight: 700;
  border-left: 3px solid var(--maroon);
  padding-left: calc(1.25rem - 3px);
}
.mob-link:not(.active):hover {
  background-color: #fdf8f3;
  color: var(--maroon);
}

/* ─── 7. HERO CAROUSEL ─────────────────────────── */

.home-hero-section {
  width: 100%;
  background: #fff;
}

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  outline: none;
}

.hero-carousel-stage {
  position: relative;
  width: 100%;
  line-height: 0;
  transition: height 0.35s ease;
}

#hero-carousel .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#hero-carousel .slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

#hero-carousel .slide img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0%, transparent 35%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 28%, transparent 55%);
}

.hero-carousel-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--maroon) 0%, var(--yellow) 50%, var(--maroon) 100%);
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-nav-btn--prev {
  left: 1rem;
}

.hero-nav-btn--next {
  right: 1rem;
}

.hero-nav-btn:hover {
  background: rgba(128, 0, 0, 0.72);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(128, 0, 0, 0.35);
}

.hero-nav-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 0 1rem;
}

.hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.hero-dot::before {
  content: "";
  width: 2rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.28s ease, background 0.28s ease, transform 0.28s ease;
}

.hero-dot.active::before {
  width: 2.5rem;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

.hero-dot:hover::before {
  background: rgba(255, 255, 255, 0.65);
}

.hero-dot.active:hover::before {
  background: var(--yellow);
}

#hero-carousel .hero-control {
  pointer-events: auto;
}

@media (max-width: 640px) {
  .hero-nav-btn {
    display: none;
  }

  .hero-carousel-dots {
    bottom: 0.75rem;
  }

  .hero-dot {
    min-width: 32px;
    min-height: 32px;
  }

  .hero-dot::before {
    width: 1.5rem;
  }

  .hero-dot.active::before {
    width: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero-carousel .slide {
    transition: none;
  }

  .hero-carousel-stage {
    transition: none;
  }

  .hero-nav-btn:hover {
    transform: translateY(-50%);
  }
}

/* Responsive video / iframe embed utility */
.video-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-responsive > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Pagination (notifications) */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.pagination-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  background: #fff;
  color: var(--text-mid);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pagination-btn:hover:not(.is-disabled):not(.is-active) {
  background: #f9fafb;
  border-color: var(--maroon);
  color: var(--maroon);
}
.pagination-btn.is-active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}
.pagination-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination-ellipsis {
  padding: 0 0.25rem;
  color: var(--text-gray);
}

.events-placeholder {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--text-gray);
  font-size: 0.9375rem;
}

/* Full-bleed cover image inside a relative container */
.img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Image placeholder */
.img-ph {
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  overflow: hidden;
}

/* Horizontal divider lines */
.divider       { border-top: 1px solid var(--border-mid); margin-bottom: 14px; }
.divider-light { border-top: 1px solid var(--border); margin-bottom: 12px; }

/* Coloured labels */
.label-maroon {
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* Text scale */
.text-quote {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.84rem;
  line-height: 1.75;
  margin: 0 0 14px;
}
.text-body-sm {
  color: var(--text-gray);
  font-size: 0.8125rem;
  line-height: 1.75;
  margin: 0 0 14px;
}
.read-more {
  color: var(--blue-link);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.read-more:hover { text-decoration: underline; }
.read-more:focus-visible {
  outline-color: var(--blue-link);
}

/* Backgrounds */
.bg-cream   { background: var(--cream); }
.bg-surface { background: var(--surface); }

/* Buttons */
.btn-maroon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #800000;
  color: #fff;
  font-weight: 600;
  min-width: 160px;
  height: 48px;
  padding: 8px 28px;
  border-radius: 12px;
  font-size: 0.875rem;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1;
  vertical-align: middle;
  letter-spacing: 0.01em;
}
a.btn-maroon:hover,
.btn-maroon:hover {
  background: #5f0000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(128, 0, 0, 0.28);
}

.btn-circle-outline {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.btn-circle-outline:hover { background: #f3f4f6; }

.btn-circle-maroon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  flex-shrink: 0;
}
.btn-circle-maroon:hover { background: var(--maroon-dark); }

/* ─── 9. SECTION HEADINGS ──────────────────────── */
.section-heading {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: center;
  margin: 0;
  color: var(--text-dark);
}

.section-subheading {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.75;
  letter-spacing: normal;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  color: var(--text-gray);
  text-align: center;
}

@media (min-width: 640px) {
  .section-heading { font-size: 1.875rem; }
  .section-subheading { font-size: 1rem; }
}

@media (min-width: 1024px) {
  .section-heading { font-size: 2rem; }
}

.heading-primary {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 150%;
  letter-spacing: 0;
  color: #800000;
}
.text-body-condensed {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 35.99px;
  letter-spacing: 0;
  color: #575757;
}
.body-text-lg {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 36px; /* cleaned from 35.99px */
  letter-spacing: 0;
  color: #575757;
}
/* ─── 10. LEADERSHIP SECTION ───────────────────── */
.leader-card {
  display: flex;
  flex-direction: row;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  height: 380px;
  border-radius: 12px;
}

/* Panel A — main portrait */
.leader-photo-main {
  position: relative;
  width: 24%;
  flex-shrink: 0;
}

/* Panel B — text */
.leader-content {
  width: 40%;
  flex-shrink: 0;
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

/* Panel C — two side portraits */
.leader-side-photos {
  width: 36%;
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  flex-direction: row;
}
.side-photo {
  position: relative;
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.side-photo + .side-photo { border-left: 1px solid var(--border); }

/* Yellow name badges */
.name-badge-main {
  position: absolute;
  bottom: 0; left: 0;
  width: 85%;
  background: var(--yellow);
  padding: 10px 14px;
}
.name-badge-side {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--yellow);
  padding: 8px 12px;
}
.badge-name {
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #111;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0;
}
.badge-divider {
  border-top: 1px solid var(--text-mid);
  margin-top: 4px;
  padding-top: 4px;
}
.badge-role {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

/* Leader carousel track */
.leader-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.leader-slide {
  min-width: 100%;
  box-sizing: border-box;
}

/* ─── 11. PRINCIPAL SECTION ────────────────────── */
.principal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.principal-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.principal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}
.principal-photo-col {
  position: relative;
  width: 38%;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 220px;
  overflow: hidden;
  background: #efe8dc;
}

.principal-photo-col img,
.principal-photo-col .principal-photo,
.principal-photo-col .img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.principal-photo-col .name-badge-main {
  width: 100%;
  z-index: 1;
}
.principal-text-col {
  padding: 18px 18px 16px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}
.principal-text-col .text-quote,
.principal-text-col .text-body-sm {
  margin-bottom: 10px;
}
.principal-text-col .read-more {
  margin-top: auto;
  padding-top: 12px;
}

/* ─── 12. NOTIFICATIONS / EVENTS ───────────────── */
.tab-bar {
  display: flex;
  background: #fefce8;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--border-mid);
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: #6b7280;
}
.tab-btn.active {
  background: var(--maroon);
  color: #fff;
}
.tab-btn:focus-visible {
  outline-color: var(--maroon);
}

/* ── Notification Item ──────────────────────────────────── */

.notif-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid #f3f4f6;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.notif-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  background: #fff;
}

/* ── Date Badge (red box) ───────────────────────────────── */
.date-badge {
  flex-shrink: 0;
  width: 60px;
  background: #b91c1c;         /* red-700 */
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0 6px;
  gap: 0;
}

.date-badge-month {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.date-badge-day {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: #ffffff;
}

.date-badge-year {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 10px;
  line-height: 1;
  color: #ffffff;
  opacity: 0.9;
}

/* ── Notification body text ─────────────────────────────── */
.notif-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  flex: 1;
  margin: 0;
}

/* ── "See More" link ────────────────────────────────────── */
.notif-see-more {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #2563eb;              /* blue-600 */
  text-decoration: none;
  margin-left: 4px;
  white-space: nowrap;
}

.notif-see-more:hover {
  text-decoration: underline;
}

/* ─── 13. ACHIEVEMENTS ─────────────────────────── */
/* Scrollable row for Our Achievements */
.scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { height: 4px; }
.scroll-row::-webkit-scrollbar-thumb {
  background: var(--border-mid);
  border-radius: 4px;
}
.scroll-card {
  flex-shrink: 0;
  width: 388px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

/* ─── 14. ALUMNI TESTIMONIALS (full-bleed) ─────── */
.alumni-track {
  display: flex;
  transition: transform 0.5s ease;
}
.alumni-slide {
  min-width: 100%;
  position: relative;
}
.alumni-slide img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}
.alumni-info-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 56rem;
  padding: 0 16px;
}
.alumni-info-header {
  display: flex;
}
.alumni-info-name {
  flex: 1;
  background: #7f1d1d;
  padding: 12px 24px;
  display: flex;
  align-items: center;
}
.alumni-info-batch {
  background: var(--yellow);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.alumni-info-body {
  background: #f9fafb;
  padding: 20px 24px;
}

/* ─── 15. ALUMNI STORIES CAROUSEL ──────────────── */
.stories-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0 16px;
}

/* Full-width carousel images - desktop */
.stories-track > div {
  transition: all 0.3s ease;
  position: relative;
}

.stories-track > div:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Alumni Story Card Styles */
#storyName {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  text-align: center;
  color: #ffffff;
}

#storyRole {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

#storyBatch {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  text-align: center;
}

#storyQuote {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0%;
}

/* ─── 16. CAPTURED MEMORIES ────────────────────── */
.memory-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}
.memory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #e5e7eb;
  padding: 8px;
  height: 280px;
}
.memory-col-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.memory-img {
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.memory-count-overlay {
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  position: relative;
}
.memory-count-overlay img { width: 100%; height: 100%; object-fit: cover; }
.memory-count-overlay .count-label {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}
.memory-caption {
  background: #f9fafb;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 4px solid var(--maroon);
}
.memory-arrow-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid #9ca3af;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  color: #4b5563;
  font-size: 0.75rem;
}
.memory-arrow-btn:hover { background: #e5e7eb; }

/* ─── 17. ABOUT PAGE COMPONENTS ────────────────── */
.about-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  font-size: 0.8rem;
  transition: all 0.18s ease;
  color: var(--text-mid);
  background: transparent;
  cursor: pointer;
  border: none;
  border-left: 3px solid transparent;
}
.about-nav-item:hover { background: #f3f4f6; color: var(--maroon); }
.about-nav-item.active {
  background: var(--maroon);
  color: #fff;
  font-weight: 600;
  border-left-color: var(--maroon);
}

.about-panel        { display: none; }
.about-panel.active { display: block; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.2em;
  background: var(--yellow-alt);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Governing Body card */
.gov-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #f3f4f6;
}
.gov-card img { width: 100%; height: 220px; object-fit: cover; object-position: top; display: block; }
.gov-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--yellow);
  padding: 7px 12px;
}
.gov-badge .name {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: #111;
  text-transform: uppercase;
}
.gov-badge .role {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  text-transform: uppercase;
  border-top: 1px solid var(--text-mid);
  margin-top: 3px;
  padding-top: 3px;
}

/* Certificate card */
.cert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 20px 16px;
  text-align: center;
}
.cert-card img { width: 100px; height: 100px; object-fit: contain; margin: 0 auto 12px; }
.cert-card .year { font-weight: 700; font-size: 1rem; color: var(--text-dark); margin-bottom: 6px; }
.cert-card .label {
  font-size: 0.78rem;
  color: var(--maroon);
  font-weight: 600;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 6px;
}

/* Accordion */
.acc-item { border: 1px solid var(--border-mid); border-radius: 4px; overflow: hidden; }
.acc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  background: #fff;
  user-select: none;
}
.acc-header:hover { background: #f9fafb; }
.acc-body {
  display: none;
  padding: 14px 16px;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  background: #fafafa;
}
.acc-body.open  { display: block; }
.acc-icon       { transition: transform 0.2s ease; flex-shrink: 0; }
.acc-icon.open  { transform: rotate(180deg); }

/* Mission bullet */
.mission-bullet { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.mission-bullet .bull-dot {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--maroon);
  display: flex; align-items: center; justify-content: center;
}
.mission-bullet .bull-dot::after {
  content: '';
  width: 7px; height: 7px;
  background: var(--maroon);
  border-radius: 50%;
}

/* ─── 18. FOOTER ───────────────────────────────── */
.footer-social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
  transition: background 0.15s;
}
.footer-social-btn:hover { background: var(--maroon-dark); color: #fff; }

.footer-link { color: #4b5563; font-size: 0.875rem; transition: color 0.15s; }
.footer-link:hover { color: var(--maroon); }

/* ─── 19. RESPONSIVE BREAKPOINTS ──────────────── */

/* Tablet & below */
@media (max-width: 1024px) {
  /* Leadership: stack vertically */
  .leader-card {
    flex-direction: column;
    height: auto;
  }
  .leader-photo-main {
    width: 100%;
    height: 280px;
  }
  .leader-content {
    width: 100%;
    padding: 20px;
  }
  .leader-side-photos {
    width: 100%;
    height: 180px;
  }

  /* Principal: single column */
  .principal-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .principal-card { min-height: auto; }
  .principal-photo-col {
    width: 34%;
    max-width: 260px;
    min-height: 200px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section-heading    { font-size: 1.5rem; }
  .section-subheading { font-size: 0.9rem; }

  /* Hide third side photo panel on mobile */
  .leader-side-photos { display: none; }

  /* Principal card: vertical on mobile */
  .principal-card {
    flex-direction: column;
  }
  .principal-photo-col {
    width: 100%;
    max-width: none;
    min-height: 0;
    aspect-ratio: 4 / 5;
    max-height: 380px;
  }
  .principal-photo-col img,
  .principal-photo-col .principal-photo,
  .principal-photo-col .img-cover {
    object-position: center 15%;
  }
  .principal-text-col {
    padding: 16px 16px 18px;
  }
  .principal-text-col .text-quote {
    text-align: left;
  }

  .achievement-carousel-img {
    height: 10rem;
    max-width: 220px;
  }

  .our-achievement-carousel-img,
  .newsletter-carousel-img {
    height: 12rem;
    max-width: 200px;
  }

  .newsletter-cover-frame,
  .newsletter-placeholder-card {
    width: 180px;
    height: 12rem;
  }

  .press-slide {
    width: 200px;
    height: 10rem;
  }

  .panel-carousel-wrap::before,
  .panel-carousel-wrap::after {
    width: 20px;
  }

  /* Notif tab bar full width */
  .tab-bar { max-width: 100%; }

  /* Scroll row cards: smaller */
  .scroll-card { width: 220px; }

  /* Alumni stories carousel: reduce sizes */
  .stories-track { gap: 8px; padding: 0 16px; }

  /* Memory grid */
  .memory-grid { height: 200px; }

  /* Alumni stories mobile responsive text */
  #storyName { font-size: 20px; }
  #storyRole { font-size: 16px; }
  #storyBatch { font-size: 20px; }
  #storyQuote { font-size: 15px; line-height: 28px; }
}

@media (max-width: 480px) {
  .principal-card { flex-direction: column; }
  .name-badge-main { width: 100%; }
  .leader-content { padding: 16px; }
  .alumni-info-card { padding: 0 8px; }

  /* Alumni stories carousel: reduce padding for small screens */
  .stories-track { gap: 6px; padding: 0 12px; }

  /* Alumni stories mobile responsive text */
  #storyName { font-size: 18px; }
  #storyRole { font-size: 14px; }
  #storyBatch { font-size: 18px; }
  #storyQuote { font-size: 14px; line-height: 26px; }
}

/* ============================================================
   Gallery Card – gallery-card.css
   ============================================================ */

/* ── Card shell ─────────────────────────────────────────── */
.card {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  border-bottom: 4px solid #800000;   /* maroon accent */
}

/* ── Gallery grid ───────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 12px 12px 0 12px;
  aspect-ratio: 820 / 490;
}

/* Large image – spans both rows */
.img-main {
  grid-column: 1;
  grid-row: 1 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f5;
}

/* Shared thumbnail base */
.img-thumb {
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f5;
}

.img-thumb-1 {
  grid-column: 2;
  grid-row: 1;
}

.img-thumb-2 {
  grid-column: 2;
  grid-row: 2;
  background: #888;
  position: relative;   /* needed for overlay */
}

/* Placeholder SVG fills its cell */
.placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ── Count overlay (bottom-right thumb) ─────────────────── */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(80, 80, 80, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.overlay-count {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

/* ── Card footer ────────────────────────────────────────── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: #faf7f2;
}

.captre-heading-sm {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0;
  text-align: center;
}

/* ── Arrow button ───────────────────────────────────────── */
.arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  border: 1.8px solid
   #000000;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
/* ============================================================
   Person Card – person-card.css
   ============================================================ */

/* ── Card shell ─────────────────────────────────────────── */
.person-card {
  position: relative;
  width: 280px;                        /* adjust to your grid column width */
  border-radius: 20px;
  overflow: hidden;

  flex-shrink: 0;
}

/* ── Photo area ─────────────────────────────────────────── */
.person-card__photo {
  width: 100%;
  /* Tall portrait ratio matching the design */
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;         /* keeps face visible */
  display: block;
}

/* ── Yellow name badge — overlays bottom of photo ──────── */
.person-card__badge {
  position: absolute;
  border-radius: 4px;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FACC15;                 /* yellow-400 — matches design exactly */
  margin: 8px 8px 16px 16px;
  padding: 8px;
}

/* Name */
.person-card__name {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 2px 0;
}

/* Divider line between name and role */
.person-card__divider {
  border-top: 1.5px solid #374151;    /* dark gray line from design */
  margin-bottom: 8px;
}

/* Role */
.person-card__role {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
}



.arrow-btn:hover {
  background: #800000;
  border-color: #800000;
}

.arrow-btn:hover svg path {
  stroke: #ffffff;
}
/* ============================================================
   Footer Styles – Sunbeam Women's College
   ============================================================ */

/* --- Headings ------------------------------------------------ */
.footer-heading {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 150%;
  letter-spacing: 0;
  color: #1a1a1a;
}

/* --- Press Highlights Styles ------------------------------ */
.press-date {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 150%;
  letter-spacing: 0;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.press-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0;
  color: #6b7280;
  margin: 0;
}

.see-more-link {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0;
  color: #2563eb;
  text-decoration: none;
}

.see-more-link:hover {
  text-decoration: underline;
}

/* Lighter label used under the college name ("Follow Us") */
.footer-subheading {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #717171;
}

/* --- Nav link list ------------------------------------------ */
.footer-text {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 15px;          /* was 20px */
  line-height: 1.6;
  letter-spacing: 0;
  color: #717171;
  /* FIXED: removed text-align: center – list links must be left-aligned */
  transition: color 0.2s ease;
}

.footer-text:hover {
  color: #800000;
}

/* --- Logo description paragraph ----------------------------- */
.body-large {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 15px;          /* was 24px */
  line-height: 1.65;
  letter-spacing: 0;
  color: #717171;
  /* FIXED: removed vertical-align: middle (no effect on block elements) */
}

/* --- Contact info text -------------------------------------- */
.body-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;          /* was 20px */
  line-height: 1.6;
  letter-spacing: 0;
  color: #555555;
  /* FIXED: removed vertical-align: middle (no effect on block elements) */
}

/* --- Social icon buttons ------------------------------------ */
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;              /* adequate touch target */
  height: 40px;
  border-radius: 50%;
  background-color: #800000;
  color: #ffffff;
  font-size: 15px;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.footer-social-btn:hover {
  background-color: #FFCB05;
  color: #1a1a1a;
  transform: translateY(-2px);
}

/* --- Copyright bar ------------------------------------------ */

/* Secondary (lighter / smaller) – wrapping text */
.footer-copyright-secondary {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 13px;          /* was 16px */
  line-height: 24px;        /* consistent with primary */
  letter-spacing: 0;
}

/* Primary (bolder) – college name & "All Rights Reserved" */
.footer-copyright-primary {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 13px;          /* FIXED: matched to secondary (was 18px, caused line-height clash) */
  line-height: 24px;        /* FIXED: matched to secondary (was 40px) */
  letter-spacing: 0;
}

/* ─── 20. MODAL POPUP ──────────────────────────────── */
body.modal-open {
  overflow: hidden;
}

.image-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 1.5rem;
  padding-top: max(1.5rem, env(safe-area-inset-top));
}

.image-viewer-modal.hidden {
  display: none;
}

.image-viewer-modal .image-viewer-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
  z-index: 2;
}

.image-viewer-modal .image-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.image-viewer-modal .image-viewer-nav--prev {
  left: 1rem;
}

.image-viewer-modal .image-viewer-nav--next {
  right: 1rem;
}

.image-viewer-img {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: min(85vh, calc(100vh - 5rem));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.modal-overlay {
  display: none;             /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;            /* Above all other content */
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  animation: slideIn 0.3s ease;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(128, 0, 0, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(128, 0, 0, 1);
  transform: rotate(90deg);
}

.modal-close-btn:active {
  transform: rotate(90deg) scale(0.9);
}

.modal-image {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Modal animations */
@keyframes slideIn {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .modal-content {
    max-width: 95%;
    max-height: 95%;
  }

  .modal-close-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
    top: 8px;
    right: 8px;
  }

  .modal-image {
    max-height: 75vh;
  }
}

/* ─── 21. INFINITE SCROLL ANIMATION ───────────────── */
.animate-infinite-scroll {
  animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 3 - 16px * 2));
  }
}

/* Achievements & Excellence carousel — small gap between images */
.excellence-carousel {
  align-items: center;
}

.achievement-carousel-img {
  display: block;
  height: 12rem;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.achievement-carousel-img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.our-achievement-carousel-img {
  display: block;
  height: 16rem;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.our-achievement-carousel-img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.press-slide {
  width: 250px;
  height: 12rem;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.press-carousel-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.press-carousel-img:hover {
  opacity: 0.92;
  transform: scale(1.03);
}

.panel-carousel-wrap {
  position: relative;
}

.panel-carousel-wrap::before,
.panel-carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
}

.panel-carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, #fff 20%, transparent);
}

.panel-carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, #fff 20%, transparent);
}

.animate-infinite-scroll-excellence {
  --excellence-scroll-distance: 1500px;
  animation: scroll-left-excellence 20s linear infinite;
}

@keyframes scroll-left-excellence {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--excellence-scroll-distance)));
  }
}

.animate-infinite-scroll-press {
  --press-scroll-distance: 1330px;
  animation: scroll-left-press 22s linear infinite;
}

@keyframes scroll-left-press {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--press-scroll-distance)));
  }
}

/* Our Achievements slider — slides hug image width */
.our-achievements-track {
  gap: 0.75rem;
  align-items: center;
}

.newsletter-home-track {
  gap: 0.75rem;
  align-items: flex-end;
}

.newsletter-home-slide a {
  text-decoration: none;
}

.newsletter-carousel-img {
  display: block;
  height: 16rem;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.newsletter-carousel-img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.newsletter-cover-frame {
  width: 200px;
  height: 16rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-home-slide a:hover .newsletter-cover-frame {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.newsletter-placeholder-card {
  width: 200px;
  height: 16rem;
  border-radius: 8px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-home-slide a:hover .newsletter-placeholder-card {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.newsletter-slide-label {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-gray);
  margin: 0.5rem auto 0;
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-slider-slide {
  display: flex;
  align-items: center;
  line-height: 0;
}

.animate-infinite-scroll-achievements {
  --achievements-scroll-distance: 3000px;
  animation: scroll-left-achievements 25s linear infinite;
}

@keyframes scroll-left-achievements {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--achievements-scroll-distance)));
  }
}

.pdf-cover-frame {
  position: relative;
  background: #fff;
}
.pdf-cover-frame.pdf-cover-loading {
  background: #f3f4f6;
}
.pdf-cover-frame.pdf-cover-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  animation: pdf-cover-shimmer 1.2s ease-in-out infinite;
}
.pdf-cover-pending {
  opacity: 0;
}
@keyframes pdf-cover-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.animate-infinite-scroll-newsletters {
  --newsletters-scroll-distance: 2000px;
  animation: scroll-left-newsletters 25s linear infinite;
}

@keyframes scroll-left-newsletters {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--newsletters-scroll-distance)));
  }
}

/* Pause on hover */
.animate-infinite-scroll:hover,
.animate-infinite-scroll-excellence:hover,
.animate-infinite-scroll-press:hover,
.animate-infinite-scroll-achievements:hover,
.animate-infinite-scroll-newsletters:hover,
.animate-infinite-scroll-stories:hover {
  animation-play-state: paused;
}

/* Alumni Stories slider - auto scroll (distance measured like other panel carousels) */
.stories-track.animate-infinite-scroll-stories {
  --stories-scroll-distance: 1664px;
  animation: scroll-left-stories 25s linear infinite;
}

@keyframes scroll-left-stories {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--stories-scroll-distance)));
  }
}

@media (max-width: 640px) {
  .stories-track.animate-infinite-scroll-stories {
    --stories-scroll-distance: 1328px;
    animation: scroll-left-stories-mobile 20s linear infinite;
  }

  @keyframes scroll-left-stories-mobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-1 * var(--stories-scroll-distance)));
    }
  }
}

/* Pause animation on hover */
.stories-track.animate-infinite-scroll-stories:hover {
  animation-play-state: paused;
}

/* ─── Landing popup ──────────────────────────────── */
.landing-popup-card {
  position: relative;
  width: fit-content;
  max-width: min(92vw, 520px);
  max-height: 90vh;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: popIn 0.35s ease forwards;
}

.landing-popup-link {
  display: block;
  cursor: pointer;
  line-height: 0;
  transition: opacity 0.25s ease;
}

.landing-popup-link:hover {
  opacity: 0.95;
}

.landing-popup-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 520px);
  max-height: 85vh;
  object-fit: contain;
}

.landing-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.landing-popup-close:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.05);
}

.landing-popup-close:focus-visible {
  outline-color: #fff;
}

@media (max-width: 480px) {
  .landing-popup-close {
    top: 8px;
    right: 8px;
  }
}

/* ─── Home page extras ───────────────────────────── */
#landing-popup:not(.hidden) {
  animation: fadeIn 0.3s ease forwards;
}

.achievement-panel-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.achievement-panel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tab-btn {
  transition: all 0.25s ease;
}
.tab-btn:not(.active):hover {
  color: var(--maroon);
  background: rgba(128, 0, 0, 0.06);
}

/* Staggered notification list */
.notif-stagger .notif-item {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.notif-stagger.is-visible .notif-item {
  opacity: 1;
  transform: translateX(0);
}
.notif-stagger.is-visible .notif-item:nth-child(1) { transition-delay: 0.06s; }
.notif-stagger.is-visible .notif-item:nth-child(2) { transition-delay: 0.12s; }
.notif-stagger.is-visible .notif-item:nth-child(3) { transition-delay: 0.18s; }
.notif-stagger.is-visible .notif-item:nth-child(4) { transition-delay: 0.24s; }
.notif-stagger.is-visible .notif-item:hover {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .notif-stagger .notif-item {
    opacity: 1;
    transform: none;
  }
}

/* ─── HOME VIEW ALL PANELS ─────────────────────────── */
.home-view-panel.hidden {
  display: none;
}

.home-focused-view #home-main-content {
  display: none;
}

.home-view-bar {
  background: #800000;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .home-view-bar {
    padding: 14px 24px;
    flex-wrap: nowrap;
  }
}

.home-view-bar-title {
  flex: 1;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

@media (min-width: 640px) {
  .home-view-bar-title {
    font-size: 1.35rem;
  }
}

.home-view-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.home-view-back:hover {
  color: #fde047;
}

.home-view-back-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Full-bleed section banners — always show entire image, never crop */
.recognition-banner {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.recognition-banner__inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.75rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .recognition-banner__inner {
    padding: 0 1rem;
  }
}

.home-banner-img,
.home-view-hero img,
.about-hero img,
#hero-banner-image,
#newsletter-banner-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-width: 0;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin-left: auto;
  margin-right: auto;
}

.home-view-hero,
.about-hero {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  background: #e8e0d4;
  line-height: 0;
}

.home-view-body {
  background: #fff;
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .home-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .home-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  background: #f3f4f6;
}

.home-gallery-item img {
  width: 100%;
  height: 16rem;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.home-gallery-item:hover img {
  transform: scale(1.05);
}

.home-gallery-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.home-gallery-item:hover .home-gallery-hover {
  opacity: 1;
}

.home-press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

@media (min-width: 640px) {
  .home-press-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-press-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }
}

.home-press-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.home-press-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-press-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.home-newsletter-view {
  background: #f5f0e8;
}

.home-newsletter-view .newsletter-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  font-size: 0.8rem;
  border-left: 3px solid transparent;
  transition: all 0.18s ease;
  color: #374151;
  background: transparent;
  cursor: pointer;
  border: none;
}

.home-newsletter-view .newsletter-nav-item:hover {
  background: #f3f4f6;
  color: #800000;
}

.home-newsletter-view .newsletter-nav-item.active {
  background: #800000;
  color: #fff;
  font-weight: 600;
  border-left-color: #800000;
}

.home-newsletter-view .newsletter-sidebar {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .home-newsletter-view .newsletter-sidebar {
    width: 200px;
  }
}

@media (min-width: 1024px) {
  .home-newsletter-view .newsletter-sidebar {
    width: 387px;
  }
}

.home-newsletter-view .newsletter-panel {
  display: none;
}

.home-newsletter-view .newsletter-panel.active {
  display: block;
}

.home-newsletter-view .sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #800000;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.home-newsletter-view .sidebar-toggle i {
  transition: transform 0.25s ease;
}

.home-newsletter-view .sidebar-toggle.open i {
  transform: rotate(180deg);
}

.home-newsletter-view .sidebar-nav-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 2px solid #eee2e2;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.home-newsletter-view .sidebar-nav-wrap.open {
  grid-template-rows: 1fr;
}

.home-newsletter-view .sidebar-nav-wrap > nav {
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .home-newsletter-view .sidebar-toggle {
    display: none;
  }

  .home-newsletter-view .sidebar-nav-wrap {
    display: block;
    grid-template-rows: 1fr;
    border: 2px solid #eee2e2;
    border-radius: 8px;
    overflow: visible;
  }

  .home-newsletter-view .sidebar-nav-wrap > nav {
    overflow: visible;
  }
}

.home-newsletter-view .newsletter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .home-newsletter-view .newsletter-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
  }
}

.home-newsletter-view .newsletter-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-newsletter-view .newsletter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.home-newsletter-view .newsletter-card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f3f4f6;
}

.home-newsletter-view .newsletter-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.home-newsletter-view .newsletter-card-title {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  line-height: 1.4;
  margin: 0;
  border-top: 3px solid #facc15;
}

a.btn-maroon,
button.btn-maroon {
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}