/* Tutor24Hour Control experience — v20C44 redesign.
   The Control homepage owns this composition. Keep selectors scoped to the
   public Control shell/homepage so comparator-specific variants remain free
   to own their own layout and interaction patterns. */

:root {
  --t24-control-ink: #172033;
  --t24-control-muted: #596579;
  --t24-control-brand: #0b57d0;
  --t24-control-brand-strong: #084ea2;
  --t24-control-surface: #ffffff;
  --t24-control-soft: #f5f7fa;
  --t24-control-border: #d7dee8;
  --t24-control-dark: #111827;
  --t24-control-max: 1220px;
}

/* Public navigation */
.t24-public-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--t24-control-border);
}

.t24-public-nav-shell {
  width: min(calc(100% - 32px), 1320px);
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.t24-public-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--t24-control-ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.t24-public-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--t24-control-brand);
  color: #fff;
  font-size: 12px;
  letter-spacing: -.02em;
}

.t24-public-brand-name { font-size: 15px; white-space: nowrap; }

.t24-public-primary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.t24-public-primary > a,
.t24-public-explore-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344054;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.t24-public-primary > a:hover,
.t24-public-primary > a:focus-visible,
.t24-public-explore-trigger:hover,
.t24-public-explore-trigger:focus-visible {
  background: #f2f4f7;
  color: var(--t24-control-ink);
}

.t24-public-explore { position: static; }
.t24-public-explore-trigger::after { display: none; }
.t24-public-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.t24-public-header .t24-public-explore-menu {
  position: absolute;
  inset: 100% auto auto 50%;
  transform: translateX(-50%);
  width: min(850px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 90px));
  overflow: auto;
  margin-top: 8px;
  padding: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 30px;
  border: 1px solid var(--t24-control-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16,24,40,.14);
}

.t24-public-header .t24-public-explore-menu.show { display: grid; }

.t24-public-explore-group {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 3px;
}

.t24-public-explore-featured {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e4e7ec;
}

