/**
 * Medical Test Product Page Styles
 * Restyled to match page-vervetel-budapest.php aesthetic
 */

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --fjord-sage:         #799c86;
  --fjord-sage-dark:    #5a7a66;
  --fjord-sage-deep:    #3d5c48;
  --fjord-sage-light:   rgba(121,156,134,0.12);
  --fjord-cream:        #f7f5f0;
  --fjord-cream-dark:   #ede8dd;
  --fjord-text:         #1e2d25;
  --fjord-text-body:    #4a4a4a;
  --fjord-text-muted:   #666;
  --fjord-border:       #ede8dd;
  --fjord-white:        #ffffff;

  --spacing-xs:   0.5rem;
  --spacing-sm:   0.75rem;
  --spacing-md:   1.25rem;
  --spacing-lg:   2rem;
  --spacing-xl:   3rem;
  --spacing-xxl:  4rem;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  20px;
  --radius-xl:  24px;
  --radius-pill: 50px;

  --shadow-sm:  0 2px 10px rgba(0,0,0,0.05);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.11);
}

/* ============================================
   BASE / RESET
   ============================================ */
.medical-test-page * { box-sizing: border-box; }
.medical-test-page {
  font-family: 'DM Sans', sans-serif;
  color: var(--fjord-text-body);
  background: var(--fjord-white);
  overflow-x: hidden;
}
.medical-test-page h1,
.medical-test-page h2,
.medical-test-page h3,
.medical-test-page h4 {
  font-family: 'Marcellus', serif;
  color: var(--fjord-text);
  line-height: 1.25;
}

/* ============================================
   ANIMATIONS (matching vervetel)
   ============================================ */
@keyframes mt-fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mt-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes mt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(121,156,134,0.35); }
  50%       { box-shadow: 0 0 0 10px rgba(121,156,134,0); }
}

.mt-animate { opacity: 0; }
.mt-animate.mt-visible {
  animation: mt-fadeUp 0.65s cubic-bezier(.22,.68,0,1.2) forwards;
}
.mt-animate-delay-1.mt-visible { animation-delay: .10s; }
.mt-animate-delay-2.mt-visible { animation-delay: .20s; }
.mt-animate-delay-3.mt-visible { animation-delay: .30s; }
.mt-animate-delay-4.mt-visible { animation-delay: .40s; }

/* ============================================
   CONTAINER
   ============================================ */
.medical-test-page .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.test-hero {
  background: linear-gradient(135deg, #f7f5f0 0%, #eee9e0 45%, #e8f0eb 100%);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

/* Radial glow ornament – top right */
.test-hero::before {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(121,156,134,0.13) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Radial glow ornament – bottom left */
.test-hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(121,156,134,0.09) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.breadcrumbs {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  animation: mt-fadeIn .5s ease forwards;
}
.breadcrumbs a {
  color: var(--fjord-sage);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 5px; }

.test-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--fjord-text);
  margin: 0 0 18px;
  position: relative;
  z-index: 2;
  animation: mt-fadeUp .7s cubic-bezier(.22,.68,0,1.2) .1s both;
}

.test-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--fjord-text-body);
  margin-bottom: 28px;
  max-width: 700px;
  position: relative;
  z-index: 2;
  animation: mt-fadeUp .7s cubic-bezier(.22,.68,0,1.2) .2s both;
}

/* ── Feature / date items as pill badges ─────────────────── */
.test-key-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  position: relative;
  z-index: 2;
  animation: mt-fadeUp .7s cubic-bezier(.22,.68,0,1.2) .3s both;
}

.medical-test-page .feature-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-pill) !important;
  background: rgba(255,255,255,0.72) !important;
  border: 1px solid rgba(121,156,134,0.28) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: var(--fjord-sage-deep) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06) !important;
  transition: all 0.22s ease !important;
}

.medical-test-page .feature-item:hover {
  background: rgba(121,156,134,0.12) !important;
  border-color: rgba(121,156,134,0.55) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(121,156,134,0.16) !important;
}

/* Price badge pill – slightly different tint */
.medical-test-page .feature-item-price {
  background: rgba(121,156,134,0.10) !important;
  border-color: rgba(121,156,134,0.38) !important;
  gap: 5px !important;
}

.feature-price-original {
  text-decoration: line-through !important;
  color: var(--fjord-text-muted) !important;
  font-weight: 500 !important;
  font-size: 0.78rem !important;
}

.feature-price-value {
  color: var(--fjord-sage-deep) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
}

.feature-price-discount {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: rgba(192,57,43,0.10);
  border: 1px solid rgba(192,57,43,0.22);
  border-radius: var(--radius-pill);
  color: #b03020;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.medical-test-page .feature-icon {
  font-size: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  border: none !important;
}

.medical-test-page .feature-icon-img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
  opacity: 0.85 !important;
}

