@font-face {
  font-family: 'Samarkan';
  src: url('../fonts/SamarkanNormal-Gg5D.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
/* ==========================================================================
   Samskruta Sangha IISc — Core Design System
   ========================================================================== */
:root {
  --bg-saffron: #FFF3D0;
  --bg-gold-tint: #FFE9A7;
  --maroon-deep: #6A0000;
  --saffron-terracotta: #C83803;
  --card-white: #FFFFFF;
  --text-dark: #1C252C;
  --text-muted: #546E7A;
  --border-subtle: rgba(106, 0, 0, 0.15);
  --shadow-card: 0 4px 18px rgba(106, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
}

body {
  min-height: 100%;
  flex-direction: column;
  background-color: var(--bg-saffron);
  color: var(--text-dark);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  
  /* Flexbox "sticky footer" layout */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── 1. Navigation Header ── */
/* ==========================================================================
   Navigation Header (Strict Horizontal Row Layout)
   ========================================================================== */

/* ── Sticky Full-Width Header Bar ── */
.site-header, header {
  background-color: #FFFFFF;
  border-bottom: 3px solid var(--maroon-deep);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 1. Restored .main-nav container so links can push to the right */
/* ── Sticky Full-Width Header Bar ── */
.site-header, header {
  background-color: #FFFFFF;
  border-bottom: 3px solid var(--maroon-deep);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 0;
}

.main-nav {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important; /* Pushes child 1 (logo) left, child 2 (links) right */
  align-items: center !important;
  width: 100% !important;
  padding: 12px 24px !important;
  box-sizing: border-box !important;
}

/* Restrict the logo from taking up too much invisible space */
.logo-container {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important; 
}

.site-logo {
  height: 52px !important;
  width: auto !important;
  object-fit: contain !important;
}

.logo-text {
  font-family: 'Yatra One', serif !important; /* Keeping your Sanskrit logo text */
  font-weight: normal !important;
  font-size: 1.4rem !important; 
  color: var(--maroon-deep) !important;
  white-space: nowrap !important;
}

/* Force the links to the right side */
.nav-links {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  gap: 20px !important;
  margin: 0 0 0 auto !important; /* The ultimate override to push the block right */
  padding: 0 !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

/* Apply the LaTeX Font Stack */
.nav-links a {
  text-decoration: none !important;
  color: #1C252C !important;
  white-space: nowrap !important;
  /* Computer Modern is the default LaTeX font */
  font-family: "Computer Modern Serif", "Latin Modern Roman", "Crimson Text", "Times New Roman", serif !important;
  font-size: 1.15rem !important; /* LaTeX fonts are narrower, so they fit much better on one line */
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: color 0.2s ease !important;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--saffron-terracotta) !important;
}
/* ── 2. Common Typography & Structural Blocks ── */
.container { width: 100%; max-width: 1100px; margin: 36px auto; padding: 0 20px; flex: 1 0 auto; }
.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--saffron-terracotta);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.page-title, .block-title, .home-section-heading {
  font-family: 'Samarkan', serif;
  color: var(--maroon-deep);
  font-weight: normal; /* Prevents the font from blurring */
}
.page-title { 
  font-size: 3.2rem; /* Make the main heading much larger */
  text-align: center; 
}
.page-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 30px; }
.block-title { 
  font-size: 2.2rem; 
}
.home-block { margin-bottom: 48px; }
.block-header { margin-bottom: 20px; }

/* ── 3. Centered Hero Header ── */
.hero-section {
  background: var(--card-white);
  border-bottom: 2px solid var(--border-subtle);
  padding: 48px 20px 40px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(106, 0, 0, 0.05);
}
.hero-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.institute-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--saffron-terracotta);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-heading {
  font-family: 'Georgia', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--maroon-deep);
  line-height: 1.2;
}
.hero-divider {
  width: 70px;
  height: 3px;
  background: var(--saffron-terracotta);
  margin: 14px auto 16px;
  border-radius: 2px;
}
.hero-subtext {
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--saffron-terracotta);
  margin-bottom: 14px;
}
.hero-shloka {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--maroon-deep);
  background: var(--bg-gold-tint);
  border: 1.5px dashed var(--saffron-terracotta);
  border-radius: 8px;
  padding: 12px 28px;
  line-height: 1.8;
  max-width: 640px;
}

