/* ============================================================
   EDUFIT – Landing Page Styles
   Primary: linear-gradient(90deg, #141E4B 0%, #2F47B1 100%)
   Button:  #EB9300
   Font:    Inter (SF Pro Display substitute)
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS RESET & CUSTOM PROPERTIES
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand colours */
  --primary-gradient: linear-gradient(90deg, #141E4B 0%, #2F47B1 100%);
  --primary-dark: #141E4B;
  --primary-blue: #2F47B1;
  --accent-orange: #EB9300;
  --accent-cyan: #00C2FF;

  /* Neutrals */
  --text-primary: #1A1A2E;
  --text-secondary: #444;
  --text-white: #ffffff;
  --hero-bg: #F2F3F7;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;

  /* Spacing */
  --container-max: 1280px;
  --header-height: 72px;

  /* Transitions */
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ----------------------------------------------------------
   2. HEADER
   ---------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 1000;
  background: var(--primary-gradient);
  width: 100%;
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

/* Contact */
.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-white);
  white-space: nowrap;
}

.contact-link {
  color: var(--text-white);
  transition: opacity var(--transition);
}

.contact-link:hover {
  opacity: 0.8;
}

.contact-divider {
  opacity: 0.5;
  font-weight: 300;
}

/* Accent line */
.header-accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, #1a8fff 100%);
}

/* ----------------------------------------------------------
   3. HERO SECTION
   ---------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: calc(80vh - var(--header-height));
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Left-side readability overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(240, 242, 248, 0.97) 0%,
      rgba(240, 242, 248, 0.90) 38%,
      rgba(240, 242, 248, 0.20) 62%,
      transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 40px;
  width: 100%;
  display: flex;
  align-items: center;
}

/* ---- Left: Text Content ---- */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 640px;
  animation: heroFadeIn 0.8s ease both;
}

/* Badge */
.hero-badge {
  display: inline-block;
  background: #141E4B;
  color: var(--text-white);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: 4px;
}

/* Heading */
.hero-heading {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Body paragraphs */
.hero-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #000000;
  max-width: 680px;
}

.hero-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* CTA Button */
.btn-primary {
  display: inline-block;
  background: var(--accent-orange);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 20px rgba(235, 147, 0, 0.35);
  white-space: nowrap;
}

.btn-primary:hover {
  background: #d48200;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(235, 147, 0, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(235, 147, 0, 0.3);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------------------
   4. RESPONSIVE – TABLET (≤ 900px)
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-section {
    background-position: 70% center;
    min-height: 520px;
  }

  .hero-section::before {
    background: linear-gradient(to right,
        rgba(240, 242, 248, 0.97) 0%,
        rgba(240, 242, 248, 0.92) 50%,
        rgba(240, 242, 248, 0.3) 75%,
        transparent 100%);
  }

  .hero-inner {
    padding: 60px 32px;
  }

  .hero-content {
    max-width: 420px;
  }

  .hero-body {
    max-width: 100%;
  }
}

/* ----------------------------------------------------------
   5. RESPONSIVE – MOBILE (≤ 600px)
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  :root {
    --header-height: 60px;
  }

  .header-inner {
    padding: 12px 20px;
    height: auto;
    gap: 8px;
  }

  .logo-img {
    height: 40px;
  }

  .header-contact {
    font-size: 0.78rem;
    gap: 6px;
  }

  .hero-section {
    background-position: 80% center;
    min-height: 480px;
  }

  .hero-section::before {
    background: linear-gradient(to right,
        rgba(240, 242, 248, 0.98) 0%,
        rgba(240, 242, 248, 0.95) 55%,
        rgba(240, 242, 248, 0.4) 80%,
        transparent 100%);
  }

  .hero-inner {
    padding: 40px 20px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-heading {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero-body {
    font-size: 0.85rem;
  }

  .btn-primary {
    font-size: 0.85rem;
    padding: 13px 22px;
    white-space: normal;
    text-align: center;
    width: 100%;
  }
}

/* ----------------------------------------------------------
   6. PROBLEM SECTION – "Is Your School Still Using Outdated Uniforms?"
   ---------------------------------------------------------- */
.problem-section {
  background-color: #ffffff;
  padding: 72px 40px 56px;
}

.problem-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Section heading */
.problem-heading {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--primary-dark);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Cards grid */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.problem-card {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.problem-card-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.problem-card-img:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(20, 30, 75, 0.14);
}

