/**
 * BS/MD Admissions Specialists Landing Page Styles
 * Moon Prep by Aktiv Studios
 */

/* ==========================================================================
   Global & Typography
   ========================================================================== */
.bsmd-landing-page {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  color: #1A202C;
  line-height: 1.5;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

.bsmd-landing-page h1,
.bsmd-landing-page h2,
.bsmd-landing-page h3,
.bsmd-landing-page h4,
.bsmd-landing-page h5,
.bsmd-landing-page h6 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  color: #0A2540;
  font-weight: 700;
  margin-top: 0;
}

.bsmd-landing-page p {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  color: #4A5568;
  font-size: 0.98rem;
  line-height: 1.6;
}

.bsmd-gold-text {
  color: #D48806;
  font-weight: 700;
}

.bsmd-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

/* Primary Amber / Gold Button */
.button.bsmd-btn-gold,
.bsmd-btn-gold {
  background-color: #F2A900;
  color: #0A2540 !important;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 6px;
  border: none;
  box-shadow: 0 4px 14px rgba(242, 169, 0, 0.35);
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.button.bsmd-btn-gold:hover,
.button.bsmd-btn-gold:focus,
.bsmd-btn-gold:hover,
.bsmd-btn-gold:focus {
  background-color: #DE9600;
  color: #0A2540 !important;
  box-shadow: 0 6px 20px rgba(242, 169, 0, 0.45);
  transform: translateY(-1px);
}

.bsmd-btn-gold:hover .bsmd-arrow {
  transform: translateX(4px);
}

/* Trust Badges Row */
.bsmd-trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 0.85rem;
  color: #2D3748;
  font-weight: 600;
}

.bsmd-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.bsmd-badge-icon {
  stroke: #0A2540;
  flex-shrink: 0;
}

.bsmd-badge-divider {
  color: #CBD5E0;
  font-weight: 300;
}

/* ==========================================================================
   1. Hero Section
   ========================================================================== */
.bsmd-hero {
  position: relative;
  background-color: #EBF3FA;
  background-image: url('../images/bsmd-landing/hero-bg-student.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  padding: 65px 0 60px;
  overflow: hidden;
}

/* Soft contrast gradient overlay: 100% crisp typography on the left, reveals student & script text on the right */
.bsmd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 249, 254, 0.96) 0%, rgba(245, 249, 254, 0.92) 36%, rgba(245, 249, 254, 0.6) 52%, rgba(245, 249, 254, 0) 68%);
  pointer-events: none;
  z-index: 1;
}

.bsmd-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 520px;
  position: relative;
  z-index: 2;
}

.bsmd-hero-content {
  padding-right: 2rem;
}

.bsmd-overline {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #0A2540;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bsmd-hero-title {
  font-size: 2.6rem;
  line-height: 1.16;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: #0A2540;
}

.bsmd-hero-lead {
  font-size: 1.12rem;
  font-weight: 600;
  color: #1E3A8A;
  margin-bottom: 12px;
}

.bsmd-hero-desc {
  font-size: 0.98rem;
  max-width: 560px;
  margin-bottom: 24px;
  color: #334155;
}

.bsmd-hero-cta-wrap {
  margin-bottom: 8px;
}

/* Mobile responsive visual card */
.bsmd-hero-mobile-visual {
  display: none;
}

