/* ===== BeMine Theme ===== */
:root {
  --bm-pink: #F472B6;
  --bm-pink-dark: #EC4899;
  --bm-pink-light: #FDF2F8;
  --bm-pink-soft: #FCE7F3;
  --bm-blue: #38BDF8;
  --bm-blue-dark: #0EA5E9;
  --bm-blue-light: #E0F2FE;
  --bm-blue-soft: #F0F9FF;
  --bm-deep-blue: #2563EB;
  --bm-deep-blue-dark: #1D4ED8;
  --bm-text-muted: #64748B;
  --bm-white: #FFFFFF;
  --bm-radius: 20px;
  --bm-radius-lg: 28px;
  --bm-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --bm-max: 1180px;
}

body.bemine-page {
  background: var(--bm-white);
  color: var(--bm-text);
  font-family: 'Sarabun', sans-serif;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #F1F5F9;
}

.bm-header-inner {
  max-width: var(--bm-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.bm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--bm-pink-dark);
  flex-shrink: 0;
}

.bm-logo img {
  height: 48px;
  width: auto;
  max-width: min(168px, 42vw);
  object-fit: contain;
  display: block;
}

.bm-logo--footer img {
  height: 56px;
  max-width: 160px;
}

.bm-logo-heart {
  color: var(--bm-pink);
  font-size: 0.75rem;
  vertical-align: super;
}

.bm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.bm-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--bm-text-muted);
  transition: all 0.2s;
  white-space: nowrap;
}

.bm-nav-link:hover { color: var(--bm-pink-dark); background: var(--bm-pink-light); }

.bm-nav-link.active {
  color: var(--bm-pink-dark);
  background: var(--bm-pink-soft);
}

.bm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bm-lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--bm-pink-soft);
  border: 1px solid rgba(236, 72, 153, 0.15);
  gap: 2px;
}

.bm-lang-btn {
  min-width: 38px;
  padding: 6px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--bm-text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.bm-lang-btn:hover {
  color: var(--bm-pink-dark);
}

.bm-lang-btn.active {
  background: white;
  color: var(--bm-pink-dark);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.18);
}

.bm-search-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bm-blue-light);
  color: var(--bm-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.bm-search-btn:hover { background: #BAE6FD; }

.bm-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bm-blue);
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
  transition: transform 0.2s, background 0.2s;
}

.bm-login-btn:hover { background: var(--bm-blue-dark); transform: translateY(-1px); }

.bm-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bm-pink-light);
  color: var(--bm-pink-dark);
  font-size: 1.25rem;
}

.bm-nav-login-mobile {
  display: none;
}

/* Hero — BeMine mockup (text-focused, left layout) */
.bm-hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 56px 0 64px;
}

.bm-hero-inner {
  max-width: var(--bm-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px 40px;
  align-items: center;
  min-height: 0;
}

.bm-hero.bm-hero--text-only .bm-hero-inner {
  grid-template-columns: 1fr;
  max-width: 900px;
  padding-left: 32px;
  padding-right: 32px;
}

.bm-hero.bm-hero--text-only .bm-hero-text {
  padding: 12px 0 8px;
}

.bm-hero-text {
  position: relative;
  z-index: 2;
  padding: 8px 0;
}

.bm-hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.bm-hero-line {
  display: block;
  font-size: clamp(2.25rem, 4.8vw, 3.35rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.bm-hero-line-mix {
  position: relative;
  display: inline-block;
}

.bm-hero-line-suffix {
  position: relative;
  display: inline-block;
}

.bm-hero-line-blue { color: #1A3B70; }

.bm-hero-line-pink {
  color: var(--bm-pink-dark);
  background: linear-gradient(135deg, #F472B6, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bm-hero-heart {
  position: absolute;
  top: -12px;
  right: -0.15em;
  font-size: 0.95rem;
  color: #F472B6;
  -webkit-text-fill-color: #F472B6;
  font-weight: 400;
  line-height: 1;
}

.bm-hero-subtitle {
  font-size: 1.05rem;
  color: #64748B;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 560px;
}

.bm-hero-subtitle p { margin: 0 0 2px; }

.bm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  transition: all 0.2s;
  color: white;
}

.bm-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bm-btn-pink {
  background: linear-gradient(135deg, #F472B6 0%, #EC4899 50%, #DB2777 100%);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.38);
}

.bm-btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.45);
}

.bm-btn-blue {
  background: linear-gradient(135deg, #7DD3FC 0%, #38BDF8 45%, #0EA5E9 100%);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.bm-btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.42);
}

.bm-btn-primary {
  background: linear-gradient(135deg, var(--bm-pink), var(--bm-pink-dark));
  color: white;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
}

.bm-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4); }

.bm-btn-outline {
  background: white;
  color: var(--bm-blue-dark);
  border: 2px solid var(--bm-blue);
}

.bm-btn-outline:hover { background: var(--bm-blue-light); }

.bm-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(400px, 48vh);
  overflow: hidden;
  border-radius: 20px;
  background: transparent;
  padding: 0;
}

.bm-hero-visual::before {
  display: none;
}

.bm-hero-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: 0;
}

