/* src/styles/DashboardPremium.css */
:root {
  --premium-navy: #08326d;
  --premium-blue-gradient: linear-gradient(90deg, #08326d 0%, #1b4d91 100%);
  --premium-bg: #f8fafc;
  --premium-surface: #ffffff;
  --premium-border: #e2e8f0;
  --premium-text-main: #1e293b;
  --premium-text-dim: #64748b;
  --premium-accent-green: #22c55e;
  --premium-accent-blue: #3b82f6;
  --premium-accent-orange: #f59e0b;
  --premium-accent-purple: #8b5cf6;
  --premium-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --premium-radius: 16px;
}

.app-layout-root-premium {
  background-color: var(--premium-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal scroll on entire page */
}

.dashboard-content-area-premium {
  flex: 1;
  width: 100%;
  padding-top: 112px; /* Exact offset for fixed header (60px + 52px) */
}

.dashboard-content-area-premium.no-header {
  padding-top: 0;
}

.premium-dashboard {
  background-color: var(--premium-bg);
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--premium-text-main);
  padding: 0 0 40px 0;
}

.premium-sticky-header-group {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Header Overrides */
.premium-sticky-header-group {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.top-bar-v5 {
  height: 60px;
  background: linear-gradient(135deg, #132b6b 0%, #1e3a8a 100%);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  position: relative;
}

.nav-bar-v5 {
  height: 52px;
  background: #25468d; /* Refined Nav Background */
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-wrapper-v5 {
  position: absolute;
  left: 45%;
  transform: translateX(-50%);
  width: 300px;
}

.search-bar-v5 {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  padding: 0 18px;
  height: 42px;
  gap: 10px;
}

.search-bar-v5 input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 14px;
  width: 100%;
}

.search-icon-v5 {
  color: #64748b;
}

.header-actions-v5 {
  display: flex;
  align-items: center;
  gap: 24px; /* Perfect horizontal distribution */
  margin-left: auto;
}

.divider-v5 {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.user-profile-v5 {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.avatar-v5 {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info-v5 {
  display: flex;
  flex-direction: column;
}

.user-name-v5 {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.user-time-v5 {
  font-size: 11px;
  color: #94a3b8;
}

.top-nav-pills {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background: #1e3a8a; /* Original Nav Background */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-pill {
  color: white;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-pill.active {
  background: #2e6ba6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  font-weight: 600;
}

.nav-pill:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
}

.plus-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3b82f6;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 10px;
}

/* DOCTOR DROPDOWN WORKSTATION (Consolidated & Aligned) */
.premium-dropdown-v5 {
  position: absolute;
  top: calc(100% + 10px);
  right: 0; /* Perfect right alignment */
  width: 250px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 4000;
  animation: dropdownSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-header-v5 {
  padding: 16px 20px 10px; /* Reduced padding */
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-avatar-v5 {
  width: 42px; /* Reduced avatar size */
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-user-info-v5 {
  display: flex;
  flex-direction: column;
}

.dropdown-name-v5 {
  font-size: 16px; /* Reduced name font */
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.dropdown-role-v5 {
  font-size: 12px; /* Reduced role font */
  color: #777;
  font-weight: 500;
}

.dropdown-attendance-v5 {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.attendance-action-btn-v5 {
  width: 100%;
  padding: 10px; /* More compact button */
  border-radius: 99px;
  border: none;
  font-size: 14px; /* Reduced font */
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s;
}

.attendance-action-btn-v5.out { background: #ff5252; }
.attendance-action-btn-v5.in { background: #10b981; }

.attendance-timer-v5 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #444;
  font-size: 18px; /* Reduced timer font */
  font-weight: 700;
}

.dropdown-menu-v5 {
  padding: 8px 0; /* Balanced vertical grid */
}

.dropdown-link-v5 {
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.dropdown-link-v5:hover {
  background: #f8fafc;
  color: #3b82f6;
}

.dropdown-link-v5 svg {
  color: #64748b;
  width: 20px;
  height: 20px;
}

.dropdown-footer-v5 {
  border-top: 1px solid #f1f5f9;
  padding: 4px 0;
}

.logout-action-v5 {
  color: #1a1a1a !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 20px !important; /* Prominent logout interaction */
}

.logout-action-v5 svg {
  color: #1a1a1a !important;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-plus-btn-v5 {
  width: 38px;
  height: 38px;
  background: #3b6ea5;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* Dashboard Content */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.hero-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.welcome-text h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.welcome-text p {
  color: var(--premium-text-dim);
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn-premium {
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-outline {
  background: white;
  border: 1px solid var(--premium-border);
  color: var(--premium-text-main);
}

.btn-green {
  background: var(--premium-accent-green);
  border: none;
  color: white;
}

.btn-blue {
  background: var(--premium-accent-blue);
  border: none;
  color: white;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: white;
  padding: 24px;
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}

.kpi-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.kpi-card.production .kpi-icon-wrapper { background: #eff6ff; color: #3b82f6; }
.kpi-card.collection .kpi-icon-wrapper { background: #fffbeb; color: #f59e0b; }
.kpi-card.appointments .kpi-icon-wrapper { background: #f0fdf4; color: #22c55e; }
.kpi-card.treatments .kpi-icon-wrapper { background: #faf5ff; color: #8b5cf6; }

.kpi-info {
  flex: 1;
}

.kpi-label {
  color: var(--premium-text-dim);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.kpi-value {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.kpi-trend {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0fdf4;
  color: #16a34a;
}

/* Analytics Row */
.analytics-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.premium-card {
  background: white;
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow);
  padding: 24px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.card-title-row h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--premium-text-dim);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bar-chart-container {
  height: 300px;
  width: 100%;
}

/* Radial Chart Legend */
.radial-legend {
  margin-top: 20px;
}

.radial-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.radial-item:last-child { border: none; }

.radial-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

.radial-value {
  font-weight: 700;
  color: var(--premium-accent-blue);
}

/* Bottom Row */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.view-all-link {
  color: var(--premium-accent-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
}

.premium-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--premium-text-dim);
  font-weight: 600;
  background: #f8fafc;
}

.premium-table td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patient-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.patient-name {
  font-weight: 600;
  font-size: 14px;
}

.time-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--premium-text-dim);
  font-size: 13px;
}

.source-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--premium-text-dim);
}

/* Task List */
.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.task-item:last-child { border: none; }

.task-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-details h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.task-details p {
  font-size: 12px;
  color: var(--premium-text-dim);
  margin: 2px 0 0 0;
}

.task-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--premium-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn.reject:hover { background: #fef2f2; color: #ef4444; border-color: #fecaca; }
.action-btn.approve:hover { background: #f0fdf4; color: #22c55e; border-color: #bbf7d0; }

.footer-premium {
  text-align: center;
  padding: 24px;
  color: var(--premium-text-dim);
  font-size: 12px;
}

.premium-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--premium-border);
  padding: 8px;
  z-index: 10000;
  color: var(--premium-text-main);
}

.dropdown-header {
  padding: 12px 16px;
}

.dropdown-name {
  font-weight: 700;
  font-size: 14px;
  margin: 0;
}

.dropdown-email {
  font-size: 12px;
  color: var(--premium-text-dim);
  margin: 4px 0 0 0;
}

.dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 8px 0;
}

.dropdown-item {
  width: 100%;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--premium-text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: var(--premium-accent-blue);
}

.dropdown-item.logout-item:hover {
  background: #fef2f2;
  color: #ef4444;
}

@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-row { grid-template-columns: 1fr; }
  .bottom-row { grid-template-columns: 1fr; }
  .search-wrapper-v5 { width: 260px; left: 50%; }
}

@media (max-width: 767px) {
  .top-bar-v5 { padding: 0 20px; }
  .nav-bar-v5 { padding: 0 20px; gap: 8px; }
  .search-wrapper-v5 { width: 220px; }
  .dashboard-container { padding: 16px; }
}

@media (max-width: 768px) {
  /* Header */
  .top-bar-v5 {
    padding: 0 16px;
    height: 56px;
    flex-wrap: nowrap;
  }

  /* Hide search bar on mobile */
  .search-wrapper-v5 { display: none; }

  /* User profile: compact */
  .user-info-v5 { display: none; }

  /* Reduce icon gaps */
  .header-actions-v5 { gap: 14px; }

  /* Nav pills: horizontal scroll on mobile */
  .top-nav-pills {
    padding: 8px 12px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .top-nav-pills::-webkit-scrollbar { display: none; }

  .nav-pill {
    padding: 6px 14px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Content offset for smaller fixed header */
  .dashboard-content-area-premium {
    padding-top: 104px;
  }

  /* Dashboard layout */
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
  .analytics-row { grid-template-columns: 1fr; gap: 16px; }
  .bottom-row { grid-template-columns: 1fr; gap: 16px; }
  .dashboard-container { padding: 12px; }
  .hero-welcome { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn-premium { flex: 1; justify-content: center; }
  .welcome-text h1 { font-size: 22px; }

  /* Dropdown goes full width on mobile */
  .premium-dropdown-v5 { width: 230px; right: -8px; }
}

@media (max-width: 540px) {
  /* Header logo: smaller */
  .logo-section-v5 img { height: 28px !important; }

  /* Full-width dropdown on very small screens */
  .premium-dropdown-v5 {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 0 18px 18px;
  }

  /* KPI stack single column */
  .kpi-grid { grid-template-columns: 1fr; }

  /* KPI card compact */
  .kpi-card { padding: 16px; }
  .kpi-icon-wrapper { width: 44px; height: 44px; font-size: 20px; }
  .kpi-value { font-size: 20px; }

  /* Premium card */
  .premium-card { padding: 16px; }

  /* Divider hide on mobile */
  .divider-v5 { display: none; }
}

@keyframes pulse-soft {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes spin-icon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-icon {
  animation: spin-icon 1s linear infinite;
}

.pulse-dot {
  animation: pulse-dot-key 1.5s infinite;
}

@keyframes pulse-dot-key {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}
.app-layout-root {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  transition: all 0.3s ease;
}

.dashboard-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: all 0.3s ease;
  margin-left: 260px; /* Sidebar width */
}

.sidebar-collapsed .dashboard-main-wrapper {
  margin-left: 80px;
}

.dashboard-content-area {
  padding-top: 64px; /* Header height */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-page-container {
  padding: 32px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

@media (max-width: 767px) {
  .dashboard-main-wrapper {
    margin-left: 0 !important;
  }
  
  .dashboard-page-container {
    padding: 20px 16px;
  }
}
/* ==========================================================================
   Language Dropdown Menu
   ========================================================================== */

.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 200px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.12);
    padding: 10px;
    z-index: 2000;
    max-height: min(500px, 75vh);
    overflow-y: auto;

    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-8px);
}

.lang-menu--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Custom Scrollbar for the list */
.lang-menu::-webkit-scrollbar {
    width: 6px;
}

.lang-menu::-webkit-scrollbar-track {
    background: transparent;
}

.lang-menu::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}

.lang-menu::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

/* ── List ────────────────────────────────────────────────────────────────── */
.lang-menu__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ── Item ────────────────────────────────────────────────────────────────── */
.lang-menu__item {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.lang-menu__item:hover,
.lang-menu__item--active {
    background: #f3f4f6;
}

.lang-menu__item:hover .lang-menu__label,
.lang-menu__item--active .lang-menu__label {
    color: #E81A2D;
}

/* ── Label ───────────────────────────────────────────────────────────────── */
.lang-menu__label {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 450;
    line-height: 1.2;
    color: #1a1a1a;
    white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .lang-menu {
        display: none;
    }
}
.login-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 200px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
    z-index: 100;
}

.login-menu--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(12px);
    pointer-events: auto;
}

.login-menu__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-menu__item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s ease;
}

.login-menu__item:hover {
    background-color: #f9f9f9;
}

.login-menu__item:hover .login-menu__label {
    color: #E81A2D;
}

/* ── Label ───────────────────────────────────────────────────────────────── */
.login-menu__label {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1a1a;
    white-space: nowrap;
    transition: color 0.18s ease;
}


@media (max-width: 1024px) and (min-width: 768px) {
    .login-menu {
        width: 150px;
        padding: 8px 10px;
    }
    .login-menu__item {
        padding: 4px 6px;
    }
    .login-menu__label {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .login-menu {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
        background: transparent;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }

    .login-menu--open {
        display: block;
    }

    .login-menu__item {
        padding: 10px 16px;
    }

    .login-menu__label {
        font-size: 16px;
    }
}/* ==========================================================================
   Products Mega-Menu Dropdown
   ========================================================================== */

.products-menu {
  position: absolute;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  padding-top: 0 !important;
  z-index: -1 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  box-shadow: none;
}

@media (max-width: 767px) {
  .products-menu {
    display: none !important;
  }
}

.products-menu--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.products-menu__container {
  width: 100% !important;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 35px 20px 30px 20px;
  font-family: 'Outfit', sans-serif;
}

/* ── Grid — 4 columns ────────────────────────────────────────────────────── */
.products-menu__grid {
  display: grid;
  grid-template-columns: max-content max-content max-content max-content;
  gap: 5px;
  justify-content: flex-start;
}

.products-menu__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.products-menu__col-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  padding-left: 8px;
}

/* ── Item ────────────────────────────────────────────────────────────────── */
.products-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease;
  text-decoration: none;
}

.products-menu__item:hover {
  background: #f9f9f9;
}

.products-menu__label {
  font-size: 13.5px;
  font-weight: 600;
  color: #444;
  transition: color 0.18s ease;
}

.products-menu__item:hover .products-menu__label {
  color: #E81A2D;
}

.products-menu__item:hover .products-menu__icon-wrap {
  background: #ffebed;
}

/* ── Icon wrapper ────────────────────────────────────────────────────────── */
.products-menu__icon-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
}

.products-menu__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  /* Make all icons black */
  filter: brightness(0);
  opacity: 0.8;
}

/* ── Right Ecosystem Banner ──────────────────────────────────────────────── */
.products-menu__ecosystem {
  border-left: 1px solid #e2e8f0;
  padding-left: 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.products-menu__eco-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 16px;
}

.products-menu__eco-desc {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.5;
  margin-bottom: 24px;
}

.products-menu__eco-btn {
  display: inline-block;
  background-color: #3182ce;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  align-self: flex-start;
  white-space: nowrap;
}

.products-menu__eco-btn:hover {
  background-color: #2b6cb0;
}

/* Responsive constraints */
@media (max-width: 1280px) and (min-width: 1025px) {
  .products-menu__container {
    padding: 20px;
  }
  .products-menu__grid {
    grid-template-columns: 1fr 1fr 1fr 240px;
    gap: 12px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .products-menu__container {
    padding: 10px;
  }
  .products-menu__grid {
    grid-template-columns: 1fr 1fr 1fr 180px;
    gap: 4px;
  }
  .products-eco-column {
    display: flex;
    padding-left: 8px;
  }
  .product-item {
    padding: 0.15rem;
    gap: 0.25rem;
  }
  .product-item-icon {
    width: 20px;
    height: 20px;
  }
  .product-item-title {
    font-size: 0.65rem;
  }
  .product-item-desc {
    font-size: 0.55rem;
  }
  .products-category-header h3 {
    font-size: 0.8rem;
  }
  .products-menu__eco-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .products-menu__eco-desc {
    font-size: 0.65rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }
  .products-menu__eco-btn {
    font-size: 0.7rem;
    padding: 6px 8px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

@media (max-width: 767px) {
  .products-menu {
    display: none; /* Usually handled by mobile menu logic */
  }
}
/* ==========================================================================
   Resources Dropdown Menu
   ========================================================================== */

.resources-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: min(240px, 90vw);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    z-index: 2000;

    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-6px);
}

.resources-menu--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── List ────────────────────────────────────────────────────────────────── */
.resources-menu__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Item ────────────────────────────────────────────────────────────────── */
.resources-menu__item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s ease;
}

.resources-menu__item:hover {
    background: #f9f9f9;
}

.resources-menu__item:hover .resources-menu__label {
    color: #E81A2D;
}

/* ── Label ───────────────────────────────────────────────────────────────── */
.resources-menu__label {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: #1a1a1a;
    white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 768px) {
    .resources-menu {
        width: min(200px, 90vw);
        padding: 10px 12px;
    }
    .resources-menu__item {
        padding: 6px 8px;
    }
    .resources-menu__label {
        font-size: 14px;
    }
}

@media (max-width: 767px) {

    /* It is hidden on mobile via hide-mobile class originally, but if we need a mobile menu */
    .resources-menu {
        display: none;
    }
}.solutions-menu {
  position: absolute;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  padding-top: 0;
  transform: none;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: -1;
}

@media (max-width: 767px) {
  .solutions-menu {
    display: none !important;
  }
}

.solutions-menu.mega-menu--open {
  opacity: 1;
  visibility: visible;
}

.solutions-menu__container {
  width: 100% !important;
  box-sizing: border-box;
  display: flex;
  padding: 35px 20px 30px 20px;
  gap: 5px;
  background: #ffffff;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.solutions-column {
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 0 5px;
  border-right: 1px solid #e2e8f0; /* Vertical divider */
}

/* Header styling */
.solutions-column-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  /* Removed bottom border, screenshot doesn't have it */
}

.header-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.doc-icon-box {
  background: #3182ce;
}

.pat-icon-box {
  background: #e53e3e;
}

.header-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.solutions-column-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #1a202c;
  white-space: nowrap;
}

/* List styling */
.solutions-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.solutions-item {
  display: flex;
  align-items: center;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  gap: 1rem;
}

.solutions-item:hover {
  background: rgba(255,255,255,0.5);
}

/* Item Icon in White Box */
.solutions-item-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  object-fit: contain;
  flex-shrink: 0;
}

.solutions-item-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.solutions-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #3182ce;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.solutions-item-desc {
  font-size: 0.8rem;
  color: #4a5568;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* View All Buttons */
.solutions-view-all {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}

.btn-blue-light {
  background: #e2e8f0;
  color: #2b6cb0;
}
.btn-blue-light:hover {
  background: #cbd5e1;
}

.btn-red-light {
  background: #fee2e2;
  color: #e53e3e;
}
.btn-red-light:hover {
  background: #fecaca;
}

/* Info Column */
.solutions-info-column {
  flex: 1;
  padding: 0.5rem 5px 0 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.info-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.info-desc {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.solutions-explore-all {
  background: #3182ce;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
  white-space: nowrap;
}
.solutions-explore-all:hover {
  background: #2b6cb0;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .solutions-menu__container {
    padding: 10px 5px;
    gap: 2px;
  }
  .solutions-column {
    padding: 0 5px;
  }
  .solutions-item {
    padding: 0.15rem;
    gap: 0.25rem;
  }
  .solutions-item-icon {
    width: 20px;
    height: 20px;
    padding: 2px;
  }
  .solutions-item-title {
    font-size: 0.65rem;
  }
  .solutions-item-desc {
    font-size: 0.55rem;
  }
  .solutions-column-header h3 {
    font-size: 0.8rem;
  }
  .solutions-view-all {
    font-size: 0.7rem;
    padding: 0.5rem;
  }
  
  /* Info Column */
  .solutions-info-column {
    display: flex;
    padding: 0.5rem 5px 0 5px;
  }
  .info-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .info-desc {
    font-size: 0.7rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  .solutions-explore-all {
    font-size: 0.7rem;
    padding: 6px 12px;
  }
}

/* Responsive */
@media (max-width: 767px) {
  .solutions-menu {
    position: static;
    width: 100%;
    border-radius: 0;
  }
  .solutions-menu__container {
    flex-direction: column;
  }
  .solutions-column {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
  }
  .solutions-info-column {
    display: none;
  }
  .solutions-item-title, .solutions-item-desc {
    white-space: normal;
  }
}
/* ==========================================================================
   Navbar — Apple-Style Liquid Glass Navigation
   ========================================================================== */

/* ── Custom Properties ──────────────────────────────────────────────────── */
.navbar {
  --_glass-alpha: 1;
  --_tiltX: 0deg;
  --_tiltY: 0deg;
  --_text-dim: rgba(0, 0, 0, 0.75);
  --_text-bright: #2d3748;
  --_accent: #E81A2D;
  --_accent-glow: hsla(0, 84%, 50%, 0.15);
}

/* ── Outer Wrapper ──────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky, 1000);
  display: flex;
  justify-content: center;
  padding-top: 20px;
  pointer-events: none;
  max-width: 100vw;
  overflow-x: clip;
  overflow-y: visible;
}

/* ── Container ────────────────────────────────────────────────────── */
.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1100px, 92%);
  max-width: calc(100vw - 20px);
  padding: 12px 14px 12px 28px;
  border-radius: 20px;
  pointer-events: auto;
  overflow: visible;
  isolation: isolate;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: perspective(800px) rotateX(var(--_tiltX)) rotateY(var(--_tiltY));
  transition: box-shadow 0.4s ease;
  will-change: transform;
  box-sizing: border-box;
}

/* ── Scrolled state ─────────────────────── */
.nav-container--scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ── Menu Open state ─────────────────────── */
.nav-container--menu-open {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  box-shadow: none !important;
  transition: border-radius 0s, box-shadow 0s;
}

/* ── Logo ───────────────────────────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  z-index: 1;
  border-radius: 10px;
}

.nav-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

/* ── Nav Links ──────────────────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1;
}

.nav-item-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #2D3748;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 10px;
  transition: color 0.3s ease;
  user-select: none;
  z-index: 1;
}

.nav-item:hover {
  color: var(--_accent);
}

.nav-caret {
  margin-left: 6px;
  color: #2D3748;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-caret--open {
  transform: rotate(180deg);
}

.nav-item--active {
  color: #E81A2D;
}
.nav-item--active .nav-caret {
  color: #E81A2D;
}
.nav-item--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: #E81A2D;
  border-radius: 2px;
}

/* ── Actions ────────────────────────────────────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  z-index: 1;
}

.nav-icon img {
  width: 26px;
  height: 26px;
  filter: brightness(0) saturate(100%) invert(39%) sepia(21%) saturate(2370%) hue-rotate(185deg) brightness(97%) contrast(92%);
}

.nav-icon:hover {
  background: #f4f4f5;
  box-shadow: 0 0 15px var(--_accent-glow);
}

/* ── CTA Button ─────────────────────────────────────────────────────────── */
.nav-cta {
  position: relative;
  padding: 14px 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: white;
  background: #E81A2D;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  z-index: 1;
  transition: background 0.3s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover {
  background: #cc1526;
}

/* ── Ripple Effect ──────────────────────────────────────────────────────── */
.ripple {
  display: none;
}

/* ==========================================================================
   Animated Hamburger — 3-line → X morph
   ========================================================================== */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 1;
  position: relative;
  border-radius: 12px;
  transition: background-color 0.35s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger:active {
  transform: scale(0.95);
}

.nav-hamburger__line {
  position: absolute;
  width: 22px;
  height: 2px;
  background: #2D3748;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-hamburger__line--1 {
  top: 13px;
}

.nav-hamburger__line--2 {
  top: 20px;
}

.nav-hamburger__line--3 {
  top: 27px;
}

/* ── Open state — morph to X ── */
.nav-hamburger--open {
  background: #f1f5f9;
}

.nav-hamburger--open .nav-hamburger__line {
  background: #475569;
}

.nav-hamburger--open .nav-hamburger__line--1 {
  top: 20px;
  transform: rotate(45deg);
}

.nav-hamburger--open .nav-hamburger__line--2 {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger--open .nav-hamburger__line--3 {
  top: 20px;
  transform: rotate(-45deg);
}

/* ==========================================================================
   Mobile Drawer — Full-screen overlay with Apple-style slide
   ========================================================================== */
.mobile-backdrop {
  display: none;
}

.mobile-drawer {
  display: none;
}

@media (max-width: 767px) {
  .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-drawer__inner {
    padding: 16px 20px 100px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-toggle-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
  }

  .mobile-drawer__section--toggle {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-toggle-context {
    padding: 20px 0 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* ── Section ── */
  .mobile-drawer__section {
    border-bottom: 1px solid transparent;
    margin-bottom: 6px;
    border-radius: 16px;
    transition: background-color 0.3s ease;
  }

  .mobile-drawer__section--cta {
    border-bottom: none;
    margin-top: 16px;
  }

  /* ── Link ── */
  .mobile-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 16px;
    background: none;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-drawer__link:active {
    background: #f1f5f9;
  }

  .mobile-drawer__link--active {
    color: #E81A2D;
    background: #f8fafc;
  }

  /* ── Chevron ── */
  .mobile-drawer__chevron {
    color: #9ca3af;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    flex-shrink: 0;
  }

  .mobile-drawer__chevron--open {
    transform: rotate(180deg);
    color: #E81A2D;
  }

  /* ── Sub Menu ── */
  .mobile-drawer__sub {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px 16px 12px;
    background: #f8fafc;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    margin-top: -8px; /* tuck behind link */
  }

  .mobile-drawer__sub-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid transparent;
    background: #ffffff;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #334155;
    border-radius: 12px;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-drawer__sub-item:active {
    background: #fef2f2;
    color: #E81A2D;
    border-color: #fecaca;
  }

  .mobile-drawer__sub-item--text {
    padding-left: 16px;
  }

  .mobile-drawer__label-highlight {
    font-weight: 700;
  }

  .mobile-drawer__sub-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
  }

  .mobile-drawer__sub-item:active .mobile-drawer__sub-icon {
    background: #ffebed;
  }

  .mobile-drawer__sub-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(80%);
  }

  .mobile-drawer__sub-item:active .mobile-drawer__sub-icon img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(96%) saturate(3000%) hue-rotate(342deg) brightness(95%) contrast(95%);
  }

  /* ── Mobile CTA ── */
  .mobile-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #E81A2D, #cc1526);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232, 26, 45, 0.3);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-drawer__cta:active {
    transform: scale(0.98);
    box-shadow: 0 2px 12px rgba(232, 26, 45, 0.25);
  }

  .mobile-drawer__cta svg {
    transition: transform 0.2s ease;
  }

  .mobile-drawer__cta:active svg {
    transform: translateX(3px);
  }

  .mobile-drawer__label-highlight {
    color: var(--_accent);
    font-weight: 600;
  }

  .mobile-drawer__sub-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    text-decoration: none;
  }

  .mobile-drawer__sub-group-link {
    transition: color 0.2s ease;
  }

  .mobile-drawer__sub-group-link:active {
    color: var(--_accent);
  }

  .mobile-drawer__sub-explore {
    padding: 12px;
    margin-top: 8px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: center;
  }

  .mobile-drawer__explore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #fdf2f2;
    color: var(--_accent);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    width: 100%;
  }

  .mobile-drawer__explore-btn:active {
    background: #f8d7da;
  }
}

/* ==========================================================================
   Desktop Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .nav-container {
    width: min(1000px, 94%);
    padding: 10px 12px 10px 18px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-item {
    padding: 8px 10px;
    font-size: 14px;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .nav-container {
    padding: 8px 10px;
    width: 94%;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-item {
    padding: 6px 8px;
    font-size: 12px;
  }

  .nav-cta {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .nav-logo img {
    height: 40px;
  }

  .nav-actions {
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .navbar {
    padding-top: 8px;
  }

  .nav-container {
    position: relative;
    width: 92%;
    max-width: calc(100vw - 24px);
    padding: 6px 10px 6px 14px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Keep other items like hamburger on the right */
    gap: 12px;
    margin-left: 10px;
  }

  .nav-login {
    display: none;
  }

  .nav-cta-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none; /* Let clicks pass through if needed, though button will catch them */
  }

  .nav-cta {
    position: relative;
    pointer-events: auto;
    margin: 0;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: clamp(10px, 3.5vw, 13px);
    font-weight: 700;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(232, 26, 45, 0.2);
  }

  .nav-icon {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    order: 2;
  }

  /* Ensure toggle and wrapper are ordered correctly */
  .nav-persona-toggle-wrapper {
    order: 1;
  }

  .nav-logo img {
    height: 44px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 6px 8px 6px 12px;
  }

  .nav-logo img {
    height: 38px;
  }

  .nav-actions {
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .nav-container {
    padding: 6px 6px 6px 8px;
  }

  .nav-logo img {
    height: 34px;
  }

  .nav-actions {
    gap: 6px;
    margin-left: 4px;
  }

  .nav-cta {
    padding: 6px 12px;
    font-size: 11px;
    min-width: fit-content;
  }

  /* Apply super-compact styles to the PersonaToggle via the wrapper */
  .nav-persona-toggle-wrapper .persona-toggle--compact {
    width: 78px;
    height: 28px;
    padding: 2px;
  }

  .nav-persona-toggle-wrapper .persona-toggle--compact .persona-toggle__thumb {
    width: 22px;
    height: 22px;
  }

  .nav-persona-toggle-wrapper .persona-toggle--compact .persona-toggle__label {
    font-size: 9px;
  }

  .nav-hamburger {
    width: 36px;
    height: 36px;
  }

  .nav-hamburger__line {
    width: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-container {
    transition: none;
    transform: none !important;
  }

  .hover-glass {
    transition: none;
    transform: none !important;
  }

  .nav-hamburger__line {
    transition: none;
  }
}/* 6. Intensity Presets & Variables */
:root {
    --logo-scan-subtle: 0.3;
    --logo-scan-default: 0.6;
    --logo-scan-intense: 1.0;
    --logo-scan-color: 255, 255, 255;
    /* RGB for customization */
}

/* Theme Adaptation */
:root[data-theme="dark"] {
    --logo-scan-color: 200, 230, 255;
    /* Cool white for dark mode */
}

/* Container */
/* Container */
/* Container */
.logo-scan {
    position: relative;
    display: inline-flex;
    /* Tightly wraps image */
    overflow: visible;
    /* Revert clipping so glow can spill */
    transform-style: preserve-3d;
    cursor: pointer;
    line-height: 0;
    /* Ensures no extra vertical space */
}

/* Main Image */
.logo-img {
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Triggered Scale/Jitter on Image */
.logo-scan.is-active .logo-img {
    animation: logo-pop 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Overlay 1: Broad Sheen */
/* Overlay 1: Broad Sheen */
.logo-scan-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(var(--logo-scan-color), var(--scan-alpha, 0.4)) 45%,
            rgba(var(--logo-scan-color), var(--scan-alpha, 0.8)) 50%,
            rgba(var(--logo-scan-color), var(--scan-alpha, 0.4)) 55%,
            transparent 80%);
    transform: translateX(-150%) skewX(-20deg);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;

    /* MASKING: Ensure sheen only visible on opaque logo pixels */
    /* Url is set via inline style, but defaults here */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Overlay 2: Fast Bright Highlight */
.logo-scan-overlay-2 {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(var(--logo-scan-color), 0.9) 48%,
            rgba(var(--logo-scan-color), 1) 50%,
            rgba(var(--logo-scan-color), 0.9) 52%,
            transparent 60%);
    transform: translateX(-150%) skewX(-20deg);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: color-dodge;

    /* MASKING */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Glow: Soft Outer Blob */
.logo-scan-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(var(--logo-scan-color), 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Animations Triggered by Classes */
.logo-scan-overlay.active {
    /* Use CSS variable for opacity based on modifier class */
    animation: scan-pass-1 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logo-scan-overlay-2.active {
    animation: scan-pass-2 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.logo-scan-glow.active {
    animation: scan-glow 2.2s ease-out forwards;
}

/* Intensity Modifiers */
.logo-scan--subtle {
    --scan-alpha: var(--logo-scan-subtle);
}

.logo-scan--default {
    --scan-alpha: var(--logo-scan-default);
}

.logo-scan--intense {
    --scan-alpha: var(--logo-scan-intense);
}

/* Keyframes */
@keyframes logo-pop {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes scan-pass-1 {
    0% {
        transform: translateX(-150%) skewX(-20deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateX(150%) skewX(-20deg);
        opacity: 0;
    }
}

@keyframes scan-pass-2 {
    0% {
        transform: translateX(-150%) skewX(-10deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    60% {
        transform: translateX(150%) skewX(-10deg);
        opacity: 0;
    }

    100% {
        transform: translateX(150%) skewX(-10deg);
        opacity: 0;
    }
}

@keyframes scan-glow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    20% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .logo-scan.is-active .logo-img,
    .logo-scan-overlay.active,
    .logo-scan-overlay-2.active,
    .logo-scan-glow.active {
        animation: none;
        transition: none;
        transform: none;
        opacity: 1;
        /* Just show static state or nothing */
    }
}/* ==========================================================================
   Footer — Dark Theme Premium
   ========================================================================== */

.footer {
  position: relative;
  padding-top: 28px;
  padding-bottom: var(--section-spacing);
  overflow: hidden;
  border-top: 1px solid var(--t-border-subtle);
}

/* ── Background Pattern ─────────────────────────────────────────────────── */
.footer__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* filter: brightness(0.3); -- Removed as per user request to show BG */
}

/* ── Inner Wrapper ──────────────────────────────────────────────────────── */
.footer__inner {
  position: relative;
  z-index: 1;
}

/* ── Top Section ────────────────────────────────────────────────────────── */
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 2.5fr;
  gap: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--t-border-subtle);
}

/* ── Brand Column ───────────────────────────────────────────────────────── */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo-icon {
  flex-shrink: 0;
}

.footer__logo-icon img {
  filter: var(--t-icon-filter);
}

.footer__logo-text {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--t-text-strong);
  letter-spacing: -0.02em;
}

.footer__logo-text span {
  color: hsl(0, 78%, 55%);
}

.footer__brand-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  max-width: 320px;
  font-weight: 400;
}

/* ── Link Columns ───────────────────────────────────────────────────────── */
.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__col-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link {
  font-size: 0.95rem;
  color: #374151;
  text-decoration: none;
  font-weight: 450;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer__link:hover {
  color: #2563eb;
  transform: translateX(3px);
}

/* ── Contact Items ──────────────────────────────────────────────────────── */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
}

.footer__contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #4b5563;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__contact-link {
  color: #374151;
  text-decoration: none;
  font-weight: 450;
  transition: color 0.25s ease;
}

.footer__contact-link:hover {
  color: #2563eb;
}

/* ── Bottom Bar ─────────────────────────────────────────────────────────── */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--t-border-subtle);
  position: relative;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__social {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--t-glass-fill);
  border: 1px solid var(--t-border);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  padding: 0;
  text-decoration: none;
}

.footer__social img {
  width: 38px;
  height: 38px;
  opacity: 1; /* Permanently colourful */
  filter: none; /* Removed grayscale/brightness filters */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer__social:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-8px) scale(1.15) rotate(5deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Individual Brand Dynamics */
.footer__social--linkedin:hover {
  border-color: #0077b5;
  box-shadow: 0 12px 24px rgba(0, 119, 181, 0.25);
}

.footer__social--insta:hover {
  border-color: #e4405f;
  box-shadow: 0 12px 24px rgba(228, 64, 95, 0.25);
}

.footer__social--fb:hover {
  border-color: #1877f2;
  box-shadow: 0 12px 24px rgba(24, 119, 242, 0.25);
}

.footer__social:hover img {
  transform: scale(1.1);
}

.footer__copyright {
  font-size: 0.88rem;
  color: #4b5563;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  right: 0;
}

.footer__legal-link {
  font-size: 0.88rem;
  color: #4b5563;
  text-decoration: none;
  font-weight: 450;
  transition: color 0.25s ease;
}

.footer__legal-link:hover {
  color: #2563eb;
}

.footer__legal-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cbd5e1;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 768px) {
  .footer {
    zoom: 0.65;
  }
}

@media (max-width: 767px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding-bottom: 2rem;
  }

  .footer__socials {
    justify-content: center;
  }

  .footer__legal {
    position: static;
    justify-content: center;
    width: 100%;
    order: 2;
  }

  .footer__copyright {
    order: 1;
  }
}

/* ── High Tech Note ─────────────────────────────────────────────────────── */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.high-tech-note {
  font-size: 0.65rem;
  color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-weight: 600;
}

.high-tech-dot {
  width: 6px;
  height: 6px;
  background-color: #3b82f6;
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

/* ── Contact Form ───────────────────────────────────────────────────────── */
.footer__connect-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.footer__connect-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
  font-size: 0.95rem;
  color: #374151;
  background: transparent;
  outline: none;
  font-family: inherit;
  transition: border-color 0.25s ease;
}

.footer__input:focus {
  border-bottom-color: #ed1a2b;
}

.footer__input::placeholder {
  color: #9ca3af;
}

.footer__submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.footer__submit-btn {
  background-color: #ed1a2b;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-family: inherit;
}

.footer__submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .footer__contact-headers-row {
    flex-direction: column;
    gap: 1rem !important;
  }
}
/* ── FOOTER CTA ── */
.ds-cta {
  padding: 5rem 2rem;
  background: white;
  text-align: center;
  position: relative;
  z-index: 10;
}

.ds-cta .ds-section-title {
  font-family: var(--ff-heading, 'Outfit', sans-serif);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.875rem);
  font-weight: 600;
  line-height: 1.2;
  color: #111;
}

