/* Study Plus — header & top bar (loads after main.css) */

:root {
  --sp-header-navy: #10476c;
  --sp-header-muted: #64748b;
  --sp-header-border: #e2e8f0;
  --sp-header-top-bg: #f1f5f9;
  --sp-header-offset: 148px;
}

.studyplus-header {
  position: relative;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

body.studyplus-drawer-open {
  overflow: hidden;
}

.studyplus-header .hamburger-menu {
  cursor: pointer;
}

/* ----- Top bar ----- */
.studyplus-topbar {
  background: var(--sp-header-top-bg);
  border-bottom: 1px solid var(--sp-header-border);
  padding: 0.55rem 0;
}

.studyplus-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
}

.studyplus-topbar__welcome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--sp-header-muted);
  font-weight: 500;
}

.studyplus-topbar__welcome-icon {
  font-size: 1rem;
  color: var(--sp-header-navy);
  flex-shrink: 0;
}

.studyplus-topbar__welcome strong {
  color: #0f172a;
  font-weight: 600;
}

.studyplus-topbar__hello {
  font-weight: 700;
  color: var(--sp-header-navy);
  margin-right: 0.15rem;
}

.studyplus-topbar__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
}

.studyplus-topbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--sp-header-muted);
  text-decoration: none;
  padding: 0.2rem 0;
  border-radius: 0.35rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.studyplus-topbar__pill:hover {
  color: var(--sp-header-navy);
}

.studyplus-topbar__pill .bi {
  font-size: 0.95rem;
  color: var(--sp-header-navy);
  flex-shrink: 0;
}

.studyplus-topbar__pill--hours {
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 100%;
}

.studyplus-topbar__hours-text {
  white-space: normal;
  line-height: 1.35;
  max-width: min(100%, 19rem);
}

@media (max-width: 575.98px) {
  .studyplus-topbar__hours-text {
    font-size: 0.78rem;
    max-width: 100%;
  }
}

.studyplus-topbar__email-text {
  max-width: min(52vw, 17rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .studyplus-topbar__welcome {
    font-size: 0.875rem;
  }
  .studyplus-topbar__pill {
    font-size: 0.875rem;
  }
}

/* ----- Main navbar ----- */
.studyplus-navbar {
  padding: 0.85rem 0;
  background: #fff;
}

.studyplus-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.studyplus-navbar__brand {
  flex-shrink: 0;
}

.studyplus-navbar__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.studyplus-navbar__logo img {
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 992px) {
  .studyplus-navbar__logo img {
    max-height: 50px;
  }
}

.studyplus-navbar__mainSlot {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center !important;
  align-items: center;
}

.studyplus-navbar__nav {
  flex: 1;
  display: flex !important;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.studyplus-navbar__nav .menu-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.studyplus-navbar__nav .menu-list > li {
  margin: 0;
  padding: 0;
}

.studyplus-navbar__nav .menu-list > li > a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #334155;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.studyplus-navbar__nav .menu-list > li > a:hover,
.studyplus-navbar__nav .menu-list > li > a:focus {
  color: var(--sp-header-navy);
  background: #f8fafc;
}

.studyplus-navbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  flex-shrink: 0;
}

.studyplus-navbar__phone {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .studyplus-navbar__phone {
    display: inline-flex;
  }
}

.studyplus-navbar__phone .bi {
  font-size: 1.1rem;
  color: var(--sp-header-navy);
}

.studyplus-navbar__phone:hover {
  color: var(--sp-header-navy);
}

.studyplus-navbar__cta .bs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .studyplus-navbar__cta .bs-btn {
    padding: 0.62rem 1.4rem !important;
    font-size: 0.9375rem !important;
  }
}

/* Hamburger — calmer size, same interaction hooks */
.studyplus-header .hamburger-menu {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  border-radius: 0.5rem !important;
  margin-left: 0.25rem !important;
  align-items: center;
  justify-content: center;
}

.studyplus-header .hamburger-menu .bar-wrap .bar-1,
.studyplus-header .hamburger-menu .bar-wrap .bar-2,
.studyplus-header .hamburger-menu .bar-wrap .bar-3 {
  width: 20px !important;
}

/* Container width — wide strip (top bar + nav use same inner width) */
.studyplus-header .container {
  width: min(98%, 1820px);
  max-width: 1820px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(14px, 2.2vw, 36px);
  padding-right: clamp(14px, 2.2vw, 36px);
}

