/* ==========================================================================
   SACRED HEART INSTITUTIONS - OFFICIAL STYLESHEET
   Pure CSS3 Implementation (No Frameworks, No Preprocessors)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & SYSTEM TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette */
  --color-primary: #00377e;             /* Institutional Navy */
  --color-primary-light: #1d4e9e;       /* Container Blue */
  --color-primary-dark: #001a43;        /* Deep Navy */
  --color-secondary: #bb0014;           /* Sacred Red Accent */
  --color-secondary-hover: #93000a;     /* Dark Red */
  
  /* Neutrals & Surfaces */
  --color-bg-main: #f7f9ff;             /* Light Paper Tint */
  --color-bg-surface: #ffffff;          /* White Surface */
  --color-bg-alt: #f1f4f9;              /* Light Grey Container */
  --color-bg-subtle: #ebeef3;           /* Section Divider Grey */
  --color-text-primary: #181c20;        /* Deep Charcoal Text */
  --color-text-secondary: #434751;      /* Muted Body Text */
  --color-text-muted: #737783;          /* Subtle Label Text */
  --color-text-on-primary: #ffffff;     /* White Text on Navy */
  
  /* Borders & Shadows */
  --color-border: #c3c6d3;              /* Input & Card Border */
  --color-border-subtle: rgba(0, 55, 126, 0.12);
  --shadow-sm: 0 2px 6px rgba(0, 26, 67, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 26, 67, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 26, 67, 0.12);
  --shadow-hover: 0 12px 36px rgba(0, 26, 67, 0.16);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout Dimensions & Spacing */
  --header-height: 80px;
  --max-width: 1280px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  font-family: var(--font-sans);
  color: var(--color-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
}