/* Tagline */
.problem-tagline {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ------ Responsive: problem section ------ */

/* Tablet – 2 columns */
@media (max-width: 900px) {
  .problem-section {
    padding: 56px 32px 48px;
  }

  .problem-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile – 1 column */
@media (max-width: 600px) {
  .problem-section {
    padding: 40px 20px 36px;
  }

  .problem-heading {
    font-size: 1.35rem;
  }

  .problem-cards {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .problem-tagline {
    font-size: 0.82rem;
  }
}

/* ----------------------------------------------------------
   7. UPGRADE SECTION – "Not Just a Uniform. A Complete Upgrade"
   ---------------------------------------------------------- */
.upgrade-section {
  background-color: #F2F3F7;
  padding: 72px 40px 60px;
}

.upgrade-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Heading */
.upgrade-heading {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--primary-dark);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.3;
  max-width: 1080px;
}

/* Subtext */
.upgrade-subtext {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
}

/* Cards row */
.upgrade-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 16px;
}

/* Individual card */
.upgrade-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(20, 30, 75, 0.10);
  transition: transform var(--transition), box-shadow var(--transition);
}

.upgrade-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(20, 30, 75, 0.18);
}

.upgrade-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.upgrade-card:hover .upgrade-card-img {
  transform: scale(1.04);
}

/* Label bar – overlaid at the bottom */
.upgrade-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 12px 16px;
  letter-spacing: 0.01em;
}

/* Tagline */
.upgrade-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 8px;
}

/* ------ Responsive: upgrade section ------ */
@media (max-width: 900px) {
  .upgrade-section {
    padding: 56px 32px 48px;
  }

  .upgrade-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .upgrade-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .upgrade-section {
    padding: 40px 20px 36px;
  }

  .upgrade-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .upgrade-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .upgrade-card-img {
    height: 220px;
  }

  .upgrade-heading {
    font-size: 1.25rem;
  }
}

/* ----------------------------------------------------------
   8. FEATURES CAROUSEL SECTION
   ---------------------------------------------------------- */
.features-section {
  position: relative;
  padding: 80px 0 64px;
  background-image: url('images/uniform-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Dark overlay so white text is readable */
.features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 60, 0.55);
  pointer-events: none;
  z-index: 0;
}

.features-inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Heading */
.features-heading {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ---- Carousel wrapper ---- */
.carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* clip horizontally only — allows cards to lift upward on hover */
.carousel-track-wrap {
  flex: 1;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 12px 0;
  /* breathing room for card lift */
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ---- Feature Card ---- */
.feat-card {
  flex: 0 0 calc((100% - 48px) / 3);
  /* 3 visible, 2 gaps */
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  cursor: default;
  display: flex;
  flex-direction: column;
  height: 380px;
  /* fixed height — all cards equal */
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

/* Whole card lifts on hover */
.feat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.50);
}

.feat-card-img {
  width: 100%;
  flex: 1 1 auto;
  /* image fills remaining space */
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 0;
  /* allow flex shrink */
}

/* Transparent glass text area */
.feat-card-body {
  flex: 0 0 auto;
  /* fixed height text zone at bottom */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feat-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.feat-card-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

/* ---- Arrow Buttons ---- */
.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.08);
}

/* ---- Dot Indicators ---- */
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: #ffffff;
  transform: scale(1.25);
}

/* ---- Responsive: Carousel ---- */

/* Tablet – show 2 */
@media (max-width: 900px) {
  .feat-card {
    flex: 0 0 calc((100% - 24px) / 2);
    height: 360px;
  }

  .features-section {
    padding: 60px 0 50px;
  }
}

/* Mobile – show 1 full card */
@media (max-width: 600px) {
  .carousel-wrapper {
    flex-direction: column;
    gap: 16px;
  }

  .carousel-track-wrap {
    width: 100%;
    order: 1;
  }

  .carousel-btn--prev {
    order: 2;
  }

  .carousel-btn--next {
    order: 3;
  }

  /* On mobile, put both arrows in a row below the card */
  .carousel-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .carousel-track-wrap {
    order: 0;
    flex: 0 0 100%;
  }

  .carousel-btn--prev,
  .carousel-btn--next {
    display: flex;
    order: 1;
    flex: 0 0 auto;
    margin: 8px 6px 0;
  }

  .feat-card {
    flex: 0 0 100%;
    height: 340px;
  }

  .carousel-track {
    gap: 16px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .features-section {
    padding: 48px 0 40px;
  }

  .features-inner {
    padding: 0 12px;
  }
}

/* ----------------------------------------------------------
   9. PROGRESSIVE SCHOOLS SECTION
   ---------------------------------------------------------- */
.progressive-section {
  padding: 60px 0;
  overflow-x: hidden;
  /* For bleed effect on left block */
  background: #ffffff;
}

.progressive-header {
  text-align: center;
  max-width: 1440px;
  /* Constrain text width */
  margin: 0 auto 64px;
  padding: 0 20px;
}

.progressive-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.375rem);
  /* roughly 38px on desktop */
  font-weight: 800;
  color: #263A94;
  /* Color picked from design */
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.progressive-header p {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 500;
}

