/* =================================================================
 * Dian Landing Page Redesign - Phase 1 Mockup CSS
 *
 * Scoped under .home-redesign. Uses em (not rem) because the live site
 * sets html { font-size: 10px } (62.5%); the mockup was authored for 16px.
 *
 * Site chrome (white body.normal, navbar gradient, site-footer) lives in
 * site-chrome.css and is loaded from Dian layout for all public pages.
 * ================================================================= */

/* style.shared.css sets #home a { color:#fff } for the old full-bleed hero — override for redesign content */
body#home .home-redesign a {
  color: #4169e1;
}
body#home .home-redesign a:hover {
  color: #3155dd;
}
/* Locale first-visit buttons keep white text like the old homepage */
body#home .home-redesign a.btn-locale-selector,
body#home .home-redesign a.btn-locale-selector:hover,
body#home .home-redesign a.btn-locale-selector:focus {
  color: #fff !important;
}
body#home .home-redesign .cta-banner a.btn-cta,
body#home .home-redesign a.btn-cta {
  color: #4169e1 !important;
  background: #fff !important;
  border-color: #fff !important;
}
body#home .home-redesign .cta-banner a.btn-cta:hover,
body#home .home-redesign a.btn-cta:hover {
  color: #3155dd !important;
  background: #eaf1ff !important;
}
body#home .home-redesign .blog-card h3 a {
  color: #1f2937 !important;
}
body#home .home-redesign .blog-card h3 a:hover {
  color: #4169e1 !important;
}
body#home .home-redesign .link-arrow {
  color: #4169e1 !important;
}

body#home #home-announcements.announcement-bar,
body#home #home-announcements {
  display: block !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  z-index: 10 !important;
  background: linear-gradient(90deg, #eef7fc 0%, #ffffff 100%) !important;
  color: #1a365d !important;
  font-size: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
}

body#home #home-announcements .home-announcement-container,
body#home .home-announcement-container {
  background-color: transparent !important;
  margin-top: 0 !important;
  border: 0 !important;
}

body#home #home-announcements .home-announcement-container .container,
body#home .home-announcement-container.container,
body#home .announcement-inner.container {
  border: 0 !important;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 32px);
  padding-right: clamp(16px, 3vw, 32px);
}

body#home #home-announcements a,
body#home #home-announcements p,
body#home #home-announcements .announcement-inner,
body#home #home-announcements .announcement-close {
  color: #1a365d !important;
  font-size: inherit !important;
}

body#home #home-announcements a {
  text-decoration: underline !important;
  font-weight: 600 !important;
}

body#home #home-announcements .close-button,
body#home #home-announcements .announcement-close {
  float: none !important;
  position: absolute !important;
  right: clamp(16px, 3vw, 32px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(26, 54, 93, 0.05) !important;
  border: 0 !important;
  border-radius: 20px !important;
  color: #1a365d !important;
  cursor: pointer !important;
  padding: 4px !important;
}

.home-redesign {
  /* Establish 16px em-root (site html is 10px). */
  font-size: 16px;

  /* Dian brand colors (from dian/static/css/style.css) */
  --dian-blue:          #4169e1;
  --dian-blue-dark:     #3155dd;
  --dian-blue-light:    #50b3ea;
  --dian-blue-pale:     #eaf1ff;
  --dian-green:         #28a428;
  --dian-green-light:   #78d739;
  --dian-purple:        #9400d3;
  --dian-purple-light:  #bb39d7;
  --dian-orange:        #feaf20;
  --dian-pink:          #ff1493;
  --dian-teal:          #39b3d7;

  /* Neutrals */
  --color-text:         #1f2937;
  --color-text-soft:    #4b5563;
  --color-text-muted:   #6b7280;
  --color-border:       #e5e7eb;
  --color-bg:           #ffffff;
  --color-bg-soft:      #f7f9fc;
  --color-bg-dark:      #1e293b;

  /* Layout */
  --container-max:      1200px;
  --section-py:         clamp(3em, 7vw, 6em);
  --radius-sm:          6px;
  --radius:             10px;
  --radius-lg:          16px;
  --shadow-sm:          0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:             0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:          0 12px 32px rgba(0,0,0,0.12);

  /* Typography (fluid via clamp()); em relative to 16px above */
  --fs-display:         clamp(2.25em, 5vw, 3.75em);
  --fs-h2:              clamp(1.75em, 3.5vw, 2.5em);
  --fs-h3:              clamp(1.125em, 1.6vw, 1.375em);
  --fs-body:            1em;
  --fs-small:           0.875em;

  /* Transitions */
  --t-fast:             150ms ease;
  --t-base:             250ms ease;
}

