/* =============== VARIABLES =============== */
:root {
  /* --gdfa-green: #006400; */
  --gdfa-white: #ffffff;
  --gdfa-light-bg: #f9f9f9;
  --gdfa-dark: #1a1a1a;
  --font-main: 'Poppins', sans-serif;
}

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

.no-scroll {
  overflow: hidden;
}


body {
  font-family: var(--font-main);
  color: var(--gdfa-dark);
  background-color: var(--gdfa-white);
  overflow-x: hidden;
}

/* =============== TOPBAR =============== */
.topbar {
  background-color: var(--gdfa-green);
  color: var(--gdfa-white);
  font-size: 1rem;
  padding: 12px 0;
  background-color: #006400;
}

.topbar .container {
  max-width: 1440px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-left span {
  margin-right: 22px;
  padding: 6px 0;
}

.topbar i {
  margin-right: 6px;
}

.topbar-right a {
  color: var(--gdfa-white);
  text-decoration: none;
  margin-right: 18px;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.topbar-right a:hover {
  color: #c0ffc0;
}

.language-switch {
  cursor: default;
}

/* =============== NAVBAR =============== */
.custom-navbar {
  background-color: var(--gdfa-white);
  border-bottom: 2px solid var(--gdfa-green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* soft subtle shadow */
  position: sticky;
  top: 0;
  z-index: 1000;
}


.nav-container {
  max-width: 1280px;
  margin: auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =============== LOGO =============== */
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.school-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
}

/* =============== HAMBURGER ICON =============== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background-color: #006400 !important; /* ✅ Green (override white) */
  display: block;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============== NAV LINKS =============== */
.main-nav {
  flex-grow: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gdfa-dark);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links .active {
  color: var(--gdfa-green);
}

/* =============== DROPDOWN =============== */
.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.6rem;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.has-dropdown.open > a::after {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--gdfa-white);
  border: 1px solid #ccc;
  min-width: 180px;
  display: none;
  flex-direction: column;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links .has-dropdown:hover .dropdown {
  display: flex;
}

.dropdown li {
  padding: 12px 20px;
  border-bottom: 1px solid #f1f1f1;
}

.dropdown li:last-child {
  border-bottom: none;
}

.dropdown li a {
  color: var(--gdfa-dark);
  font-weight: 400;
  display: block;
}

.dropdown li a:hover {
  color: var(--gdfa-green);
}

/* =============== MOBILE =============== */
@media (max-width: 992px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .hamburger {
    display: flex;
  }

.main-nav {
  position: fixed;
  top: 0;
  left: -100%;
  background-color: var(--gdfa-white);
  width: 85%; /* âœ… Reduced from 100% */
  max-width: 320px; /* Optional max width for large screens */
  height: 100vh;
  transition: left 0.3s ease;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  overflow-y: auto;
  padding-top: 80px;
}

.main-nav.open {
  left: 0;
}



  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    gap: 0;
  }

  .nav-links li {
    width: 100%;
    margin-bottom: 10px;
  }

  .dropdown {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    border: none;
    padding-left: 10px;
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown li {
    padding: 10px 16px;
  }

  .school-logo {
    height: 52px;
  }
}

.mobile-overlay {
  display: none;
}

.mobile-overlay.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 100, 0, 0.15);
  z-index: 900;
}

.no-scroll {
  overflow: hidden;
}
/* =============== TOPBAR RESPONSIVE =============== */
@media (max-width: 768px) {
  .topbar .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 16px;
  }

  .topbar-left,
  .topbar-right {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    font-size: 0.85rem;
    gap: 12px;
  }

  .topbar-left span,
  .topbar-right a,
  .topbar-right span {
    flex: 1 1 calc(50% - 12px); /* two items per row */
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
  }

  .topbar i {
    margin-right: 6px;
    font-size: 1rem;
  }

  .topbar-right {
    justify-content: flex-start;
  }

  .language-switch {
    flex: 1 1 100%;
    margin-top: -4px;
  }
}



.language-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Main select style */
.language-switch {
  appearance: none;
  background-color: var(--gdfa-white);
  color: var(--gdfa-dark);
  border: 1px solid var(--gdfa-green);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 6px 26px 6px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 110px; /* reduced default width */
  max-width: 160px;
  position: relative;
}
.language-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 160px;
  width: 100%;
}

.language-switch {
  appearance: none;
  background-color: var(--gdfa-white);
  color: var(--gdfa-dark);
  border: 1px solid var(--gdfa-green);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 6px 12px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Font Awesome dropdown caret */
.language-wrapper::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 12px;
  pointer-events: none;
  font-size: 0.65rem;
  color: var(--gdfa-dark);
  top: 50%;
  transform: translateY(-50%);
}

/* ðŸ”» Responsive width for smaller screens */
@media (max-width: 576px) {
  .language-switch {
    min-width: 90px;
    font-size: 0.8rem;
    padding: 6px 24px 6px 8px;
  }

  .language-wrapper::after {
    right: 10px;
    font-size: 0.6rem;
  }
}