.brand-red {
  color: #e31837;
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(15px) translateX(-50%);
  }
}

.cta-red-arrow {
  position: absolute;
  left: 70%;
  right: auto;
  top: 70%;
  width: 80px;
  z-index: 5;
  animation: bounceArrow 2s infinite ease-in-out;
}

.ds-cta-banner {
  background: #004a94;
  border-radius: 24px;
  padding: 4rem 5%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 4rem auto 0;
  text-align: left;
  overflow: visible;
  background-size: cover;
  background-position: center;
  height: auto;
}

.ds-cta-full {
  width: 100%;
  max-width: none !important;
  position: relative;
  margin: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  padding: 1rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  overflow: visible;
  background-size: cover;
  background-position: center;
  height: auto;
}

.cta-full-logo {
  width: 120px;
  margin-bottom: 0.5rem;
}

.ds-cta-content {
  position: relative;
  z-index: 3;
}

.ds-cta-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.2;
}

.cta-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-blue-glow {
  background: #60a5fa;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.btn-blue-glow:hover {
  background: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.cta-avatars {
  display: flex;
  align-items: center;
}

.cta-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #60a5fa;
  margin-left: -8px;
  object-fit: cover;
}

.cta-avatar-img:first-child {
  margin-left: 0;
}

.cta-booked-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: white;
}