/* ---------- Reset & Base ---------- */
.home-redesign,
.home-redesign * {
  box-sizing: border-box;
}
.home-redesign {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.home-redesign h1,  .home-redesign h2,  .home-redesign h3,  .home-redesign h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
.home-redesign p { margin: 0 0 1em; }
.home-redesign ul { margin: 0; padding: 0; list-style: none; }
.home-redesign img { max-width: 100%; height: auto; display: block; }
.home-redesign a {
  color: var(--dian-blue);
  text-decoration: none;
  transition: color var(--t-fast);
}
.home-redesign a:hover { color: var(--dian-blue-dark); }
.home-redesign :focus-visible {
  outline: 3px solid var(--dian-blue-light);
  outline-offset: 2px;
  border-radius: 3px;
}

.home-redesign .container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: clamp(1em, 3vw, 2em);
  padding-right: clamp(1em, 3vw, 2em);
}

.home-redesign .section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}
.home-redesign .bg-soft { background: var(--color-bg-soft); }

.home-redesign .section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2em, 4vw, 3em);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75em; /* relative to 16px root, not h2 font-size */
}
.home-redesign .section-header h2 {
  font-size: var(--fs-h2);
  margin: 0;
}
.home-redesign .section-header p {
  font-size: 1.0625em;
  color: var(--color-text-soft);
  margin: 0;
}
.home-redesign .section-header-with-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2em;
  text-align: left;
  max-width: none;
  flex-direction: row;
}
.home-redesign .section-header-with-link > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: flex-start;
}
.home-redesign .section-header-with-link h2 { margin: 0; }
.home-redesign .section-header-with-link p { margin: 0; }

