/* 
/* =========================================================
   HEADER
========================================================= */

/* =========================================================
   VIDYODAYA GREEN HEADER
========================================================= */

.site-header {
  height: var(--header-height);
  background: var(--green-dark);
  border-bottom: 3px solid var(--gold);

  position: sticky;
  top: 0;
  z-index: 1000;

  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.header-container {
  height: 100%;
  width: min(100%, 94%);
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   LOGO
========================================================= */

/* =========================================================
   HEADER BRAND - LOGO + SCHOOL NAME
========================================================= */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;

  color: #ffffff;
  text-decoration: none;

  flex-shrink: 0;
}

.brand img {
  width: 68px;
  height: 62px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.brand-text strong {
  color: #ffffff;

  font-size: 20px;
  font-weight: 700;

  letter-spacing: 1px;
}

.brand-text span {
  color: var(--gold-light);

  font-size: 11px;
  font-weight: 500;

  letter-spacing: 0.8px;

  margin-top: 4px;
}

/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav > a,
.nav-dropdown > a {
  position: relative;

  color: #ffffff;

  font-size: 14px;
  font-weight: 600;

  padding: 28px 0;

  transition: color 0.3s ease;
}

/* Gold underline */

.main-nav > a::after,
.nav-dropdown > a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 18px;

  width: 0;
  height: 2px;

  background: var(--gold);

  transition: width 0.3s ease;
}

.main-nav > a:hover,
.nav-dropdown > a:hover {
  color: var(--gold-light);
}

.main-nav > a:hover::after,
.nav-dropdown > a:hover::after {
  width: 100%;
}

/* =========================================================
   DROPDOWN
========================================================= */

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown > a span {
  color: var(--gold-light);
  font-size: 15px;
}

/* Dropdown box */

.dropdown-menu {
  position: absolute;

  top: calc(100% + 3px);
  left: -20px;

  width: 230px;

  background: var(--white);

  border-top: 3px solid var(--gold);

  border-radius: 0 0 10px 10px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);

  padding: 8px 0;

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  transition: all 0.25s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.dropdown-menu a {
  display: block;

  padding: 11px 20px;

  color: var(--text);

  font-size: 14px;
  font-weight: 500;

  transition: all 0.25s ease;
}

.dropdown-menu a:hover {
  background: var(--green-light);

  color: var(--green);

  padding-left: 25px;
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(255, 255, 255, 0.35);

  border-radius: 6px;

  background: transparent;

  cursor: pointer;

  padding: 7px;
}

.menu-toggle span {
  display: block;

  width: 25px;
  height: 2px;

  background: #ffffff;

  margin: 5px auto;

  transition: 0.3s ease;
}

/* =========================================================
   MOBILE HEADER
========================================================= */
@media (max-width: 900px) {
  .brand {
    gap: 10px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand-text strong {
    font-size: 16px;
    letter-spacing: 0.7px;
  }

  .brand-text span {
    font-size: 9px;
    margin-top: 3px;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 68px;
  }

  /*   .logo img {
    width: 145px;
    max-height: 55px;
  }
 */
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;

    top: 68px;
    left: 0;
    right: 0;

    width: 100%;

    background: var(--green-dark);

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 10px 6% 20px;

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav > a,
  .nav-dropdown > a {
    color: #ffffff;

    padding: 13px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav > a::after,
  .nav-dropdown > a::after {
    display: none;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;

    width: 100%;

    background: rgba(0, 0, 0, 0.12);

    border: 0;

    border-radius: 0;

    box-shadow: none;

    padding: 0;

    display: none;

    opacity: 1;
    visibility: visible;

    transform: none;
  }

  /*   .nav-dropdown:hover .dropdown-menu {
    display: block;
  }
 */
  /* Mobile dropdown is controlled by JavaScript */
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }
  .dropdown-menu a {
    color: rgba(255, 255, 255, 0.85);

    padding: 10px 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);

    color: var(--gold-light);

    padding-left: 25px;
  }
}

/*-------------------------------------SCROLL------------------------------*/
/* =========================================================
   SCROLL TO TOP
========================================================= */

.scroll-top {
  position: fixed;

  right: 25px;
  bottom: 25px;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid var(--gold);
  border-radius: 50%;

  background: var(--green);
  color: var(--white);

  font-size: 22px;
  font-weight: 700;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(15px);

  transition: all 0.3s ease;

  z-index: 999;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--green-dark);

  transform: translateY(-4px);
}

/* Mobile */

@media (max-width: 480px) {
  .scroll-top {
    width: 40px;
    height: 40px;

    right: 16px;
    bottom: 18px;

    font-size: 19px;
  }
}