/* ── 4. Unified Card & Grid Components ── */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-white);
  border: 1.5px solid var(--border-subtle);
  border-left: 5px solid var(--maroon-deep);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-left-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-left-color: var(--saffron-terracotta);
  box-shadow: 0 8px 24px rgba(106, 0, 0, 0.12);
}
.card-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.card-date, .table-date {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--maroon-deep);
  background: var(--bg-gold-tint);
  border-radius: 10px;
  padding: 2px 10px;
  width: fit-content;
}
.card-title { font-size: 1.2rem; font-weight: 700; color: #1A1A1A; }
.card-text { font-size: 1.1rem; color: #37474F; line-height: 1.5; }
.card-location { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.card-action-link, .table-action-link {
  display: inline-block;
  color: var(--maroon-deep);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 4px;
}
.card-action-link:hover, .table-action-link:hover {
  color: var(--saffron-terracotta);
  text-decoration: underline;
}
.see-more-wrap { text-align: center; margin-top: 22px; }
.btn-see-more {
  display: inline-block;
  text-decoration: none;
  background: var(--card-white);
  color: var(--maroon-deep);
  border: 1.5px solid var(--maroon-deep);
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.btn-see-more:hover {
  background: var(--maroon-deep);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(106, 0, 0, 0.2);
}

/* ── 5. Unified Tables & Drawers ── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--card-white);
}
.activity-table, .blog-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
.activity-table th, .blog-table th {
  background: var(--maroon-deep);
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px 16px;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.activity-table td, .blog-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(106, 0, 0, 0.08);
  vertical-align: middle;
}
.activity-table tr:nth-child(even), .blog-table tr:nth-child(even) { background-color: #FFFDF2; }
.activity-table tr:hover, .blog-table tr:hover { background-color: #FFF3D0; }

details.activity-accordion {
  background: var(--card-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
summary.accordion-header {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
}
summary.accordion-header::-webkit-details-marker { display: none; }
.header-left { display: flex; align-items: center; gap: 14px; }
.header-title { font-family: 'Georgia', serif; font-size: 1.25rem; font-weight: 700; color: var(--maroon-deep); }
.accordion-arrow { color: var(--saffron-terracotta); transition: transform 0.3s ease; }
details[open].activity-accordion summary.accordion-header { background: var(--bg-gold-tint); border-bottom: 2px solid var(--saffron-terracotta); }
details[open].activity-accordion .accordion-arrow { transform: rotate(180deg); }
.accordion-content { padding: 24px; background: var(--card-white); }
.count-badge, .badge-accent {
  display: inline-block;
  background: var(--bg-gold-tint);
  color: var(--saffron-terracotta);
  border: 1px solid rgba(200, 56, 3, 0.25);
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ── 6. Vertical Timeline (talks.html) ── */
.timeline { position: relative; max-width: 860px; margin: 40px auto 60px; padding-left: 36px; }
.timeline::before {
  content: "";
  position: absolute;
  top: 10px; bottom: 10px; left: 10px;
  width: 3px;
  background: linear-gradient(to bottom, var(--maroon-deep), var(--saffron-terracotta));
}
.timeline-year { position: relative; margin: 35px 0 20px -36px; }
.timeline-year:first-child { margin-top: 0; }
.timeline-year span {
  display: inline-block;
  background: var(--maroon-deep);
  color: #FFFFFF;
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 4px 20px;
  border-radius: 20px;
  border: 2px solid var(--bg-gold-tint);
}
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-marker {
  position: absolute;
  top: 22px; left: -32px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3.5px solid var(--saffron-terracotta);
}
.timeline-content {
  background: var(--card-white);
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--maroon-deep);
  border-radius: 6px;
  padding: 20px 26px;
  box-shadow: var(--shadow-card);
}
.timeline-title { font-size: 1.2rem; font-weight: 700; color: var(--maroon-deep); }
.timeline-desc { font-size: 0.96rem; color: #37474F; margin: 8px 0 12px; }

/* ── 7. Members Component (members.html) ── */
.member-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 2rem; 
  margin-top: 1.5rem; 
}

.member-card { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  padding: 2rem 1.5rem; 
  background: var(--card-white); 
  border-radius: 12px; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
  border-top: 5px solid var(--maroon-deep); 
  border-left: none; 
}

.member-avatar { 
  width: 130px; 
  height: 130px; 
  margin-bottom: 1.25rem; 
  display: flex; 
  align-items: center; 
  justify-content: center;
}

.mentor-photo { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  border-radius: 50%; 
  border: 3px solid #f4e8e8; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.member-details { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 3px;
}

.member-name { 
  font-family: 'Samarkan', sans-serif;
  font-size: 1.8rem; /* Make the names larger to match the cards */
  font-weight: normal; 
  margin-bottom: 0.25rem; 
  color: var(--text-dark); 
}

.member-role { 
  font-weight: 700; 
  color: var(--saffron-terracotta); 
  margin-bottom: 0.5rem; 
  font-size: 1.15rem; /* Increased from 0.86rem */
}

.member-dept { 
  color: var(--text-muted); 
  margin-bottom: 1.25rem; 
  font-size: 1.05rem; /* Increased from 0.88rem */
  font-weight: 500;
}

.member-links { 
  display: flex; 
  gap: 12px; 
  justify-content: center; 
}

.member-links a { 
  font-size: 0.82rem; 
  font-weight: 700; 
  color: var(--maroon-deep); 
  text-decoration: none; 
}

/* ── 9. Footer & Responsiveness ── */
footer {
  margin-top: auto; /* Pushes itself to the bottom of the flex column */
  text-align: center;
  flex-shrink: 0;
  padding: 28px 20px;
  background: var(--card-white);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  width: 100%;
}
@media (max-width: 768px) {
  /* Stack the logo on top and the menu on the bottom */
  .main-nav, nav {
    display: flex !important;
    flex-direction: column !important; /* Changed from row to column */
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 16px 16px 5px 16px !important;
    gap: 15px !important;
  }
  
  /* Make the links a swipeable horizontal row */
  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important; /* Enables horizontal scrolling/swiping */
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    margin: 0 !important;
    padding-bottom: 12px !important; /* Breathing room for the scrollbar */
    -webkit-overflow-scrolling: touch; /* Smooth swiping on iOS */
  }

  /* Optional: Styles the mobile scrollbar neatly */
  .nav-links::-webkit-scrollbar {
    height: 3px;
  }
  .nav-links::-webkit-scrollbar-thumb {
    background: rgba(200, 56, 3, 0.4); 
    border-radius: 4px;
  }

  /* Restore the clean, readable font for mobile links */
  .nav-links a {
    text-decoration: none !important;
    color: #1C252C !important;
    white-space: nowrap !important; /* Prevents text from breaking onto two lines */
    font-family: "Computer Modern Serif", "Latin Modern Roman", "Crimson Text", "Times New Roman", serif !important; /* Removed Samarkan */
    font-size: 1.15rem !important; /* Scaled down for mobile */
    font-weight: 600 !important;
  }

  .nav-links a.active {
    padding: 4px 12px;
    border-radius: 4px;
  }

  /* (Leave your other mobile rules for hero-heading, timeline, etc. down here) */
  .hero-heading { font-size: 2.1rem; }
  .hero-shloka { font-size: 0.95rem; padding: 10px 16px; }
  .timeline { padding-left: 28px; }
  .timeline::before { left: 6px; }
  .timeline-marker { left: -27px; }
  .timeline-year { margin-left: -28px; }
}
/* ==========================================================================
   Split Hero Layout (Left Brand, Center Shlokas, Right IISc Tower)
   ========================================================================== */

/* ==========================================================================
   Hero Banner: IISc Main Building Background + Glassmorphic Overlay
   ========================================================================== */

/* ==========================================================================
   Hero Banner: IISc Main Building Background + Side-by-Side Content
   ========================================================================== */

/* ==========================================================================
   Split Hero Banner: Left White Brand Panel | Right Building Canvas
   ========================================================================== */

/* ── Centered Hero Banner ── */
/* Update this existing rule to fix the cropping */
/* ── Centered Hero Banner (Fixed Height) ── */
.hero-centered-banner {
  position: relative;
  width: 100%;
  height: auto; 
  min-height: 700px; 
  display: flex;
  align-items: flex-start; /* Changed from center to push everything up */
  justify-content: center;
  padding: 50px 20px 120px 20px; /* 50px Top, 20px Sides, 120px Bottom */
  overflow: hidden;
  border-bottom: 1px solid var(--maroon-deep);
}

/* Centers the building image perfectly behind the content */
.hero-centered-banner .hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; 
  z-index: 1;
}

/* Creates a warm, semi-transparent gradient over the building */
.hero-centered-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 253, 245, 0.94) 0%,
    rgba(255, 243, 208, 0.85) 40%,
    rgba(255, 253, 245, 0.95) 100%
  );
  z-index: 2;
}

