/* =========================================================
   SCHOOLHUB — VISUAL STYLES
   ========================================================= */

.schoolhub-page {

  --primary: #1E3A8A;
  --primary-dark: #042C53;
  --primary-mid: #0C447C;
  --primary-text: #185FA5;

  --gold: #F59E0B;
  --gold-text: #412402;

  --teal-bg: #E1F5EE;
  --teal-text: #085041;
  --teal-sub: #0F6E56;

  --text-dark: #0F172A;
  --text-gray: #5F5E5A;

  --surface: #F8FAFC;
  --hero-bg: #E6F1FB;

  --border: #E2E8F0;
  --border-strong: #85B7EB;

  --white: #FFFFFF;

  --math-bg: #EEF2FF;
  --math-text: #3730A3;

  --science-bg: #ECFDF5;
  --science-text: #047857;

  --history-bg: #FFF7ED;
  --history-text: #C2410C;

  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 14px 30px rgba(15, 23, 42, 0.10);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-main: "Cairo", sans-serif;

  font-family: var(--font-main);
  color: var(--text-dark);
}


/* =========================================================
   RESET / ISOLATION
   ========================================================= */

.schoolhub-page,
.schoolhub-page * {
  box-sizing: border-box;
}

.schoolhub-page h1,
.schoolhub-page h2,
.schoolhub-page h3,
.schoolhub-page p {
  margin-block-start: 0;
}

.schoolhub-page a {
  text-decoration: none;
}

.schoolhub-page img,
.schoolhub-page svg {
  max-width: 100%;
}

.schoolhub-page button,
.schoolhub-page input,
.schoolhub-page textarea,
.schoolhub-page select {
  font-family: inherit;
}


/* =========================================================
   BRAND
   ========================================================= */

.schoolhub-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--primary);
}

.schoolhub-brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--primary);
}

.schoolhub-brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.schoolhub-brand-mark svg rect {
  fill: currentColor;
}

.schoolhub-brand-mark svg path:nth-of-type(2) {
  fill: currentColor;
}

.schoolhub-brand-name {
  direction: ltr;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.schoolhub-brand-school {
  color: var(--primary-dark);
}

.schoolhub-brand-hub {
  color: var(--gold);
}


/* =========================================================
   HEADER
   ========================================================= */

.schoolhub-header {
  background: #ffffff;
  border-bottom: 1px solid #edf1f7;
  box-shadow: 0 2px 12px rgba(15, 43, 77, 0.04);
}

.schoolhub-desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 72px;

  color: #162b43;
  text-decoration: none;

  font-family: "Cairo", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.schoolhub-desktop-nav a:hover {
  color: #21459a;
}

.schoolhub-desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;

  width: 0;
  height: 2px;

  background: #21459a;

  transition: width 0.2s ease;
}

.schoolhub-desktop-nav a:hover::after {
  width: 100%;
}

