@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
  --primary: #1A2634;
  /* Navy Blue from Logo */
  --secondary: #34495E;
  /* Steel Blue/Gray */
  --accent: #F39C12;
  /* Orange/Gold from Logo */
  --earth: #E67E22;
  /* Golden Brown */
  --bg-light: #F8F9FA;
  /* Soft White/Gray */
  --text-dark: #1A1A1A;
  --text-light: #FFFFFF;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.serif-font {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* Mobile base styles */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  section {
    padding: 2.5rem 0;
  }
}

.section-title {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 1rem auto 0;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--secondary);
  text-align: center;
  max-width: 800px;
  margin: -1.5rem auto 3rem;
  font-style: italic;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  background: transparent;
  padding: 1.5rem 0;
  transition: var(--transition);
}

nav.scrolled {
  background: var(--primary) !important;
  backdrop-filter: blur(15px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* Reduced from 0.3 for a subtler feel */
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-container img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo-text {
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.logo-text span:first-child {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.logo-text span:last-child {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

/* Default state (Transparent Nav) */
.logo-text {
  color: white;
}

/* Scrolled/Standard state */
nav.scrolled .logo-text {
  color: white !important;
}

nav.scrolled .logo-container img {
  height: 55px;
}


.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: white;
  position: relative;
  transition: var(--transition);
}

nav.scrolled .nav-links a {
  color: white;
}

nav.scrolled .nav-links a:hover,
nav.scrolled .nav-links a.active {
  color: white;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1300;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: white;
  transition: var(--transition);
  border-radius: 2px;
}

nav.scrolled .mobile-toggle span {
  background: white;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--text-dark);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: var(--text-dark);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

/* Disable nav blur when overlay is active to avoid double processing */
body.no-scroll nav.scrolled {
  background: var(--primary) !important;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  background: var(--primary);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  /* Slightly reduced to show more of the background image */
  background-color: #020406;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  /* Removed blur entirely for maximum clarity */
  transition: opacity 1s ease-in-out;
}

.bg-white {
  background: white;
}

.hero .container {
  position: relative;
  z-index: 10;
}

.hero-subpage {
  height: 50vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-subpage .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-subpage .hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(26, 38, 52, 0.82), rgba(17, 24, 39, 0.9));
  /* Reverted to 82% */
}

.hero-subpage .container {
  position: relative;
  z-index: 2;
}

.hero-subpage h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-subpage p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
  padding: 1rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-block;
}

.btn-accent:hover {
  background: white;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn {
  display: inline-block;
  text-align: center;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.about-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  border-bottom: 4px solid var(--primary);
  transition: var(--transition);
}

.about-card:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(26, 38, 52, 0.2);
  border-bottom-color: var(--accent);
}

.about-card:hover h3,
.about-card:hover p,
.about-card:hover .small {
  color: white;
}

.objective-card:hover {
  background: var(--accent) !important;
  border-bottom: none !important;
}

.objective-card:hover p,
.objective-card:hover .small {
  color: var(--primary) !important;
  font-weight: 600;
}

.about-icon {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-highlight {
  margin-top: 5rem;
  background: var(--primary);
  color: white;
  padding: 4rem;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-highlight .text-content {
  flex: 1;
}

.about-highlight h3 {
  font-size: 2.5rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.about-highlight .image-content {
  flex: 1;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
}

.about-highlight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TileView Gallery */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
  margin-top: 4rem;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tile-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}

.tile:hover .tile-bg {
  transform: scale(1.1);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.tile:hover .tile-overlay {
  opacity: 1;
}

.tile-overlay .content {
  transform: translateY(20px);
  transition: transform 0.4s ease;
  color: white;
}

.tile:hover .tile-overlay .content {
  transform: translateY(0);
}

.tile-overlay p {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.5rem;
}

.tile-line {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
}

/* Curriculum Cards */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.curriculum-card {
  padding: 2.5rem;
  border: 1px solid rgba(26, 38, 52, 0.1);
  border-radius: 20px;
  transition: var(--transition);
}

.curriculum-card:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(26, 38, 52, 0.2);
}

.module-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.curriculum-card:hover .module-number {
  color: white;
  opacity: 0.5;
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 6rem 0 3rem;
}

footer .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
}

footer h4 {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

footer ul li {
  margin-bottom: 1rem;
  opacity: 0.7;
}

footer ul li a:hover {
  opacity: 1;
  color: var(--accent);
}

.col-span-2 {
  grid-column: span 2;
}

.row-span-2 {
  grid-row: span 2;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }

  .about-grid,
  .curriculum-grid,
  footer .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Typography scaling */
  .hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
  }
  .hero p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .hero-subpage {
    height: 40vh;
    min-height: 300px;
  }
  .hero-subpage h1 {
    font-size: 2.25rem;
  }
  .hero-subpage p {
    font-size: 1rem;
  }

  /* Logo sizing */
  .logo-container img {
    height: 50px;
  }
  nav.scrolled .logo-container img {
    height: 40px;
  }
  .logo-text span:first-child {
    font-size: 1rem;
  }

  /* Grid fixes */
  .tile-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
    gap: 1rem;
  }

  /* Button adjustments */
  .btn-accent {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  /* Card padding */
  .about-card {
    padding: 1.5rem;
  }
  .curriculum-card {
    padding: 1.5rem;
  }

  /* About highlight */
  .about-highlight {
    gap: 2rem;
    padding: 2rem;
    border-radius: 20px;
  }
  .about-highlight h3 {
    font-size: 1.75rem;
  }
  .about-highlight .image-content {
    height: 250px;
  }

  /* CTA section */
  .section-cta {
    padding: 3rem 0;
  }
  .section-cta h2 {
    font-size: 2rem;
  }
  .section-cta p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Footer */
  footer {
    padding: 3rem 0 1.5rem;
  }
  footer .grid {
    gap: 2rem;
  }
  footer h4 {
    margin-bottom: 1rem;
  }

  /* Journey grid */
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Tables */
  .modern-table {
    font-size: 0.875rem;
  }
  .modern-table th,
  .modern-table td {
    padding: 0.75rem;
  }

  /* Form controls */
  .form-control {
    font-size: 16px; /* Prevent iOS zoom */
    padding: 0.75rem;
    min-height: 44px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
  }

  .mobile-toggle {
    display: flex;
  }

  .about-grid,
  .curriculum-grid,
  footer .grid {
    grid-template-columns: 1fr;
  }

  .about-highlight {
    flex-direction: column;
    padding: 2rem;
  }

  .about-highlight .image-content {
    height: 350px;
  }

  .inclusive-hero h1 {
    font-size: 2.5rem !important;
  }
}

.inclusive-hero {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animations */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

/* Tables */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 15px;
  background: white;
  margin: 2rem 0;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.modern-table th {
  background: var(--primary);
  color: white;
  padding: 1.2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.modern-table td {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #555;
}

.modern-table tr:nth-child(even) {
  background: rgba(26, 38, 52, 0.02);
}

.table-dark {
  background: rgba(26, 38, 52, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-dark .modern-table {
  background: transparent;
}

.table-dark .modern-table th {
  background: rgba(26, 38, 52, 0.4);
  color: white;
}

.table-dark .modern-table td {
  color: #ddd !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-dark .modern-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

/* Journey Grid */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.journey-item {
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.journey-item h4 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

@media (max-width: 1024px) {
  .journey-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .journey-grid {
    grid-template-columns: 1fr;
  }
}

.shadow-sm {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-list a:hover {
  color: var(--accent);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.no-scroll {
  overflow: hidden;
}

/* Grayscale Hover Effect */
.grayscale-hover {
  filter: grayscale(1);
  transition: var(--transition);
}

.grayscale-hover:hover {
  filter: grayscale(0);
}

/* Typography & Colors */
.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.text-white {
  color: white !important;
}

.text-gray-600 {
  color: #555 !important;
}

.font-bold {
  font-weight: 700 !important;
}

.uppercase {
  text-transform: uppercase !important;
}

.italic {
  font-style: italic !important;
}

.underline {
  text-decoration: underline !important;
}

.tracking-widest {
  letter-spacing: 0.1em !important;
}

.tracking-extrawide {
  letter-spacing: 0.2em !important;
}

.text-sm,
.small {
  font-size: 0.875rem !important;
}

.text-lg {
  font-size: 1.125rem !important;
}

.text-xl {
  font-size: 1.25rem !important;
}

.text-2xl {
  font-size: 1.5rem !important;
}

.text-3xl {
  font-size: 1.875rem !important;
}

.text-8xl {
  font-size: 6rem !important;
}

.relative {
  position: relative !important;
}

.absolute {
  position: absolute !important;
}

.pt-navbar {
  padding-top: 100px !important;
}

.pb-5 {
  padding-bottom: 3rem !important;
}

.top-8 {
  top: 2rem !important;
}

.right-16 {
  right: 4rem !important;
}

.z-10 {
  z-index: 10 !important;
}

.opacity-5 {
  opacity: 0.05 !important;
}

.opacity-7 {
  opacity: 0.7 !important;
}

.opacity-8 {
  opacity: 0.8 !important;
}

.opacity-9 {
  opacity: 0.9 !important;
}

.m-0 {
  margin: 0 !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.max-w-700 {
  max-width: 700px !important;
}

.flex {
  display: flex !important;
}

.items-center {
  align-items: center !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

/* Utilities */
.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.p-1 {
  padding: 0.5rem;
}

.p-2 {
  padding: 1rem;
}

.p-3 {
  padding: 1.5rem;
}

.p-4 {
  padding: 2rem;
}

.p-5 {
  padding: 3rem;
}

.py-3 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.text-center {
  text-align: center;
}

.w-100 {
  width: 100%;
}

.shadow-sm {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  transition: var(--transition);
}

.shadow-sm:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.rounded-4 {
  border-radius: 1.5rem !important;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.g-3 {
  margin: -0.75rem;
}

.g-3>[class*="col-"] {
  padding: 0.75rem;
}

.g-4 {
  margin: -1rem;
}

.g-4>[class*="col-"] {
  padding: 1rem;
}

.g-5 {
  margin: -1.5rem;
}

.g-5>[class*="col-"] {
  padding: 1.5rem;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-lg-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-lg-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.col-lg-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-lg-7 {
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 992px) {

  .col-lg-3,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .p-5 {
    padding: 1.5rem;
  }

  .about-highlight {
    padding: 1.5rem !important;
  }
}

/* Form Styling */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 8px;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.15);
  /* Accent shadow */
}

/* Dark Forms */
.form-dark {
  background: var(--primary);
  color: white;
}

.form-dark .form-label {
  color: white;
}

.form-dark .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.form-dark .form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.form-dark .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-dark select option {
  background-color: var(--primary);
  color: white;
}

.alert {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* Quote Box */
.quote-box {
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  background: rgba(26, 38, 52, 0.05);
  border-radius: 0 15px 15px 0;
  position: relative;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
}

.quote-box::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
}

/* CTA Section */
.section-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; */
  /* Removed to prevent excessive cropping on some viewports */
  padding: 6rem 0;
  text-align: center;
  color: white;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(26, 38, 52, 0.7), rgba(17, 24, 39, 0.8));
}

.section-cta .container {
  position: relative;
  z-index: 10;
}

.section-cta h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.section-cta p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  opacity: 0.9;
}

/* Utilities */
@media (min-width: 768px) {
  .ms-md-4 {
    margin-left: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .section-cta h2 {
    font-size: 2rem;
  }

  .section-cta p {
    font-size: 1rem;
  }

  .nav-links .btn {
    margin-top: 1rem;
    width: 100%;
  }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .hero-subpage {
    height: 35vh;
    min-height: 260px;
  }
  .hero-subpage h1 {
    font-size: 1.875rem;
  }
  .about-highlight {
    padding: 1.5rem;
  }
  .about-highlight h3 {
    font-size: 1.5rem;
  }
  .about-highlight .image-content {
    height: 200px;
  }
  .btn-accent {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  .tile-grid {
    grid-auto-rows: 180px;
  }
  .quote-box {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
  }
}

/* Very small devices (phones, 480px and down) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.875rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .section-subtitle {
    font-size: 0.9rem;
  }
  .hero-subpage h1 {
    font-size: 1.625rem;
  }
  .hero-subpage p {
    font-size: 0.9rem;
  }
  .logo-container img {
    height: 40px;
  }
  nav.scrolled .logo-container img {
    height: 32px;
  }
  .logo-text span:first-child {
    font-size: 0.875rem;
  }
  .about-card {
    padding: 1.25rem;
    border-radius: 12px;
  }
  .curriculum-card {
    padding: 1.25rem;
    border-radius: 12px;
  }
  .tile-grid {
    grid-auto-rows: 160px;
    gap: 0.75rem;
  }
  .modern-table {
    font-size: 0.8rem;
  }
  .modern-table th,
  .modern-table td {
    padding: 0.5rem;
  }
  .form-control {
    padding: 0.625rem;
  }
  .section-cta h2 {
    font-size: 1.625rem;
  }
}

/* Touch target improvements */
.nav-links a,
.mobile-toggle,
.btn,
button[type="submit"],
.form-control,
.tile-overlay,
footer ul li a {
  min-height: 44px;
  min-width: 44px;
}

/* Ensure horizontal scroll is prevented */
html, body {
  overflow-x: hidden;
}

/* Footer newsletter input responsive */
footer div[style*="display: flex; gap: 0.5rem"] {
  flex-wrap: wrap;
}
footer div[style*="display: flex; gap: 0.5rem"] input,
footer div[style*="display: flex; gap: 0.5rem"] button {
  flex: 1 1 auto;
  min-width: 120px;
}
