:root {
  --navy: #07203a;
  --panel: #f6f8fb;
  --muted: #6b7280;
  --accent: #0078b5;
  --accent-2: #ff8a2b;
  --dark: #0b1822;
  --radius: 14px;
  --container: 1100px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: var(--dark);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Header & Top Strip ---------------- */
.top-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
  z-index: 120;
}

.top-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header {
  background: hsla(0, 0%, 100%, 0.8);
  position: sticky;
  top: 32px;
  z-index: 100;
  border-bottom: 1px solid rgba(11, 24, 34, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

main {
  padding-top: 60px;
}

/* ---------------- Navigation ---------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
}

.logo-img {
  width: 200px;
  height: 100px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.logo-img:hover {
  transform: scale(1.05);
}


nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.3s;
  font-size: 15px;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* --- Mobile Navigation (Hamburger) --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 2000;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--dark);
  transition: transform 0.3s ease;
}

/* Animate the button when opened */
.nav-toggle.open svg {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 65px; /* ⬆️ slightly higher placement */
    right: 0;
    width: 70%;
    height: calc(100vh - 65px);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 20px 40px; /* ⬆️ reduced top padding */
    gap: 16px; /* tighter spacing between tabs */
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
    overflow-y: auto;
    z-index: 1500;
  }

  nav ul.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 22px; /* adjusted slightly */
  }

  /* Prevent background scroll when menu open */
  body.nav-open {
    overflow: hidden;
  }

  /* Dim background when nav open */
  body.nav-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  /* Animate nav links fade-in */
  nav ul.active li {
    opacity: 0;
    animation: fadeSlideIn 0.35s forwards ease;
  }

  nav ul.active li:nth-child(1) { animation-delay: 0.05s; }
  nav ul.active li:nth-child(2) { animation-delay: 0.1s; }
  nav ul.active li:nth-child(3) { animation-delay: 0.15s; }
  nav ul.active li:nth-child(4) { animation-delay: 0.2s; }
  nav ul.active li:nth-child(5) { animation-delay: 0.25s; }

  @keyframes fadeSlideIn {
    from {
      opacity: 0;
      transform: translateX(20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* ---------------- Header Logo Refinement ---------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(11, 24, 34, 0.05);
  padding-top: 8px; /* create spacing from top strip */
}

header .brand {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-left: 14px;
  margin-top: 10px; /* slight drop to clear top strip */
}

header .brand .logo-img {
  width: 170px;           /* increased size */
  height: auto;
  max-height: 85px;
  object-fit: contain;
  margin-top: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

header .brand .logo-img:hover {
  transform: scale(1.07);
  opacity: 0.95;
}

/* ---------------- Mobile Adjustments ---------------- */
@media (max-width: 768px) {
  header {
    padding-top: 6px;
  }

  header .brand {
    padding-left: 10px;
    margin-top: 8px;
  }

  header .brand .logo-img {
    width: 150px;
    max-height: 75px;
    margin-top: 2px;
  }

  header .nav-toggle {
    position: absolute;
    right: 30px;
    top: 30px; /* adjusted lower to align visually with new logo height */
  }
}

@media (max-width: 480px) {
  header .brand .logo-img {
    width: 130px;
    max-height: 65px;
  }

  header .nav-toggle {
    top: 28px;
    right: 14px;
  }
}


/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  margin-top: 6px;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.btn.alt {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn.alt:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------------- Sections ---------------- */
.section {
  padding: 80px 0;
}
.section h3 {
font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 10px;
}
.section p.lead {
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---------------- Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
align-items: center;
  padding: 40px 0;
}
.hero-left .eyebrow {
  display: inline-block;
  background: rgba(0, 120, 181, 0.08);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #004080;
}
.hero-left p {
  color: var(--muted);
  max-width: 56ch;
  font-size: 16px;
}
.hero-left .cta-group {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-right {
  background: rgba(255, 255, 255, 0.3);
  padding: 24px;
  border-radius: 14px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-right h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 16px;
  color: #004080;
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(11, 24, 34, 0.08);
}

.popular-item:last-child {
  border-bottom: none;
}

.popular-item strong {
  font-weight: 600;
  color: #004080;
}

.popular-item .meta {
  font-size: 13px;
  color: var(--muted);
}

.popular-item .btn {
  background: rgba(0, 120, 181, 0.08);
  color: #004080;
  border: 1px solid transparent;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.popular-item .btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ---------------- Course Cards ---------------- */
  .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 18px;
  }
  .course-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(11, 24, 34, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    min-height: 320px;
  }
  .course-thumb-img {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
    background: #eef3f7;
  }
  .course-card .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

/* ---------------- Admission Section ---------------- */
.admission-section {
  background: #f9fafc;
  padding: 60px 30px;
  border-radius: 14px;
  margin-top: 40px;
}

.admission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.admission-details h4 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #0b1822;
  font-weight: 600;
}

.requirements {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}
.requirements li {
  background: #fff;
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 15px;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}
.steps-section {
  margin-top: 25px;
}
.step-card {
  display: flex;
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-left: 4px solid var(--accent);
  align-items: flex-start;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.step-number {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}
.step-content strong {
  display: block;
  color: #0b1822;
  margin-bottom: 4px;
}

.admission-form {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.admission-form h4 {
  margin-bottom: 18px;
  font-size: 20px;
  color: #0b1822;
}
.form-group {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.form-group .input {
  width: 100%;
}
.admission-form .input {
  flex: 1;
  border: 1px solid #dce3ea;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  background: #f9fafb;
  color: #0b1822;
}
.admission-form .input:focus {
  border-color: var(--accent);
  outline: none;
}
.form-group.terms {
  margin-top: 12px;
  font-size: 14px;
  color: var(--dark);
}
.form-group.terms a {
  color: var(--accent);
  text-decoration: underline;
}
#submitBtn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.note {
  background: #f1f6fb;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  margin-top: 16px;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
}
.note a {
  color: var(--accent);
  text-decoration: none;
}

/* ---------------- Customer Care ---------------- */
.support-section {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.05);
  padding: 50px 30px;
}

.support-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.support-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--accent);
}

.support-list {
  list-style: none;
  margin-top: 10px;
  padding: 0;
}

.support-list li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #223;
}

.support-card-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.support-card {
  background: rgba(255, 255, 255, 0.85);
  color: #1a08a7;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.support-card:hover {
  transform: translateY(-6px);
  background: var(--accent);
  color: #fff;
}

.support-icon {
  width: 60px;
  margin-bottom: 16px;
}

.support-card h5 {
  margin-bottom: 10px;
  font-size: 18px;
}

.support-card p {
  font-size: 14px;
  margin-bottom: 12px;
}

.support-section .btn {
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.support-section .btn.alt {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ---------------- Support Form (Modernized) ---------------- */
.support-form-section {
  margin-top: 40px;
  background: #ffffff;
  padding: 48px 40px;
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.support-form-section h4 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 8px;
}

.support-form-section p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.support-form-section form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-form-section .form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.support-form-section .input,
.support-form-section select,
.support-form-section textarea {
  flex: 1;
  border: 1.5px solid #dbe3eb;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  background: #f9fafb;
  color: var(--dark);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}

.support-form-section .input:focus,
.support-form-section select:focus,
.support-form-section textarea:focus {
  border-color: var(--accent);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 89, 255, 0.08);
}

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

/* Placeholder styling */
.support-form-section .input::placeholder,
.support-form-section textarea::placeholder {
  color: #9aa6b2;
  opacity: 0.9;
}

/* File input styling */
.support-form-section .file-label {
  font-size: 14px;
  color: var(--dark);
  font-weight: 500;
}

.support-form-section input[type="file"] {
  border: 1.5px dashed #c8d2de;
  border-radius: 10px;
  padding: 12px;
  background: #fdfdfd;
  font-size: 14px;
  cursor: pointer;
  color: var(--dark);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.support-form-section input[type="file"]:hover {
  border-color: var(--accent);
  background: #f9fbff;
}

/* Terms section */
.support-form-section .terms {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-form-section .terms a {
  color: var(--accent);
  text-decoration: underline;
}

.support-form-section .terms input[type="checkbox"] {
  transform: scale(1.1);
  accent-color: var(--accent);
}

/* Submit button */
.support-form-section button.btn {
  align-self: flex-start;
  margin-top: 8px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 89, 255, 0.2);
}

.support-form-section button.btn:hover:enabled {
  background: #004aad;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 89, 255, 0.25);
}

.support-form-section button.btn:disabled {
  background: #c8d2de;
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 992px) {
  .support-form-section {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .support-form-section {
    padding: 24px;
  }

  .support-form-section .form-group {
    flex-direction: column;
  }

  .support-form-section button.btn {
    width: 100%;
    text-align: center;
  }
}


/* ---------------- Tabs & Tel Button ---------------- */
.tabs {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tabs li {
  margin-right: 20px;
}

.tel-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
  /* Ensures Tel button is in line with tabs */
  margin: 0;
  font-size: 16px;
  height: 40px;
  display: flex;
  align-items: center;
}

/* General Body and Text Styling */
body {
  color: #004080; /* Professional Blue */
}

/* Section Opacity */
.section,
.courses-grid,
.admission-details,
.admission-form,
.contact-grid,
.terms-container {
  background-color: rgba(255, 255, 255, 0.9); /* White with 90% opacity */
  -webkit-backdrop-filter: blur(5px); /* Safari 9+ & iOS 9+ */
  backdrop-filter: blur(5px); /* Frosted glass effect */
}

/* Text Shadow for Better Visibility */
h1, h2, h3, h4, h5, h6, p, a, li, span, div {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Link Styling */
a {
  color: #0056b3; /* Darker Professional Blue for links */
  transition: color 0.3s ease;
}

a:hover {
  color: #007bff; /* Lighter blue on hover */
}

/* ---------------- Customer Care Card ---------------- */
.customer-care-card {
  background: rgba(255, 255, 255, 0.85); /* Semi-transparent white for visibility */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px;
  /* Ensures card content is visible over bg images */
}
/* Responsive */
@media (max-width: 768px) {
  .support-layout {
    grid-template-columns: 1fr;
  }
}
/* ---------------- Map ---------------- */
.map-container {
  position: relative;
  z-index: 1;
}
#map {
  height: 320px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(11, 24, 34, 0.1);
  margin-top: 16px;
  overflow: hidden;
}
.leaflet-container {
  z-index: 0 !important;
}
/* ---------------- Footer ---------------- */
footer {
  background: #07192a;
  color: #fff;
  position: relative;
  margin-top: 60px;
  padding: 60px 0 20px;
  overflow: hidden;
}
.footer-bg img.footer-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}
.footer-col h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--accent-2);
}
.footer-col p,
.footer-col a {
  font-size: 14px;
  color: #e8e8e8;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--accent-2);
}
.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 14px;
background: rgba(255, 255, 255, 0.05);
  padding: 8px;
}
.footer-bottom {
  padding: 1.5rem 2rem;
  background: #010410;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #ccc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 30px;
padding-top: 10px;
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.socials img {
  width: 22px;
  height: 22px;
  opacity: 0.9;
  transition: 0.3s;
}
.socials img:hover {
  opacity: 1;
}

/* ---------------- Background Slideshow ---------------- */
.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.bg-slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeSlide 36s infinite;
  transition: opacity 1.8s ease-in-out;
  filter: brightness(1.05) contrast(1.1) saturate(1.1);
}
.bg-slideshow img:nth-child(1) { animation-delay: 0s; }
.bg-slideshow img:nth-child(2) { animation-delay: 6s; }
.bg-slideshow img:nth-child(3) { animation-delay: 12s; }
.bg-slideshow img:nth-child(4) { animation-delay: 18s; }
.bg-slideshow img:nth-child(5) { animation-delay: 24s; }
.bg-slideshow img:nth-child(6) { animation-delay: 30s; }

@keyframes fadeSlide {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
}

/* ---------------- Responsive Adjustments ---------------- */
.nav-toggle {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
padding: 5px;
  z-index: 1100;
}
.nav-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--dark);
}
body.nav-open {
  overflow: hidden;
}
body.nav-open::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .hero-left .cta-group {
    justify-content: center;
  }
  .hero-right {
    max-width: 500px;
    margin: 0 auto;
  }
  .admission-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admission-layout,
  .support-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .admission-form,
  .support-section,
  .contact-form {
    padding: 20px;
  }

  .brand h1 {
    font-size: 18px;
  }

  nav a {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .wrap {
padding: 0 12px;
    max-width: 100%;
  }
  .nav-toggle {
    display: block;
  }
  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(75vw, 300px);
    background: hsla(0, 0%, 100%, 0.95);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 100px 30px 30px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
    z-index: 1000;
  }
  .nav-right.active {
    transform: translateX(0);
  }
  .nav-right ul {
    flex-direction: column;
    width: 100%;
    text-align: left;
    gap: 10px;
  }
  .nav-right ul a {
    font-size: 18px;
    padding: 10px;
    display: block;
  }
  .nav-right .actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 25px;
    width: 100%;
    gap: 15px;
  }
  .nav-right .actions .btn {
    width: 100%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    text-align: center;
  }
  .footer-col p {
    margin-left: auto;
    margin-right: auto;
  }
  .socials {
    justify-content: center;
  }
  .top-strip .wrap {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .top-strip {
    font-size: 12px;
    padding: 8px 10px;
  }

  header {
    position: fixed;
    top: 50px;
    width: 100%;
    z-index: 110;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .brand {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .brand img.logo-img {
    width: 90px;
    height: 90px;
  }

  nav {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav a {
    font-size: 14px;
    padding: 6px 10px;
  }

  .actions {
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  .actions .btn {
    width: auto;
    min-width: 120px;
    font-size: 14px;
  }

  main {
    padding-top: 180px !important;
  }

  .footer-col h4 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .footer-col p,
  .footer-col a {
    font-size: 13px;
  }

  .footer-logo {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .form-group {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero-left h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .hero-left p {
    font-size: 15px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .top-strip {
    font-size: 12px;
    text-align: center;
    line-height: 1.6;
    padding: 10px 12px;
  }

  .admission-form h4 {
    font-size: 18px;
    text-align: center;
  }

  .admission-section {
    padding: 40px 16px;
  }

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

  .footer-col h4 {
    margin-top: 10px;
  }

  .footer-logo {
    width: 60px;
    height: 60px;
}

  .support-section {
    padding: 30px 18px;
  }

  .support-card {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    }
    
    .support-card:hover {
    transform: translateY(-6px);
    background: var(--accent);
    color: #fff;
    }
    
    .support-icon {
    padding: 20px;
    }
}

@media (max-width: 480px) {
  .brand p {
    display: none;
  }
  .hero-left h2 {
    font-size: 36px;
  }
  .section h3 {
    font-size: 24px;
  }
  .top-strip .wrap {
    text-align: center;
    flex-direction: column;
  }

  .top-strip {
    padding: 10px 12px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .hero-left h2 {
    font-size: 26px;
  }

  .btn {
font-size: 13px;
    padding: 8px 12px;
  }

  .top-strip {
    font-size: 11px;
  }

  .footer-bottom {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .hero-left h2 {
    font-size: 26px;
  }
.btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  nav a {
    font-size: 13px;
  }

  .admission-form .input {
    font-size: 14px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}

/* ---------------- Contact Section (Revised) ---------------- */
.contact-section {
  background: #f8fafc;
  padding: 60px 0;

/* Page Transitions */
body {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* This is the state for the new page before it becomes visible */
body.pre-fade {
  opacity: 0;
  transform: translateY(15px);
}

/* --- Media Queries for Responsiveness --- */

/* --- Laptops & Large Tablets --- */
@media (max-width: 1024px) {
  .wrap {
    padding: 0 2rem; /* Add more space on the sides */
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-left {
    order: 2;
    margin-bottom: 0;
  }

  .hero-right {
    order: 1;
    margin: 0 auto;
    max-width: 420px;
  }


  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
  }
}

/* --- Tablets & Phones (The Main Fix) --- */
@media (max-width: 768px) {
  .nav {
    /* This is the main flex container: .wrap.nav */
    justify-content: space-between; /* Keep logo and nav apart */
    gap: 1.5rem;
  }

  .logo-img {
    width: 160px; /* Control logo size */
    flex-shrink: 0; /* Prevent logo from shrinking */
  }

  nav {
    /* This is the <nav> element which will now scroll */
    display: block; /* Override the default flex behavior */
    overflow-x: auto;
    /*-webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    /*scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav ul {
    /* The list of links */
    white-space: nowrap; /* CRITICAL: Keep all items on one line */
    margin: 0;
    padding: 0;
  }

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

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

  .footer-col {
    align-items: center;
  }

  .socials {
    justify-content: center;
  }
}

/* --- Small Phones --- */
@media (max-width: 480px) {
  .wrap {
    padding: 0 1rem;
  }

  .logo-img {
    width: 140px; /* Further shrink logo on very small screens */
  }

  .hero-left h2 {
    font-size: 1.8rem; /* Adjust heading size */
  }



  .top-strip {
    font-size: 0.75rem;
    text-align: center;
  }
}

    gap: 2.5rem;
  }

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

  .footer-col {
    align-items: center; /* Center content within footer columns */
  }

  .socials {
    justify-content: center;
  }

/* Phones */
@media (max-width: 576px) {
  body {
    font-size: 90%; /* Further reduce font size for small phones */
  }

  .top-strip {
    text-align: center;
    padding: 8px 10px;
  }
}
  header {
    top: 42px; /* Adjust sticky header for potentially taller top strip */
  }
/* --- Footer Styles --- */
footer {
  position: relative;
  background-color: #0a1828; /* A deep, professional navy blue */
  color: #e1e1e1;
  padding-top: 5rem;
  margin-top: 4rem;
  font-size: 0.95rem;
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  overflow: hidden;
}

.footer-deco {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer-col p {
  color: #b0c4de; /* A lighter, softer blue for readability */
  line-height: 1.7;
  max-width: 45ch;
}

.footer-col a {
  color: #b0c4de;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-logo {
  max-width: 180px;
.hero-right h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 16px;
  color: #004080;
}


  .footer-col p,
  .footer-col a {
    font-size: 13px;
  }

  .footer-logo {
    width: 70px;
    height: 70px;
  }
}

.socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.socials a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.socials a:hover {
  transform: scale(1.1);
}

.socials img {
  width: 32px;
  height: 32px;
  filter: grayscale(1) brightness(1.5);
  transition: filter 0.3s ease;
}

.socials a:hover img {
  filter: none;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.9rem;
  color: #a9a9a9;
  position: relative;
  z-index: 2;
}

/* === FINAL RESPONSIVE STYLES === */


main {
  padding-top: 40px;
}

.logo-img {
  width: 150px; /* Make logo even smaller on narrow screens */
}

.hero-left h2 {
  font-size: 32px;
}



/* This is the state for the old page as it navigates away */
body.fade-out {
  opacity: 0;
  transform: translateY(-15px);
}

body.fade-out {
  opacity: 0;
}

/* Pre-fade state for smooth loading */
body.pre-fade {
  opacity: 0;
}

.contact-section h3 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #004080;
  margin-bottom: 10px;
}

.contact-section .lead {
  text-align: center;
  color: #004080;
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 15px;
  line-height: 1.7;
}

.contact-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.contact-info h4 {
  color: #004080;
  font-size: 20px;
  margin-bottom: 8px;
}

.contact-info a {
  color: #004080;
  text-decoration: none;
  transition: 0.2s ease;
}
.contact-info a:hover {
  text-decoration: underline;
}

.map-wrapper {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(0,0,0,0.08);
}

#map {
  width: 100%;
  height: 240px;
}

/* Contact Form Card */
.contact-form-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.contact-form-card h4 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #004080;
}

.contact-form-card .form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-form-card .input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  outline: none;
  transition: 0.2s;
}

.contact-form-card .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(29,78,216,0.1);
}

.contact-form-card .btn.submit {
  margin-top: 12px;
  background: #004080;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.contact-form-card .btn.submit:hover {
  background: #004080;
}

/* Responsive */
.terms-container {
  padding: 80px 0;
  background: #fff;
  color: #333;
}

.terms-container h2 {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary);
}

.terms-container p, 
.terms-container li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.terms-container ul {
  list-style: disc;
  padding-left: 20px;
}
@media (max-width: 960px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .map-wrapper {
    height: auto;
  }
}

/* --- Media Queries for Responsiveness --- */

@media (max-width: 992px) {
  /* General adjustments for tablets */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    margin-bottom: 3rem;
  }

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

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

@media (max-width: 768px) {
  /* --- Horizontally Scrolling Navigation --- */
  nav {
    justify-content: flex-start; /* This is the key fix */
    overflow-x: auto;
    /* -webkit-overflow-scrolling removed: not supported in many modern browsers */
    -ms-overflow-style: none;
    /*scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav ul {
    white-space: nowrap;
    padding-right: 20px; /* Ensures last item isn't cut off */
  }

  /* Other adjustments for mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
    .logo-img {
        width: 160px; /* Reduce logo size on very small screens */
    }

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

    .top-strip {
        font-size: 0.8rem;
        text-align: center;
    }
}