.medical-test-page .feature-text {
  font-size: 0.84rem !important;
  color: var(--fjord-sage-deep) !important;
  font-weight: 600 !important;
}

/* ============================================
   HERO CTA BUTTONS
   ============================================ */
.test-hero-ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 36px;
  position: relative;
  z-index: 2;
  animation: mt-fadeUp .7s cubic-bezier(.22,.68,0,1.2) .45s both;
  /* Cap to width of the feature pills row */
  max-width: 600px;
}

/* Both buttons: identical in every way */
.hero-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.25s ease;
  border: none;
}
.hero-cta-btn img { flex-shrink: 0; }

/* Primary – booking */
.hero-cta-primary {
  background: var(--fjord-sage-deep);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(61,92,72,0.22);
  animation: mt-pulse 2.8s ease infinite;
}
.hero-cta-primary:hover {
  background: var(--fjord-sage-dark);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  animation: none;
}

/* Secondary – pricelist */
.hero-cta-secondary {
  background: var(--fjord-sage-light);
  color: var(--fjord-sage-deep);
  border: 1px solid rgba(121,156,134,0.35) !important;
}
.hero-cta-secondary:hover {
  background: rgba(121,156,134,0.22);
  color: var(--fjord-sage-deep);
  text-decoration: none;
  transform: translateY(-1px);
}