.bm-hero.bm-hero--text-only .bm-hero-visual {
  display: none;
}

/* Stats bar */
.bm-stats-wrap {
  margin-top: -48px;
  position: relative;
  z-index: 5;
  padding-bottom: 16px;
}

.bm-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: white;
  border-radius: var(--bm-radius-lg);
  box-shadow: var(--bm-shadow);
  padding: 8px 0;
  border: 1px solid #F1F5F9;
}

.bm-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-right: 1px solid #F1F5F9;
}

.bm-stat-item:last-child { border-right: none; }

.bm-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.bm-stat-icon.pink { background: var(--bm-pink-light); }
.bm-stat-icon.blue { background: var(--bm-blue-light); }

.bm-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.1;
}

.bm-stat-label {
  font-size: 0.82rem;
  color: var(--bm-text-muted);
  margin-top: 2px;
}

/* Sections */
.bm-section {
  padding: 56px 0;
}

.bm-section-soft {
  background: linear-gradient(180deg, #FAFCFF 0%, #FFF5FA 100%);
}

.bm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.bm-section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1E293B;
}

.bm-link-more {
  color: var(--bm-blue-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.bm-link-more:hover { text-decoration: underline; }

/* Media awards — news page */
.bm-awards-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(251, 207, 232, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(186, 230, 253, 0.3) 0%, transparent 65%),
    linear-gradient(180deg, #fff 0%, #fffafb 45%, #f8fcff 100%);
  padding: 64px 0 72px;
}

.bm-awards-head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 40px;
}

.bm-awards-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FDE68A, #FBBF24);
  color: #78350F;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
}

.bm-awards-title {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  color: #1E293B;
  margin: 0 0 12px;
}

.bm-awards-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: #64748B;
  line-height: 1.65;
  margin: 0;
}

.bm-awards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.bm-award-card {
  background: #fff;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: var(--bm-radius-lg, 24px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bm-award-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(236, 72, 153, 0.14);
}

.bm-award-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 12px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.08), rgba(56, 189, 248, 0.08));
  border-bottom: 1px solid #F1F5F9;
}

.bm-award-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.bm-award-category {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bm-pink-dark, #DB2777);
  margin: 0;
  line-height: 1.4;
}

.bm-award-figure {
  margin: 0;
  padding: 12px 12px 16px;
  background: #FAFCFF;
}

.bm-award-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1024px) {
  .bm-awards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Awards activity gallery slider */
.bm-awards-gallery-section {
  padding-top: 0;
  padding-bottom: 64px;
  background:
    radial-gradient(ellipse 70% 55% at 15% 100%, rgba(244, 114, 182, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 65% 50% at 85% 20%, rgba(56, 189, 248, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, #f8fcff 0%, #fff 100%);
}

.bm-awards-gallery-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 28px;
}

.bm-awards-gallery-title {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 10px;
  line-height: 1.35;
}

.bm-awards-gallery-subtitle {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  color: #64748B;
  line-height: 1.65;
  margin: 0;
}

.bm-gallery-slider-wrap {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 52px 36px;
}

.bm-gallery-viewport {
  overflow: hidden;
  border-radius: var(--bm-radius-lg, 24px);
  background: #fff;
  border: 1px solid rgba(236, 72, 153, 0.14);
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(56, 189, 248, 0.06);
}

.bm-gallery-track {
  display: flex;
  will-change: transform;
}

.bm-gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 14px;
  background: linear-gradient(145deg, rgba(244, 114, 182, 0.06), rgba(56, 189, 248, 0.06));
}

.bm-gallery-slide-frame {
  border-radius: 16px;
  overflow: hidden;
  background: #0F172A;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-gallery-slide-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.bm-gallery-caption {
  margin: 10px 4px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bm-text-muted, #64748B);
  text-align: center;
  line-height: 1.5;
}

.bm-gallery-slider-btn {
  position: absolute;
  top: calc(50% - 18px);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--bm-pink), var(--bm-blue));
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.28);
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  z-index: 2;
}