@media screen and (max-width: 63.99em) {
  .bsmd-hero {
    background-image: none;
    background: linear-gradient(135deg, #F0F6FD 0%, #E6EFF9 100%);
    padding: 40px 0 35px;
  }
  .bsmd-hero::before {
    display: none;
  }
  .bsmd-hero-row {
    min-height: auto;
  }
  .bsmd-hero-content {
    text-align: center;
    padding-right: 0;
    width: 100%;
  }
  .bsmd-hero-title {
    font-size: 2.1rem;
  }
  .bsmd-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .bsmd-trust-badges {
    justify-content: center;
  }
  .bsmd-hero-mobile-visual {
    display: block;
    width: 100%;
    margin-top: 28px;
  }
  .bsmd-hero-mobile-img {
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(10, 37, 64, 0.12);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    height: 290px;
    object-fit: cover;
    object-position: center 15%;
    display: block;
  }
}

/* ==========================================================================
   2. Stats / Proof Points Bar
   ========================================================================== */
.bsmd-stats-bar {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 38px 0;
  overflow: hidden;
}

/* Scroll-triggered staggered stat entrance */
.bsmd-stats-bar.bsmd-anim-ready .bsmd-stat-col {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.bsmd-stats-bar.bsmd-anim-ready.bsmd-revealed .bsmd-stat-col {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bsmd-stats-bar.bsmd-anim-ready.bsmd-revealed .bsmd-stat-col:nth-child(1) {
  transition-delay: 0.1s;
}
.bsmd-stats-bar.bsmd-anim-ready.bsmd-revealed .bsmd-stat-col:nth-child(2) {
  transition-delay: 0.25s;
}
.bsmd-stats-bar.bsmd-anim-ready.bsmd-revealed .bsmd-stat-col:nth-child(3) {
  transition-delay: 0.4s;
}
.bsmd-stats-bar.bsmd-anim-ready.bsmd-revealed .bsmd-stat-col:nth-child(4) {
  transition-delay: 0.55s;
}

.bsmd-stat-col {
  position: relative;
  text-align: center;
  padding: 10px 18px;
}

.bsmd-stat-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: #E2E8F0;
}

.bsmd-stat-number {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 2.7rem;
  font-weight: 800;
  color: #0A2540;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.bsmd-stat-col:hover .bsmd-stat-number {
  transform: scale(1.06);
  color: #1E3A8A;
}

@keyframes bsmdNumberPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: #002D62; }
  100% { transform: scale(1); }
}

.bsmd-counter-completed {
  animation: bsmdNumberPulse 0.5s ease-out;
}

@keyframes bsmdPop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.bsmd-special-pop {
  animation: bsmdPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bsmd-stat-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1E3A8A;
  margin-top: 10px;
  text-transform: uppercase;
  line-height: 1.35;
}

/* ==========================================================================
   3. Why Moon Prep & Comparison Table
   ========================================================================== */
.bsmd-why-section {
  padding: 75px 0 65px;
  background-color: #FFFFFF;
}

.bsmd-section-title {
  font-size: 2.25rem;
  color: #0A2540;
  margin-bottom: 8px;
  line-height: 1.2;
}

.bsmd-section-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1E3A8A;
  margin-bottom: 18px;
  line-height: 1.35;
}

