/* Homepage only. Shared header, footer and other PHP pages keep their existing styles. */
#homepage {
  --home-ink: #303d45;
  --home-muted: #65727c;
  --home-line: #e8ecee;
  --home-red: #cf334b;
  --home-soft: #f7f9fa;
  color: var(--home-ink);
  background: #fff;
  font-family: "Poppins", sans-serif;
  line-height: 1.75;
}

#homepage .container {
  max-width: 1160px;
  padding-inline: 24px;
}
#homepage section {
  padding-block: 60px;
  margin-block: 0 !important;
  scroll-margin-top: 100px;
}
#homepage :is(h1, h2, h3, h4, h5, h6) {
  color: var(--home-ink);
  font-family: inherit;
}
#homepage h2 {
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 650 !important;
  letter-spacing: -1px;
  line-height: 1.35;
}
#homepage .muted,
#homepage .text-muted {
  color: var(--home-muted) !important;
}
#homepage img {
  max-width: 100%;
}
#homepage a:focus-visible,
#homepage button:focus-visible {
  outline: 3px solid #316bcc;
  outline-offset: 5px;
}

#homepage .btn-main,
#homepage .btn-outline-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--home-ink);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: none;
  transition:
    background-color 0.18s,
    border-color 0.18s,
    color 0.18s;
}
#homepage .btn-main {
  background: var(--home-red);
  border-color: var(--home-red);
  color: #fff;
}
#homepage .btn-main:hover {
  background: #b3233c;
  border-color: #b3233c;
  transform: none;
}
#homepage .home-download-button {
  background: linear-gradient(115deg, #77cef1, #79e0e5);
  border-color: #69cadf;
  color: #123e50;
}
#homepage .home-download-button:hover {
  background: linear-gradient(115deg, #64c3e8, #62d4db);
  border-color: #54bcd1;
  color: #123e50;
}
#homepage .btn-outline-main {
  background: #fff;
  border-color: #dce2e5;
  color: var(--home-ink);
}
#homepage .btn-outline-main:hover {
  background: var(--home-soft);
  border-color: var(--home-red);
  transform: none;
}

/* Welcome: a quiet, generous split layout with original learning artwork. */
#homepage .home-intro {
  padding-block: 82px 50px;
}
#homepage .home-intro-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 38px;
}
#homepage .home-intro-art {
  width: 100%;
  max-width: 500px;
  justify-self: center;
}
#homepage .home-intro-art svg { display: block; width: 100%; height: auto; }
#homepage .home-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 1.6;
}
#homepage h1 {
  margin-bottom: 22px;
  font-size: clamp(36px, 3.65vw, 50px);
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -1.9px;
}
#homepage h1 span {
  color: var(--home-red);
}
#homepage .home-intro-description {
  max-width: 495px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--home-muted);
}
#homepage .home-intro-actions {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}
#homepage .home-explore-button {
  background: var(--home-red);
  border-color: var(--home-red);
}
#homepage .home-explore-button:hover {
  background: #a91d35;
  border-color: #a91d35;
}
#homepage .home-quick-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}
#homepage .home-quick-links .btn {
  padding: 13px 10px;
  font-size: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
}
#homepage .home-app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--home-ink);
  font-weight: 500;
}
#homepage .home-app-link:hover {
  color: var(--home-red);
}