.schoolhub-logo-image {
  display: block;
  width: auto;
  height: 42px;
  max-width: 180px;
  object-fit: contain;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.schoolhub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  min-height: 38px;
  padding: 0.65rem 1.35rem;

  border-radius: 8px;

  font-family: "Cairo", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;

  line-height: 1.2;
  text-decoration: none;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.schoolhub-button:hover {
  transform: translateY(-1px);
}

.schoolhub-button-primary {
  background: #21449a;
  border: 1px solid #21449a;
  color: #ffffff;
}

.schoolhub-button-primary:hover {
  background: #18377f;
  border-color: #18377f;
  color: #ffffff;
}

.schoolhub-button-outline {
  background: transparent;
  border: 1px solid #21449a;
  color: #21449a;
}

.schoolhub-button-outline:hover {
  background: #eef4ff;
  border-color: #21449a;
  color: #21449a;
}


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

.schoolhub-menu-toggle {
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  padding: 0;
  border: 1px solid #dce5f0;
  border-radius: 8px;

  background: #ffffff;
  color: #0b3157;

  font-size: 1.15rem;
  line-height: 1;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  box-shadow: none;
  transform: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.schoolhub-menu-toggle:hover,
.schoolhub-menu-toggle:focus,
.schoolhub-menu-toggle:focus-visible,
.schoolhub-menu-toggle:active {
  background: #ffffff;
  color: #0b3157;
  border-color: #dce5f0;
  box-shadow: none;
  transform: none;
}

.schoolhub-menu-toggle i,
.schoolhub-menu-toggle svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  color: currentColor;
  font-size: 1.15rem;
}

.schoolhub-menu-toggle span {
  color: currentColor;
}


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

.schoolhub-mobile-menu {
  background: #ffffff;
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #edf1f7;
  box-shadow: 0 8px 20px rgba(15, 43, 77, 0.06);
}

.schoolhub-mobile-menu nav {
  gap: 0;
}

.schoolhub-mobile-menu nav a {
  display: flex;
  align-items: center;

  min-height: 48px;
  padding: 0.7rem 0;

  border-bottom: 1px solid #edf1f7;

  color: #162b43;
  text-decoration: none;

  font-family: "Cairo", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.schoolhub-mobile-menu nav a:last-child {
  border-bottom: 0;
}

.schoolhub-mobile-menu nav a:hover {
  color: #21449a;
}

.schoolhub-mobile-menu-cta {
  display: flex;
}


/* =========================================================
   HERO
   ========================================================= */

.schoolhub-hero {
  background: var(--hero-bg);
}

.schoolhub-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.45rem 0.8rem;

  border: 1px solid rgba(30, 58, 138, 0.12);
  border-radius: var(--radius-sm);

  background: var(--white);
  color: var(--primary);

  font-size: 0.82rem;
  font-weight: 700;

  margin-bottom: 1.5rem;
}

.schoolhub-status-badge i {
  color: var(--gold);
  font-size: 0.72rem;
}

.schoolhub-hero-inner h1 {
  max-width: 720px;

  margin-bottom: 1.1rem;

  color: var(--primary-dark);

  font-size: clamp(2.25rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.schoolhub-hero-description {
  max-width: 670px;

  margin-bottom: 1.8rem;

  color: var(--text-gray);

  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.9;
}

.schoolhub-hero-actions .schoolhub-button {
  min-width: 165px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.schoolhub-section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--border);
}

.schoolhub-section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.schoolhub-section-heading h2,
.schoolhub-how-heading h2 {
  margin-bottom: 0;
  color: var(--text-dark);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.schoolhub-section-heading p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--text-gray);
  font-size: 0.92rem;
  line-height: 1.9;
}

.schoolhub-section-eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary-text);
  font-size: 0.8rem;
  font-weight: 800;
}


/* =========================================================
   COURSE CARDS
   ========================================================= */

.schoolhub-course-card {
  display: flex;
  flex-direction: column;

  min-height: 230px;
  padding: clamp(1.2rem, 2.4vw, 1.65rem);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  background: var(--white);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.schoolhub-course-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.schoolhub-course-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.schoolhub-category-badge {
  display: inline-flex;
  align-items: center;

  min-height: 29px;
  padding: 0.3rem 0.7rem;

  border-radius: var(--radius-pill);

  font-size: 0.74rem;
  font-weight: 800;
}

.schoolhub-category-math {
  background: var(--math-bg);
  color: var(--math-text);
}

.schoolhub-category-science {
  background: var(--science-bg);
  color: var(--science-text);
}

.schoolhub-category-history {
  background: var(--history-bg);
  color: var(--history-text);
}

.schoolhub-category-summer {
  background: var(--teal-bg);
  color: var(--teal-text);
}

.schoolhub-course-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  flex: 0 0 auto;

  border-radius: 12px;
  font-size: 1rem;
}

.schoolhub-course-icon-math {
  background: var(--math-bg);
  color: var(--math-text);
}

.schoolhub-course-icon-science {
  background: var(--science-bg);
  color: var(--science-text);
}

.schoolhub-course-icon-history {
  background: var(--history-bg);
  color: var(--history-text);
}

.schoolhub-course-icon-summer {
  background: var(--teal-bg);
  color: var(--teal-sub);
}

.schoolhub-course-card h3 {
  margin-bottom: 0.7rem;
  color: var(--text-dark);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.5;
}

.schoolhub-course-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;

  margin-top: auto;
  margin-bottom: 0;

  color: var(--text-gray);
  font-size: 0.78rem;
  line-height: 1.6;
}


/* =========================================================
   SUMMER
   ========================================================= */

.schoolhub-summer-card {
  background: var(--teal-bg);
  border-color: rgba(15, 110, 86, 0.12);
}

.schoolhub-summer-card:hover {
  border-color: rgba(15, 110, 86, 0.28);
}

.schoolhub-summer-card h3 {
  color: var(--teal-text);
}


/* =========================================================
   SHOW MORE
   ========================================================= */

.schoolhub-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.65rem;

  color: var(--primary);

  font-size: 0.8rem;
  font-weight: 800;

  transition:
    transform 180ms ease,
    color 180ms ease;
}

.schoolhub-show-more:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.schoolhub-show-more-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;

  border: 1px solid var(--border-strong);
  border-radius: 50%;

  background: var(--white);
  color: var(--primary);

  font-size: 0.9rem;

  box-shadow: var(--shadow-soft);
}