.bsmd-body-p {
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.bsmd-why-cta-wrap {
  margin-top: 24px;
}

.bsmd-why-content {
  padding-right: 1.5rem;
}

/* Comparison Table Card with Refined Columns and Separators */
.bsmd-comparison-card {
  background: #FFFFFF;
  border: 1px solid #D6E3EF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.06);
}

.bsmd-comparison-card .table-scroll {
  margin-bottom: 0;
}

.bsmd-comparison-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

/* Table Header */
.bsmd-comparison-table thead th {
  padding: 11px 16px;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  vertical-align: middle;
  border-bottom: 1.5px solid #D6E3EF;
}

/* Header Column 1: "What You Get" (Light Grayish-Blue) */
.bsmd-comparison-table thead th.col-feature {
  background-color: #EFF4F9;
  color: #0A2540;
  width: 42%;
  font-size: 0.92rem;
  border-right: 1.5px solid #D6E3EF;
  border-top-left-radius: 11px;
}

/* Header Column 2: "Typical College Admissions Consulting" (White) */
.bsmd-comparison-table thead th.col-typical {
  background-color: #FFFFFF;
  color: #0A2540;
  width: 29%;
  font-size: 0.86rem;
  border-right: 1.5px solid #D6E3EF;
}

/* Header Column 3: "Moon Prep BS/MD Strategy" (Navy) */
.bsmd-comparison-table thead th.col-moonprep {
  background-color: #002D62;
  color: #FFFFFF;
  width: 29%;
  font-size: 0.88rem;
  border-top-right-radius: 11px;
}

/* Table Body Cells - Less vertical height per user request */
.bsmd-comparison-table tbody td {
  padding: 8px 16px;
  border-bottom: 1px solid #E2ECF5;
  vertical-align: middle;
}

.bsmd-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Body Column 1: "What You Get" (Light Grayish-Blue Background across the whole column) */
.cell-feature {
  background-color: #EFF4F9;
  color: #1E293B;
  font-weight: 600;
  border-right: 1.5px solid #D6E3EF;
}

.bsmd-subtext {
  font-size: 0.76rem;
  color: #64748B;
  font-weight: 400;
  display: inline-block;
  margin-left: 2px;
}

/* Body Column 2: "Typical College Admissions Consulting" (White) */
.cell-typical {
  background-color: #FFFFFF;
  color: #475569;
  border-right: 1.5px solid #D6E3EF;
}

/* Body Column 3: "Moon Prep BS/MD Strategy" (Light Blue Tint) */
.cell-moonprep {
  background-color: #EDF5FD;
}

.bsmd-comparison-table tbody tr:last-child td.col-moonprep-cell,
.bsmd-comparison-table tbody tr:last-child td.cell-moonprep {
  border-bottom-right-radius: 11px;
}

.bsmd-comparison-table tbody tr:last-child td.cell-feature {
  border-bottom-left-radius: 11px;
}

/* Checkmarks and Statuses */
.bsmd-check {
  color: #1E3A8A;
  font-size: 1.15rem;
  font-weight: 700;
}

.bsmd-check-navy {
  color: #002D62;
  font-size: 1.25rem;
  font-weight: 900;
}

.bsmd-sometimes {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
}

.bsmd-dash {
  color: #94A3B8;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ==========================================================================
   4. The Moon Prep Journey
   ========================================================================== */
.bsmd-journey-section {
  padding: 70px 0 60px;
  background-color: #F7FAFD;
  border-top: 1px solid #E2EAF2;
  border-bottom: 1px solid #E2EAF2;
}

.bsmd-journey-header {
  margin-bottom: 35px;
}

.bsmd-journey-subtitle {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.82rem, 3.6vw, 1.12rem);
  color: #1E3A8A;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .bsmd-journey-subtitle {
    white-space: normal;
  }
}

.bsmd-journey-row {
  display: flex;
  flex-wrap: wrap;
}

.bsmd-step-col {
  margin-bottom: 24px;
}

@media screen and (min-width: 40em) {
  .bsmd-journey-row {
    display: flex !important;
    flex-wrap: wrap !important;
    transform: none !important;
  }
  .bsmd-journey-row .bsmd-step-col {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
  }
}

@media screen and (min-width: 64em) {
  .bsmd-journey-row .bsmd-step-col {
    flex: 0 0 16.666667% !important;
    max-width: 16.666667% !important;
    width: 16.666667% !important;
    padding-left: 6px;
    padding-right: 6px;
  }
}

.bsmd-step-card {
  position: relative;
  text-align: center;
}

.bsmd-step-thumb-wrap {
  position: relative;
  margin-bottom: 16px;
}

.bsmd-step-img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.08);
  transition: transform 0.3s ease;
}

.bsmd-step-card:hover .bsmd-step-img {
  transform: scale(1.02);
}

/* Number Badges: Overflowing on the outside left and bottom of the image */
@keyframes bsmdPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(10, 37, 64, 0.5);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(10, 37, 64, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(10, 37, 64, 0);
  }
}

.bsmd-step-badge {
  position: absolute;
  bottom: -10px;
  left: -8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #002D62;
  color: #FFFFFF;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  animation: bsmdPulse 2.4s infinite ease-in-out;
  z-index: 5;
}

