/**
 * Siksha Connects — premium header (child theme).
 */

.sc-header-premium {
  position: sticky;
  top: 0;
  z-index: 10050;
  background: #ffffff;
  border-bottom: 1px solid rgba(6, 31, 77, 0.06);
  transition: box-shadow 0.28s ease;
}

.admin-bar .sc-header-premium {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .sc-header-premium {
    top: 46px;
  }
}

.sc-header-premium.is-scrolled {
  box-shadow: 0 10px 36px rgba(6, 31, 77, 0.1);
}

.sc-header-premium__bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-header-premium__logo img {
  display: block;
  max-height: 40px;
  width: auto;
  height: auto;
}

.sc-header-premium__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-start;
  margin-left: 8px;
  min-width: 0;
}

.sc-header-premium__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
}

.sc-header-premium__menu > li {
  position: relative;
}

.sc-header-premium__menu > li > a {
  display: block;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.sc-header-premium__menu > li > a:hover,
.sc-header-premium__menu > li.current-menu-item > a {
  color: #0b245f;
  background: rgba(22, 213, 192, 0.12);
}

.sc-header-premium__menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 188px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(6, 31, 77, 0.12);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 40;
}

.sc-header-premium__menu li:hover > .sub-menu {
  display: block;
}

.sc-header-premium__menu .sub-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  line-height: 1.35;
}

.sc-header-premium__menu .sub-menu a:hover {
  background: #f1f5f9;
  color: #0c2f6e;
}

.sc-header-premium__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.sc-header-premium__icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(7, 27, 77, 0.1);
  color: #0b245f;
  background: #f4fafb;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.35s ease;
}

.sc-header-premium__icon-btn:hover {
  background: rgba(22, 213, 192, 0.12);
  border-color: rgba(22, 213, 192, 0.4);
  color: #071b4d;
  box-shadow: 0 6px 22px rgba(22, 213, 192, 0.18);
}

.sc-header-premium__cta-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  margin-right: 8px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #0b245f;
  border: 2px solid rgba(6, 31, 77, 0.12);
  background: #fff;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sc-header-premium__cta-login:hover {
  border-color: rgba(22, 213, 192, 0.55);
  color: #071b4d;
  background: rgba(22, 213, 192, 0.08);
}

.sc-header-premium__cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #16d5c0 0%, #12b8c8 100%);
  box-shadow: 0 8px 26px rgba(22, 213, 192, 0.32);
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.sc-header-premium__cta-primary:hover {
  color: #fff;
  filter: brightness(0.94);
  box-shadow:
    0 10px 36px rgba(22, 213, 192, 0.48),
    0 0 0 1px rgba(22, 213, 192, 0.35);
  transform: translateY(-1px);
}

.sc-header-premium__cta-primary:active {
  transform: translateY(0);
  filter: brightness(0.9);
  box-shadow: 0 6px 20px rgba(22, 213, 192, 0.35);
}

.sc-header-premium__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(6, 31, 77, 0.12);
  border-radius: 11px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.sc-header-premium__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

@media (max-width: 1199px) {
  .sc-header-premium__nav {
    display: none;
  }

  .sc-header-premium__toggle {
    display: flex;
    margin-left: auto;
  }

  .sc-header-premium__actions {
    gap: 8px;
  }

  .sc-header-premium__cta-primary {
    padding: 9px 14px;
    font-size: 13px;
  }

  .sc-header-premium__cta-login {
    padding: 9px 12px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .sc-header-premium__cta-primary {
    display: none;
  }

  .sc-header-premium__cta-login {
    padding: 9px 12px;
    font-size: 13px;
  }
}

@media (min-width: 1200px) {
  .sc-header-premium__menu {
    flex-wrap: nowrap;
    gap: 2px 3px;
  }

  .sc-header-premium__menu > li > a {
    padding: 7px 9px;
    font-size: 13px;
  }

  .sc-header-premium__nav {
    margin-left: 4px;
  }
}

/* Mobile offcanvas (meanMenu clone of #main-menu) */
.mobile-menu .mean-nav ul li a {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  padding: 12px 0;
}

.mobile-menu .mean-nav ul li a:hover {
  color: #0b245f;
}