/* fm-btn kept for other uses elsewhere */
.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.fm-btn-fill { background: var(--fjord-sage-deep); color: #ffffff; }
.fm-btn-soft { background: var(--fjord-sage-light); color: var(--fjord-sage-deep); border: 1px solid rgba(121,156,134,0.30) !important; }


/* ============================================
   CONTENT SECTION
   ============================================ */
.test-content {
  padding: var(--spacing-xxl) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

/* ── Sidebar Navigation ──────────────────────────────────── */
.content-sidebar {
  position: sticky;
  top: 110px;
}

.test-navigation {
  background: rgba(247,245,240,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--fjord-border);
}

.test-navigation .nav-item {
  padding: 14px 18px;
  color: var(--fjord-text-body);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  text-transform: none;
  transition: all 0.22s ease;
}

.test-navigation .nav-item:hover {
  background: rgba(255,255,255,0.72);
  border-color: rgba(121,156,134,0.25);
  color: var(--fjord-text);
}

.test-navigation .nav-item.active {
  background: rgba(255,255,255,0.85);
  border-color: rgba(121,156,134,0.40);
  color: var(--fjord-text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ── Content Panels ──────────────────────────────────────── */
.content-main { max-width: 100%; }

.content-panel {
  background: #fff;
  border: 1px solid var(--fjord-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  line-height: 1.75;
  color: var(--fjord-text-body);
  box-shadow: var(--shadow-sm);
}

/* SEO-safe hiding: content stays in DOM and is indexed by Google,
   but is visually hidden until the user clicks the nav item */
.content-panel--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}

/* ── FAQ Section ─────────────────────────────────────────── */
/* Styles are embedded directly in the template via <style> tag */

.content-panel h2 {
  font-size: 1.9rem;
  color: var(--fjord-text);
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

.content-panel h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fjord-sage-dark);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.content-panel h3:first-child { margin-top: 0; }

.content-panel p { margin-bottom: var(--spacing-sm); }

/* section heading tag (like .vb-section-tag) */
.test-section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fjord-sage);
  background: rgba(121,156,134,0.10);
  border: 1px solid rgba(121,156,134,0.25);
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

/* ============================================
   PACKAGES SECTION
   ============================================ */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.package-card {
  background: var(--fjord-white);
  border: 1.5px solid var(--fjord-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: block;
}

.package-card:hover {
  border-color: rgba(121,156,134,0.50);
  box-shadow: 0 10px 32px rgba(0,0,0,0.09);
  transform: translateY(-4px);
}

.package-card h4 {
  font-family: 'Marcellus', serif;
  font-size: 1.15rem;
  color: var(--fjord-text);
  margin-bottom: 8px;
}

.package-price {
  font-family: 'Marcellus', serif;
  font-size: 1.4rem;
  color: var(--fjord-text);
  margin: 0;
}

/* ============================================
   RELATED TESTS
   ============================================ */
.related-tests { margin-top: var(--spacing-xxl); }

.related-tests h2 {
  font-size: 1.9rem;
  color: var(--fjord-text);
  margin-bottom: var(--spacing-md);
}

.related-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.related-test-card {
  background: var(--fjord-cream);
  border: 1px solid var(--fjord-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  text-decoration: none;
  transition: all .25s ease;
  display: block;
}

.related-test-card:hover {
  background: var(--fjord-white);
  border-color: rgba(121,156,134,0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.related-test-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fjord-text);
  margin-bottom: 6px;
}

.related-price {
  font-family: 'Marcellus', serif;
  font-size: 1.15rem;
  color: var(--fjord-sage-dark);
  margin: 0;
}

/* ============================================
   DIVIDER
   ============================================ */
.kapcsolat-divider {
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(121,156,134,0.40),
    rgba(121,156,134,0.20),
    transparent);
  margin: 48px 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.test-page-contact {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
}

.kapcsolat-form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.form-container h2 {
  font-size: 1.8rem;
  color: var(--fjord-text);
  font-family: 'Marcellus', serif;
  font-weight: 400;
  margin-bottom: 8px;
}

.form-container .form-subtitle {
  color: var(--fjord-text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.medical-test-page .form-group {
  display: flex;
  flex-direction: column;
}

.medical-test-page .form-group input,
.medical-test-page .form-group textarea {
  padding: 14px 16px !important;
  border: 1px solid var(--fjord-border) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.95rem !important;
  font-family: 'DM Sans', sans-serif !important;
  color: var(--fjord-text) !important;
  background: rgba(247,245,240,0.5) !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}

.medical-test-page .form-group input:focus,
.medical-test-page .form-group textarea:focus {
  outline: none !important;
  border-color: var(--fjord-sage) !important;
  box-shadow: 0 0 0 3px rgba(121,156,134,0.12) !important;
  background: #fff !important;
}

.medical-test-page .form-group input::placeholder,
.medical-test-page .form-group textarea::placeholder {
  color: #aaa !important;
}

.medical-test-page .form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Consent */
.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
}

.consent-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--fjord-sage);
  cursor: pointer;
  flex-shrink: 0;
}

.consent-group label {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.55;
  cursor: pointer;
}

.consent-group label a {
  color: var(--fjord-sage);
  text-decoration: underline;
}

/* Submit button (pill style, matching vervetel) */
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(121,156,134,0.13);
  border: 1.5px solid rgba(121,156,134,0.42);
  color: var(--fjord-sage-deep);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 8px;
  width: fit-content;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.submit-btn:hover {
  background: rgba(121,156,134,0.22);
  border-color: rgba(121,156,134,0.68);
  color: var(--fjord-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(121,156,134,0.18);
}

.submit-btn:active { transform: scale(0.98); }

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.submit-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Form messages */
.form-message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
  margin-bottom: 8px;
}
.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.form-message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ── Info Cards (right side of contact) ──────────────────── */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-card {
  position: relative;
  padding: 32px 36px;
  background: linear-gradient(135deg, #fff 0%, var(--fjord-cream) 100%);
  border: 1px solid var(--fjord-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.info-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fjord-sage);
  margin-bottom: 10px;
}

.info-card h3 {
  font-family: 'Marcellus', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--fjord-text);
  margin-bottom: 14px;
  line-height: 1.35;
}

.info-card p {
  color: var(--fjord-text-muted);
  line-height: 1.7;
  font-size: 0.93rem;
}

.info-card .phone-number {
  font-family: 'Marcellus', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--fjord-text);
  margin-bottom: 14px;
}

.info-card .phone-number a {
  color: var(--fjord-text);
  text-decoration: none;
  transition: color .25s ease;
}

.info-card .phone-number a:hover { color: var(--fjord-sage); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    position: static;
  }
  .test-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  .kapcsolat-form-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .breadcrumbs { display: none; }
  .test-key-features { gap: 8px; }
  .test-navigation { grid-template-columns: 1fr; }
  .packages-grid,
  .related-tests-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .test-hero-ctas {
    flex-direction: column;
    max-width: 100%;
  }
  .hero-cta-btn {
    width: 100%;
    flex: none;
  }
  .test-key-features { gap: 8px; }
}

@media (max-width: 480px) {
  .test-title { font-size: 1.6rem; }
  .medical-test-page .container { padding: 0 16px; }
  .test-content { padding: var(--spacing-lg) 0; }
  .content-panel { padding: var(--spacing-lg); }
  .test-hero { padding: 52px 0 44px; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .test-hero-ctas,
  .test-navigation,
  .hero-cta-btn {
    display: none !important;
  }
  .content-grid { grid-template-columns: 1fr; }
  .content-panel { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================
   HOMEPAGE SECTIONS (reviews, slider, partners)
   ============================================ */

/* Design tokens from homepage */
:root {
  --fm-sage: #8faa97;
  --fm-sage-deep: #5e7d68;
  --fm-sage-light: #dce8df;
  --fm-sage-mist: #eef3f0;
  --fm-cream: #f7f5f0;
  --fm-warm: #eee9e0;
  --fm-linen: #e8e3d8;
  --fm-bark: #3a3530;
  --fm-text-soft: #7a756e;
  --fm-white: #ffffff;
  --fm-radius: 16px;
}

/* Section base */
.fm-sec { padding: 88px 0; }
.fm-sec h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 0 0 16px; }
.fm-sec p  { font-size: 0.95rem; margin: 0 0 16px; }

.fm-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Animations */
@keyframes fm-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fm-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fm-anim { opacity: 0; }
.fm-anim.fm-in { animation: fm-rise 0.8s cubic-bezier(.25,.46,.45,.94) forwards; }
.fm-d1.fm-in { animation-delay: .08s; }
.fm-d2.fm-in { animation-delay: .16s; }
.fm-d3.fm-in { animation-delay: .24s; }

/* Label & divider */
.fm-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fm-sage-deep);
  margin-bottom: 12px;
}
.fm-divider {
  width: 40px;
  height: 2px;
  background: var(--fm-sage);
  border-radius: 2px;
  margin-bottom: 20px;
  opacity: 0.6;
}

/* Reviews */
.fm-reviews { padding: 88px 0; background: var(--fm-warm); }

/* Slider */
.fm-slider-wrap {
  position: relative;
  margin-top: 32px;
}
.fm-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 2px 20px;
  scrollbar-width: none;
}
.fm-slider-track::-webkit-scrollbar { display: none; }
.fm-slide {
  scroll-snap-align: start;
  flex: 0 0 200px;
  text-decoration: none;
  color: inherit;
  background: var(--fm-white);
  border: 1px solid var(--fm-linen);
  border-radius: var(--fm-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 6px rgba(58,53,48,0.05);
}
.fm-slide:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(58,53,48,0.10);
  text-decoration: none;
  color: inherit;
}
.fm-slide-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--fm-warm);
}
.fm-slide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-slide-body { padding: 12px 14px 14px; }
.fm-slide-name {
  font-family: 'Marcellus', serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--fm-bark);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.4em;
}
.fm-slide-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #d4581b;
  background: linear-gradient(135deg, #d4581b 0%, #e67331 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fm-slider-arrow {
  display: none;
  position: absolute;
  top: calc((200px * 0.75 / 2) + 8px);
  transform: translateY(-50%);
  z-index: 10;
  width: 42px; height: 42px;
  background: var(--fm-white);
  border: 1px solid var(--fm-linen);
  border-radius: 50%;
  cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(58,53,48,0.10);
  transition: all 0.25s ease;
  color: var(--fm-bark);
  padding: 0;
}
.fm-slider-arrow:hover {
  background: var(--fm-cream);
  border-color: var(--fm-sage);
}
.fm-arrow-prev { left: -21px; }
.fm-arrow-next { right: -21px; }
@media (min-width: 769px) {
  .fm-slider-arrow { display: flex; }
  .fm-slider-wrap { padding: 0 28px; }
}
.fm-slider-wrap.fm-anim.fm-in { animation: fm-fadeIn 0.9s ease forwards; }
.fm-slider-cta { display: flex !important; justify-content: center !important; }

