/* ==========================================================================
   AHAH College Website - Standardized CSS with reusable classes
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens (CSS custom properties)
   -------------------------------------------------------------------------- */
:root {
  --ahah-font:
    "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --ahah-heading-font:
    "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --ahah-primary: #0f4c81;
  --ahah-primary-rgb: 15, 76, 129;
  --ahah-primary-dark: #0a3a64;
  --ahah-accent: #f59e0b;
  --ahah-dark: #0f172a;
  --ahah-bg: #f3f5f9;
  --ahah-surface: #ffffff;
  --ahah-border: #e2e8f0;
  --ahah-footer-bg: var(--ahah-dark);
  --ahah-text-muted: #384450;
  --ahah-border-width: 3px;
  --ahah-radius: 1rem;
  --ahah-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --ahah-shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.16);
  --ahah-nav-active-border: 2px;
  --bs-primary: var(--ahah-primary);
  --bs-primary-rgb: var(--ahah-primary-rgb);
  --bs-body-font-family: var(--ahah-font);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--ahah-font);
  background:
    radial-gradient(
      1200px 600px at 10% -10%,
      rgba(var(--ahah-primary-rgb), 0.12),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 90% -20%,
      rgba(245, 158, 11, 0.12),
      transparent 55%
    ),
    var(--ahah-bg);
  color: var(--ahah-dark);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Typography - reusable
   -------------------------------------------------------------------------- */
