/* ===== Design tokens ===== */
:root {
  --color-navy: #0c2340;
  --color-navy-light: #163a5f;
  --color-maroon: #7b1e3a;
  --color-gold: #c9a227;
  --color-gold-light: #e8c84a;
  --color-cream: #faf8f4;
  --color-white: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #5a6578;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(12, 35, 64, 0.08);
  --shadow-md: 0 4px 20px rgba(12, 35, 64, 0.12);
  --shadow-lg: 0 12px 40px rgba(12, 35, 64, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --header-height: 120px;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-maroon), #9b2a4a);
  color: var(--color-white);
  border-color: var(--color-maroon);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9b2a4a, var(--color-maroon));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-navy);
  background: rgba(12, 35, 64, 0.05);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.header-top {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.35rem 0;
}

.header-top-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gov-emblem {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.gov-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.header-main {
  padding: 0.75rem 0;
  border-bottom: 3px solid var(--color-gold);
}

.header-main-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  padding: 4px;
  background: var(--color-white);
}

.brand-text {
  min-width: 0;
}

.college-name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
}

.college-cert {
  font-size: 0.7rem;
  color: var(--color-maroon);
  font-weight: 600;
  margin-top: 0.15rem;
}

.college-address {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 35, 64, 0.88) 0%,
    rgba(123, 30, 58, 0.75) 50%,
    rgba(12, 35, 64, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--color-gold-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header-light .section-title {
  color: var(--color-white);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-maroon);
  margin-bottom: 0.5rem;
}

.section-header-light .section-tag {
  color: var(--color-gold-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-navy);
}

.section-desc {
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  font-size: 1rem;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ===== Principal ===== */
.principal-section {
  background: var(--color-white);
}

.principal-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.principal-photo-wrap {
  position: relative;
}

.principal-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.principal-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-maroon);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  white-space: nowrap;
}