.red-divider {
  width: 80px;
  height: 4px;
  background-color: var(--color-secondary);
  margin: 1rem auto 1.5rem;
  border-radius: var(--radius-full);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  color: var(--color-text-on-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text-on-primary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
  color: var(--color-text-on-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--color-text-on-primary);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border-subtle);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Offset sections for smooth sticky header navigation */
section {
  scroll-margin-top: var(--header-height);
}

/* --------------------------------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(88vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(0, 55, 126, 0.85), rgba(0, 26, 67, 0.9)), url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero-content {
  max-width: 900px;
  z-index: 2;
}

.hero-seal {
  width: 130px;
  height: auto;
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: #d8e2ff;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   5. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .section-subtitle {
  text-align: left;
}

.about-text h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.quote-box {
  border-left: 4px solid var(--color-secondary);
  background-color: var(--color-bg-alt);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   6. VISION & MISSION SECTION
   -------------------------------------------------------------------------- */
.vision-section {
  background-color: var(--color-bg-alt);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.vision-card {
  background: var(--color-bg-surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
}

.vision-card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 55, 126, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.values-header {
  text-align: center;
  margin-bottom: 2rem;
}

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

.value-item {
  background: var(--color-bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--color-border-subtle);
  transition: transform var(--transition-normal);
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.value-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   7. ACADEMIC DIVISIONS
   -------------------------------------------------------------------------- */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.division-card {
  background-color: var(--color-bg-surface);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.division-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.division-card.featured {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary);
  transform: translateY(-6px);
}

.division-card.featured h3,
.division-card.featured p {
  color: #ffffff;
}

.division-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: rgba(0, 55, 126, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.division-card.featured .division-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.division-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.division-list {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.division-list-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.division-list-item .icon-check {
  color: var(--color-secondary);
  font-weight: bold;
}

.division-card.featured .division-list-item .icon-check {
  color: #ffb4ab;
}

/* --------------------------------------------------------------------------
   8. STUDENT RESULTS & ACHIEVEMENTS
   -------------------------------------------------------------------------- */
.results-section {
  background-color: var(--color-bg-alt);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.result-card {
  background-color: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.result-image-container {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.result-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Preserve full image without cropping student names or marks */
  background-color: #0d1b2a;
}

.result-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  pointer-events: none;
}

.result-caption {
  text-align: center;
  margin-top: 1.25rem;
}

.result-caption h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.highlight-stat {
  color: var(--color-secondary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. LEADERSHIP & MANAGEMENT
   -------------------------------------------------------------------------- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.leader-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.leader-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.leader-avatar {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
}

.leader-name {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.leader-role {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   10. CAMPUS & INFRASTRUCTURE
   -------------------------------------------------------------------------- */
.campus-section {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary);
}

.campus-section h2,
.campus-section .section-subtitle {
  color: #ffffff;
}

.campus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.campus-gallery-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.campus-photo-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  box-shadow: var(--shadow-md);
}

.campus-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campus-quote-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.campus-quote-text {
  font-style: italic;
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.campus-quote-author {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffb4ab;
  text-align: right;
}

/* --------------------------------------------------------------------------
   11. SPORTS & NCC AIR WING
   -------------------------------------------------------------------------- */
.sports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.sports-card {
  background-color: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.sports-image-box {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.sports-image-box img {
  width: 100%;
  /* height: 100%;*/
  object-fit: cover;
}

.badge-halloffame {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-secondary);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.sports-content {
  padding: 2rem;
  flex-grow: 1;
}

.tags-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag-pill {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.ncc-card {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ncc-card h3,
.ncc-card p {
  color: #ffffff;
}

.ncc-icon-circle {
  width: 70px;
  height: 70px;
  background-color: var(--color-secondary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.ncc-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ncc-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. GALLERY / CAMPUS LIFE
   -------------------------------------------------------------------------- */
.gallery-section {
  background-color: var(--color-bg-alt);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

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

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 37, 85, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: #ffffff;
  font-weight: 600;
}

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

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

/* --------------------------------------------------------------------------
   13. CALL TO ACTION SECTION
   -------------------------------------------------------------------------- */
.cta-section {
  background-color: var(--color-secondary);
  color: #ffffff;
  text-align: center;
  padding: 4.5rem 1.5rem;
}

.cta-section h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: #ffdad6;
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.cta-section .btn-primary {
  background-color: #ffffff;
  color: var(--color-primary);
}

.cta-section .btn-primary:hover {
  background-color: var(--color-bg-main);
  color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   14. CONTACT & ENQUIRY FORM
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  justify-items: center;
}

.contact-info-card {
  background-color: var(--color-primary);
  color: #ffffff;
  width: 100%;
  max-width: 760px;
  padding: 2.25rem 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card h3,
.contact-info-card p {
  color: #ffffff;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  min-width: 0;
}
.contact-detail-item > div {
  min-width: 0;
  flex: 1;
}
.contact-info-card .contact-detail-item a {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  opacity: 1;
  text-decoration: none;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
}
.contact-phone-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.contact-phone-links > span {
  display: block;
  max-width: 100%;
  line-height: 1.55;
}
.contact-email-link {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.contact-detail-icon {
  font-size: 1.5rem;
  color: #ffb4ab;
  margin-top: 0.2rem;
}

.contact-form-wrapper {
  /* Temporarily hide the enquiry form on desktop, tablet and mobile. */
  display: none !important;
  background-color: var(--color-bg-surface);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 55, 126, 0.15);
  background-color: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  color: var(--color-secondary);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-control {
  border-color: var(--color-secondary);
}

.form-group.has-error .error-message {
  display: block;
}

.form-status-alert {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: none;
  font-weight: 600;
  text-align: center;
}

.form-status-alert.success {
  display: block;
  background-color: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.form-status-alert.error {
  display: block;
  background-color: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--color-secondary);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-logo {
  height: 56px;
  width: auto;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.3rem;
}

.footer-text {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-abe-link {
  display: inline-block;
  margin-top: 0.25rem;
  color: #ffd166;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer-abe-link:hover,
.footer-abe-link:focus-visible {
  color: #ffffff;
}

.footer-heading {
  color: #ffffff;
  font-size: 1rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #e2e8f0;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #e2e8f0;
  font-size: 0.85rem;
}
/* Keep the copyright readable against the dark footer.
   The global `p` colour otherwise overrides `.footer-bottom`. */
.footer-bottom p {
  margin: 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  opacity: 1;
}
.footer-bottom-link {
  color: #ffd166;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer-bottom-link:hover,
.footer-bottom-link:focus-visible {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   POLICY PAGES
   Uses the existing brand system, header, footer and responsive navigation.
   -------------------------------------------------------------------------- */
.policy-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 4.5rem 0;
  text-align: center;
  border-bottom: 4px solid var(--color-secondary);
}

.policy-hero h1 {
  color: var(--color-text-on-primary);
  margin-bottom: 0.75rem;
}

.policy-breadcrumb {
  color: #d8e2ff;
  font-size: 0.95rem;
}

.policy-breadcrumb a {
  color: #ffffff;
}

.policy-breadcrumb a:hover {
  color: #ffb4ab;
}

.policy-page {
  padding: 4rem 0 5rem;
}

.policy-layout {
  max-width: 920px;
  margin: 0 auto;
}

.policy-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.policy-updated {
  display: inline-block;
  color: var(--color-secondary);
  background: #fff1f0;
  border: 1px solid #ffd6d2;
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.policy-intro {
  font-size: 1.05rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section:last-of-type {
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.policy-section ul {
  list-style: disc;
  padding-left: 1.4rem;
  color: var(--color-text-secondary);
}

.policy-section li {
  margin-bottom: 0.55rem;
}

.policy-contact {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.policy-actions {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-subtle);
}

@media (max-width: 767px) {
  .policy-hero {
    padding: 3.25rem 0;
  }

  .policy-page {
    padding: 2.5rem 0 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   16. MODALS, LIGHTBOX & FLOATING BUTTONS
   -------------------------------------------------------------------------- */
/* Modal Overlay */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-hover);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-text-primary);
}

/* Lightbox Modal for Image Zoom */
.lightbox-modal {
  max-width: 90vw;
  padding: 1rem;
  background: transparent;
  box-shadow: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

/* Floating Action Button (FAB) */
.fab-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--color-secondary);
  color: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 990;
  transition: transform var(--transition-normal), background-color var(--transition-fast);
}

.fab-btn:hover {
  transform: scale(1.1);
  background-color: var(--color-secondary-hover);
}

/* Back-To-Top Button */
.back-to-top {
  position: fixed;
  bottom: 6.5rem;
  right: 2.25rem;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  z-index: 980;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .divisions-grid {
    grid-template-columns: 1fr;
  }
  
  .division-card.featured {
    transform: none;
  }

  .about-grid,
  .campus-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-bg-surface);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .vision-grid,
  .results-grid,
  .sports-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 75vh;
  }

  .fab-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .back-to-top {
    bottom: 5.5rem;
    right: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-seal {
    width: 100px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.65rem;
  }

  .about-image-wrapper img {
    height: 320px;
  }

  .result-image-container {
    height: 280px;
  }

  .contact-form-wrapper,
  .contact-info-card,
  .modal-card {
    padding: 1.75rem 1.25rem;
  }
  .contact-info-card {
    max-width: 100%;
  }
}

/* Reduced Motion User Preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Contact card – mobile and Safari correction */
@media (max-width: 768px) {
  .contact-grid {
    display: block;
    width: 100%;
  }

  .contact-info-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 28px 20px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .contact-info-card h3 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .contact-detail-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
  }


  .contact-detail-item p,
  .contact-detail-item a {
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .contact-email-link {
    font-size: 0.9rem !important;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 380px) {
  .contact-info-card {
    padding: 24px 16px;
  }

  .contact-detail-item {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 10px;
  }
}