/* CMS announcements form the backdrop for the overlaid counters. */
#homepage .home-showcase {
  display: grid;
  grid-template-areas: "stage";
  padding-bottom: 28px;
}
#homepage .home-showcase > section,
#homepage .home-showcase > .home-quick-links {
  grid-area: stage;
  min-width: 0;
}
#homepage .home-showcase .home-quick-links {
  z-index: 3;
  align-self: start;
  margin: 8px;
}
#homepage .home-showcase .home-stats {
  z-index: 2;
  align-self: end;
  width: calc(100% - 16px);
  margin: 0 8px 8px !important;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--home-line);
  border-radius: 10px;
}
#homepage .home-stats > .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  padding-block: 8px;
}
#homepage .stat-box {
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  box-shadow: none;
  background: transparent;
}
#homepage .home-stats .row > div + div .stat-box {
  border-left: 1px solid var(--home-line);
}
#homepage .stat-box h3 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.7px;
  margin-bottom: 4px;
  color: var(--home-ink);
}
#homepage .stat-box p {
  margin-bottom: 0;
  font-size: 12px;
}
#homepage .home-showcase .home-announcements {
  padding: 0;
  min-height: 440px;
  background: #eef1f4;
  border-radius: 12px;
}
#homepage #heroCarousel {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fafbfc;
}
#homepage #heroCarousel .carousel-inner {
  height: clamp(440px, 48vw, 600px);
}
#homepage #heroCarousel .carousel-item {
  height: 100%;
}
#homepage #heroCarousel .hero-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
#homepage #heroCarousel .carousel-caption {
  bottom: 150px;
}

/* Content stays intact; borders and spacing carry the hierarchy. */
#homepage .about-card {
  padding: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
#homepage .about-card > p:not(.home-eyebrow) {
  font-size: 14px;
  line-height: 1.95;
  color: var(--home-muted);
}
#homepage .about-card h2 {
  margin-bottom: 22px;
}
#homepage .home-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#homepage .home-about-actions .btn {
  margin: 0 !important;
  padding: 10px 15px;
  font-size: 12px;
  min-height: 44px;
}
#homepage .home-about > .row > :last-child img {
  border-radius: 14px !important;
  aspect-ratio: 4/4.6;
  object-fit: cover;
}
#homepage .home-features {
  padding-top: 24px;
  padding-bottom: 40px;
}
#homepage .home-features h2 {
  margin-bottom: 20px;
  scroll-margin-top: 124px;
}
#homepage .home-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
#homepage .home-resource-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 18px 12px;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  color: var(--home-ink);
  background: #fff;
  text-decoration: none;
  transition:
    border-color 0.18s,
    background-color 0.18s;
}
#homepage .home-resource-card:hover {
  border-color: #c3cdd2;
  background: var(--home-soft);
}
#homepage .home-resource-icon {
  grid-column: 1 / -1;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  color: #4c7ba5;
  background: #edf5fb;
  border-radius: 12px;
}
#homepage .home-resource-card:nth-child(3n + 2) .home-resource-icon {
  background: #fef2dd;
  color: #9e7025;
}
#homepage .home-resource-card:nth-child(3n) .home-resource-icon {
  background: #eef7f1;
  color: #41856b;
}
#homepage .home-resource-card span {
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
#homepage .home-resource-arrow {
  align-self: center;
  font-size: 14px;
  color: var(--home-muted);
}
#homepage .home-plus-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 24px;
  padding: 30px;
  border: 1px solid #f0cbd2;
  border-radius: 12px;
  background: linear-gradient(115deg, #fff0f3, #fff8f6);
}
#homepage .home-plus-copy {
  max-width: 680px;
  min-width: 0;
}
#homepage .home-plus-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--home-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
#homepage .home-plus-callout h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
#homepage .home-plus-description {
  margin: 0;
  color: #59646c;
  font-size: 14px;
  line-height: 1.85;
}
#homepage .home-plus-callout > .btn {
  flex-shrink: 0;
  white-space: normal;
  text-align: center;
}

#homepage .home-planner {
  padding-block: 60px;
}
#homepage .planner-box {
  padding: 0 38px 0 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
#homepage .planner-tag {
  padding: 0;
  border-radius: 0;
  background: none;
  color: #27826b;
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 600;
}
#homepage .planner-box p {
  font-size: 14px;
  line-height: 1.9;
}
#homepage .planner-feature {
  display: flex;
  align-items: center;
  min-height: 55px;
  padding: 12px 14px;
  border: 1px solid var(--home-line);
  background: #fff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
}
#homepage .planner-feature:hover {
  transform: none;
  background: var(--home-soft);
}
#homepage .home-planner img {
  width: 100%;
  border-radius: 12px;
}

