:root {
  --primary-color: #2bcc56;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --background-color: #fff;
  --border-radius: 12px;
  --font-family: "Plus Jakarta Sans", sans-serif;
}

html {
  font-size: 16px;
}

body {
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  font-weight: 500;
  line-height: 1.3;
}

p {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  line-height: 1.8;
}

.pt-100 {
  padding-top: 100px;
}

/* Shared hero top spacing, used on every page's hero so the gap under the
   fixed navbar reads the same everywhere. .main-content already offsets 65px
   to clear the navbar, so this sits on top of that. */
.pt-hero {
  padding-top: 72px;
}

.pb-100 {
  padding-bottom: 100px;
}

.py-100 {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

.bg-light-2 {
  background-color: #f0f0f0;
}

.bi {
  font-size: 1.3rem;
}

.btn {
  font-weight: 500;
}

.text-main-primary {
  color: var(--primary-color);
}

.btn-main-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: var(--border-radius);
  font-weight: 500;
  border: 1px solid #000;
  /* box-shadow: 5px 5px 0px rgb(61, 60, 60);
  transition: all 0.2s ease; */
}

.nav-text {
  font-size: 1rem !important;
}

.btn-main-primary:hover {
  background-color: #0f7a2b;
  color: var(--secondary-color);
  box-shadow: none;
  transform: scale(0.95);
}

.btn-main-primary:focus-visible {
  background-color: #0f7a2b;
  color: var(--secondary-color);
  box-shadow: none;
  transform: scale(0.95);
}

.btn-main-primary:active {
  background-color: #0f7a2b;
  color: var(--secondary-color);
  box-shadow: none;
  transform: scale(0.95);
}

.btn-main-primary.show,
.btn-main-primary:first-child:active,
.show > .btn-main-primary.dropdown-toggle {
  background-color: #0f7a2b;
  color: var(--secondary-color);
  border-color: #000;
  box-shadow: none;
}

/* Disabled: stay clearly VISIBLE (greyed), just not clickable — the sign-up
   button shows the whole time and only unlocks once the form is filled and the
   human check passes, so a would-be user always sees what's left to do. */
.btn-main-primary:disabled,
.btn-main-primary.disabled {
  background-color: #c9d6cc;
  color: #5f6b62;
  border-color: #b6c4ba;
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.sub-text {
  font-family: "Shadows Into Light", cursive;
  font-weight: 400;
  font-style: normal;
  color: #ff9800;
  font-size: 1.5rem;
}

.main-content {
  padding-top: 65px;
}

.btn-size {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
}

.btn-size-2 {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--border-radius);
}

.custom-search-button {
  display: flex;
  align-items: center;
  height: 40px;
  font-size: 14px;
  color: #959595 !important;
  min-width: 400px;
  font-weight: 400 !important;
  background-color: #f8f9fa;
  border: 1px solid #eceeef;
  border-radius: 50px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 500;
}

.hero-title-2 {
  font-size: 4rem;
  font-weight: 500;
  text-wrap: balance;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 0.9rem;
  line-height: 2;
}

.rounded-custom {
  border-radius: var(--border-radius) !important;
}

.text-2xl {
  font-size: 1.3rem;
}

.accordion-button:not(.collapsed) {
  color: #000;
  background-color: transparent;
  box-shadow: unset;
  font-weight: 600;
}

.owl-carousel .owl-stage {
  display: flex;
}

.owl-carousel .owl-item {
  display: flex;
}

.owl-carousel .item {
  display: flex;
  width: 100%;
}

.owl-carousel .hero-section {
  display: flex;
  width: 100%;
}

.owl-carousel .hero-section > .container,
.owl-carousel .hero-section > .container > .row {
  height: 100%;
}

.owl-carousel .hero-section > .container > .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.owl-carousel
  .hero-section
  > .container
  > .row
  > [class*="col-"]
  > .row:last-child {
  margin-top: auto;
}

