/* =========================
   RESET & BASE
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
  line-height: 1.6;
  padding-top: 88px; /* fixed header offset */
  min-height: 100%;            /* make body full height */
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 64px 0;
  scroll-margin-top: 100px;
}

/* =========================
   HEADER (FIXED)
   ========================= */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #002147;
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.logo img {
  width: 40px; /* desktop logo size */
  height: auto;
}

.logo h1 {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.5px;
}

/* =========================
   Navigation Bar
   ========================= */

   nav {
  display: flex;
  gap: 32px;
}

nav a {
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #d4af37;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #d4af37;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}



/* Hamburger → X animation */
 .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(0px);
    position: relative;
    top: 9.5px;
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(0px);
    position: relative;
    top: -9.5px;
  }

/* =========================
   HERO
   ========================= */
.hero {
  background: linear-gradient(180deg, #002147 20%, #003366 80%);
  color: white;
  text-align: center;
  padding: 120px 0;
  margin-top: -88px;
  padding-top: 208px; /* 120 + 88 */
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  background-color: #d4af37;
  color: #002147;
  border: none;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #c19b2b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* =========================
   ABOUT
   ========================= */
.about {
  background-color: white;
  text-align: center;
}

.about h3 {
  font-size: 36px;
  color: #002147;
  margin-bottom: 32px;
  font-weight: 700;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  font-size: 18px;
  text-align: left;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* =========================
   SERVICES
   ========================= */
.services {
  background-color: #f9fafb;
  text-align: center;
}

.services h3 {
  font-size: 36px;
  color: #002147;
  margin-bottom: 48px;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: white;
  padding: 40px 32px;
  border-radius: 12px;
  border-top: 4px solid #002147;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,33,71,0.15);
}

.service-card i {
  width: 48px;
  height: 48px;
  color: #d4af37;
  margin-bottom: 20px;
}

.service-card h4 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #002147;
  font-weight: 600;
}

.service-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* =========================
   SERVICES PAGE SPACING
   ========================= */

.services-page section {
  padding-top: 10px;
  padding-bottom: 10px;
}

.services-page h1,
.services-page h2 {
  margin-bottom: 0px;
}

.services-page p {
  margin-bottom: 0px;
}

.services-page section ul {
  margin-top: 16px;
  margin-left: 32px;
  padding-left: 16px;
  list-style-position: outside;
  margin-bottom: 16px;
}

.spaced-below {
  margin-bottom: 40px;
}

/* =========================
   EXAM CALENDAR SPECIFIC
   ========================= */
section.exam-calendar {
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================
   CONTACT
   ========================= */
.contact {
  background: linear-gradient(0deg, #002147 20%, #003366 80%);
  color: white;
  text-align: center;
}

.contact h3 {
  font-size: 36px;
  margin-bottom: 48px;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-item {
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
}

.contact-item i {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: #d4af37;
}

.contact-item h4 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-item p {
  font-size: 16px;
}

.contact-item a {
  color: inherit;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #d4af37;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background-color: #002147;
  color: white;
  text-align: center;
  padding: 40px 0;
}

footer p {
  margin: 8px 0;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #d4af37;
  text-decoration: underline;
}

/* =========================
   MOBILE RESPONSIVE - FIXED VERSION
   ========================= */

/* Hide mobile button on desktop */
.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .header-content {
    padding: 16px 20px;
  }

  .logo h1 {
    font-size: 20px;
  }

  .logo img {
    width: 30px; /* Fixed: was 15px, too small */
  }

  /* SHOW mobile menu button on mobile */
  .mobile-menu-btn {
    display: flex; /* Fixed: was missing semicolon */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
  }

  .mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
  }

  

  /* Mobile nav menu */
  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #002147;
    flex-direction: column;
    gap: 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  nav.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 50px;
    padding: 0 20px;
    line-height: normal;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav a:last-child {
    border-bottom: none;
  }

  nav a::after {
    display: none;
  }

  /* Hero adjustments */
  .hero {
    margin-top: -70px;
    padding-top: 150px;
    padding-bottom: 80px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  /* Section titles */
  .about h3,
  .services h3,
  .contact h3 {
    font-size: 28px;
  }

  /* Grids */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .services-page section {
    padding-top: 28px;
    padding-bottom: 28px;
  }
    .spaced-below {
    margin-bottom: 20px;
  }
}