span.fs-ah {
  font-family: "Poppins", var(--ahah-heading-font);
  font-weight: 460;
  font-size: clamp(1.38rem, 1.66vw + 1.24rem, 2.07rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.navbar-brand {
  gap: 0.5rem;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}

.navbar-brand .fs-ah {
  display: block;
  color: var(--ahah-dark);
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ahah-heading-font);
  letter-spacing: 0.2px;
}

/* --------------------------------------------------------------------------
   Custom utility replacements (Bootstrap utilities centralized here)
   Each block below maps directly to former HTML utility classes.
   -------------------------------------------------------------------------- */
.u-text-muted {
  /* text-muted */
  color: var(--ahah-text-muted) !important;
}

.u-text-white {
  /* text-white */
  color: #fff !important;
}

.u-text-white-50 {
  /* text-white-50 */
  color: rgba(255, 255, 255, 0.5) !important;
}

.u-text-primary {
  /* text-primary */
  color: var(--ahah-primary) !important;
}

.u-text-uppercase {
  /* text-uppercase */
  text-transform: uppercase;
}

.u-text-center {
  /* text-center */
  text-align: center;
}

@media (min-width: 992px) {
  .u-text-lg-end {
    /* text-lg-end */
    text-align: end;
  }
}

.u-fw-bold {
  /* fw-bold */
  font-weight: 600;
}

.u-fw-semibold {
  /* fw-semibold */
  font-weight: 600;
}

.u-display-6 {
  /* display-6 */
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.u-display-5 {
  /* display-5 */
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 700;
}

.u-h1 {
  /* h1 */
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.u-h2 {
  /* h2 */
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 700;
}

.u-h4 {
  /* h4 */
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}

.u-h5 {
  /* h5 */
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
}

.u-h6 {
  /* h6 */
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.u-lead {
  /* lead */
  font-size: 1.125rem;
  line-height: 1.7;
}

.u-small {
  /* small */
  font-size: 0.875rem;
}

.u-bg-light {
  /* bg-light */
  background-color: #f8fafc;
}

.u-bg-primary {
  /* bg-primary */
  background-color: var(--ahah-primary);
}

.u-text-bg-light {
  /* text-bg-light */
  background-color: #f8fafc;
  color: var(--ahah-primary);
  border: 1px solid rgba(var(--ahah-primary-rgb), 0.15);
}

.u-rounded-4 {
  /* rounded-4 */
  border-radius: 1rem;
}

.u-rounded-start {
  /* rounded-start */
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
}

.u-shadow-sm {
  /* shadow-sm */
  box-shadow: var(--ahah-shadow);
}

.u-d-flex {
  /* d-flex */
  display: flex;
}

.u-d-inline-flex {
  /* d-inline-flex */
  display: inline-flex;
}

.u-flex-wrap {
  /* flex-wrap */
  flex-wrap: wrap;
}

.u-flex-column {
  /* flex-column */
  flex-direction: column;
}

@media (min-width: 768px) {
  .u-flex-md-row {
    /* flex-md-row */
    flex-direction: row;
  }
}

.u-align-items-center {
  /* align-items-center */
  align-items: center;
}

.u-align-items-end {
  /* align-items-end */
  align-items: end;
}

.u-justify-between {
  /* justify-content-between */
  justify-content: space-between;
}

.u-justify-center {
  /* justify-content-center */
  justify-content: center;
}

.u-gap-2 {
  /* gap-2 */
  gap: 0.5rem;
}

.u-gap-3 {
  /* gap-3 */
  gap: 1rem;
}

.u-gap-4 {
  /* gap-4 */
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .u-gap-md-5 {
    /* gap-md-5 */
    gap: 3rem;
  }
}

.u-g-0 {
  /* g-0 */
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.u-g-3 {
  /* g-3 */
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.u-g-4 {
  /* g-4 */
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.u-gy-4 {
  /* gy-4 */
  --bs-gutter-y: 1.5rem;
}

.u-w-100 {
  /* w-100 */
  width: 100%;
}

.u-h-100 {
  /* h-100 */
  height: 100%;
}

.u-ratio {
  /* ratio */
  width: 100%;
  display: block;
  overflow: hidden;
}

.u-ratio-16x9 {
  /* ratio-16x9 */
  aspect-ratio: 16 / 9;
}

.u-ratio-1x1 {
  /* ratio-1x1 */
  aspect-ratio: 1 / 1;
}

.u-mb-0 {
  /* mb-0 */
  margin-bottom: 0;
}

.u-mb-1 {
  /* mb-1 */
  margin-bottom: 0.25rem;
}

.u-mb-2 {
  /* mb-2 */
  margin-bottom: 0.5rem;
}

.u-mb-3 {
  /* mb-3 */
  margin-bottom: 1rem;
}

.u-mb-4 {
  /* mb-4 */
  margin-bottom: 1.5rem;
}

.u-mb-5 {
  /* mb-5 */
  margin-bottom: 3rem;
}

.u-mt-4 {
  /* mt-4 */
  margin-top: 1.5rem;
}

.u-mt-5 {
  /* mt-5 */
  margin-top: 3rem;
}

.u-my-4 {
  /* my-4 */
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.u-mx-auto {
  /* mx-auto */
  margin-left: auto;
  margin-right: auto;
}

.u-pt-2 {
  /* pt-2 */
  padding-top: 0.5rem;
}

.u-py-5 {
  /* py-5 */
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.u-px-4 {
  /* px-4 */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.u-px-0 {
  /* px-0 */
  padding-left: 0;
  padding-right: 0;
}

.u-p-0 {
  /* p-0 */
  padding: 0;
}

.u-p-4 {
  /* p-4 */
  padding: 1.5rem;
}

.u-ps-3 {
  /* ps-3 */
  padding-left: 1rem;
}

.u-ms-auto {
  /* ms-auto */
  margin-left: auto;
}

.u-me-2 {
  /* me-2 */
  margin-right: 0.5rem;
}

@media (min-width: 768px) {
  .u-mb-md-0 {
    /* mb-md-0 */
    margin-bottom: 0;
  }

  .u-px-md-5 {
    /* px-md-5 */
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .u-p-md-5 {
    /* p-md-5 */
    padding: 3rem;
  }
}

@media (min-width: 992px) {
  .u-mb-lg-0 {
    /* mb-lg-0 */
    margin-bottom: 0;
  }

  .u-ms-lg-3 {
    /* ms-lg-3 */
    margin-left: 1rem;
  }
}

.ahah-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ahah-primary);
}

.ahah-lead-muted {
  color: var(--ahah-text-muted);
}

.skybluecl {
  color: var(--ahah-accent);
}

/* --------------------------------------------------------------------------
   Page structure - reusable
   -------------------------------------------------------------------------- */
.ahah-main {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.ahah-page-header {
  margin-bottom: 3rem;
}

.ahah-page-header .ahah-page-title {
  margin-bottom: 0.75rem;
}

.ahah-page-header .ahah-page-lead {
  margin-bottom: 0;
  color: var(--ahah-text-muted);
}

/* Section title: left border + heading (used across programs, facilities, leadership) */
.ahah-section-title {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.ahah-section-title-inner {
  border-left: var(--ahah-border-width) solid var(--ahah-primary);
  padding-left: 0.75rem;
  position: relative;
}

.ahah-section-title-inner h2 {
  margin-bottom: 0;
  font-weight: 700;
}

.ahah-section-title-inner::after {
  content: "";
  position: absolute;
  bottom: -0.4rem;
  left: 0.75rem;
  width: 3.5rem;
  height: 0.2rem;
  background: linear-gradient(
    90deg,
    var(--ahah-primary),
    rgba(var(--ahah-primary-rgb), 0.2)
  );
  border-radius: 999px;
}

.ahah-section-intro {
  color: var(--ahah-text-muted);
  margin-bottom: 1.5rem;
}

.programs-intro-single-line {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Cards - reusable
   -------------------------------------------------------------------------- */
.ahah-card {
  height: 100%;
  border: 1px solid var(--ahah-border);
  background: var(--ahah-surface);
  box-shadow: var(--ahah-shadow);
  border-radius: 1rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ahah-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ahah-shadow-lg);
}

/* Homepage vision card - elevated single-card treatment */
.ahah-vision-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(var(--ahah-primary-rgb), 0.2);
  background:
    radial-gradient(
      220px 140px at 16% 12%,
      rgba(210, 235, 255, 0.9),
      rgba(210, 235, 255, 0) 72%
    ),
    linear-gradient(
      165deg,
      rgba(232, 245, 255, 0.95) 0%,
      rgba(216, 238, 255, 0.86) 42%,
      rgba(247, 252, 255, 0.95) 100%
    ),
    radial-gradient(
      140px 140px at 88% 16%,
      rgba(190, 224, 255, 0.48),
      rgba(190, 224, 255, 0) 72%
    ),
    linear-gradient(
      135deg,
      rgba(var(--ahah-primary-rgb), 0.1),
      rgba(var(--ahah-primary-rgb), 0)
    ),
    var(--ahah-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    var(--ahah-shadow);
}

.ahah-vision-card .card-body {
  position: relative;
  z-index: 1;
  padding: clamp(1.6rem, 1.2rem + 1vw, 2.35rem);
}

.ahah-vision-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: 4.5rem;
  height: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(var(--ahah-primary-rgb), 0.15),
    var(--ahah-primary),
    rgba(var(--ahah-primary-rgb), 0.15)
  );
  z-index: 1;
}

.ahah-vision-card::after {
  content: "";
  position: absolute;
  inset: -10% -45% auto auto;
  width: 72%;
  height: 60%;
  transform: rotate(16deg);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0) 72%
  );
  pointer-events: none;
  z-index: 0;
}

.ahah-vision-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--ahah-primary-rgb), 0.2);
  background: rgba(var(--ahah-primary-rgb), 0.08);
  color: var(--ahah-primary);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ahah-vision-card h3 {
  color: var(--ahah-primary-dark);
  margin-bottom: 0.85rem !important;
}

.ahah-vision-heading {
  gap: 0.6rem;
}

.ahah-vision-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--ahah-primary-rgb), 0.28);
  background:
    radial-gradient(circle at 50% 50%, var(--ahah-accent) 0.22rem, transparent 0.25rem),
    linear-gradient(
      145deg,
      rgba(var(--ahah-primary-rgb), 0.22),
      rgba(var(--ahah-primary-rgb), 0.06)
    );
  box-shadow:
    inset 0 0 0 0.2rem rgba(255, 255, 255, 0.82),
    0 6px 14px rgba(var(--ahah-primary-rgb), 0.16);
  flex: 0 0 auto;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.ahah-vision-text {
  line-height: 1.75;
  color: #4b5563 !important;
  font-weight: 500;
}

.ahah-vision-card:hover {
  transform: translateY(-6px);
}

.ahah-vision-card:hover .ahah-vision-icon {
  transform: translateY(-1px) scale(1.06);
  border-color: rgba(var(--ahah-primary-rgb), 0.45);
  box-shadow:
    inset 0 0 0 0.2rem rgba(255, 255, 255, 0.9),
    0 10px 18px rgba(var(--ahah-primary-rgb), 0.24);
}

.ahah-card-img {
  background-size: cover;
  background-position: center;
}

.ahah-card-img-16x9 {
  --bs-aspect-ratio: 56.25%; /* 16:9 */
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ahah-card-img-16x9::before {
  content: "";
  display: block;
  padding-top: var(--bs-aspect-ratio);
}

/* Programs page: slightly shorter hero-image area for UG cards */
#college .u-ratio.u-ratio-16x9 {
  aspect-ratio: 19 / 8;
}

#college .program-img-bcom,
#college .program-img-ba {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fcfcfc;
}

#college .ahah-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(84, 146, 214, 0.28);
  background:
    radial-gradient(
      180px 120px at 12% 10%,
      rgba(213, 236, 255, 0.9),
      rgba(213, 236, 255, 0) 75%
    ),
    linear-gradient(
      155deg,
      rgba(241, 248, 255, 0.96) 0%,
      rgba(226, 239, 252, 0.92) 45%,
      rgba(246, 251, 255, 0.95) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 26px rgba(15, 76, 129, 0.12);
}

#college .ahah-card::before {
  content: "";
  position: absolute;
  inset: -12% -40% auto auto;
  width: 70%;
  height: 58%;
  transform: rotate(14deg);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.46),
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0) 74%
  );
  pointer-events: none;
}