.progressive-content {
  display: flex;
  align-items: center;
  /* align text box and image vertically centered */
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px 40px 80px;
}

/* LEFT SIDE */
.progressive-left {
  flex: 0 0 calc(45% - 40px);
  /* 45% width minus half gap */
  display: flex;
  flex-direction: column;
  position: relative;
}

.progressive-box {
  background: var(--primary-gradient);
  color: var(--text-white);
  padding: 60px 50px 60px 0;
  /* No left padding needed because we want the text aligned with grid */
  border-radius: 0 32px 32px 0;
  position: relative;
}

/* Trick to bleed color to absolute left edge of screen */
.progressive-box::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 50vw;
  /* cover left gap */
  background: #141E4B;
  /* Solid start of gradient */
  z-index: 0;
}

.progressive-box-title {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.progressive-box ul {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.progressive-box ul li {
  position: relative;
  padding-left: 28px;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

.progressive-box ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--text-white);
  border-radius: 50%;
}

.progressive-quote {
  margin-top: 32px;
  position: relative;
}

.progressive-quote p {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 500;
}

.progressive-quote strong {
  font-weight: 800;
}

/* RIGHT SIDE */
.progressive-right {
  flex: 0 0 calc(55% - 40px);
  /* 55% width */
}

.progressive-img {
  width: 100%;
  height: 500px;
  /* Ensure image is tall enough */
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: block;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .progressive-content {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .progressive-content {
    flex-direction: column-reverse; /* Right side (image) appears first */
    gap: 24px; /* Reduced gap */
    padding: 0 20px; /* Force center alignment, disable desktop 80px offset */
  }

  .progressive-left,
  .progressive-right {
    flex: 0 0 100%;
    width: 100%;
    padding: 0;
  }

  .progressive-box {
    border-radius: 16px;
    padding: 24px 20px;
  }

  .progressive-box::before {
    display: none;
    /* remove left bleed on smaller screens */
  }

  .progressive-quote {
    text-align: center;
    margin-top: 16px; /* tighter quote gap */
  }

  .progressive-img {
    height: auto;
    object-fit: cover;
    border-radius: 12px; /* softer compact curve on mobile */
  }
}

@media (max-width: 600px) {
  .progressive-section {
    padding: 40px 0;
  }

  .progressive-header {
    margin-bottom: 24px;
  }

  .progressive-header h2 {
    font-size: 1.35rem; /* much smaller header */
  }

  .progressive-box {
    padding: 24px 16px;
  }

  .progressive-box-title {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .progressive-box ul {
    gap: 12px;
  }

  .progressive-box ul li {
    font-size: 0.9rem;
    padding-left: 20px;
  }
}

/* ----------------------------------------------------------
   10. NOTICE SECTION
   ---------------------------------------------------------- */
.notice-section {
  background-color: #F6F6F6;
  padding: 60px 0;
  width: 100%;
}

.notice-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.notice-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .notice-section {
    padding: 80px 0;
  }
}

@media (max-width: 600px) {
  .notice-section {
    padding: 60px 0;
  }
}

/* ----------------------------------------------------------
   11. TRUSTED SCHOOLS SECTION
   ---------------------------------------------------------- */
.trusted-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.trusted-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.trusted-header {
  text-align: center;
  max-width: 1440px;
  margin: 0 auto 56px;
}

.trusted-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #263A94;
  /* Color picked from design overlay */
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.trusted-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 500;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trusted-logo {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 160px;
  /* Keep uniform visual scale */
  object-fit: contain;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .trusted-section {
    padding: 80px 0;
  }

  .trusted-logos {
    gap: 32px;
  }

  .trusted-logo {
    max-height: 130px;
  }
}

@media (max-width: 600px) {
  .trusted-section {
    padding: 40px 0;
  }

  .trusted-header {
    margin-bottom: 24px;
  }
  
  .trusted-header h2 {
    font-size: 1.5rem;
  }

  .trusted-logos {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
  }

  .trusted-logo {
    max-height: 50px;
    width: 30%;
    object-fit: contain;
  }
}

/* ----------------------------------------------------------
   12. ONBOARDING SECTION
   ---------------------------------------------------------- */
.onboard-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.onboard-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.onboard-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
}

.onboard-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #263A94;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.onboard-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Base flex card width to 4 items for Onboarding */
.onboard-card {
  flex: 0 0 calc((100% - 72px) / 4);
  /* 4 visible, 3 gaps of 24px */
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  /* subtle shadow to pop against white bg */
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
}

.onboard-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Modifiers for light background */
.carousel-btn--dark {
  background: transparent;
  border: none;
  color: #4A4A4A;
}

.carousel-btn--dark:hover {
  color: #1A1A2E;
  background: rgba(0, 0, 0, 0.04);
}

.carousel-dots--dark .carousel-dot {
  background: rgba(0, 0, 0, 0.15);
}

.carousel-dots--dark .carousel-dot.active {
  background: #263A94;
  /* active brand color */
}

@media (max-width: 900px) {
  .onboard-section {
    padding: 80px 0;
  }

  .onboard-card {
    flex: 0 0 calc((100% - 24px) / 2);
    /* 2 visible on tablet */
  }
}

@media (max-width: 600px) {
  .onboard-section {
    padding: 60px 0;
  }

  .onboard-header {
    margin-bottom: 40px;
  }

  .onboard-card {
    flex: 0 0 100%;
    /* 1 visible on mobile */
  }
}

/* ----------------------------------------------------------
   13. UPGRADE CTA SECTION
   ---------------------------------------------------------- */
.upgrade-cta-section {
  position: relative;
  background: url('images/upgrade-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-white);
}

.upgrade-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.upgrade-cta-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.upgrade-cta-inner p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-block;
  background-color: var(--accent-orange, #F39C12);
  color: #1a1a1a;
  padding: 16px 40px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 16px;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(243, 156, 18, 0.3);
}

.cta-micro-text {
  display: block;
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  margin-bottom: 0 !important;
}

/* ----------------------------------------------------------
   14. FORM SECTION
   ---------------------------------------------------------- */
.form-section {
  background-color: #141E4B;
  padding: 60px 20px 80px;
  margin-top: -2px;
  /* Fix subpixel rendering causing a white line */
  position: relative;
  z-index: 10;
}

.form-inner {
  max-width: 900px;
  /* Constrain form width to look elegant */
  margin: 0 auto;
}

.form-container {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 48px 64px;
}

.form-container h3 {
  color: #ffffff;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row input {
  flex: 1;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  background-color: #ffffff;
  color: var(--text-primary);
  outline: none;
  transition: box-shadow 0.2s ease;
}

.form-row input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.form-row input::placeholder {
  color: #888;
}

.form-row input.full-width {
  flex: 0 0 100%;
}

.form-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.submit-btn {
  background-color: #5B6AA9;
  /* Matched to design */
  color: #ffffff;
  padding: 16px 48px;
  border: none;
  border-radius: 40px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background-color: #6C7BB8;
  transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .upgrade-cta-section {
    padding: 80px 20px;
  }

  .form-container {
    padding: 40px 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .form-row input {
    width: 100%;
  }

  .submit-btn {
    width: 100%;
  }

  .btn-primary, .cta-btn, .submit-btn {
    font-size: 0.9rem !important;
    padding: 14px 24px !important;
  }

  h2 {
    font-size: 1.35rem !important;
  }
}

/* ----------------------------------------------------------
   15. FINAL CTA SECTION
   ---------------------------------------------------------- */
.final-cta-section {
  background-color: #EFEFEF;
  /* Matches the light grey of the design */
  padding: 40px 20px;
  text-align: center;
}

.final-cta-inner {
  max-width: 880px;
  margin: 0 auto;
}

.final-cta-inner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #263A94;
  /* Match heading color */
  margin-bottom: 24px;
}

.final-cta-inner p {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.final-cta-strong {
  font-weight: 800;
  margin-bottom: 32px !important;
}

.final-cta-btn {
  background-color: #EB9300;
  /* Richer orange/yellow */
}

/* ----------------------------------------------------------
   16. FOOTER
   ---------------------------------------------------------- */
.site-footer {
  background-color: #3B52A1;
  /* Purple-blue from screenshot */
  padding: 24px 20px;
  color: #ffffff;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #ffffff;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .final-cta-section {
    padding: 60px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-links {
    margin-top: 8px;
    justify-content: center;
  }
}