/* Scroll-triggered left-to-right sequential animations (1, 2, 3, 4, 5, 6) */
.bsmd-journey-section.bsmd-anim-ready .bsmd-step-col {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.bsmd-journey-section.bsmd-anim-ready.bsmd-revealed .bsmd-step-col {
  opacity: 1;
  transform: translateX(0);
}

.bsmd-journey-section.bsmd-anim-ready.bsmd-revealed .bsmd-step-col:nth-child(1) {
  transition-delay: 0.1s;
}
.bsmd-journey-section.bsmd-anim-ready.bsmd-revealed .bsmd-step-col:nth-child(2) {
  transition-delay: 0.4s;
}
.bsmd-journey-section.bsmd-anim-ready.bsmd-revealed .bsmd-step-col:nth-child(3) {
  transition-delay: 0.7s;
}
.bsmd-journey-section.bsmd-anim-ready.bsmd-revealed .bsmd-step-col:nth-child(4) {
  transition-delay: 1.0s;
}
.bsmd-journey-section.bsmd-anim-ready.bsmd-revealed .bsmd-step-col:nth-child(5) {
  transition-delay: 1.3s;
}
.bsmd-journey-section.bsmd-anim-ready.bsmd-revealed .bsmd-step-col:nth-child(6) {
  transition-delay: 1.6s;
}

/* Single line, centered titles */
.bsmd-step-title {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  color: #0A2540;
  margin-top: 6px;
  margin-bottom: 4px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

/* Centered descriptions */
.bsmd-step-desc {
  font-size: 0.8rem;
  color: #4A5568;
  line-height: 1.4;
  margin-bottom: 0;
  text-align: center;
}

/* ==========================================================================
   5. Testimonials (Real Students. Real Results.)
   ========================================================================== */
.bsmd-testimonials-section {
  padding: 70px 0 60px;
  background-color: #FFFFFF;
}

/* Scroll-triggered fade-in for testimonials */
.bsmd-testimonials-section.bsmd-anim-ready .bsmd-testi-col {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.bsmd-testimonials-section.bsmd-anim-ready.bsmd-revealed .bsmd-testi-col {
  opacity: 1;
  transform: translateY(0);
}

.bsmd-testimonials-section.bsmd-anim-ready.bsmd-revealed .bsmd-testi-col:nth-child(1) {
  transition-delay: 0.15s;
}
.bsmd-testimonials-section.bsmd-anim-ready.bsmd-revealed .bsmd-testi-col:nth-child(2) {
  transition-delay: 0.35s;
}
.bsmd-testimonials-section.bsmd-anim-ready.bsmd-revealed .bsmd-testi-col:nth-child(3) {
  transition-delay: 0.55s;
}

.bsmd-testimonials-header {
  margin-bottom: 30px;
}

.bsmd-more-stories-link {
  color: #0A2540;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bsmd-more-stories-link:hover {
  color: #D48806;
}

.bsmd-testimonial-row {
  display: flex;
  flex-wrap: wrap;
}

.bsmd-testi-col {
  margin-bottom: 24px;
}

@media screen and (min-width: 40em) {
  .bsmd-testimonial-row {
    display: flex !important;
    flex-wrap: wrap !important;
    transform: none !important;
  }
  .bsmd-testimonial-row .bsmd-testi-col {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
  }
}

.bsmd-testi-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px 18px;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.04);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 100%;
  transition: all 0.25s ease;
}

.bsmd-testi-card:hover {
  box-shadow: 0 10px 26px rgba(10, 37, 64, 0.08);
  transform: translateY(-2px);
  border-color: #CBD5E1;
}

.bsmd-testi-avatar-wrap {
  flex-shrink: 0;
}

/* Taller student avatar image */
.bsmd-testi-avatar {
  width: 95px;
  height: 128px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}

/* Text layout: compact vertical flow anchored directly under quote */
.bsmd-testi-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}

.bsmd-testi-quote {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-style: italic;
  font-size: 0.84rem;
  color: #1A202C;
  line-height: 1.44;
  margin: 0 0 8px 0;
  padding: 0;
  border: none;
}

.bsmd-testi-meta {
  margin-top: 2px;
}

.bsmd-student-name {
  display: block;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0A2540;
  line-height: 1.3;
}

