﻿/* =========================
   How It Works Page - HOS
========================= */

.hos-how-page {
  margin: 0 0 52px;
}

  .hos-how-page .page-body {
    display: block;
  }

/* =========================
   Shared Layout
========================= */

.hos-how-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.hos-how-section {
  padding: 40px 0;
}

.hos-how-kicker,
.hos-how-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0b5cab;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hos-how-kicker--light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hos-how-centerHead {
  max-width: 840px;
  margin: 0 auto 28px;
  text-align: center;
}

  .hos-how-centerHead h2 {
    margin: 0 0 14px;
    color: #16324f;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.14;
    font-weight: 800;
  }

  .hos-how-centerHead p {
    margin: 0;
    color: #4f6478;
    font-size: 17px;
    line-height: 1.75;
  }

/* =========================
   Buttons
========================= */

.hos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

  .hos-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
  }

.hos-btn--primary {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.18);
}

  .hos-btn--primary:hover {
    background: #14803c;
    border-color: #14803c;
    color: #fff;
  }

.hos-btn--secondary {
  background: #fff;
  border-color: #cfe0f4;
  color: #0b5cab;
}

  .hos-btn--secondary:hover {
    border-color: #0b5cab;
    color: #0b5cab;
  }

.hos-btn--light {
  background: #fff;
  border-color: #fff;
  color: #0b5cab;
}

  .hos-btn--light:hover {
    background: #f8fbff;
    border-color: #fff;
    color: #0b5cab;
  }

.hos-how-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hos-how-actions--inline {
  justify-content: flex-start;
}

.hos-how-actions--center {
  justify-content: center;
}

/* =========================
   Hero
========================= */

.hos-how-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 30px;
  background: radial-gradient(circle at top left, rgba(11, 92, 171, 0.12), transparent 34%), linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-bottom: 1px solid #e6edf5;
}

.hos-how-hero__inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.78fr);
  gap: 30px;
  align-items: center;
}

.hos-how-title {
  margin: 0 0 16px;
  color: #16324f;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.02em;
  max-width: 840px;
}

.hos-how-subtitle {
  max-width: 760px;
  margin: 0;
  color: #4f6478;
  font-size: 18px;
  line-height: 1.78;
}

.hos-how-hero__panel {
  background: #fff;
  border: 1px solid #dbe7f3;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 22px 50px rgba(15, 36, 63, 0.08);
}

.hos-how-stat + .hos-how-stat {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e6edf5;
}

.hos-how-stat__label {
  color: #6d8297;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.hos-how-stat__value {
  color: #16324f;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
}

/* =========================
   Steps
========================= */

.hos-how-section--intro {
  padding-top: 34px;
}

.hos-how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.hos-how-step,
.hos-how-featureCard,
.hos-how-split__main,
.hos-how-split__side,
.hos-how-faqItem {
  background: #fff;
  border: 1px solid #e5edf6;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(15, 36, 63, 0.05);
}

.hos-how-step {
  padding: 30px;
}

.hos-how-step__num {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b5cab;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hos-how-step h3 {
  margin: 0 0 12px;
  color: #16324f;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.hos-how-step p {
  margin: 0;
  color: #4f6478;
  font-size: 16px;
  line-height: 1.75;
}

/* =========================
   Reused homepage component spacing
========================= */

.hos-hiw {
  margin: 0;
}

/* =========================
   Features
========================= */

.hos-how-featureGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.hos-how-featureCard {
  padding: 26px 24px;
}

  .hos-how-featureCard h3 {
    margin: 0 0 10px;
    color: #16324f;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
  }

  .hos-how-featureCard p {
    margin: 0;
    color: #4f6478;
    font-size: 15px;
    line-height: 1.72;
  }

/* =========================
   Split Section
========================= */

.hos-how-section--alt {
  background: #f8fbff;
}

.hos-how-split {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.hos-how-split__main,
.hos-how-split__side {
  padding: 28px;
}

  .hos-how-split__main h2,
  .hos-how-split__side h3 {
    margin: 0 0 12px;
    color: #16324f;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
  }

  .hos-how-split__side h3 {
    font-size: 24px;
  }

  .hos-how-split__main p {
    margin: 0 0 14px;
    color: #4f6478;
    font-size: 16px;
    line-height: 1.75;
  }

.hos-how-checkList {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

  .hos-how-checkList li {
    position: relative;
    padding-left: 26px;
    margin: 0 0 12px;
    color: #4f6478;
    line-height: 1.7;
    font-size: 15px;
  }

    .hos-how-checkList li::before {
      content: "✓";
      position: absolute;
      top: 1px;
      left: 0;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #eaf7ef;
      color: #16924a;
      font-size: 12px;
      font-weight: 800;
      line-height: 18px;
      text-align: center;
    }

/* =========================
   FAQ Cards
========================= */

.hos-how-faq {
  display: grid;
  gap: 18px;
}

.hos-how-faqItem {
  padding: 26px 24px;
}

  .hos-how-faqItem h3 {
    margin: 0 0 10px;
    color: #16324f;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
  }

  .hos-how-faqItem p {
    margin: 0;
    color: #4f6478;
    font-size: 15px;
    line-height: 1.72;
  }

/* =========================
   CTA
========================= */

.hos-how-cta {
  padding: 22px 0 0;
}

.hos-how-cta__inner {
  background: linear-gradient(135deg, #0b5cab 0%, #0a4c8e 100%);
  border-radius: 28px;
  padding: 44px 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 24px 50px rgba(11, 92, 171, 0.24);
}

  .hos-how-cta__inner h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3.4vw, 42px);
    line-height: 1.12;
    font-weight: 900;
    color: #fff;
  }

  .hos-how-cta__inner p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
  }

/* =========================
   Modal
========================= */

.hos-modal[hidden] {
  display: none !important;
}

.hos-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.hos-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 10000;
}