.cta-white-arrow {
  width: 24px;
  height: 24px;
  transform: rotate(-45deg);
  color: white;
}

.cta-booked-fast {
  font-size: 0.85rem;
  opacity: 0.9;
  text-align: left;
}

.cta-doctor-img {
  position: absolute;
  right: 5%;
  bottom: 0;
  height: 125%;
  max-height: 500px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(-10px 10px 15px rgba(0,0,0,0.3));
}

@media (max-width: 767px) {
  .ds-cta-banner {
    flex-direction: column;
    padding: 2rem 5%;
    align-items: center;
    text-align: center;
  }
  .ds-cta-content {
    padding: 0;
    align-items: center;
  }
  .ds-cta-content h3 {
    font-size: 2rem;
  }
  .cta-action-row {
    justify-content: center;
    flex-direction: column;
  }
  .cta-doctor-img {
    position: relative;
    right: auto;
    bottom: auto;
    height: auto;
    max-width: 100%;
    margin-top: 2rem;
  }
  .cta-red-arrow {
    display: block;
    left: 60%;
    width: 60px;
    top: 60%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .ds-cta {
    padding: 3rem 1rem;
  }
  .ds-cta .ds-section-title {
    font-size: 28px;
  }
  .cta-red-arrow {
    width: 50px;
    top: 50%;
  }
  .ds-cta-full {
    padding: 1rem 5%;
  }
  .ds-cta-content h3 {
    font-size: 2rem;
  }
  .cta-full-logo {
    width: 90px;
  }
  .cta-doctor-img {
    height: 110%;
    right: 0;
  }
  .btn-blue-glow {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .cta-booked-fast {
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .ds-cta {
    padding: 1.5rem 1rem;
  }
  .ds-cta .ds-section-title {
    font-size: 26px;
    margin-bottom: 1rem;
  }
  .cta-red-arrow {
    width: 40px;
    top: 40%;
  }
  .ds-cta-full {
    padding: 1rem 5%;
    margin-top: 1rem;
    min-height: auto;
  }
  .ds-cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  .cta-full-logo {
    width: 80px;
    margin-bottom: 0.2rem;
  }
  .cta-doctor-img {
    height: 100%;
    max-height: 300px;
    right: 0;
  }
  .btn-blue-glow {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .cta-booked-fast {
    font-size: 0.7rem;
  }
  .cta-action-row {
    gap: 0.5rem;
  }
}

/* FOOTER TABLET HEIGHT FIX */
@media (min-width: 768px) and (max-width: 1024px) {
  .ds-cta-banner {
    padding: 1.5rem 3% !important;
    min-height: 200px !important;
  }
  .ds-cta-content h3 {
    margin-bottom: 0.5rem !important;
  }
}
/* ═══════════════════════════════════════════════════════════════
   Skeuomorphic Stats — Shared Styles
   Fix: prevent SVG/icon circle from being composited behind glass layer in build
   ═══════════════════════════════════════════════════════════════ */

.sk-stats-3d {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.sk-stats-3d--standalone {
  padding: 100px 80px 40px;
  background: #ffffff;
}

/* ── Header ────────────────────────────────────────────────── */
.sk-stats-3d__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
  will-change: transform;
}

.sk-stats-3d__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: #1e2538;
  margin: 0;
}

.sk-stats-3d__title-span {
  color: #ff2d3e;
  /* Brand Red */
}

/* ── Perspective stage ─────────────────────────────────────── */
.sk-stats-3d__stage {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  max-width: 1200px;
  margin: 0 auto;
}

.sk-stats-3d__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  transform-style: preserve-3d;
}

/* ── Individual 3-D card ───────────────────────────────────── */
/*
  Important change:
  We render the frosted glass panel on ::before so children (icons)
  never get composited "under" the glass layer in production.
*/
.sk-stats-3d__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 52px 24px 44px;
  border-radius: 24px;

  /* moved to ::before */
  background: transparent;
  border: none;
  box-shadow: none;

  transform-style: preserve-3d;
  will-change: transform;

  /* prevents weird blending/flattening across browsers */
  isolation: isolate;
}

.sk-stats-3d__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(43, 49, 74, 0.08);

  box-shadow:
    0 1px 2px rgba(43, 49, 74, 0.04),
    0 8px 24px rgba(43, 49, 74, 0.06),
    0 24px 48px -12px rgba(86, 118, 206, 0.10);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  z-index: 0;
  transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sk-stats-3d__card:hover::before {
  box-shadow:
    0 2px 4px rgba(43, 49, 74, 0.06),
    0 16px 40px rgba(43, 49, 74, 0.10),
    0 40px 80px -16px rgba(86, 118, 206, 0.18);
}

/* ensure all direct children render above the glass layer */
.sk-stats-3d__card>* {
  position: relative;
  z-index: 1;
}

/* edges */
.sk-stats-3d__edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.sk-stats-3d__edge--top {
  top: 0;
  border-radius: 24px 24px 0 0;
}

.sk-stats-3d__edge--bottom {
  bottom: 0;
  border-radius: 0 0 24px 24px;
}

.sk-stats-3d__card:hover .sk-stats-3d__edge {
  opacity: 1;
}

/* ── Icon ──────────────────────────────────────────────────── */
/*
  Key change:
  Remove negative translateZ so the icon never goes behind the card surface.
*/
.sk-stats-3d__icon-container {
  margin-bottom: 20px;

  transform: translateZ(28px) translateY(4px);
  transform-style: preserve-3d;

  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;

  z-index: 3;
  backface-visibility: hidden;
}

.sk-stats-3d__icon-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;

  transform: scale(0.92) rotateX(-8deg) translateZ(0px);
  box-shadow:
    inset 0 16px 20px -8px rgba(10, 15, 30, 0.6),
    inset 0 -4px 6px -1px rgba(255, 255, 255, 1);

  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;

  /* keep highlight behind the SVG */
  z-index: 0;
  backface-visibility: hidden;
}