/* Stacks the logo, title, and shlokas centrally */
.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 35px;
  max-width: 1100px; /* Expanded so the boxes can sit side-by-side */
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hero-emblem-center {
  width: 175px; /* Increased from 120px */
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(106, 0, 0, 0.15));
}

.institute-badge-center {
  font-size: 0.88rem;
  letter-spacing: 2.5px;
  font-weight: 800;
  color: var(--saffron-terracotta);
  margin-bottom: 8px;
  display: block;
}

.hero-title-center {
  font-family: 'Samarkan', 'Georgia', serif;
  font-size: 3.4rem;
  font-weight: normal;
  color: var(--maroon-deep);
  line-height: 1.1;
}

/* Shloka Layouts & Noto Serif Devanagari Formatting */
.hero-verses-center {
  display: flex;
  flex-direction: row; /* Puts boxes side-by-side */
  justify-content: center;
  align-items: stretch; /* Makes both boxes equal height */
  gap: 25px;
  width: 100%;
}

.hero-motto-devanagari {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--saffron-terracotta);
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.verse-card-center {
  background: #FFFDF8;
  border: 2px solid var(--saffron-terracotta);
  border-left: 8px solid var(--maroon-deep);
  border-radius: 8px;
  padding: 20px 16px; /* Reduced side padding to give text more space */
  box-shadow: 0 6px 16px rgba(106, 0, 0, 0.12);
  width: 100%;
}