#correspondence .ahah-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(84, 146, 214, 0.28);
  background:
    radial-gradient(
      180px 120px at 12% 10%,
      rgba(213, 236, 255, 0.9),
      rgba(213, 236, 255, 0) 75%
    ),
    linear-gradient(
      155deg,
      rgba(241, 248, 255, 0.96) 0%,
      rgba(226, 239, 252, 0.92) 45%,
      rgba(246, 251, 255, 0.95) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 26px rgba(15, 76, 129, 0.12);
}

#correspondence .ahah-card::before {
  content: "";
  position: absolute;
  inset: -12% -40% auto auto;
  width: 70%;
  height: 58%;
  transform: rotate(14deg);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.46),
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0) 74%
  );
  pointer-events: none;
}

#school .ahah-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(84, 146, 214, 0.28);
  background:
    radial-gradient(
      170px 115px at 12% 10%,
      rgba(213, 236, 255, 0.9),
      rgba(213, 236, 255, 0) 75%
    ),
    linear-gradient(
      155deg,
      rgba(241, 248, 255, 0.96) 0%,
      rgba(226, 239, 252, 0.92) 45%,
      rgba(246, 251, 255, 0.95) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 26px rgba(15, 76, 129, 0.12);
}

#school .ahah-card::before {
  content: "";
  position: absolute;
  inset: -12% -40% auto auto;
  width: 70%;
  height: 58%;
  transform: rotate(14deg);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.46),
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0) 74%
  );
  pointer-events: none;
}