/* ---------- Buttons ---------- */
.home-redesign .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.875em 1.5em;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
  text-decoration: none;
  line-height: 1.2;
}
.home-redesign .btn-primary {
  background: var(--dian-blue);
  color: #fff;
  border-color: var(--dian-blue);
}
.home-redesign .btn-primary:hover {
  background: var(--dian-blue-dark);
  border-color: var(--dian-blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.home-redesign .btn-cta {
  background: #fff;
  color: var(--dian-blue);
  border-color: #fff;
  font-size: 1.0625em;
  padding: 1em 2em;
}
.home-redesign .btn-cta:hover {
  background: var(--dian-blue-pale);
  color: var(--dian-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.home-redesign .btn-block {
  width: 100%;
}

.home-redesign .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  white-space: nowrap;
}
.home-redesign .link-arrow i { transition: transform var(--t-fast); }
.home-redesign .link-arrow:hover i { transform: translateX(3px); }

/* =================================================================
 * 1. NAVBAR
 * ================================================================= */
.home-redesign .site-header {
  background-color: var(--dian-blue);
  background: linear-gradient(90deg, var(--dian-blue) 0%, var(--dian-blue-light) 100%);
  color: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.home-redesign .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.home-redesign .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 1.5em;
  /*color: var(--dian-blue);*/
  color: #fff;
}
.home-redesign .brand img { height: 40px; width: auto; }
.home-redesign .brand-fallback {
  display: none;
  letter-spacing: 0.5px;
}
.home-redesign .brand img[style*="display: none"] + .brand-fallback,
.home-redesign .brand img[style*="display:none"]  + .brand-fallback {
  display: inline-block;
}
.home-redesign a.brand:hover { color: #e1e8ed; }
.home-redesign .primary-nav > ul {
  display: flex;
  gap: 0.25em;
  align-items: center;
}
.home-redesign .primary-nav a {
  display: block;
  padding: 0.625em 1em;
  color: #fff;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), color var(--t-fast);
}
.home-redesign .primary-nav a:hover {
  background: var(--dian-blue);
  color: #fff;
}
.home-redesign .primary-nav .login-link {
  border: 1px solid #fff;
  color: #fff;
}
.home-redesign .primary-nav .login-link:hover { background: var(--dian-blue); color: #fff; }

.home-redesign .has-dropdown { position: relative; }
.home-redesign .has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--dian-blue);
  color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.5em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s linear var(--t-fast);
  z-index: 110;
}
.home-redesign .has-dropdown:hover .dropdown,
.home-redesign .has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.home-redesign .has-dropdown .dropdown a {
  white-space: nowrap;
  padding: 0.5em 0.75em;
}
.home-redesign .has-dropdown .dropdown a:hover {
  background: var(--dian-blue-pale);
  color: var(--dian-blue);
}
.home-redesign .lang-switcher .dropdown { left: auto; right: 0; min-width: 140px; }

.home-redesign .mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.5em;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5em;
}

/* =================================================================
 * 2. ANNOUNCEMENT BAR
 * ================================================================= */
.home-redesign .announcement-bar {
  background: linear-gradient(90deg, #eef7fc 0%, #ffffff 100%);
  color: #1a365d;
  font-size: var(--fs-small);
  position: relative;
}
.home-redesign .announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625em 0;
  position: relative;
}
.home-redesign .announcement-inner p {
  margin: 0;
  text-align: center;
}
.home-redesign .announcement-inner a {
  color: #1a365d;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 0.5em;
  transition: opacity 0.2s ease;
}
.home-redesign .announcement-inner a:hover { color: #3182ce; opacity: 0.8;}
.home-redesign .announcement-close {
  position: absolute;
  right: clamp(1em, 3vw, 2em);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 54, 93, 0.05);
  border-radius: 20px;
  border: 0;
  color: #1a365d;
  cursor: pointer;
  font-size: 1em;
  padding: 0.25em;
  transition: all 0.2s ease-in-out;
}
.home-redesign .announcement-close:hover {
  background: rgba(26, 54, 93, 0.12);
  color: #0f233f;
}

/* =================================================================
 * 3. HERO + SEARCH FORM
 * ================================================================= */
.home-redesign .hero {
  background-image:
    url("../images/home/background.png"),
    linear-gradient(90deg, #e5e2dc 0%, #d8d4cb 10%, #d8d4cb 90%, #e5e2dc 100%);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  color: var(--color-text);
  min-height: clamp(400px, 60vw, 650px);
  display: flex;
  align-items: center;
  position: relative;
  /* visible so school combobox dropdown is not clipped (was overflow:hidden) */
  overflow: visible;
}
/* Mobile layout: The form takes up full container width on tiny screens */
@media (max-width: 767px) {
   .home-redesign .hero {
    background-size: cover; /* Looks better on narrow mobile screens */
    padding: 3em 0;
  }
}

/* ---------- Plane + banner animation (flying through the window) ---------- */
/* Transparent overlay positioned + clipped to the sky band of the window in the
   background illustration by initHeroAnimation() in home_new.js, so the plane
   appears to fly past behind the glass. The values below are a pre-paint
   fallback only (JS sets the real left/top/width/height). */
.home-redesign .hero-animation {
  position: absolute;
  top: 9.7%;
  left: 71%;
  width: 22%;
  aspect-ratio: 242 / 106;
  z-index: 1;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}
.home-redesign .hero-animation .plane-svg {
  display: block;
  width: 100%;
  height: 100%;
}
/* Vertical window mullion — full glass height, replaces the bar removed from
   background.png. Stacked above .hero-animation so the plane flies behind it.
   Positioned by initHeroAnimation() to match the contained background box. */
.home-redesign .hero-mullion {
  position: absolute;
  top: 9.5%;
  left: 82%;
  width: 1%;
  height: 40%;
  z-index: 3;
  box-sizing: border-box;
  /* Wood fill + side outlines. Top/bottom edges meet the PNG frame rails
     (no top/bottom borders) so both joints match the illustration. */
  background: #dab597;
  border-left: 1px solid #643928;
  border-right: 1px solid #643928;
  border-top: 0;
  border-bottom: 0;
  pointer-events: none;
}
/* Hide on small screens where the illustration is cropped (cover) and the
   window is not reliably in view. */
@media (max-width: 767px) {
   .home-redesign .hero-animation,
   .home-redesign .hero-mullion { display: none; }
}

.home-redesign .hero-grid {
  width: 100%;
  position: relative;
  z-index: 4;
}
/* Desktop layout: Safe centering without absolute positioning heights collapsing */
@media (min-width: 768px) {
   .home-redesign .hero-grid {
    display: flex;
    align-items: center;        /* Vertically aligns form to the vertical center line */
    justify-content: flex-start; /* Pushes the card content elements leftward */
    align-self: stretch;        /* Forces layout grid container to fill full section height */
  }
}
/* Mobile layout: The form stacks cleanly below the illustration so it stays readable */
@media (max-width: 767px) {
   .home-redesign .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    align-items: center;
    justify-content: center;
  }
}
.home-redesign .hero-search {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5em, 3vw, 2em);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}
/* ?Search=true — raise hero above page overlay; local ::before veils the art
   so Find My Plan stays bright while the rest of the page greys out. */
.home-redesign .hero.search-focus {
  z-index: 99999;
  overflow: visible;
}
.home-redesign .hero.search-focus::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
  pointer-events: none;
}
.home-redesign .hero.search-focus .hero-grid,
.home-redesign .hero.search-focus .hero-search {
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
   .home-redesign .hero-search {
    width: 320px;               /* Keeps the card narrow to fit neatly on a single cushion */
    margin-left: 10%;            /* Change this percentage to nudge left or right over your image cushion */
    margin-top: -80px;           /* Pulls the form upward. Adjust this value to line up the bottom with the sofa seat */
  }
}