.verse-text-devanagari {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.55rem; /* Scaled down slightly so the second line fits */
  font-weight: 700;
  color: var(--maroon-deep);
  line-height: 1.8;
  margin: 0;
}
/* Mobile & Tablet Stacking */
@media (max-width: 860px) {
  .hero-split-banner {
    flex-direction: column;
  }

  .hero-left-panel {
    flex: 0 0 auto;
    width: 100%;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
    border-right: none;
    border-bottom: 1.5px solid var(--border-subtle);
  }

  .hero-right-panel {
    width: 100%;
    padding: 36px 20px;
  }
}

/* ==========================================================================
   Bottom English Quotes Rotator (Fade In / Fade Out)
   ========================================================================== */

.quotes-banner {
  background: var(--card-white);
  border-top: 1.5px solid var(--border-subtle);
  border-bottom: 1.5px solid var(--border-subtle);
  padding: 36px 20px;
  margin-top: 50px;
  box-shadow: 0 2px 10px rgba(106, 0, 0, 0.04);
}

.quotes-inner {
  max-width: 850px;
  min-height: 110px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  text-align: center;
}

.quote-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.quote-text {
  font-family: 'Georgia', serif;
  font-size: 1.12rem;
  font-style: italic;
  color: #2C3E50;
  line-height: 1.65;
  margin-bottom: 10px;
}

.quote-author {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--saffron-terracotta);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Responsive adjustment for small screens */
@media (max-width: 820px) {
  .hero-content {
    flex-direction: column !important;
    text-align: center;
    gap: 24px;
  }
  .hero-brand {
    align-items: center;
    text-align: center;
  }
}
/* ── Mentor Section: Full-Height Balanced Layout ── */
.mentor-card {
  padding: 40px;
  background: var(--card-white);
  border: 1.5px solid var(--border-subtle);
  border-left: 6px solid var(--maroon-deep);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.mentor-layout {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  /* Centering vertically distributes breathing space evenly above and below */
  align-items: center !important;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}

/* Left: Bio text */
.mentor-bio {
  flex: 1 1 62%;
  min-width: 0;
  text-align: left;
}

.mentor-name {
  font-family: 'Georgia', serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--maroon-deep);
  margin-bottom: 4px;
}

.mentor-title {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--saffron-terracotta);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.mentor-text {
  font-size: 1.02rem;
  color: #2C3E50;
  line-height: 1.8;
  margin-bottom: 16px;
}

.mentor-text:last-child {
  margin-bottom: 0;
}