.hos-modal__content {
  position: relative;
  z-index: 10001;
  width: min(560px, calc(100% - 24px));
  margin: 70px auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  overflow: visible !important;
}

.hos-modal__header {
  padding: 18px 20px;
  border-bottom: 1px solid #e6edf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

  .hos-modal__header h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    color: #16324f;
  }

.hos-modal__close {
  appearance: none;
  border: none;
  background: transparent;
  color: #16324f;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.hos-modal__body {
  padding: 18px 20px 22px;
  overflow: visible !important;
  position: relative;
}

.hos-modal__text {
  margin: 0 0 14px;
  color: #4f6478;
  font-size: 16px;
  line-height: 1.72;
}

.hos-modal__footer {
  margin-top: 14px;
  text-align: center;
}

  .hos-modal__footer a {
    color: #0b5cab;
    font-weight: 700;
    text-decoration: none;
  }

    .hos-modal__footer a:hover {
      text-decoration: underline;
    }

/* Dropdown fix for school search inside modal */
.hos-modal .hos-school-search,
.hos-modal .hos-school-search__form,
.hos-modal .hos-school-search__inputWrap,
.hos-modal .search-box,
.hos-modal form {
  overflow: visible !important;
  position: relative;
}

.hos-modal .hos-school-search__results {
  position: absolute !important;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10020 !important;
  margin-top: 0 !important;
  max-height: 320px;
  overflow-y: auto;
}

/* =========================
   Responsive
========================= */

@media (max-width: 991px) {
  .hos-how-hero__inner,
  .hos-how-steps,
  .hos-how-featureGrid,
  .hos-how-split {
    grid-template-columns: 1fr;
  }

  .hos-how-title {
    font-size: 34px;
  }

  .hos-how-centerHead h2,
  .hos-how-split__main h2,
  .hos-how-cta__inner h2 {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .hos-how-container,
  .hos-how-hero__inner {
    width: min(100% - 24px, 1200px);
  }

  .hos-how-section {
    padding: 30px 0;
  }

  .hos-how-hero {
    padding: 30px 0 24px;
  }

  .hos-how-subtitle,
  .hos-how-centerHead p,
  .hos-how-step p,
  .hos-how-featureCard p,
  .hos-how-split__main p,
  .hos-how-checkList li,
  .hos-how-faqItem p,
  .hos-how-cta__inner p,
  .hos-modal__text {
    font-size: 15px;
    line-height: 1.7;
  }

  .hos-how-step,
  .hos-how-featureCard,
  .hos-how-split__main,
  .hos-how-split__side,
  .hos-how-faqItem {
    padding: 24px;
  }

    .hos-how-step h3,
    .hos-how-featureCard h3,
    .hos-how-faqItem h3,
    .hos-how-split__side h3 {
      font-size: 21px;
    }

  .hos-how-actions,
  .hos-how-actions--inline,
  .hos-how-actions--center {
    flex-direction: column;
    align-items: stretch;
  }

  .hos-btn {
    width: 100%;
  }

  .hos-how-cta__inner {
    padding: 32px 20px;
    border-radius: 22px;
  }

  .hos-modal__content {
    margin: 24px auto;
  }

  .hos-modal__header,
  .hos-modal__body {
    padding-left: 16px;
    padding-right: 16px;
  }
}