.home-redesign .form-row { margin-bottom: 1em; }
.home-redesign .form-row label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text-soft);
  margin-bottom: 0.375em;
}
.home-redesign .form-row select,
.home-redesign .form-row input[type="text"] {
  width: 100%;
  padding: 0.75em 0.875em;
  font-size: 1em;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}
.home-redesign .form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875em center;
  padding-right: 2.25em;
}
.home-redesign .form-row select:focus,
.home-redesign .form-row input[type="text"]:focus {
  outline: 0;
  border-color: var(--dian-blue);
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.15);
}
/* Shrinks the long options inside the popup list */
.home-redesign .form-row select option {
  font-size: 0.8em; /* Shrinks the text size */
  letter-spacing: -0.015em; /* Tightens characters slightly */
  font-weight: 600;
}

/* Bootstrap combobox (school) — one rounded field like visa/state; caret stays clickable */
.home-redesign .form-row .combobox-container {
  width: 100%;
  display: block;
  position: relative;
}
.home-redesign .form-row .combobox-container > .input-group {
  display: flex !important;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: visible;
}
.home-redesign .form-row .combobox-container .form-control,
.home-redesign .form-row .combobox-container input.form-control {
  flex: 1 1 auto;
  width: 100% !important;
  height: auto !important;
  padding: 0.75em 0.875em !important;
  font-size: 1em !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  color: var(--color-text) !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
  box-shadow: none !important;
}
.home-redesign .form-row .combobox-container .form-control::placeholder,
.home-redesign .form-row .combobox-container .form-control::-webkit-input-placeholder,
.home-redesign .form-row .combobox-container .form-control::-moz-placeholder {
  color: var(--color-text) !important;
  opacity: 1 !important;
}
/* Caret hit-target — same filled triangle as select SVG, no split border */
.home-redesign .form-row .combobox-container .input-group-addon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.25em;
  width: 2.25em !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280;
  cursor: pointer;
  position: static !important;
}
.home-redesign .form-row .combobox-container .input-group-addon .caret {
  display: inline-block !important;
  width: 0;
  height: 0;
  margin: 0 !important;
  border-style: solid;
  border-width: 6px 6px 0 6px;
  border-color: #6b7280 transparent transparent transparent;
  vertical-align: middle;
}
.home-redesign .form-row .combobox-container .input-group-addon .glyphicon-remove {
  display: none !important;
}
.home-redesign .form-row .combobox-container.combobox-selected .input-group-addon .caret {
  display: none !important;
}
.home-redesign .form-row .combobox-container.combobox-selected .input-group-addon .glyphicon-remove {
  display: inline-block !important;
  color: #6b7280;
}
/* Typeahead list: match field text size; Bootstrap-like selection highlight */
body#home .home-redesign .form-row .combobox-container .dropdown-menu {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.25em 0;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  font-size: 1em;
}
body#home .home-redesign .form-row .combobox-container .dropdown-menu > li > a,
body#home .home-redesign .form-row .combobox-container .dropdown-menu > li > a strong {
  color: var(--color-text) !important;
  background: transparent !important;
}
body#home .home-redesign .form-row .combobox-container .dropdown-menu > li > a {
  font-size: 1em;
  font-weight: 400;
  padding: 0.5em 0.75em;
  white-space: normal;
}
body#home .home-redesign .form-row .combobox-container .dropdown-menu > li > a strong {
  font-weight: 600;
}
body#home .home-redesign .form-row .combobox-container .dropdown-menu > li.active > a,
body#home .home-redesign .form-row .combobox-container .dropdown-menu > li > a:hover,
body#home .home-redesign .form-row .combobox-container .dropdown-menu > li > a:focus {
  /* Match Bootstrap 3 / native-select style selection (solid blue, white text) */
  background: #337ab7 !important;
  color: #fff !important;
}
body#home .home-redesign .form-row .combobox-container .dropdown-menu > li.active > a strong,
body#home .home-redesign .form-row .combobox-container .dropdown-menu > li > a:hover strong,
body#home .home-redesign .form-row .combobox-container .dropdown-menu > li > a:focus strong {
  color: #fff !important;
}
.home-redesign .hero-search .btn.btn-primary.btn-block,
.home-redesign .hero-search button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  margin-top: 0.5em;
  padding: 0.875em 1.5em !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: #fff !important;
  background: var(--dian-blue) !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.home-redesign .hero-search .btn.btn-primary.btn-block:hover,