.bm-gallery-slider-btn:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}

.bm-gallery-slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.bm-gallery-slider-prev { left: 0; }
.bm-gallery-slider-next { right: 0; }

.bm-gallery-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.bm-gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #CBD5E1;
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.bm-gallery-dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, var(--bm-pink), var(--bm-blue));
}

.bm-gallery-pilot {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 0 24px;
  text-align: left;
}

.bm-gallery-pilot-title {
  margin: 0 0 14px;
  font-family: Outfit, Sarabun, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 800;
  color: #1E293B;
  line-height: 1.45;
  text-align: left;
}

.bm-gallery-pilot-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  text-align: left;
  color: #334155;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.75;
}

.bm-gallery-pilot-list li {
  display: flex;
  gap: 0.45em;
  align-items: baseline;
}

.bm-gallery-pilot-num {
  flex: 0 0 auto;
  min-width: 1.4em;
  font-weight: 700;
  color: #EC4899;
}

.bm-gallery-pilot-learners {
  margin: 0;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  text-align: left;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(236, 72, 153, 0.16);
  color: #1E293B;
  font-size: clamp(0.98rem, 1.9vw, 1.08rem);
  line-height: 1.5;
}

.bm-gallery-pilot-learners strong {
  font-weight: 700;
}

.bm-gallery-pilot-learners span {
  font-weight: 800;
  color: #DB2777;
  font-variant-numeric: tabular-nums;
}

.bm-gallery-pilot-works {
  margin-top: 16px;
  padding: 14px 16px;
  text-align: left;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.bm-gallery-pilot-works-title {
  margin: 0 0 10px;
  font-size: clamp(0.98rem, 1.9vw, 1.08rem);
  font-weight: 800;
  color: #1E293B;
  text-align: left;
}

.bm-gallery-pilot-works-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  color: #334155;
  font-size: clamp(0.92rem, 1.7vw, 1.02rem);
  line-height: 1.55;
}

.bm-gallery-pilot-works-list li {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  text-align: left;
}

.bm-gallery-pilot-works-count {
  flex: 0 0 auto;
  font-weight: 800;
  color: #DB2777;
  font-variant-numeric: tabular-nums;
}

.bm-gallery-pilot-works-label {
  color: #334155;
}

.bm-gallery-pilot-works-total {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
  text-align: left;
  color: #1E293B;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

.bm-gallery-pilot-works-total strong {
  margin: 0 0.25em;
  font-weight: 800;
  color: #DB2777;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .bm-gallery-slider-wrap {
    padding: 0 40px 32px;
  }

  .bm-gallery-slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .bm-gallery-slide {
    padding: 10px;
  }

  .bm-gallery-slide-frame {
    aspect-ratio: 4 / 3;
  }

  .bm-gallery-pilot {
    padding: 0 8px;
    margin-top: 22px;
  }
}

/* Course slider */
.bm-course-slider-wrap {
  position: relative;
  padding: 0 44px;
}

.bm-course-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bm-course-slider::-webkit-scrollbar {
  display: none;
}

.bm-course-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: white;
  color: var(--bm-blue-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-course-slider-btn:hover:not(:disabled) {
  background: var(--bm-blue-light);
  transform: translateY(-50%) scale(1.06);
}

.bm-course-slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.bm-course-slider-prev { left: 0; }
.bm-course-slider-next { right: 0; }

.bm-course-card {
  flex: 0 0 min(300px, calc(100vw - 120px));
  scroll-snap-align: start;
  min-width: 0;
  background: white;
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  box-shadow: var(--bm-shadow);
  border: 1px solid #F1F5F9;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.bm-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.bm-course-img {
  height: 180px;
  overflow: hidden;
  background: var(--bm-pink-light);
}

.bm-course-video {
  position: relative;
}

.bm-course-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.bm-course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.bm-course-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 1;
  transition: transform 0.2s, background 0.2s;
}