.academic-results-graffiti {
  position: relative;
  overflow: hidden;
  border-color: rgba(39, 81, 144, 0.34);
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.9) 0 1.6px, transparent 1.9px),
    radial-gradient(circle at 16% 30%, rgba(255, 255, 255, 0.72) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.88) 0 1.5px, transparent 1.9px),
    radial-gradient(circle at 78% 36%, rgba(255, 255, 255, 0.62) 0 1.1px, transparent 1.5px),
    conic-gradient(
      from 200deg at 14% 80%,
      rgba(30, 144, 255, 0) 0deg,
      rgba(30, 144, 255, 0.22) 56deg,
      rgba(255, 255, 255, 0) 128deg
    ),
    conic-gradient(
      from 15deg at 86% 74%,
      rgba(255, 255, 255, 0) 0deg,
      rgba(65, 174, 255, 0.2) 66deg,
      rgba(255, 255, 255, 0) 136deg
    ),
    linear-gradient(
      135deg,
      rgba(229, 242, 255, 0.95) 0%,
      rgba(216, 234, 251, 0.92) 48%,
      rgba(240, 248, 255, 0.96) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 28px rgba(15, 76, 129, 0.12);
}

.academic-results-graffiti::before {
  content: "";
  position: absolute;
  inset: -8% -28% auto auto;
  width: 56%;
  height: 62%;
  transform: rotate(14deg);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.52),
    rgba(255, 255, 255, 0.16) 45%,
    rgba(255, 255, 255, 0) 76%
  );
  pointer-events: none;
}

#facilities-grid .ahah-card {
  border-color: var(--ahah-border);
  background: var(--ahah-surface);
  box-shadow: var(--ahah-shadow);
}

#facilities-grid .ahah-card::before {
  content: none;
}

#events-cards .ahah-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(84, 146, 214, 0.28);
  background:
    radial-gradient(
      170px 115px at 12% 10%,
      rgba(213, 236, 255, 0.9),
      rgba(213, 236, 255, 0) 75%
    ),
    linear-gradient(
      155deg,
      rgba(241, 248, 255, 0.96) 0%,
      rgba(226, 239, 252, 0.92) 45%,
      rgba(246, 251, 255, 0.95) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 26px rgba(15, 76, 129, 0.12);
}

#events-cards .ahah-card::before {
  content: "";
  position: absolute;
  inset: -12% -40% auto auto;
  width: 70%;
  height: 58%;
  transform: rotate(14deg);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.46),
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0) 74%
  );
  pointer-events: none;
}

.page-index main .card {
  position: relative;
  overflow: hidden;
  border-color: rgba(84, 146, 214, 0.28);
  background:
    radial-gradient(
      170px 115px at 12% 10%,
      rgba(213, 236, 255, 0.88),
      rgba(213, 236, 255, 0) 75%
    ),
    linear-gradient(
      155deg,
      rgba(241, 248, 255, 0.96) 0%,
      rgba(226, 239, 252, 0.9) 45%,
      rgba(246, 251, 255, 0.95) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 26px rgba(15, 76, 129, 0.12);
}

.page-index main .card::before {
  content: "";
  position: absolute;
  inset: -12% -40% auto auto;
  width: 70%;
  height: 58%;
  transform: rotate(14deg);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.46),
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0) 74%
  );
  pointer-events: none;
}

