/* Homepage (Step 6) — body.home-page only */
body.home-page {
  --home-red: #A6192E;
  --home-red-dark: #8B1526;
  --home-ink: #071330;
  --home-muted: #5A6680;
  --home-line: #E3E7EF;
  --home-soft: #F2F4F8;
  --home-charcoal: #2B2F36;
}

body.home-page .home-main {
  color: var(--home-ink);
}

body.home-page .wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* —— Hero —— */
body.home-page .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--home-red);
  color: #fff;
  padding: 88px 0 48px;
}

body.home-page .home-hero__decor::before,
body.home-page .home-hero__decor::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

body.home-page .home-hero__decor::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
}

body.home-page .home-hero__decor::after {
  width: 280px;
  height: 280px;
  bottom: 40px;
  left: 55%;
  opacity: 0.7;
}

body.home-page .home-hero__inner {
  position: relative;
  z-index: 1;
}

body.home-page .home-hero__badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

body.home-page .home-hero__title {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 18ch;
  color: #fff;
}

body.home-page .home-hero__lede {
  margin: 20px 0 30px;
  font-size: 19px;
  line-height: 1.55;
  max-width: 640px;
  color: #FBEDEE;
}

body.home-page .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.home-page .home-hero__btn {
  padding: 15px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 0;
}

body.home-page .home-hero__btn.btn-white {
  background: #fff;
  color: var(--home-ink);
}

body.home-page .home-hero__btn.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  background: transparent;
}

body.home-page .home-hero__btn.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.home-page .home-hero__find {
  margin-top: 64px;
  padding: 22px 24px;
  background: rgba(60, 8, 16, 0.42);
}

body.home-page .home-hero__find-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

body.home-page .home-hero__find-title {
  flex: 0 0 auto;
  margin: 0 12px 0 0;
  font-family: "Exo 2", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

body.home-page .home-hero__find-form input[name="q"] {
  flex: 2 1 280px;
  min-width: 0;
}

body.home-page .home-hero__find-form .home-hero__area {
  flex: 1 1 220px;
  min-width: 0;
}

body.home-page .home-hero__find-form select[name="level"] {
  flex: 0 1 160px;
  min-width: 120px;
}

body.home-page .home-hero__search-btn {
  flex: 0 0 160px;
  padding: 13px 20px;
  min-height: 48px;
  background: #fff !important;
  color: #A6192E !important;
  border: 1px solid #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 0;
}

body.home-page .home-hero__search-btn:hover {
  background: #f7f7f7 !important;
  color: #861426 !important;
}

body.home-page .home-hero__find-form input,
body.home-page .home-hero__find-form select {
  width: 100%;
  min-height: 48px;
  padding: 13px;
  border: 0;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--home-ink);
}

/* —— Section titles —— */
body.home-page .home-sec-title {
  margin: 0 0 16px;
  font-family: "Exo 2", sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid #a6192e;
  color: var(--home-ink);
}

body.home-page .home-sec-title--left {
  text-align: left;
}

body.home-page .home-study__copy > .home-sec-title {
  align-self: flex-start;
  width: fit-content;
}

/* —— Discover —— */
body.home-page .home-discover {
  padding: 72px 0;
  background: #fff;
}

body.home-page .home-discover__intro {
  margin: 0 auto 36px;
  max-width: 640px;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--home-muted);
}

body.home-page .home-discover__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

body.home-page .home-discover-tile {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

body.home-page .home-discover-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 19, 48, 0.82) 0%, rgba(7, 19, 48, 0.35) 100%);
}

body.home-page .home-discover-tile > * {
  position: relative;
  z-index: 1;
}

body.home-page .home-discover-tile__line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--home-red);
  margin-bottom: 12px;
}

body.home-page .home-discover-tile__label {
  font-family: "Exo 2", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* —— Study —— */
body.home-page .home-study {
  background: var(--home-soft);
}

body.home-page .home-study__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

body.home-page .home-study__copy {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

body.home-page .home-study__copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--home-muted);
}

body.home-page .home-study__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-top: 12px;
}