.bm-course-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--bm-pink, #e91e8c);
}

.bm-course-card:hover .bm-course-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

.bm-course-episodes {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.bm-course-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bm-course-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1E293B;
}

.bm-course-desc {
  font-size: 0.9rem;
  color: var(--bm-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.bm-course-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bm-blue);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  align-self: flex-start;
  transition: background 0.2s;
}

.bm-course-btn:hover { background: var(--bm-blue-dark); }

/* Quiz + Objectives */
.bm-split-grid {
  max-width: var(--bm-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.bm-quiz-card {
  background: linear-gradient(145deg, #E0F2FE 0%, #BAE6FD 100%);
  border-radius: var(--bm-radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--bm-shadow);
}

.bm-quiz-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.bm-quiz-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0C4A6E;
  margin-bottom: 12px;
}

.bm-quiz-desc-wrap {
  margin-bottom: 24px;
  max-width: 320px;
}

.bm-quiz-desc-intro {
  font-size: 0.95rem;
  color: #0369A1;
  line-height: 1.65;
  margin: 0 0 8px;
}

.bm-quiz-desc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.bm-quiz-desc-list li {
  font-size: 0.95rem;
  color: #0369A1;
  line-height: 1.75;
  padding: 2px 0;
}

.bm-quiz-desc {
  font-size: 0.95rem;
  color: #0369A1;
  line-height: 1.65;
  margin: 0;
  max-width: none;
}

.bm-quiz-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--bm-blue-dark);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
  transition: transform 0.2s;
}

.bm-quiz-btn:hover { transform: translateY(-2px); }

.bm-objectives {
  background: white;
  border-radius: var(--bm-radius-lg);
  padding: 32px;
  box-shadow: var(--bm-shadow);
  border: 1px solid #F1F5F9;
  max-height: 520px;
  display: flex;
  flex-direction: column;
}

.bm-objectives-purpose {
  font-size: 0.9rem;
  color: var(--bm-text-muted);
  line-height: 1.65;
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #FFF5F8;
  border-radius: 10px;
  border-left: 4px solid var(--bm-pink);
}

.bm-objectives-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

.bm-objective-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bm-objective-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bm-pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.bm-objective-text h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 4px;
}

.bm-objective-text p {
  font-size: 0.88rem;
  color: var(--bm-text-muted);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #F0F9FF 0%, #E0F2FE 100%);
  padding: 48px 0 0;
  margin-top: 24px;
}

.bm-footer-inner {
  max-width: var(--bm-max);
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 1.25fr 1.1fr 1.15fr minmax(180px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.bm-footer-brand p {
  font-size: 0.88rem;
  color: var(--bm-text-muted);
  line-height: 1.65;
  margin-top: 12px;
  max-width: 280px;
}

.bm-footer-brand .bm-nowrap {
  white-space: nowrap;
}

.bm-footer-objectives {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bm-footer-about-intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.bm-footer-about-brand {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--bm-text, #1E293B);
  letter-spacing: 0.02em;
}

.bm-footer-about-tagline {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bm-pink-dark, #DB2777);
  line-height: 1.45;
}

.bm-footer-about-headline {
  margin: 2px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bm-text, #1E293B);
  line-height: 1.55;
}

.bm-footer-about-body {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--bm-text-muted, #64748B);
  line-height: 1.6;
}

.bm-footer-objectives li {
  font-size: 0.86rem;
  color: var(--bm-text-muted);
  line-height: 1.5;
}

.bm-footer-obj-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--bm-pink-dark);
}

.bm-footer-obj-link:hover {
  color: var(--bm-blue-dark);
  text-decoration: underline;
}

/* Visitors counter */
.bm-footer-visitors {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.bm-visit-title {
  margin: 0 0 10px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.bm-visit-odometer {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 0 0 12px;
  padding: 4px 0 8px;
}

.bm-odo-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.55rem;
  padding: 0 2px;
  border-radius: 3px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  font-family: 'Sarabun', ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.bm-visit-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bm-visit-stats li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}

.bm-visit-label {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
}

.bm-visit-num {
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.bm-visit-ico {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  background: #cbd5e1;
  position: relative;
}

.bm-visit-ico::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
}

.bm-visit-ico--today { background: #38BDF8; }
.bm-visit-ico--yesterday { background: #34D399; }
.bm-visit-ico--week { background: #FBBF24; }
.bm-visit-ico--month { background: #F472B6; }
.bm-visit-ico--all {
  border-radius: 3px;
  background: linear-gradient(90deg, #38BDF8 30%, #EC4899 100%);
}
.bm-visit-ico--all::after {
  inset: auto 2px 2px 2px;
  height: 3px;
  width: auto;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.85);
}

.bm-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.bm-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--bm-blue-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.bm-footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 14px;
}

.bm-footer-col ul li {
  margin-bottom: 8px;
}

.bm-footer-col a,
.bm-footer-col span {
  font-size: 0.88rem;
  color: var(--bm-text-muted);
}

.bm-footer-col a:hover { color: var(--bm-pink-dark); }

.bm-footer-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.bm-footer-partner img {
  height: 48px;
  width: auto;
}

.bm-footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--bm-max);
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--bm-text-muted);
}

.bm-footer-bottom-links {
  display: flex;
  gap: 20px;
}

.bm-footer-bottom-links a:hover { color: var(--bm-blue-dark); }

/* Top button */
.bm-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bm-blue);
  color: white;
  font-weight: 800;
  font-size: 0.7rem;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  z-index: 90;
}