/* Slightly brighter tone for the featured vision card */
.page-index .ahah-vision-card {
  background:
    radial-gradient(
      180px 125px at 14% 12%,
      rgba(223, 242, 255, 0.92),
      rgba(223, 242, 255, 0) 74%
    ),
    linear-gradient(
      158deg,
      rgba(244, 251, 255, 0.98) 0%,
      rgba(232, 244, 255, 0.9) 48%,
      rgba(248, 252, 255, 0.96) 100%
    ) !important;
}

/* Slightly deeper tone for campus facilities summary cards */
.page-index #facilities .card {
  background:
    radial-gradient(
      170px 110px at 12% 10%,
      rgba(199, 228, 252, 0.84),
      rgba(199, 228, 252, 0) 75%
    ),
    linear-gradient(
      154deg,
      rgba(233, 244, 255, 0.95) 0%,
      rgba(217, 234, 250, 0.9) 46%,
      rgba(243, 250, 255, 0.95) 100%
    );
}

/* Glossy tone variant for Why AHAH cards */
.page-index #why-ahah .card {
  background:
    radial-gradient(
      170px 110px at 12% 10%,
      rgba(206, 234, 255, 0.88),
      rgba(206, 234, 255, 0) 75%
    ),
    linear-gradient(
      156deg,
      rgba(238, 248, 255, 0.97) 0%,
      rgba(224, 240, 253, 0.91) 47%,
      rgba(246, 252, 255, 0.96) 100%
    );
}

/* Glossy tone variant for Academic Programs cards */
.page-index #academic-programs-summary .card {
  background:
    radial-gradient(
      175px 115px at 12% 10%,
      rgba(198, 229, 252, 0.84),
      rgba(198, 229, 252, 0) 75%
    ),
    linear-gradient(
      154deg,
      rgba(232, 245, 255, 0.96) 0%,
      rgba(218, 236, 251, 0.9) 46%,
      rgba(243, 250, 255, 0.95) 100%
    );
}

.ahah-card-img-1x1 {
  --bs-aspect-ratio: 100%;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ahah-card-img-1x1::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.ahah-card-body .ahah-card-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ahah-primary);
  margin-bottom: 0.25rem;
}

.ahah-badge-pill {
  font-size: 0.875rem;
  text-transform: uppercase;
  background: var(--ahah-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   CTA block (primary background, rounded) - reusable
   -------------------------------------------------------------------------- */
.ahah-cta {
  position: relative;
  overflow: hidden;
  padding: 2.4rem 1.3rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    120deg,
    var(--ahah-primary),
    #246fb0 50%,
    var(--ahah-primary-dark)
  );
  color: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
}

.programs-cta-full-bleed {
  margin-left: calc(50% - 50vw + (100vw - 100%) / 2);
  margin-right: calc(50% - 50vw + (100vw - 100%) / 2);
  border-radius: 0;
}

.programs-cta-rounded {
  border-radius: 1.25rem;
}

.ahah-cta::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.25),
    transparent 65%
  );
  pointer-events: none;
}

.ahah-cta::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  transform: rotate(18deg);
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.22),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.ahah-cta > .row {
  position: relative;
  z-index: 1;
}

.ahah-cta .ahah-cta-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.ahah-cta .btn {
  border-width: 2px;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
}

.ahah-cta .btn i {
  margin-right: 0.35rem;
}

@media (min-width: 768px) {
  .ahah-cta {
    padding: 3rem;
  }
}

.ahah-cta .ahah-cta-title {
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(1.7rem, 1rem + 2vw, 2.7rem);
}

.contact-cta-title {
  white-space: normal;
  overflow-wrap: anywhere;
}

.facilities-cta-title {
  white-space: normal;
  overflow-wrap: anywhere;
}

.contact-cta-lead {
  max-width: 78ch !important;
  white-space: normal;
}

.foundation-copy {
  max-width: none;
}

.ahah-cta .ahah-cta-lead {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 58ch;
}

.ahah-cta .ahah-cta-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.ahah-cta .ahah-cta-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
}

.ahah-cta .ahah-cta-highlights i {
  color: #fde68a;
  font-size: 0.95rem;
}

.ahah-cta .ahah-cta-actions {
  display: inline-flex;
  flex-direction: column;
  gap: 0.7rem;
}

@media (max-width: 991.98px) {
  .ahah-cta .ahah-cta-actions {
    display: flex;
    width: 100%;
  }

  .ahah-cta .ahah-cta-actions .btn {
    justify-content: center;
  }

  .contact-cta-title {
    white-space: normal;
  }

  .contact-cta-lead {
    max-width: 58ch !important;
  }
}

/* --------------------------------------------------------------------------
   Footer - reusable
   -------------------------------------------------------------------------- */
.ahah-footer {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin-top: 3rem;
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #fff;
}