/* Kill legacy theme-menu-one top rules inside our header */
.studyplus-header.theme-menu-one .ht-promo,
.studyplus-header.theme-menu-one .ht-phone,
.studyplus-header.theme-menu-one .ht-email {
  margin: 0;
  padding: 0;
}

/* ----- Hero height sync with new header stack ----- */
.theme-banner-one {
  min-height: calc(100vh - var(--sp-header-offset));
  min-height: calc(100svh - var(--sp-header-offset));
}

@media (max-width: 991.98px) {
  :root {
    --sp-header-offset: 108px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --sp-header-offset: 100px;
  }
}

/* ----- Light mobile drawer (slide-out menu) ----- */
.ht-menu-wrapper {
  background-color: rgba(15, 23, 42, 0.42) !important;
}

.ht-menu-wrapper .ht-menu-area {
  background-color: #ffffff !important;
  border-right: 3px solid #c62828;
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.12);
}

.ht-menu-wrapper .mobile-logo {
  border-bottom-color: #e2e8f0 !important;
}

.ht-menu-wrapper .ht-mobile-menu ul li,
.ht-menu-wrapper .studyplus-drawer-nav ul li {
  border-bottom: 1px solid #e2e8f0 !important;
}

.ht-menu-wrapper .ht-mobile-menu ul li a,
.ht-menu-wrapper .studyplus-drawer-nav ul li a {
  color: #0f172a !important;
  font-weight: 500;
}

.ht-menu-wrapper .ht-mobile-menu ul li a:hover,
.ht-menu-wrapper .ht-mobile-menu ul li a:focus,
.ht-menu-wrapper .studyplus-drawer-nav ul li a:hover {
  color: #10476c !important;
  background-color: #f1f5f9 !important;
}

.ht-menu-wrapper .offset-widget .info-widget .offset-title {
  color: #0f172a !important;
}

.ht-menu-wrapper .offset-widget .info-widget p {
  color: #475569 !important;
}

.ht-menu-wrapper .offset-widget .info-widget.info-widget2 p i {
  color: #10476c !important;
}

/* No visible scrollbar beside nav (theme used overflow-y: scroll + max-height) */
.ht-menu-wrapper .mobile-menu-wrapper {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: none !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.ht-menu-wrapper .mobile-menu-wrapper::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* MeanMenu (if enabled later) — keep links readable on light drawer */
.ht-menu-wrapper .mean-container .mean-nav ul li a {
  color: #0f172a !important;
}

.ht-menu-wrapper .mean-container .mean-nav ul li a:hover {
  background: #f1f5f9 !important;
}

.ht-menu-wrapper .mean-container .mean-nav ul li li a {
  border-top-color: #e2e8f0 !important;
  color: #334155 !important;
}

.ht-menu-wrapper .mean-container .mean-nav ul li a.mean-expand {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.ht-menu-wrapper .mean-container .mean-nav ul li a.mean-expand:hover {
  background: #cbd5e1 !important;
}

/* ----- Blog: same-size horizontal image frame (home + blog page) ----- */
.blog-section .blog-five .blog-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
}

.blog-section .blog-five .blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: none;
  border-radius: 20px;
}

/* ----- About: two-part layout (image + lead, then full-width copy) ----- */
.studyplus-about-continued {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* ----- Home: Expert-Led Training & Certification (course cards) ----- */
.courses-section .studyplus-course-card {
  min-height: 100%;
}

.courses-section .studyplus-course-card .course-thumb {
  position: relative;
  z-index: 1;
  width: min(280px, 42%);
  min-height: 0 !important;
  flex-shrink: 0;
  aspect-ratio: 4 / 5;
  max-height: 340px;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
}

.courses-section .studyplus-course-card .course-thumb .front-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.courses-section .studyplus-course-card .course-thumb .back-img {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  width: 100%;
  height: 0;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0 0 20px 20px;
  transition: height 0.4s ease;
}

.courses-section .studyplus-course-card:hover .course-thumb .back-img {
  height: 100%;
}

@media only screen and (max-width: 1200px) {
  .courses-section .studyplus-course-card .course-thumb {
    width: min(240px, 44%);
    max-height: 300px;
  }
}

@media only screen and (max-width: 767.98px) {
  .courses-section .studyplus-course-card .course-thumb {
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 9;
    border-radius: 20px 20px 0 0;
  }

  .courses-section .studyplus-course-card .course-thumb .back-img {
    border-radius: 0 0 20px 20px;
  }
}