.home-redesign .hero-search button[type="submit"]:hover {
  background: var(--dian-blue-dark) !important;
}
.home-redesign .hero-search ul.error {
  color: #b91c1c;
  font-size: var(--fs-small);
  margin: 0 0 0.75em;
  padding-left: 1.1em;
}

/* =================================================================
 * 4. TRUST STRIP / STAT COUNTERS
 * ================================================================= */
.home-redesign .trust-strip {
  padding: clamp(2.5em, 5vw, 4em) 0 clamp(1.5em, 3vw, 2em);
  background: var(--color-bg);
}
.home-redesign .stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
  text-align: center;
  align-items: start;
}
/* Bootstrap .container clearfix pseudos must never become grid items */
.home-redesign .stats-grid::before,
.home-redesign .stats-grid::after {
  content: none !important;
  display: none !important;
}
@media (min-width: 700px) {
   .home-redesign .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
.home-redesign .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5em; /* relative to 16px .stat, not .stat-number font-size */
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  min-height: 0;
  position: relative;
  top: auto;
}
.home-redesign .stat-number {
  font-size: clamp(2.5em, 5vw, 3.75em);
  font-weight: 800;
  color: var(--dian-blue);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0;
  display: block;
  width: 100%;
}
.home-redesign .stat-label {
  font-size: 1em;
  color: var(--color-text-soft);
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 500;
}