.sk-stats-3d .sk-stats-3d__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;

  transform: scale(0.92) rotateX(-8deg) translateZ(10px);
  position: relative;

  /* always above the pseudo shadow/highlight */
  z-index: 1;

  /* make sure production/global styles never dim it */
  filter: none !important;
  opacity: 1 !important;

  backface-visibility: hidden;
}

.sk-stats-3d__card:hover .sk-stats-3d__icon-container {
  transform: translateZ(70px) translateY(-8px);
}

.sk-stats-3d__card:hover .sk-stats-3d__icon {
  transform: scale(1.1) rotateX(10deg) translateZ(35px);
  filter:
    drop-shadow(0 12px 14px rgba(43, 49, 74, 0.12)) drop-shadow(0 24px 28px rgba(43, 49, 74, 0.10));
}

.sk-stats-3d__card:hover .sk-stats-3d__icon-container::after {
  transform: scale(1.1) rotateX(10deg);
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}

/* ── Text ──────────────────────────────────────────────────── */
.sk-stats-3d__number {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 5.5vw, 84px);
  line-height: 1;
  letter-spacing: -2.5px;
  color: #1e2538;
  margin: 0 0 12px 0;
  transform: translateZ(30px);
  z-index: 2;
}

.sk-stats-3d__label {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 26px;
  color: #4b5268;
  margin: 0;
  max-width: 180px;
  transform: translateZ(15px);
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1280px) {
  .sk-stats-3d--standalone {
    padding: 80px 48px 40px;
  }

  .sk-stats-3d__grid {
    gap: 20px;
  }

  .sk-stats-3d__card {
    padding: 44px 18px 38px;
  }
}