.ahah-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}
.ahah-footer-meta i {
  color: #ffffff !important;
}
.ahah-footer-meta a:hover i {
  color: blue;
}

@media (min-width: 768px) {
  .ahah-footer-inner {
    flex-direction: row;
  }
}

.ahah-footer-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Hero sections (page-specific backgrounds stay in classes below)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  isolation: isolate;
  min-height: clamp(250px, 40vh, 430px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center -80px;
  background-image: url("../images/ahah_college_photo.png");
  box-shadow:
    inset 0 -100px 185px rgba(7, 24, 43, 0.44),
    inset 0 0 105px rgba(210, 234, 252, 0.24),
    inset 0 0 210px rgba(8, 30, 55, 0.34);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(43, 159, 239, 0.42) 0%,
    rgba(19, 114, 189, 0.32) 34%,
    rgba(10, 62, 111, 0.34) 62%,
    rgba(5, 23, 42, 0.56) 100%
  );
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      54% 42% at 50% 48%,
      rgba(238, 249, 255, 0.3) 0%,
      rgba(235, 247, 255, 0.16) 42%,
      rgba(235, 247, 255, 0) 78%
    ),
    radial-gradient(
      140% 82% at 50% 46%,
      rgba(255, 255, 255, 0) 52%,
      rgba(235, 247, 255, 0.22) 70%,
      rgba(10, 36, 67, 0.46) 100%
    ),
    radial-gradient(
      520px 220px at 20% 5%,
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 0) 72%
    ),
    radial-gradient(
      620px 220px at 80% 2%,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0) 74%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 28%
    ),
    linear-gradient(
      112deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.14) 45%,
      rgba(255, 255, 255, 0) 62%
    );
  -webkit-backdrop-filter: blur(2.4px) saturate(124%) contrast(108%) brightness(103%);
  backdrop-filter: blur(2.4px) saturate(124%) contrast(108%) brightness(103%);
  box-shadow:
    inset 0 0 170px rgba(9, 35, 65, 0.44),
    inset 0 0 90px rgba(218, 238, 255, 0.2);
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: clamp(250px, 40vh, 430px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding-bottom: 0;
}

.hero-shell > .row {
  width: 100%;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-lead {
  width: 100%;
  display: block;
  font-family: "Poppins", var(--ahah-font);
  color: rgba(255, 255, 255, 0.94);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.45rem);
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(9, 28, 49, 0.35);
  position: static;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0;
  text-align: left;
}