.owl-theme .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 5px 8px;
  background: #d1d1d1;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  width: 12px;
  height: 12px;
  background: #000;
}

.main-nav .nav-link {
  color: #fff;
  font-weight: 500;
  transition: all 0.2s ease;
}

.add-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.final-cta {
  position: relative;
  overflow: hidden;
}

.final-cta .overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.36) 0%,
    rgba(0, 0, 0, 0.64) 54%,
    #000 100%
  );
}

.final-cta .overlay-2 {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    360deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.7) 54%,
    #02280c 100%
  );
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.universities-logo-container {
  height: 70px;
  /* border: 1px solid #fcfcfc; */
  overflow: hidden;
  position: relative;
  padding: 10px;
  /* box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; */
  /* box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important; */
  border-radius: 5px;
  background-color: #000;
}

.object-fit-contain {
  object-fit: contain;
}
.logo-max-width {
  max-width: 200px;
}

.products-section {
  background-color: #fff;
}

.products-intro {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.8;
}

.products-grid {
  margin-top: 4rem;
}

.product-card {
  position: relative;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.5rem;
  color: #06130a;
  text-decoration: none;
  border: 1px solid #101010;
  border-radius: var(--border-radius);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.product-card:hover,
.product-card:focus-visible {
  color: #06130a;
  transform: translateY(-6px);
  box-shadow: 10px 10px 0 #111;
}

.product-card-2 {
  position: relative;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.5rem;
  color: #06130a;
  text-decoration: none;
  border: 1px solid #101010;
  border-radius: var(--border-radius);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  color: #06130a;
  transform: translateY(-6px);
  box-shadow: 10px 10px 0 #111;
}

.product-card:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

.product-card-tutor {
  background-color: #dff8e6;
}

.product-card-exams {
  background-color: #fff1d6;
}

.product-card-abroad {
  background-color: #eaf1ff;
}

.product-card h3 {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-size: 1.55rem;
}

.product-card h3 .bi {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  color: #06130a;
  background-color: #fff;
  border: 1px solid #101010;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.product-card:hover h3 .bi,
.product-card:focus-visible h3 .bi {
  transform: translateX(4px);
}

.product-image {
  position: absolute;
  z-index: 1;
  display: block;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.35s ease;
}

.product-image-photo {
  top: 95px;
  right: -42px;
  width: 92%;
  height: 250px;
  object-fit: cover;
  border: 1px solid #101010;
  border-radius: var(--border-radius);
  transform: rotate(3deg);
}

.product-image-object {
  top: 100px;
  right: 24px;
  width: min(62%, 230px);
  transform: rotate(-8deg);
}

.product-image-person {
  top: 64px;
  right: -70px;
  width: min(86%, 310px);
}

.product-card:hover .product-image-photo,
.product-card:focus-visible .product-image-photo {
  transform: rotate(3deg) scale(1.04);
}

.product-card:hover .product-image-object,
.product-card:focus-visible .product-image-object {
  transform: rotate(-8deg) scale(1.08);
}

.product-card:hover .product-image-person,
.product-card:focus-visible .product-image-person {
  transform: translateX(-6px) scale(1.04);
}

.product-card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 18rem;
  padding: 1.25rem;
  background-color: #fff;
  border: 1px solid #101010;
  border-radius: var(--border-radius);
}

.product-card-copy p {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.65;
}

.product-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: #02280c;
  border-radius: 50%;
}

.product-icon .bi {
  font-size: 1.25rem;
}

.customers-section {
  position: relative;
  overflow: hidden;
  background-color: #fff;
}

.customers-section .section-heading {
  font-size: 3rem;
  line-height: 1.18;
}

.testimonials-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  margin-top: 4.5rem;
  padding-right: 0;
  padding-left: 0;
}

.testimonials-carousel-wrap::before,
.testimonials-carousel-wrap::after {
  position: absolute;
  top: 0;
  z-index: 3;
  width: 90px;
  height: calc(100% - 54px);
  pointer-events: none;
  content: "";
}