.schoolhub-show-more-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;

  min-height: 48px;
  padding: 0.75rem 1.25rem;

  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);

  background: var(--white);
  color: var(--primary);

  font-size: 0.88rem;
  font-weight: 800;
}


/* =========================================================
   HOW IT WORKS
   ========================================================= */

.schoolhub-how-section {
  background: var(--white);
  border-bottom: 0;
}

.schoolhub-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;

  padding: 1.1rem;

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  background: var(--surface);
}

.schoolhub-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;
  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--primary);
  color: var(--white);

  font-size: 0.85rem;
  font-weight: 800;
}

.schoolhub-step-item h3 {
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.schoolhub-step-item p {
  margin-bottom: 0;
  color: var(--text-gray);
  font-size: 0.8rem;
  line-height: 1.8;
}


/* =========================================================
   FOOTER
   ========================================================= */

.schoolhub-footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1rem;

  background: #07345d;
  color: #ffffff;
}

.schoolhub-footer-main {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.schoolhub-footer-brand,
.schoolhub-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.schoolhub-footer-logo {
  margin-bottom: 1rem;
}

.schoolhub-footer-logo .schoolhub-brand-school {
  color: #ffffff;
}

.schoolhub-footer-logo .schoolhub-brand-hub {
  color: #f2a900;
}

.schoolhub-footer-brand > p {
  max-width: 340px;
  margin: 0;

  color: #c9d8e8;

  font-family: "Cairo", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.9;
}

.schoolhub-footer-column h3 {
  margin: 0 0 1rem;

  color: #ffffff;

  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.schoolhub-footer-column nav {
  display: grid;
  gap: 0.55rem;
}

.schoolhub-footer-column a {
  color: #c9d8e8;
  text-decoration: none;

  font-family: "Cairo", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;

  transition: color 0.2s ease;
}

.schoolhub-footer-column a:hover {
  color: #ffffff;
}

.schoolhub-footer-column > a[href^="mailto:"] {
  direction: ltr;
}

.schoolhub-social-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.schoolhub-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;

  color: #ffffff;

  font-size: 0.8rem;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.schoolhub-social-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
}

.schoolhub-footer-bottom {
  padding-block: 1rem;

  border-top: 1px solid rgba(255, 255, 255, 0.12);

  text-align: center;
}

.schoolhub-footer-bottom p {
  margin: 0;

  color: #9fb5cb;

  font-family: "Cairo", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
}


/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */

.schoolhub-mobile-bottom-nav {
  background: #ffffff;

  border-top: 1px solid #e4eaf2;

  box-shadow: 0 -4px 18px rgba(15, 43, 77, 0.08);
}

.schoolhub-bottom-nav-item {
  position: relative;

  color: #718096;
  text-decoration: none;

  font-family: "Cairo", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.schoolhub-bottom-nav-item:hover {
  color: #21449a;
}

.schoolhub-bottom-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  margin-bottom: 0.15rem;

  font-size: 0.9rem;
}

.schoolhub-bottom-nav-active {
  color: #21449a;
  font-weight: 700;
}

.schoolhub-bottom-nav-active .schoolhub-bottom-nav-icon {
  color: #21449a;
}


/* =========================================================
   FOCUS STATES
   ========================================================= */

.schoolhub-page a:focus-visible,
.schoolhub-page button:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.55);
  outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .schoolhub-page *,
  .schoolhub-page *::before,
  .schoolhub-page *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }

}


/* =========================================================
   MOBILE FOOTER
   ========================================================= */

@media (max-width: 767px) {

  .schoolhub-footer-main {
    gap: 2.5rem;
  }

  .schoolhub-footer-brand,
  .schoolhub-footer-column {
    align-items: center;
  }

  .schoolhub-footer-brand > p {
    max-width: 300px;
  }

  .schoolhub-footer-column nav {
    justify-items: center;
  }

  .schoolhub-social-links {
    justify-content: center;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .schoolhub-logo-image {
    height: 38px;
    max-width: 150px;
  }

  .schoolhub-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .schoolhub-brand-name {
    font-size: 1.25rem;
  }

  .schoolhub-menu-toggle {
    width: 38px;
    height: 38px;
  }

  .schoolhub-mobile-bottom-nav {
    min-height: 62px;
  }

  .schoolhub-bottom-nav-item {
    font-size: 0.64rem;
  }

}

  .tutor-pagination ul.tutor-pagination-numbers .page-numbers.prev, .tutor-pagination ul.tutor-pagination-numbers .page-numbers.next{
          transform: rotate(180deg);
  }

.elementor-1575 .search-form .ast-search-submit{
    background-color: #21449a;
}

.elementor-1575 .search-form .ast-search-submit i, .elementor-1575 .search-form .ast-search-submit svg{
    margin-top: 7px;
}