@media (max-width: 1023px) {
  .sk-stats-3d--standalone {
    padding: 72px 32px 40px;
  }

  .sk-stats-3d__header {
    margin-bottom: 48px;
  }

  .sk-stats-3d__stage {
    perspective: 900px;
  }

  .sk-stats-3d__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sk-stats-3d__number {
    font-size: clamp(44px, 8vw, 64px);
  }
}

@media (max-width: 640px) {
  .sk-stats-3d--standalone {
    padding: 56px 20px 40px;
  }

  .sk-stats-3d__header {
    margin-bottom: 36px;
  }

  .sk-stats-3d__stage {
    perspective: 600px;
  }

  .sk-stats-3d__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
  }

  .sk-stats-3d__card {
    padding: 36px 14px 30px;
    border-radius: 18px;
  }

  .sk-stats-3d__card::before {
    border-radius: 18px;
  }

  .sk-stats-3d__number {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

  .sk-stats-3d__label {
    font-size: 14px;
    line-height: 20px;
  }

  .sk-stats-3d__icon-container {
    width: 64px;
    height: 64px;
  }
}/* ══════════════════════════════════════════════════════════
   Success Stories — Testimonials
   ══════════════════════════════════════════════════════════ */

.ss-testimonials {
  padding-block: var(--section-spacing);
  background: #fff;
}