@media (min-width: 1200px) {
  .home-hero-lead-single {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(0.92rem, 0.75rem + 0.35vw, 1.2rem);
    width: 100%;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .index-cta-single-line {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .school-intro-single-line {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .ug-intro-single-line {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .events-cta-lead-single {
    white-space: normal;
    overflow-wrap: anywhere;
  }

}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: clamp(250px, 40vh, 430px);
  padding-top: clamp(5.6rem, 18vh, 10rem);
  padding-bottom: clamp(1rem, 2.8vh, 1.8rem);
  position: relative;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  text-align: left;
}

.hero-title {
  font-family: "Poppins", var(--ahah-heading-font);
  white-space: normal;
  width: min(100%, 22ch);
  font-size: clamp(1.24rem, 2.56vw, 2.68rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.004em;
  text-align: left;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  color: #f8fcff;
  text-shadow: 0 6px 20px rgba(6, 23, 46, 0.42);
}

.hero-title-line {
  display: block;
}

.hero-title-line + .hero-title-line {
  margin-top: 0.22em;
}

.hero-title-icon {
  display: inline-block;
  margin: 0 0.26em;
  font-size: 0.78em;
  transform: translateY(-0.06em);
  filter: drop-shadow(0 2px 4px rgba(8, 27, 54, 0.5));
}

.hero-tagline {
  max-width: 62ch;
  font-size: clamp(0.94rem, 0.82rem + 0.36vw, 1.2rem);
  line-height: 1.5;
  font-weight: 500;
  color: rgba(244, 250, 255, 0.95);
  text-shadow: 0 2px 8px rgba(7, 22, 43, 0.4);
  text-align: left;
}

.hero-content > * {
  animation: hero-fade-up 520ms ease both;
}

.hero-tagline {
  animation-delay: 120ms;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions .btn {
  border-radius: 999px;
  font-weight: 600;
  border-width: 2px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.hero-btn-primary {
  color: #0b2845;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
}

.hero-btn-primary:hover {
  color: #092238;
  transform: translateY(-2px);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-glass-card {
  border-radius: 1.2rem;
  padding: 1.25rem 1.25rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.06)
  );
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 38px rgba(8, 15, 30, 0.26);
}

.hero-card-kicker {
  margin-bottom: 0.55rem;
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-points {
  display: grid;
  gap: 0.75rem;
}

.hero-point {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
  line-height: 1.55;
}

@keyframes hero-float {
  from {
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes hero-gloss-sweep {
  0% {
    left: -42%;
    opacity: 0.18;
  }
  45% {
    opacity: 0.32;
  }
  100% {
    left: 104%;
    opacity: 0;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 2.8rem 0 2.2rem;
  }

  .hero-shell {
    min-height: auto;
    display: block;
  }

  .hero-content {
    display: block;
    min-height: auto;
    text-align: center;
  }

  .hero-lead {
    position: static;
    transform: none;
    margin-top: 1rem;
    width: 100%;
    white-space: normal;
  }

  .hero-title {
    white-space: normal;
  }

  .hero-tagline {
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-glass-card {
    margin-top: 0.65rem;
  }
}

@media (max-width: 575.98px) {
  .hero-kicker {
    font-size: 0.7rem;
  }

  .hero-highlight {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section::after {
    animation: none;
  }

  .hero-content > * {
    animation: none;
  }
}

.leadership-hero {
  padding: 1.5rem;
  border-radius: var(--ahah-radius);
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(rgba(19, 91, 236, 0.85), rgba(0, 0, 0, 0.7)),
    url("https://lh3.googleusercontent.com/aida-public/AB6AXuCE2tgJp7VTlZBn6Hf0QJ2ESltdMrg7kXnv3SAzo01UR3id7q3CX54LxXN-Ub6FLC4BMoEdp0GAgS8B40RNvim3cCueSgC2w3opHxCODGB8DErJTQUofPJcEISAfgiXrPY0Ky0vxaTK0f4TpSrVsHm_zsdmetmlRVQQPmOxvkfzuVoU18m9MuwaWvhmqkGGN53c3WmcjJccXQIOGr73soCcT3-0vbwTz6vLqPKK6eAzDxHklFrbMUhl2IKbi0q2nR60NtKWgsXFevQ");
}

.leadership-hero-full-bleed {
  margin-left: calc(50% - 50vw + (100vw - 100%) / 2);
  margin-right: calc(50% - 50vw + (100vw - 100%) / 2);
  border-radius: 1.25rem;
}

@media (min-width: 768px) {
  .leadership-hero {
    padding: 3rem;
  }
}

/* Legacy: bg-cover used with inline background-image in cards */
.bg-cover {
  background-size: cover;
  background-position: center;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  background: radial-gradient(
    circle at 30% 30%,
    #fff 0,
    #fff 20%,
    var(--ahah-primary-dark) 70%
  );
  box-shadow: 0 0 0 2px rgba(var(--ahah-primary-rgb), 0.15);
}

.rank-avatar {
  width: 72px;
  height: 72px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 4px rgba(var(--ahah-primary-rgb), 0.2);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav-link {
  padding-bottom: 8px;
  border-bottom: var(--ahah-nav-active-border) solid transparent;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link.active {
  color: var(--ahah-primary);
  border-bottom-color: var(--ahah-primary);
}

/* Navbar refinement */
.navbar {
  background-color: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar .container {
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  box-shadow: none;
}

.navbar-collapse {
  min-width: 0;
}

.navbar-toggler {
  flex: 0 0 auto;
}

@media (min-width: 992px) {
  .navbar {
    min-height: 72px;
  }

  .navbar-brand {
    flex: 1 1 auto;
    max-width: calc(100% - 560px);
    padding-right: 1rem;
  }

  .navbar-brand .fs-ah {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(1rem, 0.82rem + 0.28vw, 1.12rem);
    line-height: 1.1;
  }

  .navbar-expand-lg .navbar-collapse {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .navbar-expand-lg .navbar-nav {
    align-items: center;
    gap: 0.15rem;
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .navbar-brand {
    max-width: calc(100% - 500px);
  }

  .navbar-brand .fs-ah {
    font-size: clamp(0.92rem, 0.84rem + 0.2vw, 1rem);
  }
}

@media (min-width: 992px) {
  .hero-title,
  .hero-tagline {
    margin-left: -0.75rem;
  }
}

@media (max-width: 1199.98px) {
  .navbar-brand .fs-ah {
    font-size: clamp(0.95rem, 0.88rem + 0.2vw, 1.05rem);
    line-height: 1.15;
  }
}

@media (max-width: 991.98px) {
  .navbar-brand {
    max-width: calc(100% - 3.5rem);
  }

  .navbar-brand .fs-ah {
    white-space: normal;
  }

  .navbar-nav .nav-link {
    display: block;
    width: 100%;
  }

  .nav-link.active {
    border-bottom-color: transparent;
  }
}

.nav-link {
  font-weight: 300;
  font-size: 0.85rem;
}

.nav-link:hover {
  color: var(--ahah-primary);
}

/* --------------------------------------------------------------------------
   Links (e.g. footer)
   -------------------------------------------------------------------------- */
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Contact card (contact page)
   -------------------------------------------------------------------------- */
.ahah-contact-card {
  border: 1px solid rgba(var(--ahah-primary-rgb), 0.16);
  border-radius: 1.1rem;
  background:
    linear-gradient(
      165deg,
      rgba(var(--ahah-primary-rgb), 0.08),
      transparent 40%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ahah-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.ahah-contact-card-head {
  border-left: 4px solid var(--ahah-accent);
  padding-left: 0.9rem;
}

.ahah-contact-chip {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ahah-primary-dark);
  background: rgba(var(--ahah-primary-rgb), 0.12);
  border: 1px solid rgba(var(--ahah-primary-rgb), 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.ahah-contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.ahah-contact-icon {
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(
    135deg,
    rgba(var(--ahah-primary-rgb), 0.14),
    rgba(245, 158, 11, 0.16)
  );
  color: var(--ahah-primary-dark);
  font-size: 1rem;
}

.ahah-contact-link {
  color: var(--ahah-primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.ahah-contact-link:hover {
  color: var(--ahah-primary);
  text-decoration: underline;
}

.ahah-contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ahah-contact-actions .btn {
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Map iframe (contact page)
   -------------------------------------------------------------------------- */
.ahah-map-card {
  border: 1px solid rgba(var(--ahah-primary-rgb), 0.18);
  border-radius: 1.1rem;
  background:
    linear-gradient(
      165deg,
      rgba(var(--ahah-primary-rgb), 0.08),
      transparent 45%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.ahah-map-card-body {
  padding: 0.95rem;
}

.ahah-map-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.2rem 0;
}

.ahah-map-chip {
  margin-bottom: 0.45rem;
}

.ahah-map-link {
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.ahah-map-link i {
  margin-right: 0.35rem;
}

.ahah-map-wrap {
  border: 0;
  border-radius: 0 0 0.95rem 0.95rem;
  display: block;
  overflow: hidden;
  min-height: clamp(240px, 45vh, 350px);
  width: 100%;
  height: 100%;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
}

@media (max-width: 768px) {
  .ahah-map-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ahah-map-link {
    width: 100%;
    text-align: center;
  }

  .ahah-map-wrap {
    min-height: 260px;
  }
}
/* Carousel image styling */
.small-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Program card background images (moved from inline styles for CSP compliance)
   -------------------------------------------------------------------------- */
.program-img-bcom {
  background-image: url("../images/BCom.png");
}

.program-img-ba {
  background-image: url("../images/BA.png");
}

.program-img-corresp-puc {
  background-image: url("../images/ahah_puc_program.png");
}

.program-img-corresp-ug {
  background-image: url("../images/ahah_ug_program.png");
}

.program-img-corresp-pg {
  background-image: url("../images/ahah_pg_program.png");
}
.facility-img-classroom {
  background-image: url("../images/class room.jpeg");
}
.facility-img-library {
  background-image: url("../images/lib.jpeg");
}

.facility-img-lab {
  background-image: url("../images/lab.jpeg");
}
.facility-img-transport {
  background-image: url("../images/transport.jpeg");
}

/* --------------------------------------------------------------------------
   Events card background images 
   -------------------------------------------------------------------------- */

.event-img-sports {
  background-image: url("../images/iqac_sports.jpeg");
}
.event-img-annual {
  background-image: url("../images/event5.jpeg");
}
.event-img-science {
  background-image: url("../images/lab.jpeg");
}
/* IQAC page specific helpers (moved inline styles for CSP) */
.iqac-intro-text {
  font-size: 1.25rem;
}

.iqac-main-image {
  height: clamp(240px, 58vh, 80vh);
  object-fit: cover;
  border-radius: 30px;
  box-shadow: none;
}

.iqac-modal-image {
  max-height: 70vh;
  border-radius: 12px;
}


/* Event gallery */
.events-cta-title {
  white-space: normal;
  overflow-wrap: anywhere;
}

.iqac-cta-title {
  white-space: normal;
  overflow-wrap: anywhere;
}

.events-intro-single-line {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Gallery container */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

/* Each gallery item */
.gallery-item {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Images inside gallery items */
.gallery-item img {
  width: 100%;
  height: clamp(180px, 28vw, 250px);
  object-fit: cover; /* crop to fill container */
  border-radius: 6px;
  transition: transform 0.3s ease;
}

@media (max-width: 575.98px) {
  .iqac-main-image {
    height: min(52vh, 340px);
  }

  .gallery-item img {
    height: 200px;
  }
}

.gallery-item img:hover {
  transform: scale(1.03);
}

/* Hide gallery items */
.gallery-item.hidden {
  display: none !important;
}