.bm-top-btn.visible { opacity: 1; visibility: visible; }

.bm-top-btn:hover { background: var(--bm-blue-dark); transform: translateY(-2px); }

/* Search overlay */
.bm-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.bm-search-overlay.open { display: flex; }

.bm-search-box {
  background: white;
  border-radius: var(--bm-radius);
  padding: 20px;
  width: min(520px, 92vw);
  box-shadow: var(--bm-shadow);
  display: flex;
  gap: 10px;
}

.bm-search-box input {
  flex: 1;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.bm-search-box input:focus { border-color: var(--bm-blue); }

.bm-search-box button {
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--bm-blue);
  color: white;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 960px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .bm-header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    min-height: 56px;
  }

  .bm-logo {
    min-width: 0;
    flex: 0 1 auto;
  }

  .bm-logo img {
    height: 40px;
    max-width: min(132px, 34vw);
  }

  .bm-header-actions {
    margin-left: auto;
    gap: 6px;
    flex-shrink: 0;
  }

  .bm-lang-switch {
    padding: 2px;
    flex-shrink: 0;
  }

  .bm-lang-btn {
    min-width: 32px;
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .bm-search-btn,
  .bm-menu-toggle {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .bm-search-btn { font-size: 1rem; }

  .bm-login-btn {
    display: none;
  }

  .bm-nav { display: none; }
  .bm-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 14px 16px;
    border-bottom: 1px solid #F1F5F9;
    box-shadow: var(--bm-shadow);
    z-index: 110;
  }

  .bm-nav.open .bm-nav-link {
    justify-content: flex-start;
    width: 100%;
    padding: 12px 14px;
    font-size: 1.02rem;
    white-space: normal;
  }

  .bm-nav-login-mobile {
    display: inline-flex;
    margin-top: 8px;
    border-top: 1px solid #F1F5F9;
    padding-top: 14px;
    color: var(--bm-blue-dark);
    font-weight: 800;
  }

  .bm-menu-toggle { display: flex; align-items: center; justify-content: center; }
  .bm-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .bm-hero-text { padding: 0; }
  .bm-hero-subtitle { margin-left: auto; margin-right: auto; }
  .bm-hero-actions { justify-content: center; }
  .bm-hero-visual { max-height: 280px; aspect-ratio: 16 / 9; }
  .bm-hero-img { width: 100%; height: 100%; max-height: 100%; }
  .bm-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .bm-stat-item:nth-child(2) { border-right: none; }
  .bm-stat-item { border-bottom: 1px solid #F1F5F9; }
  .bm-course-slider-wrap { padding: 0 36px; }
  .bm-course-slider-btn { width: 34px; height: 34px; font-size: 1.25rem; }
  .bm-course-card { flex-basis: min(280px, calc(100vw - 96px)); }
  .bm-awards-grid { grid-template-columns: 1fr; gap: 20px; }
  .bm-split-grid { grid-template-columns: 1fr; }
  .bm-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .bm-header-inner {
    padding: 8px 12px;
    gap: 8px;
  }

  .bm-logo img {
    height: 36px;
    max-width: min(118px, 32vw);
  }

  .bm-header-actions { gap: 5px; }

  .bm-lang-btn {
    min-width: 30px;
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .bm-search-btn,
  .bm-menu-toggle {
    width: 36px;
    height: 36px;
  }

  .bm-menu-toggle {
    border-radius: 10px;
    font-size: 1.15rem;
  }

  .bm-stats-bar { grid-template-columns: 1fr; }
  .bm-stat-item { border-right: none; }
  .bm-footer-inner { grid-template-columns: 1fr; }
  .bm-footer-visitors { max-width: 280px; }
}

/* Mobile bottom dock */
.bm-mobile-dock {
  display: none;
}

@media (max-width: 768px) {
  body.has-mobile-dock.bemine-page {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .bm-mobile-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 120;
    padding: 8px 6px 6px;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff 0%, var(--bm-pink-light) 48%, var(--bm-blue-light) 100%);
    border: 1px solid rgba(244, 114, 182, 0.35);
    box-shadow:
      0 10px 28px rgba(236, 72, 153, 0.18),
      0 4px 14px rgba(56, 189, 248, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
  }

  .bm-mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    padding: 4px 2px;
    border-radius: 14px;
    color: var(--bm-text-muted);
    text-align: center;
    transition: color 0.2s, background 0.2s, transform 0.2s;
  }

  .bm-mobile-dock-item:active {
    transform: scale(0.96);
  }

  .bm-mobile-dock-item.is-active {
    color: var(--bm-pink-dark);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.25);
  }

  .bm-mobile-dock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
  }

  .bm-mobile-dock-icon svg {
    width: 24px;
    height: 24px;
  }

  .bm-mobile-dock-icon--courseIntro { color: var(--bm-pink); }
  .bm-mobile-dock-icon--quiz { color: var(--bm-blue-dark); }
  .bm-mobile-dock-icon--courses { color: var(--bm-deep-blue); }
  .bm-mobile-dock-icon--line { color: #06C755; }

  .bm-mobile-dock-item.is-active .bm-mobile-dock-icon--courseIntro { color: var(--bm-pink-dark); }
  .bm-mobile-dock-item.is-active .bm-mobile-dock-icon--quiz { color: var(--bm-blue-dark); }
  .bm-mobile-dock-item.is-active .bm-mobile-dock-icon--courses { color: var(--bm-deep-blue-dark); }

  .bm-mobile-dock-label {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.has-mobile-dock .bm-top-btn {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 44px;
    height: 44px;
  }

  body.has-mobile-dock .site-footer {
    margin-bottom: 4px;
  }
}

/* Pretest gate modal */
body.bm-pretest-modal-open {
  overflow: hidden;
}

.bm-pretest-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bm-pretest-modal[hidden] {
  display: none !important;
}

.bm-pretest-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.bm-pretest-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  text-align: center;
}