.testimonials-carousel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.testimonials-carousel-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.testimonial-card {
  display: flex;
  min-height: 386px;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  padding: 2rem 2rem 2.25rem;
  color: #06130a;
  background-color: #f7f5f2;
  border-radius: 17px;
}

.testimonial-quote-mark {
  height: 42px;
  overflow: hidden;
  color: #777;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 500;
  line-height: 1;
}

.testimonial-card p {
  margin: 0;
  color: #6b6b6b;
  font-size: 1rem;
  /* line-height: 1.35; */
  font-weight: 400;
}

.testimonial-author {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  background-color: #dff8e6;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.testimonial-author img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author h3 {
  margin: 0;
  color: #111;
  font-size: 1.45rem;
  text-align: right;
}

.testimonial-author span {
  display: block;
  margin-top: 0.75rem;
  color: #9c9c9c;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
}

.testimonial-carousel .owl-stage {
  display: flex;
}

.testimonial-carousel .owl-item {
  display: flex;
}

.testimonial-carousel .owl-item > article {
  width: 100%;
}

.testimonial-carousel.owl-theme .owl-dots {
  margin-top: 4rem;
}

.testimonial-carousel.owl-theme .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 5px 8px;
  background: #d1d1d1;
}

.testimonial-carousel.owl-theme .owl-dots .owl-dot.active span,
.testimonial-carousel.owl-theme .owl-dots .owl-dot:hover span {
  width: 12px;
  height: 12px;
  background: #000;
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.grid-services-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.service-item {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  background-color: #fff;
  border-right: 1px solid #e5e7eb !important;
  border-bottom: 1px solid #e5e7eb !important;
  overflow: hidden;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.service-item:nth-child(4n) {
  border-right: 0;
}

.service-item:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.service-item:hover,
.service-item:focus-within {
  color: #fff;
  background-color: #02280c;
  transform: translateY(-2px);
}

.service-item:focus-within {
  position: relative;
  z-index: 1;
}

.service-item h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.service-item p {
  margin: 0;
  max-width: 220px;
  max-height: 0;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 500;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition:
    max-height 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.service-item .btn {
  max-height: 0;
  margin-top: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    max-height 0.2s ease,
    margin-top 0.2s ease,
    padding 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.service-item:hover p,
.service-item:focus-within p {
  /* Fits the grade line + a three-line blurb; 90px clipped the last row. */
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
}

.service-item:hover .btn,
.service-item:focus-within .btn {
  max-height: 40px;
  margin-top: 1rem !important;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-width: 1px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.service-item .btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.section-heading {
  font-size: 2.5rem;
}

.bg-main-primary {
  background-color: #02280c;
}

.section-heading-big {
  font-size: 4rem;
}

.advisor-cta {
  padding: 4.5rem 0;
  color: #fff;
  background-color: #141b27;
}

.advisor-cta-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 3rem;
}

.advisor-avatar-stack {
  display: flex;
  min-width: 180px;
}

.advisor-avatar-stack img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  background-color: #fff;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.advisor-avatar-stack img:first-child {
  border-color: #22c8ea;
}

.advisor-avatar-stack img:nth-child(2) {
  margin-left: -18px;
}

.advisor-avatar-stack img:nth-child(3) {
  margin-left: -18px;
  border-color: #ffe129;
}

.advisor-cta-copy h2 {
  max-width: 720px;
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1.35;
}

.advisor-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.advisor-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-decoration: none;
}

.advisor-contact-list a:hover,
.advisor-contact-list a:focus-visible {
  color: #fff;
}

.advisor-contact-list .bi {
  color: #fff;
  font-size: 1.25rem;
}

.advisor-cta-action {
  padding: 1rem;
  border: 2px solid #fecb3e;
  border-radius: var(--border-radius);
}

.advisor-cta-action .btn {
  min-width: 240px;
}

.site-footer {
  padding: 5rem 0 3rem;
  color: #fff;
  background-color: #000;
}

.footer-main {
  margin-bottom: 5rem;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 1.5rem;
  /* color: #fff; */
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.footer-brand:hover,
.footer-brand:focus-visible {
  color: #fff;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2.6fr;
  gap: 2.5rem 3rem;
}

/* The link groups (Subjects, Exam prep, Study abroad, Languages, Company,
   Resources) flow as a grid so the footer reads as sections, not one long
   list, and uses the width instead of stacking. */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 2.25rem 2rem;
}

.footer-about {
  max-width: 430px;
}

.footer-about h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.4;
}

.footer-about p {
  margin-bottom: 1.5rem;
  color: #b8b8b8;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-about address {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: #8f8f8f;
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: normal;
}

.footer-link-group h2 {
  margin-bottom: 1rem;
  color: #8f8f8f;
  font-size: 1rem;
  font-weight: 500;
}

.footer-link-group ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link-group a,
.footer-legal-links a {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.footer-link-group a:hover,
.footer-link-group a:focus-visible,
.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: #fff;
  border-color: var(--primary-color);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8f8f8f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--primary-color);
}