.principal-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.principal-designation {
  font-size: 0.9rem;
  color: var(--color-maroon);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.principal-message p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.principal-message p:first-child {
  color: var(--color-text);
  font-weight: 600;
}

.principal-sign {
  margin-top: 1rem;
  font-style: italic;
  color: var(--color-navy);
  font-weight: 600;
}

/* ===== Stats ===== */
.stats-section {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--color-gold);
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ===== Alumni cards ===== */
.alumni-section {
  background: var(--color-cream);
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.alumni-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.alumni-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.alumni-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.alumni-card--link:hover h3 {
  color: var(--color-maroon);
}

.alumni-avatar-img {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
  display: block;
}

.alumni-grid--search {
  margin-top: 1.5rem;
}

.alumni-empty,
.alumni-empty-inline {
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem 1rem;
  grid-column: 1 / -1;
}

.alumni-empty a,
.alumni-empty-inline a {
  color: var(--color-maroon);
  font-weight: 600;
}

.page-main {
  padding-top: 0;
}

.search-section {
  padding-top: 3rem;
}

.search-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.search-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.search-login-hint {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.search-login-hint a {
  color: var(--color-maroon);
  font-weight: 600;
}

.search-results-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.search-active-filters {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.search-active-filters strong {
  color: var(--color-navy);
}

.main-nav .nav-active {
  color: var(--color-maroon);
}

.main-nav .nav-active::after {
  width: 100%;
}

.profile-view-card .back-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-maroon);
  margin-bottom: 1rem;
}

.profile-view-card .back-link:hover {
  text-decoration: underline;
}

.profile-guest-notice a {
  color: var(--color-maroon);
  font-weight: 600;
  text-decoration: underline;
}

.profile-details--public {
  margin-top: 0.5rem;
}

.alumni-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-maroon));
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alumni-card h3 {
  font-size: 1rem;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.alumni-batch {
  font-size: 0.78rem;
  color: var(--color-maroon);
  font-weight: 600;
}

.alumni-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* ===== Events ===== */
.events-section {
  background: var(--color-white);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.event-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-cream);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.event-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  background: var(--color-maroon);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-day {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.event-month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.event-body h3 {
  font-size: 1.05rem;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.event-meta {
  font-size: 0.8rem;
  color: var(--color-maroon);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.event-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-maroon);
}

.event-link:hover {
  text-decoration: underline;
}

/* ===== Testimonials ===== */
.testimonials-section {
  background: linear-gradient(160deg, var(--color-navy-light), var(--color-navy));
  padding: 5rem 0;
}

.testimonials-slider {
  position: relative;
  min-height: 220px;
}

.testimonial-card {
  display: none;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.testimonial-stars {
  color: var(--color-gold);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.testimonial-card blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
}

.testimonial-card footer {
  margin-top: 1.5rem;
}

.testimonial-card footer strong {
  display: block;
  color: var(--color-gold-light);
  font-size: 1rem;
}

.testimonial-card footer span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.testimonial-dots .dot.active,
.testimonial-dots .dot:hover {
  background: var(--color-gold);
  transform: scale(1.2);
}

/* ===== Gallery ===== */
.gallery-section {
  background: var(--color-cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 1rem;
}

.gallery-grid--home {
  grid-template-rows: auto;
  min-height: 0;
}

.gallery-item--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-item--link:hover {
  box-shadow: var(--shadow-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-item--large {
  grid-row: span 2;
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(12, 35, 64, 0.85));
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Gallery page (albums + lightbox) ===== */
.gallery-page-section {
  padding-top: 3rem;
  background: var(--color-cream);
}

.gallery-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-album-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-album-card:hover,
.gallery-album-card:focus {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.gallery-album-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-album-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-album-card:hover .gallery-album-card__img-wrap img {
  transform: scale(1.05);
}

.gallery-album-card__count {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(12, 35, 64, 0.85);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 50px;
}

.gallery-album-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-navy);
  padding: 1rem 1.15rem;
  margin: 0;
  line-height: 1.35;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 64, 0.92);
}

.gallery-lightbox__inner {
  position: relative;
  z-index: 1;
  width: min(960px, 94vw);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__content {
  width: 100%;
  text-align: center;
}

.gallery-lightbox__title {
  font-family: var(--font-display);
  color: var(--color-white);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin: 0 0 0.25rem;
}

.gallery-lightbox__counter {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.gallery-lightbox__img-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__img-wrap img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 1.75rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.gallery-lightbox__close:hover {
  background: var(--color-maroon);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.gallery-lightbox__nav:hover:not(:disabled) {
  background: var(--color-gold);
  color: var(--color-navy);
}

.gallery-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-lightbox__nav--prev {
  left: -60px;
}

.gallery-lightbox__nav--next {
  right: -60px;
}

@media (max-width: 900px) {
  .gallery-lightbox__nav--prev {
    left: 0.5rem;
  }
  .gallery-lightbox__nav--next {
    right: 0.5rem;
  }
  .gallery-lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
    position: fixed;
  }
}

.gallery-home-teaser {
  margin-top: 2rem;
  text-align: center;
}

/* ===== Static content pages (About, Contact) ===== */
.content-page-section {
  padding-top: 3rem;
  background: var(--color-cream);
}

.content-page-section--flush {
  padding-top: 0;
}

.content-page-banner {
  position: relative;
  width: 100%;
  min-height: min(52vh, 520px);
  margin: 0 0 2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.content-page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 35, 64, 0.55) 0%,
    rgba(12, 35, 64, 0.72) 100%
  );
}

.content-page-banner-header {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 4.5rem 0;
}

.section-header-light .section-desc {
  color: rgba(255, 255, 255, 0.9);
}

.content-page-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.content-page-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-navy);
  margin: 0 0 1rem;
}

.content-page-body p,
.content-page-card p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.content-page-body p:last-child,
.content-page-card p:last-child {
  margin-bottom: 0;
}

.content-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.content-page-grid--contact {
  grid-template-columns: 1fr 1fr;
}

.content-page-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.content-page-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.content-page-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.content-page-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-text-muted);
  opacity: 0.9;
}