/* Partners */
.fm-funds-wrap { text-align: center; }
.fm-funds-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-top: 32px;
}
.fm-fund-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  transition: all 0.4s ease;
}
.fm-fund-img:hover { opacity: 1; transform: scale(1.05); }

/* Responsive */
@media (max-width: 768px) {
  .fm-sec { padding: 64px 0; }
  .fm-reviews { padding: 64px 0; }
  .fm-funds-logos { gap: 24px; }
}
@media (max-width: 600px) {
  .fm-funds-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; justify-items: center; }
  .fm-fund-img { height: 50px; }
  .fm-slider-cta > .fm-btn { white-space: normal; text-align: center; max-width: 90%; }
}

/* Feature strip */
.fm-features {
  position: relative;
  z-index: 3;
  background: var(--fm-white);
}
.fm-features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  margin-bottom: 24px;
  gap: 16px;
}
.fm-feature {
  background: var(--fm-white);
  border: 1px solid var(--fm-linen);
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(58,53,48,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.fm-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(58,53,48,0.10);
}
.fm-feature-ico {
  width: 48px; height: 48px;
  background: var(--fm-sage-mist);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--fm-sage-deep);
}
.fm-feature-ico svg { width: 22px; height: 22px; }
.fm-feature-ico img { width: 22px; height: 22px; object-fit: contain; }
.fm-feature h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fm-bark);
  margin: 0 0 4px;
}
.fm-feature p {
  font-size: 0.78rem;
  color: var(--fm-text-soft);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 1024px) { .fm-features-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .fm-features-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fm-feature { padding: 16px 10px; border-radius: 16px; }
  .fm-feature h3 { font-size: 0.8rem; }
  .fm-feature p  { font-size: 0.72rem; }
  .fm-feature-ico { width: 40px; height: 40px; border-radius: 12px; }
  .fm-feature-ico svg { width: 18px; height: 18px; }
}
/* Also add fm-d4 animation delay */
.fm-d4.fm-in { animation-delay: .32s; }