.footer-socials .bi {
  font-size: 1.35rem;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-legal-links a,
.footer-bottom p {
  color: #8f8f8f;
  font-size: 0.85rem;
}

.footer-bottom p {
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
}

.legal-page {
  background: #f7f8fb;
}

.legal-hero {
  padding: 6rem 0 3rem;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
}

.legal-hero .container {
  max-width: 980px;
}

.legal-intro {
  max-width: 780px;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-updated {
  color: #667085;
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-content {
  padding: 4rem 0 5rem;
}

.legal-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
}

.legal-card h2 {
  margin: 2rem 0 0.75rem;
  color: #111827;
  font-size: 1.35rem;
  line-height: 1.35;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: #4b5563;
  line-height: 1.85;
}

.legal-card a {
  color: var(--primary-color);
  font-weight: 700;
}

.legal-card a.btn-main-primary {
  color: var(--secondary-color);
}

.legal-card a.btn-main-primary:hover,
.legal-card a.btn-main-primary:focus-visible,
.legal-card a.btn-main-primary:active {
  color: var(--secondary-color);
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  padding-right: 25px;
  padding-left: 25px;
}

.form-control-size {
  height: 45px;
  border-radius: 10px;
}

/* The category-page hero sign-up card. Sized generously — big inputs, a big
   button, roomy padding — so it reads as the primary action, not a footnote. */
.lead-hero-card {
  padding: 1.75rem;
  border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(17, 24, 39, 0.35);
}
.lead-hero-card .form-control,
.lead-hero-card .form-select {
  height: 56px;
  border-radius: 12px;
  border: 1.5px solid #e3e6ea;
  font-size: 1.02rem;
  padding: 0.75rem 1rem;
}
.lead-hero-card .form-control:focus,
.lead-hero-card .form-select:focus {
  border-color: var(--bs-primary, #6f42c1);
  box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.12);
}
.lead-hero-card .form-control::placeholder {
  color: #9aa1ab;
}
.lead-hero-card .btn {
  min-height: 56px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
}
@media (min-width: 1200px) {
  .lead-hero-card {
    padding: 2rem;
  }
}

.owl-theme .owl-nav {
  margin-top: 10px;
  display: none;
}

@media (max-width: 991.98px) {
  .advisor-cta-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .advisor-cta-action {
    width: fit-content;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-main {
    gap: 3rem;
    margin-bottom: 3rem;
  }

  .footer-links-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .footer-about {
    max-width: 640px;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 13px;
  }

  .main-content {
    padding-top: 50px;
  }

  .hero-title-2 {
    font-size: 2.5rem;
    font-weight: 500;
    text-wrap: balance;
    line-height: 1.3;
  }

  .custom-search-button {
    min-width: 100%;
  }

  .products-grid {
    margin-top: 2.5rem;
  }

  .hero-section {
    background-image: none !important;
    padding: 10px !important;
  }

  .hero-title {
    font-size: 1.5rem;
    font-weight: 500;
  }

  .section-heading {
    font-size: 2rem;
    font-weight: 500;
  }

  .service-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
  }

  .customers-section .section-heading {
    font-size: 2rem;
    line-height: 1.18;
  }

  .section-heading-big {
    font-size: 2rem;
  }

  .advisor-cta {
    padding: 3.5rem 0;
  }

  .advisor-cta-copy h2 {
    font-size: 1.75rem;
  }

  .advisor-cta-action,
  .advisor-cta-action .btn {
    width: 100%;
  }

  .legal-hero {
    padding: 4rem 0 2rem;
  }

  .legal-content {
    padding: 2.5rem 0 3.5rem;
  }

  .product-card {
    min-height: 300px !important;
  }

  .product-image-photo {
    right: -24px;
    width: 88%;
  }

  .product-image-person {
    right: -50px;
  }

  .product-card-copy {
    margin-top: 16rem;
  }

  .testimonials-carousel-wrap {
    margin-top: 2.5rem;
  }

  .testimonials-carousel-wrap::before,
  .testimonials-carousel-wrap::after {
    width: 36px;
  }

  .testimonial-card {
    min-height: 320px;
  }

  .grid-services {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .grid-services-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .service-item:nth-child(4n) {
    border-right: 1px solid #e5e7eb;
  }

  .service-item:nth-child(2n) {
    border-right: 0;
  }

  .service-item:nth-last-child(-n + 4) {
    border-bottom: 1px solid #e5e7eb;
  }

  .service-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .site-footer {
    padding-top: 4rem;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .footer-socials {
    padding-top: 0.5rem;
  }
}

@media (max-width: 420px) {
  .section-heading {
    font-size: 2rem;
  }

  .customers-section .section-heading {
    font-size: 2.15rem;
  }

  .product-card {
    min-height: 500px;
    padding: 1.1rem;
  }

  .product-card h3 {
    font-size: 1.25rem;
  }

  .product-card h3 .bi {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .product-card-copy {
    flex-direction: column;
    margin-top: 15rem;
    padding: 1rem;
  }

  .testimonial-card {
    min-height: 320px;
    padding: 1.1rem;
  }

  .testimonial-card p {
    font-size: 1rem;
  }

  .grid-services {
    grid-template-columns: 1fr;
  }

  .service-item,
  .service-item:nth-child(2n),
  .service-item:nth-child(4n) {
    border-right: 0;
  }

  .service-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid #e5e7eb;
  }

  .service-item:last-child {
    border-bottom: 0;
  }
}

body.site-search-open .modal-backdrop.show {
  opacity: 0.62;
}

.site-search-dialog {
  max-width: min(760px, calc(100vw - 2rem));
  margin-top: 5.8rem;
}

.site-search-content {
  position: relative;
  padding: 1.45rem;
  background: #fff;
  border-radius: 22px;
}

.site-search-close {
  position: absolute;
  top: -38px;
  right: -38px;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #1d2939;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.site-search-close .bi {
  font-size: 1rem;
}

.site-search-box {
  display: flex;
  min-height: 55px;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.1rem;
  border: 2px solid #e5e5e5;
  border-radius: 22px;
}

.site-search-box .bi {
  color: #a0a8b5;
  font-size: 1.55rem;
}

.site-search-input {
  width: 100%;
  min-width: 0;
  color: #202939;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.site-search-input::placeholder {
  color: #98a2b3;
}

.site-search-results {
  display: none;
  max-height: min(54vh, 560px);
  margin-top: 1.4rem;
  padding-right: 0.15rem;
  overflow-y: auto;
}

.site-search-results.is-visible {
  display: grid;
  gap: 0.65rem;
}

.site-search-result {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  color: #273142;
  text-decoration: none;
  background: #edf3ff;
  border-radius: 10px;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.site-search-result:hover,
.site-search-result:focus-visible {
  color: #101828;
  background: #dfeaff;
  transform: translateY(-1px);
}

.site-search-result strong,
.site-search-result small {
  display: block;
}

.site-search-result strong {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 800;
}

.site-search-result small {
  color: #667085;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-search-result > .bi {
  color: #1f2937;
  font-size: 1rem;
}

.site-search-result.is-hidden,
.site-search-empty {
  display: none;
}

.site-search-empty.is-visible {
  display: block;
  margin: 0;
  padding: 1rem;
  color: #667085;
  text-align: center;
  background: #f3f6fb;
  border-radius: 10px;
}

@media (max-width: 767.98px) {
  .site-search-dialog {
    margin-top: 4.8rem;
  }

  .site-search-content {
    padding: 1rem;
    border-radius: 16px;
  }

  .site-search-close {
    top: -50px;
    right: 0;
    width: 32px;
    height: 32px;
  }

  .site-search-box {
    min-height: 56px;
    border-width: 2px;
    border-radius: 16px;
  }

  .site-search-input {
    font-size: 1.15rem;
  }
}

/* Touch devices never match :hover, so the .service-item description and its
   "Book a tutor" CTA would stay collapsed and pointer-events:none — unreachable.
   Show them at rest there. The card keeps its light background, so the copy and
   button need the dark treatment rather than the on-hover white. */
@media (hover: none) {
  .service-item p {
    max-height: none;
    color: var(--text-color);
    opacity: 1;
    transform: none;
  }

  .service-item .btn {
    max-height: none;
    margin-top: 1rem !important;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-width: 1px;
    border-color: currentColor;
    color: var(--text-color);
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  /* Tapping still darkens the card, so keep the contrast correct while active. */
  .service-item:active,
  .service-item:focus-within {
    color: #fff;
  }

  .service-item:active p,
  .service-item:focus-within p,
  .service-item:active .btn,
  .service-item:focus-within .btn {
    color: #fff;
  }
}

/* ------------------------------------------------------------------ *
 * Legal pages — richer markup (sub-headings, lists, tables)
 * ------------------------------------------------------------------ */
.legal-card h3 {
  margin: 1.5rem 0 0.5rem;
  color: #1f2937;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.legal-card ul,
.legal-card ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: #4b5563;
  line-height: 1.85;
}

.legal-card li {
  margin-bottom: 0.4rem;
}

.legal-card li::marker {
  color: var(--primary-color);
}

.legal-toc {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #f7f8fb;
  border: 1px solid #e7ebf2;
  border-radius: 10px;
}

.legal-toc ol {
  margin: 0.5rem 0 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1.5rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}

.legal-table th,
.legal-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e7ebf2;
  color: #4b5563;
  line-height: 1.6;
}

.legal-table th {
  background: #f7f8fb;
  color: #1f2937;
  font-weight: 700;
}

/* ------------------------------------------------------------------ *
 * Cookie consent manager (banner + preferences modal)
 * ------------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(17, 24, 39, 0.18);
  animation: cookieSlideUp 0.28s ease-out;
}

@keyframes cookieSlideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-body {
  padding: 1.15rem 1.25rem;
}

.cookie-banner-text {
  margin: 0 0 0.9rem;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.65;
}

.cookie-banner-text a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-banner-actions,
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner-actions .cookie-btn {
  flex: 1 1 auto;
}

.cookie-btn {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  white-space: nowrap;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.55);
  animation: cookieFade 0.2s ease-out;
}

@keyframes cookieFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

.cookie-modal-head {
  padding: 1.5rem 1.5rem 0.5rem;
}

.cookie-modal-title {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: #111827;
}

.cookie-modal-sub {
  margin: 0;
  font-size: 0.9rem;
  color: #667085;
  line-height: 1.6;
}

.cookie-modal-sub a,
.cookie-cat-body a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-modal-list {
  padding: 0.5rem 1.5rem;
}

.cookie-cat {
  padding: 1rem 0;
  border-bottom: 1px solid #edf0f5;
}

.cookie-cat:last-child {
  border-bottom: none;
}

.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.cookie-cat-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 1rem;
  margin: 0;
}

.cookie-cat-locked {
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}

.cookie-cat-body {
  margin: 0;
  font-size: 0.86rem;
  color: #667085;
  line-height: 1.6;
}

.cookie-switch {
  margin: 0;
  min-height: auto;
  padding-left: 2.6em;
}

.cookie-switch .form-check-input {
  width: 2.1em;
  height: 1.15em;
  cursor: pointer;
}

.cookie-switch .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.cookie-modal-actions {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #edf0f5;
}

.cookie-modal-actions .cookie-btn {
  flex: 1 1 auto;
}

.footer-cookie-settings {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0;
  font-family: inherit;
  font-size: 0.85rem;
  color: #8f8f8f;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  color: #fff;
  border-color: var(--primary-color);
}

@media (max-width: 575.98px) {
  .cookie-banner-actions .cookie-btn,
  .cookie-modal-actions .cookie-btn {
    flex: 1 1 100%;
  }
}

/* Get-started account chooser */
.gs-card {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(2, 40, 12, 0.1);
}
.gs-card-media {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.gs-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.gs-media-icon {
  position: absolute;
  left: 20px;
  bottom: -24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  color: #0b8a3e;
  font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(2, 40, 12, 0.12);
}
.gs-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0b8a3e;
  margin-bottom: 0.35rem;
}
.gs-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: #374151;
}
.gs-points .bi {
  color: var(--primary-color);
  margin-top: 0.15rem;
  flex-shrink: 0;
}
/* Get-started "why" write-up */
.gs-why {
  background: #f6f8f7;
  border-top: 1px solid #eef1ef;
}
.gs-why .gs-eyebrow {
  display: block;
}
.gs-why-title {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
}
.gs-writeup-lead {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #374151;
  margin-bottom: 1.1rem;
}
.gs-signin-inline {
  border-top: 1px solid #e3e8e5;
  font-size: 0.95rem;
  color: #374151;
}
.gs-signin-link {
  color: #0b8a3e;
  font-weight: 600;
  text-decoration: none;
}
.gs-signin-link:hover {
  text-decoration: underline;
}
.gs-dot {
  color: #9ca3af;
  margin: 0 0.4rem;
}

/* ============================ FAQ / Help center ============================ */
.faq-hero {
  background: linear-gradient(180deg, #f2faf5 0%, #ffffff 100%);
  border-bottom: 1px solid #eef2ef;
  padding: 4.5rem 0 3rem;
  text-align: center;
}
.faq-hero-title {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #0f172a;
}
.faq-hero-sub {
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  color: #5b6470;
  font-size: 1.05rem;
}
.faq-search {
  position: relative;
  max-width: 34rem;
  margin: 0 auto;
}
.faq-search .bi-search {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.05rem;
}
.faq-search input {
  width: 100%;
  height: 58px;
  border: 1px solid #e2e8e4;
  border-radius: 14px;
  padding: 0 3rem 0 2.9rem;
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 138, 62, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(11, 138, 62, 0.12);
}
.faq-search button {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #f1f5f2;
  color: #64748b;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-search button:hover {
  background: #e6efe9;
}

.faq-nav {
  position: sticky;
  top: 60px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid #eef2ef;
}
.faq-nav-inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.9rem 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.faq-nav-pill {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  padding: 0.4rem 0.95rem;
  border: 1px solid #e2e8e4;
  border-radius: 999px;
  background: #fff;
  transition: all 0.15s ease;
}
.faq-nav-pill:hover {
  color: #0b8a3e;
  border-color: #bfe6cd;
  background: #f2faf5;
}

.faq-body {
  padding: 3rem 0 5rem;
}
.faq-body .container.faq-layout {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.faq-body .container.faq-layout.is-searching {
  max-width: 820px;
  grid-template-columns: minmax(0, 1fr);
}
.faq-main {
  min-width: 0;
}
.faq-side {
  position: sticky;
  top: 90px;
  align-self: start;
}
.faq-side-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  margin: 0 0 0.6rem 0.8rem;
}
.faq-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.faq-side-link {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border-left: 2px solid transparent;
  color: #374151;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s ease;
}
.faq-side-link:hover {
  background: #f2faf5;
  color: #0b8a3e;
  border-left-color: #7fd3a0;
}
.faq-side-help {
  margin-top: 1.75rem;
  padding: 1.15rem;
  background: #f6faf7;
  border: 1px solid #e5efe8;
  border-radius: 16px;
}
.faq-side-help-title {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.faq-side-help-sub {
  color: #6b7280;
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}
.faq-side-help-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: #0b8a3e;
  text-decoration: none;
}
.faq-side-help-link:hover {
  text-decoration: underline;
}
@media (max-width: 991px) {
  .faq-body .container.faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 820px;
  }
  .faq-side {
    position: static;
  }
  .faq-side-label,
  .faq-side-help {
    display: none;
  }
  .faq-side-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
  }
  .faq-side-link {
    white-space: nowrap;
    border: 1px solid #e2e8e4;
    border-left: 1px solid #e2e8e4;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.9rem;
  }
  .faq-side-link:hover {
    border-color: #bfe6cd;
    border-left-color: #bfe6cd;
  }
}
.faq-result-count {
  color: #64748b;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}
.faq-group {
  scroll-margin-top: 130px;
  margin-bottom: 2.75rem;
}
.faq-group-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.faq-group-intro {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.faq-item {
  border: 1px solid #e8ece9;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item.is-open {
  border-color: #bfe6cd;
  box-shadow: 0 10px 30px rgba(11, 138, 62, 0.07);
}
.faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.15rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: #14251b;
  cursor: pointer;
}
.faq-q-icon {
  flex-shrink: 0;
  color: #0b8a3e;
  font-size: 1rem;
  transition: transform 0.28s ease;
}
.faq-item.is-open .faq-q-icon {
  transform: rotate(45deg);
}
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.faq-item.is-open .faq-a-wrap {
  grid-template-rows: 1fr;
}
.faq-a-inner {
  overflow: hidden;
}
.faq-a {
  margin: 0;
  padding: 0 1.25rem 1.3rem;
  max-width: 68ch;
  color: #4b5563;
  line-height: 1.8;
  font-size: 0.98rem;
}

.faq-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}
.faq-empty .bi-search {
  font-size: 2rem;
  color: #cbd5e1;
  display: block;
  margin-bottom: 0.75rem;
}
.faq-link {
  color: #0b8a3e;
  font-weight: 600;
}

.faq-cta {
  margin-top: 3rem;
  background: #f2faf5;
  border: 1px solid #d9f0e2;
  border-radius: 18px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.faq-cta-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.2rem;
}
.faq-cta-sub {
  color: #5b6470;
  font-size: 0.95rem;
}
.faq-cta-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 575.98px) {
  .faq-hero-title {
    font-size: 2rem;
  }
  .faq-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------------------------------------------------------- 404 page */
.nf-section {
  padding: 5.5rem 0 4.5rem;
  background: #fff;
}

.nf-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #eefaf1;
  color: #157347;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nf-lead {
  max-width: 560px;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.8;
}

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nf-links {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid #edf0f5;
}

.nf-links-title {
  margin-bottom: 0.85rem;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nf-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nf-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #374151;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nf-links a:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.nf-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
}

.nf-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .nf-section {
    padding: 3.5rem 0 3rem;
  }
  /* Lead with the message on small screens; the photo is supporting material. */
  .nf-media {
    margin-top: 2rem;
  }
}

/* Illustration variant of .nf-media: the shadow and rounded crop are for a
   photo. Transparent artwork needs neither — a drop shadow on a blob with an
   alpha background renders as a grey rectangle behind it. */
.nf-media--art {
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}

.nf-media--art img {
  height: auto;
  object-fit: contain;
}