.bsmd-student-outcome {
  display: block;
  font-size: 0.77rem;
  color: #64748B;
  line-height: 1.35;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .bsmd-stats-bar.bsmd-anim-ready .bsmd-stat-col,
  .bsmd-journey-section.bsmd-anim-ready .bsmd-step-col,
  .bsmd-testimonials-section.bsmd-anim-ready .bsmd-testi-col,
  .bsmd-step-badge,
  .bsmd-counter-completed,
  .bsmd-special-pop {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   6. Social Proof / College Logos
   ========================================================================== */
.bsmd-logos-section {
  padding: 50px 0 56px;
  background-color: #FFFFFF;
  border-top: 1px solid #EDF2F7;
}

.bsmd-logos-row {
  max-width: 88rem;
  width: 100%;
}

.bsmd-logos-overline {
  display: block;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #4A5568;
  margin-bottom: 34px;
  text-transform: uppercase;
}

.bsmd-logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px clamp(12px, 1.8vw, 28px);
  width: 100%;
}

.bsmd-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.bsmd-logo-img {
  max-height: 44px;
  max-width: 165px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.25s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
}

.bsmd-logo-item img[src*="brown"] {
  max-height: 48px;
  max-width: 125px;
}

.bsmd-logo-item img[src*="usc"] {
  max-height: 35px;
  max-width: 165px;
}

.bsmd-logo-item img[src*="northwestern"] {
  max-height: 38px;
  max-width: 160px;
}

.bsmd-logo-item img[src*="johns-hopkins"] {
  max-height: 40px;
  max-width: 170px;
}

.bsmd-logo-item img[src*="harvard"] {
  max-height: 44px;
  max-width: 165px;
}

.bsmd-logo-item img[src*="rice"] {
  max-height: 44px;
  max-width: 135px;
}

.bsmd-logo-item img[src*="duke"] {
  max-height: 42px;
  max-width: 125px;
}

.bsmd-logo-item:hover .bsmd-logo-img {
  transform: scale(1.08);
}

.bsmd-more-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748B;
  white-space: nowrap;
}

/* Cloned logos are hidden on desktop, only active on mobile marquee */
.bsmd-logo-clone {
  display: none !important;
}

/* Root-level keyframes — must be outside @media to work reliably in all browsers */
@keyframes bsmdLogosMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Carousel Pagination Indicators (Dots)
   ========================================================================== */
.bsmd-carousel-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 4px 0;
}

.bsmd-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: #CBD5E1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.bsmd-carousel-dot:focus-visible {
  outline: 2px solid #002D62;
  outline-offset: 2px;
}

.bsmd-carousel-dot.is-active {
  width: 26px;
  background-color: #002D62;
  border-radius: 4px;
}

@media (max-width: 1199px) {
  .bsmd-logos-grid {
    justify-content: center;
    gap: 24px 36px;
  }
}

/* ==========================================================================
   7. Final CTA Section
   ========================================================================== */