/* ── Heading ── */
.ss-testimonials__heading {
  max-width: 1239px;
  margin: 0 auto 48px;
  text-align: center;
  padding: 0 5%;
}

.ss-testimonials__title {
  font-family: var(--ff-heading, 'Outfit', sans-serif);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.875rem);
  font-weight: 600;
  line-height: 82px;
  color: var(--ds-text, #111);
  text-transform: capitalize;
}

.ss-testimonials__title-red {
  color: #ed1a2b;
}

/* ── Cards row ── */
.ss-testimonials__grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── Card ── */
.ss-testimonials__card {
  flex: 1;
  min-width: 0;
  max-width: 364px;
  background: #eeeefe;
  border-radius: 25px;
  padding: 26px 16px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.ss-testimonials__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

/* ── Card header ── */
.ss-testimonials__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ss-testimonials__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ss-testimonials__doctor-info {
  display: flex;
  flex-direction: column;
}

.ss-testimonials__doctor-name {
  font-family: var(--ff-heading, 'Outfit', sans-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: normal;
  color: #161616;
  text-transform: capitalize;
  margin: 0;
}

.ss-testimonials__doctor-role {
  font-family: var(--ff-heading, 'Outfit', sans-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  color: #5c5c5c;
  margin: 0;
}

.ss-testimonials__doctor-role-dark {
  color: #382f2f;
}

/* ── Review text ── */
.ss-testimonials__text {
  font-family: var(--ff-heading, 'Outfit', sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 29.3px;
  color: #525252;
  margin: 0 0 16px;
  flex: 1;
}

/* ── Stars ── */
.ss-testimonials__stars {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.ss-testimonials__stars img {
  height: 100%;
  width: auto;
}

/* ── Separator line ── */
.ss-testimonials__separator {
  width: 100%;
  height: 1px;
  background: #d9d9d9;
  margin-top: 20px;
}

/* ── Home Page Exception ── */
#chapter-testimonials .ss-testimonials {
  padding-top: clamp(4rem, 8vw, 10rem); /* Substantial room for breakout toothbrushes */
  padding-bottom: var(--section-spacing);
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .ss-testimonials__grid {
    flex-direction: column;
    align-items: center;
  }

  .ss-testimonials__card {
    flex: none;
    width: min(364px, 90vw);
  }

  .ss-testimonials__title {
    line-height: 1.2;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .ss-testimonials__card {
    padding: 16px 10px 16px;
  }
  .ss-testimonials__doctor-name {
    font-size: 16px;
  }
  .ss-testimonials__doctor-role {
    font-size: 13px;
  }
  .ss-testimonials__text {
    font-size: 13px;
    line-height: 1.4;
  }
  .ss-testimonials__avatar {
    width: 48px;
    height: 48px;
  }
  .ss-testimonials__title {
    font-size: 32px;
    line-height: 40px;
  }
}
/* ==========================================================================
   Shared FAQ Accordion — extracted from Pricing page
   ========================================================================== */

.shared-faq {
    padding: 40px 24px 100px;
    max-width: 1188px;
    margin: 0 auto;
}

.shared-faq__title {
    font-weight: 600;
    font-size: 62px;
    line-height: 82px;
    color: #000;
    text-align: center;
    text-transform: capitalize;
    margin: 0 0 56px;
}

.shared-faq__title span {
    color: #ed1a2b;
}

.shared-faq__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.shared-faq__item {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.shared-faq__item--open {
    border-color: #ed1a2b;
}

.shared-faq__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    text-align: left;
    gap: 16px;
}

.shared-faq__question {
    font-size: 22px;
    line-height: 36.3px;
    color: #000;
    font-weight: 400;
}

.shared-faq__icon {
    width: 44px;
    height: 44px;
    background-color: #ed1a2b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.shared-faq__icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.shared-faq__icon--open {
    transform: rotate(45deg);
}

.shared-faq__answer {
    padding: 0 28px 24px;
    font-size: 18px;
    line-height: 30.3px;
    color: #525252;
}

.shared-faq__answer p {
    margin: 0;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .shared-faq__title {
        font-size: 44px;
        line-height: 56px;
    }
}

@media (max-width: 768px) {
    .shared-faq {
        padding: 60px 16px;
    }

    .shared-faq__title {
        font-size: 32px;
        line-height: 42px;
        margin-bottom: 32px;
    }

    .shared-faq__trigger {
        padding: 16px 20px;
    }

    .shared-faq__question {
        font-size: 18px;
        line-height: 28px;
    }

    .shared-faq__icon {
        width: 40px;
        height: 40px;
    }

    .shared-faq__list {
        gap: 16px;
    }
}/* Dashed Rings */
.eco-orbit-system {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinReverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.eco-orbit-rotator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: orbitSpin 60s linear infinite;
}

.eco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed #ccc;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.eco-ring-1 { width: 230px; height: 230px; } /* Radius 115 */
.eco-ring-2 { width: 350px; height: 350px; } /* Radius 175 */
.eco-ring-3 { width: 470px; height: 470px; } /* Radius 235 */

.eco-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 10;
}
.eco-center-logo {
  width: 70%;
  height: auto;
  object-fit: contain;
}

.eco-node {
  position: absolute;
  width: 86px;
  height: 86px;
  z-index: 5;
  top: 50%;
  left: 50%;
  /* Centering adjustment so the center of the node is on the dashed line */
  margin-top: -43px;
  margin-left: -43px;
}

.eco-node-content {
  width: 86px;
  height: 86px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6px;
  animation: orbitSpinReverse 60s linear infinite;
}

.eco-node-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 2px;
  object-fit: contain;
  filter: brightness(0) opacity(0.8);
  transition: filter 0.2s;
}
.eco-node-content:hover .eco-node-icon {
  filter: none;
}
.eco-node-text {
  font-size: 0.55rem;
  font-weight: 700;
  color: #333;
  line-height: 1.1;
  width: 100%;
  transition: color 0.2s;
}
.eco-node-content:hover .eco-node-text {
  color: #006ce4;
}

@media (max-width: 768px) {
  .eco-node-text {
    font-size: 0.55rem;
  }
  .eco-node-content {
    width: 65px;
    height: 65px;
    padding: 3px;
  }
  .eco-node-icon {
    width: 22px;
    height: 22px;
  }
  .eco-node {
    width: 65px;
    height: 65px;
    margin-top: -32.5px;
    margin-left: -32.5px;
  }
  .eco-center-circle {
    width: 90px;
    height: 90px;
  }
}
.all-products-page {
  background-color: #f4f5f8;
  padding-bottom: 60px;
  container-type: inline-size;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .all-products-page {
    zoom: 0.65;
  }
}

/* ── HERO SECTION ── */
.ap-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 160px 20px 40px 20px;
  min-height: auto;
}

.ap-hero-content {
  flex: 1;
  max-width: 500px;
}

.ap-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
  margin-bottom: 24px;
}

.ap-hero-subtitle {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.5;
  font-weight: 500;
}

.ap-hero-diagram {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  min-height: 500px;
}

.ap-ecosystem-graphic {
  position: relative !important;
  width: 540px;
  height: 540px;
}

/* ── PRODUCT GRID SECTION ── */
.ap-grid-section {
  background-color: #ffffff;
  padding: 80px 20px;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.02);
}