/* Right: Prominent Full-Column Portrait Block */
.mentor-image-wrap {
  flex: 0 0 320px !important;
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mentor-frame {
  width: 100%;
  height: 420px; /* Taller frame matches the vertical span of the bio paragraphs */
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(106, 0, 0, 0.12);
  background: var(--bg-gold-tint);
}

.mentor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Preserves face framing while showing the mountain sunrise */
  display: block;
}

.mentor-caption {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  letter-spacing: 0.3px;
}

/* Responsive collapse on mobile */
@media (max-width: 860px) {
  .mentor-card {
    padding: 24px;
  }
  
  .mentor-layout {
    flex-direction: column-reverse !important;
    gap: 28px;
  }

  .mentor-image-wrap {
    flex: 0 0 auto !important;
    width: 240px;
  }

  .mentor-frame {
    height: 300px;
  }
}

/* ── Alumni Simple Cards (No Photos) ── */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 1.25rem;
}

.alumni-card {
  background: var(--card-white);
  padding: 24px 24px;
  border-radius: 6px;
  border-left: 4px solid var(--maroon-deep);
  box-shadow: 0 2px 8px rgba(106, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.alumni-name {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.alumni-dept {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.alumni-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--maroon-deep);
  text-decoration: none;
}

.alumni-link:hover {
  color: var(--saffron-terracotta);
  text-decoration: underline;
}


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

.mission-card {
  background: var(--card-white);
  padding: 30px 24px;
  border-radius: 8px;
  border-top: 4px solid var(--saffron-terracotta);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.mission-card:hover {
  transform: translateY(-4px);
}

.mission-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.mission-title {
  font-size: 1.25rem;
  color: var(--maroon-deep);
  margin-bottom: 12px;
}

.why-samskritam-box {
  background: var(--card-white);
  border: 1px solid var(--border-subtle);
  border-left: 6px solid var(--saffron-terracotta);
  padding: 36px 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.why-samskritam-box p {
  margin-bottom: 16px;
}

.why-samskritam-box p:last-child {
  margin-bottom: 0;
}

/* Add this new rule for your event poster image */
.event-poster {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border-subtle);
  display: block;
}

/* Bullet point styling for the new objectives section */
.objective-list {
  list-style: none;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.objective-list li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.objective-list li::before {
  content: "•";
  color: var(--saffron-terracotta);
  font-size: 1.5rem;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: -4px;
}

/* 1. Narrow the column so the image shrinks proportionally */
.stacked-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 500px; /* Reduced from 750px */
  margin: 0 auto;
}

/* 2. Put a strict vertical limit on the poster */
.event-poster {
  width: 100%;
  max-height: 450px; /* Prevents the image from growing taller than this */
  object-fit: contain; /* Ensures the whole poster is visible without getting cropped or stretched */
  background-color: #FAFAFA; /* Adds a subtle background if the poster is narrow */
  border-bottom: 1px solid var(--border-subtle);
  display: block;
}
@media (max-width: 860px) {
  .hero-verses-center {
    flex-direction: column;
  }
}

/* Override the circular avatar rule for the large mentor portrait */
.mentor-frame .mentor-photo {
  border-radius: 0 !important;
  border: none !important;
}

/* ── Contact Page: 3-Column Grid Layout ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.contact-box {
  background: var(--card-white);
  border-left: 4px solid var(--maroon-deep);
  padding: 30px 24px;
  box-shadow: 0 4px 14px rgba(106, 0, 0, 0.04);
  border-radius: 6px;
}

.contact-box-title {
  font-size: 1.25rem;
  color: var(--maroon-deep);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
}

.contact-box-text {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 8px;
}

.contact-box-link {
  font-size: 1.05rem;
  color: #004085; /* Dark blue to match the reference image */
  text-decoration: none;
}

.contact-box-link:hover {
  text-decoration: underline;
}

/* ── Socials & Donations (Bottom Row) ── */
.contact-extras {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
}

.social-links-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.extra-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.whatsapp-btn {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

.whatsapp-btn:hover {
  background: #C8E6C9;
}

.youtube-btn {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

.youtube-btn:hover {
  background: #FFCDD2;
}

.donation-box-inline {
  background: var(--bg-gold-tint);
  border: 1px dashed var(--saffron-terracotta);
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-dark);
}



/* ── Event Image Galleries (activities.html) ── */
.event-gallery-section {
  background: var(--card-white);
  border-left: 5px solid var(--maroon-deep);
  padding: 28px 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}

/* ── Event Image Galleries ── */
.event-gallery-desc {
  font-size: 1.15rem; /* Increased from 1.05rem */
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.6;
}

details.year-accordion {
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

details.year-accordion:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

summary.year-header {
  font-size: 1.15rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

summary.year-header::-webkit-details-marker {
  display: none;
}

summary.year-header:hover {
  color: var(--saffron-terracotta);
}

/* Styling for the active/open year tab */
details[open].year-accordion summary.year-header {
  color: var(--saffron-terracotta);
  border-bottom: 2px solid var(--saffron-terracotta);
  padding-bottom: 10px;
  margin-bottom: 20px;
  width: fit-content;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding-bottom: 24px;
}

.gallery-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(106, 0, 0, 0.1);
  background-color: #f4f4f4; /* Placeholder color before image loads */
  transition: transform 0.2s ease;
}

.gallery-img:hover {
  transform: scale(1.02);
}

/* ── Static Year Headers (No Drop-downs) ── */
.year-section {
  margin-bottom: 30px;
}

/* ── Static Year Headers ── */
h3.year-header {
  font-size: 1.25rem; /* Increased from 1.15rem */
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  color: var(--saffron-terracotta);
  border-bottom: 2px solid var(--saffron-terracotta);
  padding-bottom: 10px;
  margin-bottom: 20px;
  width: fit-content;
  line-height: 1.4; /* Gives multi-line headers a bit more breathing room */
}

/* ── Fixed Image Grid (No Cropping) ── */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding-bottom: 10px;
}

.gallery-img {
  width: 100%;
  height: 250px; /* Changed from auto to force a uniform box size */
  object-fit: contain; /* Automatically centers the image inside the 250px box without cropping */
  border-radius: 6px;
  border: 1px solid rgba(106, 0, 0, 0.1);
  background-color: #f4f4f4; /* Acts as a clean, even frame around the landscape images */
  transition: transform 0.2s ease;
}

.gallery-img:hover {
  transform: scale(1.02);
}

/* ── Disabled/Inactive Navigation Link ── */
.disabled-nav-link {
  pointer-events: none !important; /* Disables clicking */
  color: #B0BEC5 !important; /* Grays out the text */
  cursor: default !important;
  opacity: 0.6;
}


.devanagari-text {
  font-family: 'Noto Serif Devanagari', serif !important;
}

@media (max-width: 768px) {
  .hero-centered-banner {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: fit-content !important; /* Shrink-wraps exactly to the content height */
    padding: 30px 15px 40px 15px !important; 
  }
  
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .hero-title-center {
    font-size: 1.9rem !important; 
    line-height: 1.2 !important;
  }
  
  .hero-motto-devanagari {
    font-size: 1.3rem !important;
  }

  .hero-emblem-center {
    width: 120px !important; 
  }
  
  .hero-verses-center {
    display: flex !important;
    flex-direction: column !important; 
    gap: 15px !important;
    width: 100% !important;
  }

  .verse-card-center {
    padding: 14px 10px !important;
    width: 100% !important;
  }
  
  .verse-text-devanagari {
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
  }

  .verse-text-devanagari span {
    white-space: normal !important; 
  }
}

/* ── Global Fix for Lists and Card Text ── */
ul, ol, li, .def-card, .def-note, table {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}

/* ── Custom Control for Chandas List Notes & Descriptions ── */
.chandas-note-title {
  font-family: 'Segoe UI', system-ui, sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--maroon-deep) !important;
}

.chandas-bullet-list {
  font-family: 'Segoe UI', system-ui, sans-serif !important;
  font-size: 1.02rem !important;
  line-height: 1.8 !important;
  color: var(--text-dark) !important;
}

.chandas-bullet-list li {
  margin-bottom: 8px !important;
}

/* ── Unified Clean Typography (Matching your preferred style) ── */
body, p, li, table, .def-card, .def-note, .chandas-bullet-list, .chandas-note-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: normal;
}

/* Ensure traditional Sanskrit text retains its classic Devanagari script font */
.devanagari-text, .def-sanskrit {
  font-family: 'Noto Serif Devanagari', serif !important;
}
.image-footnote {
  font-size: 0.85em;
  color: #666;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  line-height: 1.2;
}