.bm-pretest-modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
}

.bm-pretest-modal-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.bm-pretest-modal-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #0f172a;
  line-height: 1.35;
}

.bm-pretest-modal-desc {
  margin: 0 0 20px;
  color: var(--bm-text-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.bm-pretest-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bm-pretest-modal-primary {
  display: block;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--bm-deep-blue);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

.bm-pretest-modal-primary:hover {
  background: var(--bm-deep-blue-dark);
}

.bm-pretest-modal-secondary {
  border: 0;
  background: #f1f5f9;
  color: #334155;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.bm-pretest-modal--hard .bm-pretest-modal-x,
.bm-pretest-modal--hard .bm-pretest-modal-secondary {
  display: none;
}

.bm-pretest-modal--hard .bm-pretest-modal-backdrop {
  pointer-events: none;
  background: rgba(15, 23, 42, 0.62);
}

body.bm-pretest-locked main {
  filter: blur(2px);
  user-select: none;
}

.bm-pretest-locked-placeholder,
.bm-pretest-locked-list {
  margin: 24px auto;
  max-width: 520px;
  padding: 28px 20px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  line-height: 1.6;
}

/* ===== Clean About us home ===== */
body.bm-page-about-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0b1c33;
}

body.bm-page-about-home .bm-top-btn {
  display: none !important;
}

body.bm-page-about-home > main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.bm-page-about-home .site-footer {
  margin-top: 0;
}

.bm-about-hero {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bm-about-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bm-about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  transform: scale(1.02);
  animation: bm-about-kenburns 18s ease-in-out infinite alternate;
}

@keyframes bm-about-kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.bm-about-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 28, 51, 0.18) 0%, rgba(11, 28, 51, 0.22) 38%, rgba(11, 28, 51, 0.78) 100%),
    linear-gradient(90deg, rgba(11, 28, 51, 0.55) 0%, rgba(11, 28, 51, 0.12) 55%, rgba(11, 28, 51, 0.35) 100%);
  pointer-events: none;
}