@media (max-width: 991px) {
  #homepage .home-planner img {
    display: none;
  }
}

/* Reviews retain their carousel and independent accessible controls. */
#homepage .section-title {
  padding-bottom: 0;
  margin-bottom: 30px !important;
}
#homepage .section-title h2 {
  line-height: 1.35;
  text-transform: none;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
#homepage .section-title h2::after {
  content: none;
}
#homepage .section-title p {
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  text-transform: none;
}
#homepage .review-section {
  padding-block: 60px;
}
#homepage .review-title {
  margin-bottom: 10px;
}
#homepage .review-sub {
  color: var(--home-muted);
  font-size: 14px;
  margin-bottom: 30px;
}
#homepage .myReviewSwiper {
  padding-bottom: 0;
}
#homepage .myReviewSwiper .swiper-slide {
  height: auto;
}
#homepage .review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 270px;
  padding: 28px 24px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  box-shadow: none;
}
#homepage .review-card:hover {
  box-shadow: none;
  transform: none;
}
#homepage .review-img {
  width: 42px;
  height: 42px;
}
#homepage .review-card strong {
  font-size: 13px;
  font-weight: 600;
}
#homepage .review-card .small {
  font-size: 10px;
}
#homepage .review-card p {
  margin-block: 15px;
  color: #54626c;
  font-size: 13px;
  line-height: 1.9;
}
#homepage .review-card .text-warning {
  margin-top: auto;
  color: #c28c24 !important;
  letter-spacing: 3px;
  font-size: 13px;
}

#homepage .home-team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
}
#homepage .home-team-grid > div {
  width: auto;
  padding: 0;
}
#homepage .team-card {
  height: 100%;
  padding: 28px 14px !important;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  box-shadow: none;
}
#homepage .team-card:hover {
  box-shadow: none;
  transform: none;
}
#homepage .team-card > img {
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border: 0;
  border-radius: 50% !important;
  object-fit: cover;
}
#homepage .team-card h6 {
  min-height: 42px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
#homepage .team-card small {
  display: block;
  min-height: 42px;
  margin-top: 5px;
  font-size: 10px;
}
#homepage .team-card .btn {
  min-height: 36px;
  border: 0;
  background: #fcf0f2;
  color: var(--home-red);
  padding: 6px 12px;
  font-size: 11px;
}
#homepage .team-card .btn:hover {
  color: #b3233c;
  background: #f9e2e7;
}
#homepage .home-faq {
  padding-block: 60px 70px;
}
#homepage .faq-accordion {
  border-top: 1px solid var(--home-line);
}
#homepage .faq-accordion .accordion-item {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--home-line);
  border-radius: 0;
  box-shadow: none;
}
#homepage .faq-accordion .accordion-button {
  padding: 24px 0;
  color: var(--home-ink);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  box-shadow: none;
  gap: 16px;
}
#homepage .faq-accordion .accordion-button:not(.collapsed) {
  color: var(--home-red);
  background: #fff;
}
#homepage .faq-accordion .accordion-body {
  padding: 0 38px 24px 0;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.95;
}