.ap-grid-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.ap-grid-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 16px;
}

.ap-grid-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.ap-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ap-filter-btn {
  padding: 8px 24px;
  border-radius: 30px;
  border: 1px solid #eaeaea;
  background: white;
  color: #2581C4;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ap-filter-btn:hover {
  border-color: #2581C4;
}

.ap-filter-btn--active {
  background: #2581C4;
  color: white;
  border-color: #2581C4;
}

/* Grid */
.ap-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card */
.ap-product-card {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.ap-product-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: #f5f5f5;
  border-radius: 50%;
  z-index: 0;
  transition: background-color 0.3s ease;
}

.ap-product-card > * {
  position: relative;
  z-index: 1;
}

.ap-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.ap-product-card:hover::before {
  background-color: #eef5ff;
}

.ap-card-icon-wrap {
  width: 48px;
  height: 48px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.ap-card-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
  transition: filter 0.2s ease;
}

.ap-product-card:hover .ap-card-icon {
  filter: none;
}

.ap-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.ap-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
}

.ap-card-desc {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 32px 0;
  flex-grow: 1;
}

.ap-card-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ap-card-link:hover .ap-arrow {
  transform: translateX(4px);
}

.ap-arrow {
  transition: transform 0.2s ease;
}

.ap-testimonials {
  padding: 80px 0;
  background: #ffffff;
  text-align: center;
}