.home-redesign .placeholder-note {
  text-align: center;
  font-size: 0.8125em;
  color: var(--color-text-muted);
  margin-top: 1.5em;
  background: rgba(254, 175, 32, 0.08);
  border: 1px dashed var(--dian-orange);
  padding: 0.5em 1em;
  border-radius: var(--radius-sm);
  display: block;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.home-redesign .placeholder-note i { color: var(--dian-orange); margin-right: 0.25em; }

/* =================================================================
 * 5. PLAN CATEGORY CARDS
 * ================================================================= */
.home-redesign .plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
}
@media (min-width: 600px) {  .home-redesign .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {  .home-redesign .plan-grid { grid-template-columns: repeat(3, 1fr); } }

.home-redesign .plan-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2em 1.75em;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}
.home-redesign .plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--dian-blue));
}
.home-redesign .plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--card-accent, var(--dian-blue));
  color: var(--color-text);
}
.home-redesign .plan-card.plan-blue   { --card-accent: var(--dian-blue); }
.home-redesign .plan-card.plan-purple { --card-accent: var(--dian-purple); }
.home-redesign .plan-card.plan-green  { --card-accent: var(--dian-green); }
.home-redesign .plan-card.plan-orange { --card-accent: var(--dian-orange); }
.home-redesign .plan-card.plan-pink   { --card-accent: var(--dian-pink); }
.home-redesign .plan-card.plan-teal   { --card-accent: var(--dian-teal); }
.home-redesign .plan-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 12%, transparent);
  color: var(--card-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  margin-bottom: 1.25em;
}
.home-redesign .plan-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5em;
}
.home-redesign .plan-card p {
  color: var(--color-text-soft);
  margin-bottom: 1.25em;
  flex-grow: 1;
}
.home-redesign .plan-link {
  font-weight: 600;
  color: var(--card-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.home-redesign .plan-link i { transition: transform var(--t-fast); }
.home-redesign .plan-card:hover .plan-link i { transform: translateX(4px); }

/* =================================================================
 * 6. WHY CHOOSE DIAN
 * ================================================================= */
.home-redesign .value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
}
@media (min-width: 600px) {  .home-redesign .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {  .home-redesign .value-grid { grid-template-columns: repeat(4, 1fr); } }

.home-redesign .value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75em 1.5em;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.home-redesign .value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.home-redesign .value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--dian-blue-pale);
  color: var(--dian-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625em;
  margin: 0 auto 1.25em;
}
.home-redesign .value-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5em;
}
.home-redesign .value-card p {
  color: var(--color-text-soft);
  margin: 0;
  font-size: 0.9375em;
}

/* =================================================================
 * 7. HOW IT WORKS
 * ================================================================= */
.home-redesign .steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
  list-style: none;
  padding: 0;
  counter-reset: steps;
  position: relative;
}
@media (min-width: 800px) {
   .home-redesign .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
.home-redesign .step {
  text-align: center;
  padding: 0 1em;
  position: relative;
}
.home-redesign .step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dian-blue);
  color: #fff;
  font-size: 1.25em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1em;
}
.home-redesign .step-icon {
  font-size: 2.5em;
  color: var(--dian-blue-light);
  margin-bottom: 1em;
}
.home-redesign .step h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5em;
}
.home-redesign .step p {
  color: var(--color-text-soft);
  margin: 0;
  font-size: 0.9375em;
}
@media (min-width: 800px) {
   .home-redesign .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    right: -1em;
    width: 2em;
    height: 2px;
    background: var(--color-border);
  }
}

/* =================================================================
 * 8. UNIVERSITY LOGO WALL
 * ================================================================= */