.bsmd-final-cta-section {
  background: linear-gradient(135deg, #07192F 0%, #0A2540 100%);
  color: #FFFFFF;
  padding: 60px 0 55px;
  position: relative;
  overflow: hidden;
}

.bsmd-cta-overline {
  display: inline-block;
  color: #F2A900;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.bsmd-cta-title {
  color: #FFFFFF !important;
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

/* Requirement: "Get expert guidance" text needs to be white */
.bsmd-cta-desc {
  color: #FFFFFF !important;
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 24px;
}

/* Requirement: White icons, white text, and white divider */
.bsmd-trust-badges-light {
  color: #FFFFFF !important;
}

.bsmd-trust-badges-light span {
  color: #FFFFFF !important;
}

.bsmd-trust-badges-light .bsmd-badge-icon {
  stroke: #FFFFFF !important;
}

.bsmd-trust-badges-light .bsmd-badge-divider {
  color: #FFFFFF !important;
  opacity: 0.8;
}

/* Requirement: Button placed on the right side */
.bsmd-final-cta-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media screen and (max-width: 63.9375em) {
  .bsmd-hero-content {
    padding-right: 0.9375rem;
    margin-bottom: 30px;
    text-align: center;
  }
  .bsmd-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .bsmd-trust-badges {
    justify-content: center;
  }
  .bsmd-why-content {
    margin-bottom: 35px;
  }
  .bsmd-final-cta-left {
    margin-bottom: 25px;
    text-align: center;
  }
  .bsmd-final-cta-left .bsmd-trust-badges {
    justify-content: center;
  }
  .bsmd-final-cta-right {
    justify-content: center;
    text-align: center;
  }
  .bsmd-step-arrow {
    display: none !important;
  }
}

@media screen and (max-width: 39.9375em) {
  .bsmd-hero-title {
    font-size: 1.95rem;
  }
  .bsmd-section-title {
    font-size: clamp(1.4rem, 6.2vw, 1.75rem);
    line-height: 1.25;
  }
  .bsmd-journey-subtitle {
    white-space: normal !important;
    font-size: 0.88rem !important;
    display: inline-block;
    margin-top: 4px;
    margin-bottom: 10px;
  }
  .bsmd-more-stories-link {
    margin-top: 4px;
    margin-bottom: 12px;
    display: inline-block;
  }
  .bsmd-cta-title {
    font-size: 1.9rem;
  }
  .bsmd-stat-col {
    margin-bottom: 18px;
  }
  .bsmd-stat-col:nth-child(2)::after {
    display: none;
  }
  .bsmd-stat-number {
    font-size: 2.2rem;
  }
  .bsmd-trust-badges {
    flex-direction: column;
    gap: 8px;
  }
  .bsmd-badge-divider {
    display: none;
  }

  /* ==========================================================================
     Mobile Carousels (Journey & Testimonials)
     ========================================================================== */
  .bsmd-journey-carousel-wrap,
  .bsmd-testi-carousel-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 4px;
    touch-action: pan-y;
  }

  .bsmd-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 1. Journey Mobile Slides */
  .bsmd-journey-row .bsmd-step-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 10px !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .bsmd-step-card {
    max-width: 320px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px 14px 18px;
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.06);
    text-align: center;
  }

  .bsmd-step-thumb-wrap {
    position: relative;
    margin-bottom: 12px;
  }

  /* Proportion images properly to 4:3 instead of horizontally landscaped strips */
  .bsmd-step-img {
    aspect-ratio: 4 / 3 !important;
    width: 100% !important;
    height: auto !important;
    max-height: 220px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    display: block;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.08);
  }

  .bsmd-step-badge {
    bottom: -8px !important;
    left: -6px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }

  .bsmd-step-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin-top: 8px !important;
    margin-bottom: 5px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .bsmd-step-desc {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  /* 2. Testimonials Mobile Slides: Preserves Desktop Side-by-Side Layout */
  .bsmd-testimonial-row .bsmd-testi-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 10px !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .bsmd-testi-card {
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
    max-width: 350px;
    margin: 0 auto;
    padding: 16px 14px;
    gap: 14px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 16px rgba(10, 37, 64, 0.05);
  }

  .bsmd-testi-avatar-wrap {
    flex-shrink: 0;
  }

  .bsmd-testi-avatar {
    width: 86px !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 9px !important;
    display: block;
  }

  .bsmd-testi-body {
    min-height: auto;
    gap: 6px;
    text-align: left !important;
    flex-grow: 1;
  }

  .bsmd-testi-quote {
    font-size: 0.82rem !important;
    line-height: 1.42 !important;
    margin: 0 0 6px 0 !important;
    text-align: left !important;
  }

  .bsmd-student-name {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    text-align: left !important;
  }

  .bsmd-student-outcome {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }

  /* 3. Indicators Visible on Mobile */
  .bsmd-carousel-dots {
    display: flex !important;
    margin-top: 18px;
    margin-bottom: 4px;
  }

  /* ==========================================================================
     Logos Auto-Progressing Continuous Marquee on Mobile
     ========================================================================== */
  .bsmd-logos-section {
    padding: 34px 0 38px;
  }

  .bsmd-logos-overline {
    font-size: clamp(0.68rem, 3.2vw, 0.75rem);
    letter-spacing: 0.08em;
    margin-bottom: 20px;
  }

  .bsmd-logos-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }

  /* Reset desktop grid styles when element is the marquee track */
  .bsmd-logos-grid.bsmd-logos-slider-track {
    justify-content: flex-start !important;
  }

  .bsmd-logos-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: max-content !important;
    min-width: max-content !important;
    gap: 48px !important;
    animation: bsmdLogosMarquee 16s linear infinite;
    animation-fill-mode: none;
    will-change: transform;
    /* Force GPU compositing layer — prevents flicker and disappearing */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .bsmd-logo-item {
    flex: 0 0 auto !important;
  }

  .bsmd-logo-clone {
    display: flex !important;
  }

  .bsmd-logo-img {
    max-height: 30px !important;
    max-width: 120px !important;
  }

  .bsmd-logo-item img[src*="brown"] {
    max-height: 34px !important;
  }

  .bsmd-more-text {
    font-size: 0.84rem !important;
  }
}