.contact-block {
  line-height: 1.8;
  color: var(--color-text-muted);
}

.contact-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-details-list li:last-child {
  border-bottom: none;
}

.contact-label {
  font-weight: 600;
  color: var(--color-navy);
}

.contact-details-list em {
  font-style: normal;
  opacity: 0.75;
  font-size: 0.9rem;
}

.content-page-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

@media (max-width: 768px) {
  .content-page-banner {
    min-height: min(38vh, 280px);
  }

  .content-page-banner-header {
    padding: 3rem 0;
  }

  .content-page-grid,
  .content-page-grid--contact {
    grid-template-columns: 1fr;
  }

  .contact-details-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-navy-light), var(--color-maroon));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-maroon), #5a1530);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-inline: auto;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  width: 64px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--color-white);
  padding: 4px;
}

.footer-college-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.footer-address {
  font-size: 0.85rem;
  opacity: 0.75;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--color-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-gold-light);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* ===== Auth pages ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: linear-gradient(160deg, var(--color-cream), #e8eef5);
}

.auth-card {
  width: min(440px, 100%);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.auth-card h2 {
  font-family: var(--font-display);
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.auth-card .auth-sub {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.1);
}

.auth-card .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem;
}

.auth-footer-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.auth-footer-link a {
  color: var(--color-maroon);
  font-weight: 600;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

.auth-main--register {
  align-items: flex-start;
  padding: 2.5rem 1rem 4rem;
}

.auth-card--register {
  width: min(720px, 100%);
}

.register-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-gold);
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

.form-grid .form-group--full {
  grid-column: 1 / -1;
}

.form-stack .form-group:last-child {
  margin-bottom: 0;
}

.required {
  color: var(--color-maroon);
}

.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}

.form-group select:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.1);
}

.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 96px;
  transition: var(--transition);
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.1);
}

.suggestions-card,
.public-form-card {
  max-width: 760px;
  margin-inline: auto;
}

.suggestions-form .content-page-actions,
.donations-form .content-page-actions {
  margin-top: 0.5rem;
}

.file-upload {
  position: relative;
}

.file-upload-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.75rem 1rem;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-cream);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.file-upload-label:hover {
  border-color: var(--color-navy);
  background: #f0f4f8;
}

.file-upload-icon {
  color: var(--color-navy);
  opacity: 0.7;
}

.file-upload-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
}

.file-upload-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.photo-preview {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
}

.photo-preview img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  box-shadow: var(--shadow-md);
}

.photo-preview-remove {
  position: absolute;
  top: 0;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--color-maroon);
  color: var(--color-white);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-remove:hover {
  background: #9b2a4a;
}

.register-form .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.9rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.alert-error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

.field-error {
  color: var(--color-maroon);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.dashboard-card h2 {
  font-family: var(--font-display);
  color: var(--color-navy);
  margin-bottom: 0.15rem;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold);
  flex-shrink: 0;
}

.dashboard-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-navy), var(--color-maroon));
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.25rem;
}

.profile-details {
  margin-bottom: 1.5rem;
}

.profile-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row dt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.profile-row dd {
  font-size: 0.95rem;
  color: var(--color-navy);
  word-break: break-word;
}

.profile-row a {
  color: var(--color-maroon);
}

.profile-row a:hover {
  text-decoration: underline;
}

.dashboard-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .profile-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item--large {
    grid-row: span 1;
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-border);
  }

  .site-header.nav-open .header-main-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .site-header.nav-open .main-nav {
    width: 100%;
    order: 4;
    gap: 0.75rem;
  }

  .site-header.nav-open .header-actions {
    width: 100%;
    order: 5;
    flex-direction: row;
  }

  .principal-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .principal-photo-wrap {
    max-width: 240px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .brand {
    flex-direction: column;
    text-align: center;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--large {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-rows: auto;
  }

  .gallery-item {
    min-height: 180px;
  }
}