.ap-testi-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 40px;
}

/* Responsive */
@container (max-width: 767px) {
  .ap-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ap-hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
    min-height: auto;
  }
  .ap-hero-title {
    font-size: 2.5rem;
  }
  .ap-hero-diagram {
    display: flex !important;
    transform: scale(0.62);
    margin-top: 20px;
    min-height: 350px;
  }
  .ap-grid-title, .ap-testi-title {
    font-size: 2rem;
  }
}

@container (max-width: 480px) {
  .ap-products-grid {
    grid-template-columns: 1fr !important;
  }
  .ap-hero-diagram {
    transform: scale(0.6);
  }
}

.product-slider {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.product-slider__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: product-scroll var(--duration) linear infinite;
}

.product-slider:hover .product-slider__track {
  animation-play-state: paused;
}

@keyframes product-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 280px card + 32px gap = 312px */
    transform: translateX(calc(-292px * var(--item-count)));
  }
}

@media (max-width: 640px) {
  @keyframes product-scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      /* 200px card + 32px gap = 232px */
      transform: translateX(calc(-232px * var(--item-count)));
    }
  }
}

.product-slider__card {
  flex: 0 0 260px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.product-slider__card:hover {
  transform: translateY(-8px);
  background: #fff;
  border-color: #ed1a2b;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-slider__icon-wrap {
  width: 100px;
  height: 100px;
  background: #f9fafb;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.product-slider__card:hover .product-slider__icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.product-slider__icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.product-slider__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-slider__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}

.product-slider__subtext {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .product-slider__card {
    flex: 0 0 200px;
    padding: 16px;
  }
  
  .product-slider__icon-wrap {
    width: 60px;
    height: 60px;
  }
  
  .product-slider__icon {
    width: 32px;
    height: 32px;
  }
}

.product-slider__card {
  height: auto;
  min-height: 240px;
  padding: 24px;
  align-items: flex-start;
  text-align: left;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .product-slider__card {
    flex: 0 0 220px;
    padding: 16px;
    min-height: 200px;
  }
  .product-slider__icon-wrap {
    width: 60px;
    height: 60px;
  }
  .product-slider__icon {
    width: 40px;
    height: 40px;
  }
  .product-slider__name {
    font-size: 14px;
  }
}
.ps-preventive-cta {
  padding: 5rem;
  background: #f8fafc;
  text-align: center;
}

.ps-section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.brand-red {
  color: #e31837;
}

.ps-preventive-banner {
  border-radius: 24px;
  max-width: 1200px;
  min-height: 400px;
  margin: 3rem auto 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ps-preventive-content {
  flex: 1;
  text-align: left;
  z-index: 2;
  color: white;
  max-width: 500px;
}
.ps-preventive-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.ps-btn {
  background: #e31837;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  z-index: 10;
}
.ps-btn:hover {
  background: #c5122b;
}



@media (max-width: 767px) {
  .ps-preventive-cta {
    padding: 2rem 1.5rem;
  }
  .ps-preventive-banner {
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    background-position: right center;
    background-size: cover;
    min-height: 300px;
  }
  .ps-preventive-content {
    text-align: center;
    margin-bottom: 2rem;
    background: rgba(0, 108, 228, 0.6);
    padding: 1rem;
    border-radius: 12px;
  }
}