body.home-page .home-study__links a,
body.home-page .home-study__advisor {
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--home-ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

body.home-page .home-study__links a:hover,
body.home-page .home-study__advisor:hover {
  color: var(--home-red);
}

body.home-page .home-study__media {
  position: relative;
  min-height: 320px;
  overflow: visible;
  isolation: isolate;
}

body.home-page .home-study__photo {
  position: relative;
  min-height: 320px;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

body.home-page .home-study__cert-thumb {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 170px;
  height: auto;
  max-height: none;
  object-fit: contain;
  z-index: 2;
  background: #fff;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(7, 19, 48, 0.35);
  display: block;
}

/* —— Subject areas —— */
body.home-page .home-areas {
  padding: 72px 0;
  background: #fff;
}

body.home-page .home-areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
}

body.home-page .home-area-tile {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 110px;
  padding: 22px 20px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: #fff;
  color: var(--home-ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

body.home-page a.home-area-tile:hover {
  background: #fafbfc;
}

body.home-page .home-area-tile__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

body.home-page .home-area-tile__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--home-muted);
}

body.home-page .home-area-tile__arrow {
  color: var(--home-red);
  font-weight: 700;
}

body.home-page .home-area-tile--cta {
  background: var(--home-red);
  color: #fff;
}

body.home-page .home-area-tile--cta .home-area-tile__meta {
  color: rgba(255, 255, 255, 0.9);
}

body.home-page .home-area-tile--cta .home-area-tile__arrow {
  color: #fff;
}

/* —— Featured —— */
body.home-page .home-featured {
  padding: 72px 0;
  background: var(--home-soft);
}

body.home-page .home-featured__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

body.home-page .home-featured-card {
  background: #fff;
  border: 1px solid var(--home-line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.home-page .home-featured-card__media {
  height: 180px;
  overflow: hidden;
  background: var(--home-ink);
}

body.home-page .home-featured-card__media picture,
body.home-page .home-featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.home-page .home-featured-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

body.home-page .home-featured-card__label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--home-red);
  text-transform: uppercase;
}

body.home-page .home-featured-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

body.home-page .home-featured-card__fee {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

body.home-page .home-featured-card__link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  color: var(--home-red);
}

/* —— Audience split —— */
body.home-page .home-audience__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

body.home-page .home-audience__panel {
  padding: 56px 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

body.home-page .home-audience__panel::before {
  content: "";
  position: absolute;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body.home-page .home-audience__panel > * {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

body.home-page .home-audience__panel--charcoal {
  background: var(--home-charcoal);
}

body.home-page .home-audience__panel--charcoal::before {
  background: rgba(255, 255, 255, 0.05);
}

body.home-page .home-audience__panel--red {
  background: var(--home-red);
}

body.home-page .home-audience__panel--red::before {
  background: rgba(0, 0, 0, 0.12);
}

body.home-page .home-audience__panel .btn-ghost-light {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  align-self: center;
}

body.home-page .home-audience__panel .btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

body.home-page .home-audience__heading {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

body.home-page .home-audience__panel p {
  margin: 0;
  line-height: 1.55;
  max-width: 28rem;
  color: #e6e1db;
}

/* —— Stats —— */
body.home-page .home-stats {
  padding: 56px 0;
  background: var(--home-soft);
  border-top: 1px solid var(--home-line);
}

body.home-page .home-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

body.home-page .home-stat strong {
  display: block;
  font-family: "Exo 2", sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  color: #a6192e;
}

body.home-page .home-stat span {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  color: #4a4542;
}

/* —— Enquiry —— */
body.home-page .home-enquiry {
  padding: 72px 0;
  background: #fff;
}

body.home-page .home-enquiry__layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.4fr);
  gap: 48px;
  align-items: start;
}

body.home-page .home-enquiry__kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--home-red);
}

body.home-page .home-enquiry__title {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
}

body.home-page .home-enquiry__contact {
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  color: var(--home-muted);
}

body.home-page .home-enquiry__contact a {
  color: var(--home-red);
  font-weight: 600;
}

body.home-page .home-enquiry-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 20px;
}

body.home-page .home-enquiry-form button[type="submit"] {
  background: var(--home-red) !important;
  border-radius: 3px !important;
}

body.home-page .home-enquiry-form button[type="submit"]:hover {
  background: var(--home-red-dark) !important;
}

/* —— Responsive —— */
@media (max-width: 699px) {
  body.home-page .home-hero__find-form {
    flex-direction: column;
    align-items: stretch;
  }
  body.home-page .home-hero__find-title {
    margin: 0 0 4px;
  }
  body.home-page .home-hero__find-form input[name="q"],
  body.home-page .home-hero__find-form .home-hero__area,
  body.home-page .home-hero__find-form select[name="level"],
  body.home-page .home-hero__search-btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 960px) {
  body.home-page .home-discover__tiles {
    grid-template-columns: 1fr;
  }
  body.home-page .home-study__grid,
  body.home-page .home-audience__split {
    grid-template-columns: 1fr;
  }
  body.home-page .home-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  body.home-page .home-enquiry__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.home-page .home-study__links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  body.home-page .home-study__photo {
    min-height: 280px;
    display: flex;
    flex-direction: column;
  }
  body.home-page .home-study__cert-thumb {
    position: static;
    width: 200px;
    margin: 0 auto 24px;
    order: 2;
    display: block;
    bottom: auto;
    left: auto;
  }
}