.bm-about-hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin-left: 0;
  margin-right: auto;
  padding: 48px 24px 56px;
  padding-left: clamp(28px, 6vw, 80px);
  color: #fff;
  text-align: left;
  animation: bm-about-rise 0.85s ease-out both;
}

.bm-about-hero-copy.container {
  margin-left: 0;
  margin-right: auto;
}

@keyframes bm-about-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.bm-about-kicker {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

/* บรรทัด 1 — ขนาดกลาง */
.bm-about-brand {
  margin: 0 0 18px;
  font-family: Outfit, Sarabun, sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.55em;
}

.bm-about-brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bm-about-brand-tag {
  font-family: Sarabun, sans-serif;
  font-weight: 600;
  opacity: 0.95;
}

/* บรรทัด 2 — ตัวใหญ่เด่น */
.bm-about-headline {
  margin: 0 0 16px;
  max-width: 38rem;
  font-family: Sarabun, sans-serif;
  font-size: clamp(1.55rem, 3.8vw, 2.45rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.32);
}

/* บรรทัด 3 — ตัวเล็กแบบเดิม */
.bm-about-lead {
  margin: 0 0 28px;
  max-width: 40rem;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  line-height: 1.7;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

.bm-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Partner logos strip — bottom of home hero */
.bm-home-partners {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 18px 20px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 28%, rgba(255, 255, 255, 0.94) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: bm-about-rise 1s ease-out 0.25s both;
}

.bm-home-partners-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bm-home-partners-label {
  margin: 0;
  font-family: Outfit, Sarabun, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748B;
}

.bm-home-partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
  flex-wrap: wrap;
}

.bm-home-partner {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-home-partner img {
  display: block;
  width: auto;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.12));
  transition: transform 0.25s ease;
}

.bm-home-partner--bemind img {
  max-height: 68px;
}

.bm-home-partner--section2 img {
  max-height: 96px;
}

.bm-home-partner--thaihealth img {
  max-height: 70px;
}

.bm-home-partner:hover img {
  transform: translateY(-2px) scale(1.03);
}

.bm-about-hero-copy {
  padding-bottom: 150px;
}

.bm-btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}

.bm-btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

@media (max-width: 900px) {
  .bm-nav-link {
    font-size: 1.02rem;
    padding: 10px 12px;
  }

  .bm-about-hero {
    min-height: calc(100vh - 72px);
    align-items: flex-end;
  }

  .bm-about-hero-copy {
    padding: 36px 18px 42px;
    padding-left: clamp(18px, 5vw, 28px);
    padding-bottom: 168px;
    max-width: none;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
  }

  .bm-home-partners {
    padding: 14px 14px 18px;
  }

  .bm-home-partners-logos {
    gap: 16px;
  }

  .bm-home-partner--bemind img {
    max-height: 52px;
  }

  .bm-home-partner--section2 img {
    max-height: 72px;
  }

  .bm-home-partner--thaihealth img {
    max-height: 54px;
  }

  .bm-about-brand {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    margin-bottom: 14px;
  }

  .bm-about-headline {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    margin-bottom: 12px;
  }

  .bm-about-lead {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  .bm-about-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bm-about-actions .bm-btn,
  .bm-about-actions .bm-btn-ghost-light {
    width: 100%;
    justify-content: center;
  }
}