.home-redesign .university-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
}
@media (min-width: 500px) {  .home-redesign .university-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) {  .home-redesign .university-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) {  .home-redesign .university-grid { grid-template-columns: repeat(6, 1fr); } }
.home-redesign .university-logo {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-text-soft);
  font-size: 0.9375em;
  text-align: center;
  padding: 0.5em;
  overflow: hidden;
  filter: grayscale(40%);
  opacity: 0.85;
  transition: filter var(--t-base), opacity var(--t-base), transform var(--t-base);
}
.home-redesign .university-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
.home-redesign .university-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.home-redesign .university-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

/* =================================================================
 * 9. TESTIMONIALS CAROUSEL
 * ================================================================= */
.home-redesign .carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.home-redesign .carousel-track {
  display: flex;
  gap: 1.5em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1em 0.25em;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--dian-blue-light) transparent;
}
.home-redesign .carousel-track::-webkit-scrollbar { height: 6px; }
.home-redesign .carousel-track::-webkit-scrollbar-thumb {
  background: var(--dian-blue-light);
  border-radius: 3px;
}
.home-redesign .testimonial-card {
  flex: 0 0 calc((100% - 1.5em) / 1);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75em;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
@media (min-width: 700px) {
   .home-redesign .testimonial-card { flex-basis: calc((100% - 1.5em) / 2); }
}
@media (min-width: 1000px) {
   .home-redesign .testimonial-card { flex-basis: calc((100% - 3em) / 3); }
}
.home-redesign .testimonial-rating {
  color: var(--dian-orange);
  margin-bottom: 0.75em;
  font-size: 0.875em;
  letter-spacing: 1px;
}
.home-redesign .testimonial-card blockquote {
  margin: 0 0 1.25em;
  font-size: 1em;
  line-height: 1.55;
  color: var(--color-text);
  flex-grow: 1;
}
.home-redesign .testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875em;
}
.home-redesign .testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dian-blue-pale);
  color: var(--dian-blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-redesign .testimonial-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.9375em;
}
.home-redesign .testimonial-meta {
  margin: 0;
  font-size: 0.8125em;
  color: var(--color-text-muted);
}
.home-redesign .carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--dian-blue);
  font-size: 1em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.home-redesign .carousel-btn:hover {
  background: var(--dian-blue);
  color: #fff;
  transform: scale(1.05);
}
.home-redesign .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-top: 1em;
}
.home-redesign .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.home-redesign .carousel-dot.active {
  background: var(--dian-blue);
  transform: scale(1.3);
}

/* =================================================================
 * 10. FAQ ACCORDION
 * ================================================================= */
.home-redesign .faq-container { max-width: 820px; }
.home-redesign .faq-list {
  border-top: 1px solid var(--color-border);
}
.home-redesign .faq-item {
  border-bottom: 1px solid var(--color-border);
}
.home-redesign .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25em 2.5em 1.25em 0;
  font-weight: 600;
  font-size: 1.0625em;
  position: relative;
  color: var(--color-text);
  transition: color var(--t-fast);
}
.home-redesign .faq-item summary::-webkit-details-marker { display: none; }
.home-redesign .faq-item summary::after {
  content: "\002B";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dian-blue-pale);
  color: var(--dian-blue);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.125em;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-base);
}
.home-redesign .faq-item[open] summary::after {
  content: "\2212";
  background: var(--dian-blue);
  color: #fff;
  transform: translateY(-50%) rotate(180deg);
}
.home-redesign .faq-item[open] summary { color: var(--dian-blue); }
.home-redesign .faq-item summary:hover { color: var(--dian-blue); }
.home-redesign .faq-answer {
  padding: 0 0 1.25em;
  color: var(--color-text-soft);
}
.home-redesign .faq-answer p { margin: 0; line-height: 1.6; }

/* =================================================================
 * 11. BLOG TEASER
 * ================================================================= */
