/* =====================================================
   LOGO COLOR BASED SCHOOL NAVBAR
   ===================================================== */

/* MAIN NAVBAR */
.navbar {
  width: 100%;
  background: #ffffff;

  border-bottom: 6px solid #c9db2b; /* logo green-yellow */

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

  position: relative;
}

.nav-container {
  max-width: 1400px;
  margin: auto;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 0 20px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;
}

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

/* REMOVE HERO GAP */

.header {
  margin: 0 !important;
  padding: 0 !important;
}

.navbar {
  margin-bottom: 0 !important;
}

main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-hero-bg img {
  display: block;
}
/* =====================================================
   MENU BAR
   ===================================================== */

.nav-menu {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  list-style: none;

  background: #d9ea32; /* logo yellow-green */

  margin: 0;
  padding: 0;
}

/* NAV ITEMS */
.nav-item {
  position: relative;
}

/* NAV LINKS */
.nav-link {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px 30px;

  font-size: 15px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 1.5px;

  color: #234a9f; /* logo blue */

  transition: 0.3s ease;
}

/* ACTIVE + HOVER */
.nav-link:hover,
.nav-link.active {
  color: #7a2c8f; /* logo purple */
}

/* UNDERLINE */
.nav-link::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 12px;

  width: 0;
  height: 4px;

  background: #7a2c8f;

  transform: translateX(-50%);

  transition: 0.3s ease;
}

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

/* DROPDOWN ICON */
.nav-link .fa-chevron-down {
  font-size: 10px;
  margin-left: 6px;
}

/* =====================================================
   DROPDOWN
   ===================================================== */

.dropdown-menu {
  position: absolute;

  top: 100%;
  left: 0;

  min-width: 250px;

  background: #ffffff;

  border-top: 4px solid #7a2c8f;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  transition: 0.3s ease;

  z-index: 999;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

/* DROPDOWN LINKS */
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 18px;

  font-size: 14px;
  font-weight: 600;

  color: #234a9f;

  border-bottom: 1px solid #f1f1f1;

  transition: 0.3s ease;
}

.dropdown-link:hover {
  background: #f9fbe7;
  color: #7a2c8f;
}

.dropdown-link i {
  color: #7a2c8f;
}

/* =====================================================
   REMOVE BUTTON
   ===================================================== */

.nav-actions {
  display: none;
}

/* =====================================================
   MOBILE MENU
   ===================================================== */

.menu-toggle {
  display: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 991px) {
  .nav-container {
    align-items: flex-start;
  }

  .logo {
    justify-content: flex-start;
    margin-bottom: 14px;
    width: auto;
  }

  .school-logo {
    height: 95px;
  }

  .nav-actions {
    display: block;
  }

  .menu-toggle {
    display: flex;

    position: absolute;
    right: 20px;
    top: 40px;

    flex-direction: column;
    gap: 5px;

    cursor: pointer;
  }

  .menu-toggle .bar {
    width: 28px;
    height: 3px;

    background: #234a9f;
  }

  .nav-menu {
    position: absolute;

    top: 140px;
    left: -100%;

    width: 100%;

    flex-direction: column;

    transition: 0.4s ease;

    overflow-y: auto;

    overflow-x: hidden;

    z-index: 999;

    scroll-behavior: smooth;

    padding: 0;

    height: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;

    padding: 12px 20px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  /* MOBILE DROPDOWN */
  .dropdown-menu {
    position: static;

    opacity: 1;
    visibility: visible;

    transform: none;

    display: none;

    box-shadow: none;

    border-top: none;
  }

  .nav-item.open .dropdown-menu {
    display: block;
  }
}

@media (max-width: 576px) {
  .school-logo {
    height: 80px;
  }

  .nav-link {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* HERO NAVIGATION BUTTONS */

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 55px;
  height: 55px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.85);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  z-index: 20;

  transition: 0.3s ease;
}

.hero-nav i {
  font-size: 18px;
  color: #234a9f;
}

.hero-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 25px;
}

.hero-next {
  right: 25px;
}

/* =========================================
   MOBILE TEXT WRAP FIX
========================================= */

@media (max-width: 768px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  span,
  a,
  .hero-title,
  .hero-subtitle,
  .page-hero-title,
  .page-hero-desc,
  .cta-new-title,
  .section-title,
  .admission-title,
  .admission-subtitle {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word;
    line-height: 1.4;
  }

  /* HERO TITLES */

  .hero-title,
  .page-hero-title,
  .cta-new-title {
    font-size: 32px !important;
    line-height: 1.25 !important;
  }

  /* SUBTEXT */

  .hero-subtitle,
  .page-hero-desc,
  .cta-new-text,
  .admission-subtitle {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  /* BUTTON TEXT */

  .btn,
  .nav-link {
    white-space: normal !important;
    text-align: center;
  }
}