.t24-public-header .t24-public-explore-group h2 {
  margin: 0 0 7px;
  color: #667085;
  font-size:12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.t24-public-explore-group a {
  display: block;
  min-width: 0;
  padding: 8px;
  border-radius: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.t24-public-explore-group a:hover,
.t24-public-explore-group a:focus-visible { background: #f2f4f7; color: var(--t24-control-brand-strong); }

.t24-public-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.t24-public-explore-primary-mobile { display: none; }

.t24-public-search-disclosure { position: relative; }
.t24-public-search-disclosure > summary {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #344054;
  cursor: pointer;
  list-style: none;
}
.t24-public-search-disclosure > summary::-webkit-details-marker { display: none; }
.t24-public-search-disclosure > summary:hover { background: #f2f4f7; }
.t24-public-search-disclosure > summary svg { width: 19px; height: 19px; }

.t24-public-search-panel {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  width: min(620px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 155px minmax(0,1fr) auto;
  padding: 12px;
  border: 1px solid var(--t24-control-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16,24,40,.14);
}

.t24-public-search-panel select,
.t24-public-search-panel input,
.t24-public-search-panel button {
  min-height: 42px;
  border: 1px solid #cfd7e3;
  font: inherit;
  font-size: 14px;
}
.t24-public-search-panel select { border-radius: 7px 0 0 7px; padding: 0 10px; background: #f8fafc; }
.t24-public-search-panel input { min-width: 0; border-left: 0; border-right: 0; padding: 0 12px; }
.t24-public-search-panel button { padding: 0 16px; border-radius: 0 7px 7px 0; background: var(--t24-control-brand); border-color: var(--t24-control-brand); color: #fff; font-weight: 700; }

.t24-public-language { display: flex; align-items: center; }
.t24-public-language .t24-language-selector { margin: 0; }
.t24-public-signin,
.t24-public-logout button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.t24-public-logout { margin: 0; }
.t24-public-signin:hover,
.t24-public-logout button:hover { background: #f2f4f7; color: var(--t24-control-ink); }
.t24-public-header .t24-public-signup {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 8px;
  background: var(--t24-control-brand);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.t24-public-header .t24-public-signup:hover,
.t24-public-header .t24-public-signup:focus-visible { background: var(--t24-control-brand-strong); color: #fff; }

.t24-public-header a:focus-visible,
.t24-public-header button:focus-visible,
.t24-public-header summary:focus-visible,
.t24-public-header input:focus-visible,
.t24-public-header select:focus-visible,
.t24-home-v2 a:focus-visible,
.t24-home-v2 button:focus-visible,
.t24-home-v2 input:focus-visible {
  outline: 3px solid rgba(11,87,208,.35);
  outline-offset: 2px;
}

/* Homepage */
.t24-home-v2 {
  background: #fff;
  color: var(--t24-control-ink);
  overflow: clip;
}

.t24-home-v2 h1,
.t24-home-v2 h2,
.t24-home-v2 h3,
.t24-home-v2 p { margin-top: 0; }

.t24-home-hero,
.t24-home-subject-finder,
.t24-home-services,
.t24-home-feature-pair,
.t24-home-institutional,
.t24-home-books,
.t24-home-seo {
  width: min(calc(100% - 40px), var(--t24-control-max));
  margin-inline: auto;
}

.t24-home-hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(360px,.78fr);
  align-items: center;
  gap: clamp(44px,6vw,90px);
  padding: clamp(64px,7vw,100px) 0 72px;
}

.t24-home-kicker {
  margin-bottom: 12px;
  color: var(--t24-control-brand-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.t24-home-hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3rem,6vw,5.65rem);
  line-height: .98;
  letter-spacing: -.058em;
  font-weight: 790;
}
.t24-home-hero h1 span { color: var(--t24-control-brand); }
.t24-home-lead {
  max-width: 660px;
  margin-bottom: 30px;
  color: #4b5565;
  font-size: clamp(1.05rem,1.65vw,1.26rem);
  line-height: 1.58;
}
.t24-home-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.t24-home-primary,
.t24-home-secondary {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}
.t24-home-primary { background: var(--t24-control-brand); color: #fff; }
.t24-home-primary:hover { background: var(--t24-control-brand-strong); color: #fff; }
.t24-home-secondary { border: 1px solid #cfd7e3; color: var(--t24-control-ink); background: #fff; }
.t24-home-secondary:hover { border-color: #98a2b3; background: #f8fafc; color: var(--t24-control-ink); }
.t24-home-quick-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; }
.t24-home-quick-links a { color: #475467; font-size: 13px; font-weight: 650; text-underline-offset: 3px; }

.t24-home-hero-media { position: relative; margin: 0; }
.t24-home-hero-media::before {
  content: "";
  position: absolute;
  inset: 38px -24px -28px 38px;
  z-index: 0;
  border-radius: 22px;
  background: #eaf2ff;
}
.t24-home-hero-media > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 18px;
}
.t24-home-hero-media figcaption {
  position: absolute;
  z-index: 2;
  left: -28px;
  bottom: 30px;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 26px rgba(16,24,40,.12);
  color: #344054;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.t24-home-hero-media figcaption svg { width: 20px; flex: 0 0 20px; color: var(--t24-control-brand); }

.t24-home-subject-finder {
  display: grid;
  grid-template-columns: minmax(150px,.6fr) minmax(300px,1fr);
  gap: 18px 40px;
  align-items: end;
  padding: 30px;
  border: 1px solid var(--t24-control-border);
  border-radius: 12px;
  background: #fff;
}
.t24-home-subject-finder h2 { margin-bottom: 0; font-size: clamp(1.35rem,2vw,1.75rem); letter-spacing: -.025em; }
.t24-home-subject-search { display: grid; grid-template-columns: minmax(0,1fr) 46px; }
.t24-home-subject-search input,
.t24-home-subject-search button { min-height: 46px; border: 1px solid #cfd7e3; background: #fff; }
.t24-home-subject-search input { min-width: 0; padding: 0 14px; border-radius: 8px 0 0 8px; font-size: 14px; }
.t24-home-subject-search button { border-left: 0; border-radius: 0 8px 8px 0; color: var(--t24-control-brand); }
.t24-home-subject-search button svg { width: 19px; }
.t24-home-subjects { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.t24-home-subjects a { padding: 7px 11px; border: 1px solid #d7dee8; border-radius: 7px; color: #344054; font-size: 13px; font-weight: 650; text-decoration: none; }
.t24-home-subjects a:hover { background: #f5f7fa; color: var(--t24-control-brand-strong); }

.t24-home-services,
.t24-home-institutional,
.t24-home-seo { padding: 108px 0 0; }
.t24-home-section-heading {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(300px,.72fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}
.t24-home-section-heading h2 { margin-bottom: 0; font-size: clamp(2.15rem,4vw,3.5rem); line-height: 1.04; letter-spacing: -.045em; }
.t24-home-section-heading h2 span { color: var(--t24-control-brand); }
.t24-home-section-heading > p { margin-bottom: 0; color: #596579; font-size: 16px; line-height: 1.65; }

.t24-home-service-list { border-top: 1px solid #cfd7e3; }
.t24-home-service {
  display: grid;
  grid-template-columns: 55px 52px minmax(0,1fr) 30px;
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 20px 2px;
  border-bottom: 1px solid #dfe4ec;
  color: var(--t24-control-ink);
  text-decoration: none;
}
.t24-home-service:hover { background: #fafbfc; }
.t24-home-service-number { color: #98a2b3; font: 700 12px/1 var(--t24-font-mono, monospace); }
.t24-home-service-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 9px; background: #edf4ff; color: var(--t24-control-brand); }
.t24-home-service-icon svg { width: 21px; }
.t24-home-service-copy { display: grid; grid-template-columns: minmax(170px,.45fr) minmax(0,1fr); gap: 24px; align-items: center; }
.t24-home-service-copy strong { font-size: clamp(1.1rem,2vw,1.42rem); letter-spacing: -.02em; }
.t24-home-service-copy small { max-width: 630px; color: #667085; font-size: 14px; line-height: 1.55; }
.t24-home-service-arrow { color: #667085; font-size: 20px; }

.t24-home-feature-pair {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
  padding-top: 108px;
}
.t24-home-feature-card { position: relative; overflow: hidden; min-height: 350px; border-radius: 14px; background: #111827; color: #fff; text-decoration: none; }
.t24-home-feature-card img { display: block; width: 100%; height: 100%; min-height: 350px; object-fit: cover; transition: transform .25s ease; }
.t24-home-feature-card::after { content:""; position:absolute; inset:45% 0 0; background: linear-gradient(to bottom, transparent, rgba(3,7,18,.82)); }
.t24-home-feature-card > span { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: grid; gap: 5px; }
.t24-home-feature-card strong { font-size: 1.35rem; }
.t24-home-feature-card small { max-width: 48ch; color: rgba(255,255,255,.86); line-height: 1.45; }
.t24-home-feature-card:hover img { transform: scale(1.015); }

.t24-home-institutional-grid,
.t24-home-seo-links { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-top: 1px solid #d7dee8; border-bottom: 1px solid #d7dee8; }
.t24-home-institutional-grid a,
.t24-home-seo-links a { min-height: 170px; padding: 22px 18px; border-right: 1px solid #d7dee8; color: var(--t24-control-ink); text-decoration: none; }
.t24-home-institutional-grid a:last-child,
.t24-home-seo-links a:last-child { border-right: 0; }
.t24-home-institutional-grid a:hover,
.t24-home-seo-links a:hover { background: #f8fafc; }
.t24-home-institutional-grid strong,
.t24-home-institutional-grid span,
.t24-home-seo-links strong,
.t24-home-seo-links span { display: block; }
.t24-home-institutional-grid strong,
.t24-home-seo-links strong { margin-bottom: 10px; font-size: 15px; }
.t24-home-institutional-grid span,
.t24-home-seo-links span { color: #667085; font-size: 13px; line-height: 1.5; }

.t24-home-books {
  margin-top: 108px;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,.75fr);
  align-items: center;
  gap: 50px;
  padding: clamp(42px,6vw,72px);
  border-radius: 16px;
  background: var(--t24-control-dark);
  color: #fff;
}
.t24-home-books .t24-home-kicker { color: #8fb8ff; }
.t24-home-books h2 { margin-bottom: 16px; font-size: clamp(2.25rem,4vw,3.8rem); letter-spacing: -.045em; }
.t24-home-books p { max-width: 620px; margin-bottom: 24px; color: #c9d2df; font-size: 16px; line-height: 1.6; }
.t24-home-books-copy > a { color: #fff; font-weight: 750; text-underline-offset: 4px; }
.t24-home-books-visual { min-height: 190px; display: flex; align-items: end; justify-content: center; gap: 10px; }
.t24-home-books-visual span { width: 58px; height: 170px; border-radius: 4px 4px 2px 2px; background: #4b76c4; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transform: rotate(-5deg); }
.t24-home-books-visual span:nth-child(2) { height: 195px; background: #d99a40; transform: rotate(2deg); }
.t24-home-books-visual span:nth-child(3) { height: 155px; background: #4f9b78; transform: rotate(7deg); }
.t24-home-books-visual span:nth-child(4) { height: 185px; background: #a56a90; transform: rotate(-1deg); }

.t24-home-seo { padding-bottom: 110px; }

/* Keep every main product visible on laptop and tablet layouts. */
@media (min-width: 761px) and (max-width: 1366px) {
  .t24-public-nav-shell { flex-wrap: wrap; gap: 6px 16px; padding-block: 10px; }
  .t24-public-primary { order: 3; flex: 1 0 100%; flex-wrap: wrap; }
  .t24-public-primary > a, .t24-public-explore-trigger { min-height: 44px; padding-inline: 10px; }
  .t24-public-header .t24-public-language { display: flex; }
  .t24-public-header .t24-public-explore-menu { max-height: min(680px, 60dvh); }
}

@media (max-width: 1180px) {
  .t24-public-nav-shell { gap: 12px; }
  .t24-public-language { display: none; }
  .t24-home-institutional-grid,
  .t24-home-seo-links { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .t24-home-institutional-grid a:nth-child(3),
  .t24-home-seo-links a:nth-child(3) { border-right: 0; }
}

@media (max-width: 960px) {
  .t24-public-nav-shell { min-height: 62px; }
  .t24-public-explore-featured { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .t24-public-header .t24-public-explore-menu { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .t24-home-hero { min-height: 0; grid-template-columns: 1fr 340px; gap: 36px; padding-top: 56px; }
  .t24-home-hero h1 { font-size: clamp(3rem,7vw,4.7rem); }
  .t24-home-service-copy { grid-template-columns: 1fr; gap: 5px; }
  .t24-home-section-heading { grid-template-columns: 1fr; gap: 12px; }
  .t24-home-books { grid-template-columns: 1fr .55fr; padding: 46px; }
}

@media (max-width: 760px) {
  .t24-public-explore-primary-mobile { display: grid; }
  .t24-public-nav-shell { width: min(calc(100% - 20px),1320px); gap: 7px; }
  .t24-public-brand-name { display: none; }
  .t24-public-primary { margin-left: 2px; }
  .t24-public-primary > a { display: none; }
  .t24-public-primary > .t24-public-explore { display: block; }
  .t24-public-explore-trigger { min-height: 40px; padding: 0 8px; }
  .t24-public-header .t24-public-explore-menu { width: calc(100vw - 20px); max-height: calc(100dvh - 80px); grid-template-columns: 1fr; padding: 18px; }
  .t24-public-explore-featured { grid-template-columns: 1fr 1fr; }
  .t24-public-signin { display: inline-flex; padding-inline: 6px; font-size: 12px; }
  .t24-public-header .t24-public-signup { min-height: 38px; padding-inline: 11px; font-size: 12px; }
  .t24-public-search-panel { position: fixed; top: 62px; left: 10px; right: 10px; width: auto; grid-template-columns: 1fr 46px; }
  .t24-public-search-panel select { grid-column: 1/-1; border-radius: 7px 7px 0 0; }
  .t24-public-search-panel input { border-left: 1px solid #cfd7e3; border-right: 0; border-radius: 0 0 0 7px; }
  .t24-public-search-panel button { overflow: hidden; width: 46px; padding: 0; border-radius: 0 0 7px 0; font-size: 0; }
  .t24-public-search-panel button::before { content: "⌕"; font-size: 20px; }
  .t24-home-hero,
  .t24-home-subject-finder,
  .t24-home-services,
  .t24-home-feature-pair,
  .t24-home-institutional,
  .t24-home-books,
  .t24-home-seo { width: min(calc(100% - 28px), var(--t24-control-max)); }
  .t24-home-hero { grid-template-columns: 1fr; gap: 42px; padding: 48px 0 54px; }
  .t24-home-hero h1 { font-size: clamp(2.75rem,13vw,4.3rem); }
  .t24-home-hero-media { width: min(100%,520px); }
  .t24-home-hero-media figcaption { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .t24-home-subject-finder { grid-template-columns: 1fr; padding: 22px; }
  .t24-home-subjects { grid-column: auto; }
  .t24-home-services,
  .t24-home-institutional,
  .t24-home-seo { padding-top: 76px; }
  .t24-home-service { grid-template-columns: 35px 46px minmax(0,1fr) 24px; gap: 11px; min-height: 104px; }
  .t24-home-service-copy { grid-template-columns: 1fr; }
  .t24-home-feature-pair { grid-template-columns: 1fr; padding-top: 76px; }
  .t24-home-institutional-grid,
  .t24-home-seo-links { grid-template-columns: 1fr; }
  .t24-home-institutional-grid a,
  .t24-home-seo-links a { min-height: 0; border-right: 0; border-bottom: 1px solid #d7dee8; padding: 18px 4px; }
  .t24-home-institutional-grid a:last-child,
  .t24-home-seo-links a:last-child { border-bottom: 0; }
  .t24-home-books { grid-template-columns: 1fr; margin-top: 76px; padding: 36px 26px; }
  .t24-home-books-visual { min-height: 150px; }
  .t24-home-books-visual span { height: 130px; width: 46px; }
  .t24-home-books-visual span:nth-child(2) { height: 150px; }
  .t24-home-books-visual span:nth-child(3) { height: 120px; }
  .t24-home-books-visual span:nth-child(4) { height: 142px; }
  .t24-home-seo { padding-bottom: 76px; }
}

@media (max-width: 480px) {
  .t24-public-header .t24-public-signup { padding-inline: 9px; }
  .t24-home-hero-actions > a { width: 100%; }
  .t24-home-service { grid-template-columns: 34px minmax(0,1fr) 22px; }
  .t24-home-service-icon { display: none; }
  .t24-home-feature-card,
  .t24-home-feature-card img { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .t24-home-feature-card img { transition: none; }
}