@media (max-width: 991px) {
  #homepage .home-plus-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 26px;
  }
  #homepage .home-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #homepage .home-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #homepage .home-intro {
    padding-block: 60px 35px;
  }
  #homepage .home-intro-grid {
    gap: 20px;
  }
  #homepage h1 {
    font-size: 36px;
  }
  #homepage .home-intro-description {
    font-size: 14px;
  }
  #homepage .home-intro-actions .btn {
    padding-inline: 18px;
  }
  #homepage .home-about > .row {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    border-radius: 16px;
  }
  #homepage .home-about > .row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255, 250, 250, .94), rgba(241, 248, 255, .88));
    pointer-events: none;
  }
  #homepage .home-about > .row > :first-child {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 28px;
  }
  #homepage .home-about .about-card { background: transparent; }
  #homepage .home-about > .row > :last-child {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }
  #homepage .home-about > .row > :last-child img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
  }
  #homepage .planner-box {
    padding: 0 0 32px;
  }
  #homepage .home-planner img {
    max-width: 620px !important;
  }
  #homepage .home-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #homepage .home-plus-callout {
    padding: 22px 18px;
    margin-top: 18px;
  }
  #homepage .home-plus-callout > .btn {
    width: 100%;
    padding-inline: 14px;
  }
  #homepage .container {
    padding-inline: 22px;
  }
  #homepage section {
    padding-block: 40px;
  }
  #homepage .home-intro {
    padding-block: 42px 24px;
  }
  #homepage .home-intro-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "intro";
    gap: 0;
    isolation: isolate;
  }
  #homepage .home-intro-grid::before {
    content: "";
    grid-area: intro;
    align-self: stretch;
    justify-self: stretch;
    z-index: 1;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 250, 250, .88), rgba(241, 248, 255, .70));
    pointer-events: none;
  }
  #homepage .home-intro-art {
    grid-area: intro;
    align-self: center;
    opacity: .8;
    pointer-events: none;
  }
  #homepage .home-intro-copy {
    grid-area: intro;
    z-index: 2;
    max-width: 580px;
    padding: 24px 18px;
  }
  #homepage h1 {
    font-size: clamp(33px, 7.6vw, 44px);
    letter-spacing: -1.3px;
  }
  #homepage .home-eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
  }
  #homepage .home-intro-description {
    font-size: 14px;
  }
  #homepage .home-intro-actions {
    margin-top: 22px;
    flex-wrap: wrap;
  }
  #homepage .home-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
  }
  #homepage .home-resource-grid {
    gap: 12px;
  }
  #homepage .home-resource-card {
    min-height: 140px;
    padding: 18px;
    gap: 14px 8px;
  }
  #homepage .home-resource-card span {
    font-size: 13px;
  }
  #homepage .home-app-link {
    font-size: 12px;
  }
  #homepage .home-showcase .home-stats {
    width: calc(100% - 24px);
    margin: 0 12px 12px !important;
  }
  #homepage .home-stats > .row {
    row-gap: 28px;
  }
  #homepage .home-stats .row > div:nth-child(3) .stat-box {
    border: 0;
  }
  #homepage .stat-box h3 {
    font-size: 25px;
  }
  #homepage .stat-box p {
    font-size: 11px;
  }
  #homepage #heroCarousel .carousel-inner {
    height: 520px;
  }
  #homepage .home-showcase .home-announcements { min-height: 520px; }
  #homepage #heroCarousel .carousel-caption {
    bottom: 205px;
    padding: 12px;
    /* background: rgba(255, 255, 255, 0.94); */
    color: var(--home-ink);
    border-radius: 8px;
  }
  #homepage #heroCarousel .carousel-caption:empty {
    display: none;
  }
  #homepage #heroCarousel .carousel-caption p {
    font-size: 12px;
  }
  #homepage #heroCarousel .carousel-caption .btn {
    font-size: 12px;
  }
  #homepage .home-features {
    padding-block: 20px 32px;
  }
  #homepage .planner-box .row > div {
    width: 50%;
  }
  #homepage .planner-feature {
    padding: 10px;
    font-size: 10px;
  }
  #homepage .home-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  #homepage .team-card {
    padding: 22px 10px !important;
  }
  #homepage .team-card > img {
    width: 74px;
    height: 74px;
  }
  #homepage .faq-accordion .accordion-button {
    font-size: 13px;
  }
  #homepage .faq-accordion .accordion-body {
    padding-right: 0;
  }
}

@media (max-width: 359px) {
  body:has(#homepage) .header .btn-getstarted {
    padding-inline: 10px;
    margin-right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #homepage *,
  #homepage *::before,
  #homepage *::after {
    transition: none !important;
    animation: none !important;
  }
}