.home-redesign .blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75em;
}
@media (min-width: 700px) {  .home-redesign .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {  .home-redesign .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.home-redesign .blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.home-redesign .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.home-redesign .blog-image {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: #4169e1;
  overflow: hidden;
}
.home-redesign .blog-image-fallback-0 {
  background-image: linear-gradient(135deg, #4169e1 0%, #50b3ea 100%);
}
.home-redesign .blog-image-fallback-1 {
  background-image: linear-gradient(135deg, #28a428 0%, #78d739 100%);
}
.home-redesign .blog-image-fallback-2 {
  background-image: linear-gradient(135deg, #9400D3 0%, #bb39d7 100%);
}
.home-redesign .blog-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-redesign .blog-image-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.18);
  padding: 0.25em 0.625em;
  border-radius: var(--radius-sm);
}
.home-redesign .blog-card-body {
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.home-redesign .blog-meta {
  font-size: 0.8125em;
  color: var(--color-text-muted);
  margin: 0 0 0.5em !important;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-grow: 0 !important;
}
.home-redesign .blog-card h3 {
  font-size: 1.125em;
  margin: 0 0 0.625em !important;
  padding: 0;
  line-height: 1.35;
  flex-grow: 0;
}
.home-redesign .blog-card .blog-excerpt {
  color: var(--color-text-soft);
  margin: 0 0 1em !important;
  font-size: 0.9375em;
  flex-grow: 1;
}
.home-redesign .blog-card-body > .link-arrow {
  margin-top: auto;
}

/* =================================================================
 * 12. CTA BANNER + FOOTER
 * ================================================================= */
.home-redesign .cta-banner {
  background: linear-gradient(135deg, var(--dian-blue) 0%, var(--dian-purple) 100%);
  color: #fff;
  padding: clamp(2.5em, 5vw, 4em) 0;
}
.home-redesign .cta-banner .container.cta-inner,
.home-redesign .cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  text-align: center;
}
@media (min-width: 800px) {
   .home-redesign .cta-banner .container.cta-inner,
   .home-redesign .cta-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
}
.home-redesign .cta-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: inherit;
}
.home-redesign .cta-copy h2 {
  color: #fff !important;
  font-size: clamp(1.5em, 3vw, 2.25em);
  margin-bottom: 0.375em;
}
.home-redesign .cta-copy p {
  margin: 0;
  font-size: 1em;
  color: rgba(255,255,255,0.9) !important;
}
.home-redesign .btn-cta,
.home-redesign a.btn.btn-cta {
  background: #fff !important;
  color: var(--dian-blue) !important;
  border: 2px solid #fff !important;
  font-size: 1.0625em;
  padding: 1em 2em;
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none !important;
}
.home-redesign .btn-cta span,
.home-redesign a.btn.btn-cta span,
.home-redesign .btn-cta i,
.home-redesign a.btn.btn-cta i {
  color: var(--dian-blue) !important;
}
.home-redesign .btn-cta:hover,
.home-redesign a.btn.btn-cta:hover {
  background: var(--dian-blue-pale) !important;
  color: var(--dian-blue-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* site-footer styles live in site-chrome.css */

/* =================================================================
 * MOBILE NAV (toggle nav-open class on body to expand)
 * ================================================================= */
@media (max-width: 900px) {
   .home-redesign .mobile-nav-toggle { display: inline-flex; }
   .home-redesign .primary-nav {
    position: fixed;
    inset: 70px 0 0 0;
    background: #fff;
    padding: 1.25em clamp(1em, 3vw, 2em);
    transform: translateX(100%);
    transition: transform var(--t-base);
    overflow-y: auto;
    z-index: 99;
    box-shadow: var(--shadow-lg);
  }
   .home-redesign.nav-open .primary-nav { transform: translateX(0); }
   .home-redesign .primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25em;
  }
   .home-redesign .primary-nav a { padding: 0.875em 1em; }
   .home-redesign .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--color-bg-soft);
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0.25em;
    padding: 0.25em 0.5em;
  }
}

/* =================================================================
 * REDUCED MOTION
 * ================================================================= */
@media (prefers-reduced-motion: reduce) {
   .home-redesign *,
   .home-redesign *::before,
   .home-redesign *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


