
    html {
      scroll-behavior: smooth;
    }
    :root {
      --primary: #4169e1;
      --primary-dark: #2f4fbf;
      --accent: #4169e1;
      --accent-light: #9db6ff;
      --accent-border: rgba(65, 105, 225, 0.18);
      --accent-soft: rgba(65, 105, 225, 0.26);
      --accent-soft-strong: rgba(65, 105, 225, 0.12);
      --text: #1f2933;
      --muted: #6b7280;
      --bg-light: #f5f7fb;
      --card: #ffffff;
      --border: #e5e7eb;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text);
      background: #ffffff;
      line-height: 1.6;
      overflow-x: hidden; /* prevent horizontal drift on small screens */
    }
    a { text-decoration: none; color: inherit; }

    /* Top contact bar */
    .topbar {
      font-size: 13px;
      padding: 8px 6%;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }
    .topbar-left,
    .topbar-right {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      align-items: center;
    }
    .topbar span strong { font-weight: 600; }
    .topbar-right a {
      font-size: 13px;
      color: var(--muted);
    }

    /* Header + nav */
    header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid rgba(229, 231, 235, 0.8);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
      animation: navDrop 0.5s ease forwards;
      transform: translateY(-10px);
      opacity: 0;
      overflow-x: hidden;
    }
    .navbar {
      padding: 18px 6%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
      transition: padding 0.25s ease, gap 0.25s ease;
    }
    .logo {
      font-weight: 800;
      font-size: 22px;
      letter-spacing: 0.06em;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .logo span {
      color: var(--primary);
    }
    .logo-img {
      height: 56px;
      width: auto;
      display: block;
    }
    nav ul {
      list-style: none;
      display: flex;
      gap: 28px;
      font-size: 14px;
    }
    nav a {
      color: #374151;
      font-weight: 500;
      position: relative;
      padding-bottom: 6px;
      transition: color 0.2s ease;
    }
    nav a.active {
      color: var(--primary);
    }
    nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      height: 2px;
      width: 100%;
      background: linear-gradient(90deg, var(--primary), var(--primary-dark));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.25s ease;
    }
    nav a:hover {
      color: var(--primary);
    }
    nav a:hover::after,
    nav a.active::after {
      transform: scaleX(1);
    }
    .nav-cta {
      display: flex;
      gap: 12px;
      align-items: center;
      font-size: 14px;
      max-height: 240px;
      overflow: hidden;
      transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease, margin 0.35s ease;
    }
    .nav-cta .btn {
      min-width: 0;
      text-align: center;
    }

    .btn {
      border-radius: 999px;
      padding: 9px 20px;
      border: 1px solid transparent;
      cursor: pointer;
      font-size: 14px;
      white-space: nowrap;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .btn-primary {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
      box-shadow: 0 10px 25px rgba(65, 105, 225, 0.22);
    }
    .btn-primary:hover {
      background: var(--primary-dark);
      border-color: var(--primary-dark);
      transform: translateY(-1px);
      box-shadow: 0 12px 30px rgba(65, 105, 225, 0.3);
    }
    .btn-outline {
      background: #ffffff;
      color: var(--primary);
      border-color: var(--primary);
    }
    .btn-outline:hover {
      background: var(--primary);
      color: #ffffff;
      box-shadow: 0 10px 25px rgba(65, 105, 225, 0.2);
    }
    .btn-lang {
      padding: 8px 14px;
      font-weight: 600;
      min-width: 0;
    }
    .back-to-top {
      position: fixed;
      right: 24px;
      bottom: 24px;
      width: 46px;
      height: 46px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: var(--primary);
      color: #ffffff;
      border: 1px solid rgba(65, 105, 225, 0.4);
      box-shadow: 0 12px 24px rgba(65, 105, 225, 0.28);
      font-size: 18px;
      z-index: 60;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }
    .back-to-top:hover {
      transform: translateY(-3px);
      background: var(--primary-dark);
      box-shadow: 0 16px 28px rgba(65, 105, 225, 0.32);
    }
    @keyframes navDrop {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* HERO – full-width IMAGE (not background) */
    .hero {
      position: relative;
      width: 100%;
      height: 50vh;    /* reduced height */
      overflow: hidden;
      padding: 0;       /* remove section padding */
      margin: 0;
    }
    .hero-img {
      width: 100%;
      height: 100%;
      object-fit: cover;  /* cover entire hero */
      display: block;
    }
    /* dark overlay on top of the image */
    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, rgba(4,21,38,0.55), rgba(4,21,38,0.36), rgba(20,148,255,0.20));
      z-index: 1;
      pointer-events: none;
    }
    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(7,16,28,0.49) 0%, rgba(7,16,28,0.36) 25%, rgba(7,16,28,0.14) 55%, rgba(7,16,28,0) 80%);
      pointer-events: none;
      z-index: 2;
    }
    .hero-content {
      position: absolute;
      z-index: 4;
      top: 50%;
      left: 6%;
      transform: translateY(-50%);
      max-width: 620px;
      color: #ffffff;
    }
    .hero-label {
      font-size: 13px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #9ca3af;
      margin-bottom: 10px;
    }
    .hero h1 {
      font-size: 40px;
      line-height: 1.1;
      margin-bottom: 14px;
    }
    .hero p {
      font-size: 15px;
      color: #e5e7eb;
      max-width: 540px;
    }
    .hero-actions {
      margin-top: 22px;
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      align-items: center;
    }
    .hero-small {
      margin-top: 12px;
      font-size: 13px;
      color: #cbd5f5;
    }
    .hero-badge {
      margin-top: 26px;
      display: inline-flex;
      align-items: center;
      padding: 8px 14px;
      border-radius: 999px;
      background: rgba(15,23,42,0.9);
      font-size: 12px;
      color: #e5e7eb;
    }
    .hero-badge strong {
      color: #ffffff;
    }
    .hero-badge span {
      color: #60a5fa;
      font-weight: 600;
    }
    .hero-slider {
      position: relative;
      width: 100%;
      height: 100%;
      z-index: 0;
    }
    .hero-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transform: translateX(100%);
      transition: transform 0.8s ease, opacity 0.8s ease;
      z-index: 0;
    }
    .hero-slide.active {
      opacity: 1;
      transform: translateX(0);
      z-index: 0;
    }
    .hero-slide.pre-left { transform: translateX(-100%); }
    .hero-slide.pre-right { transform: translateX(100%); }
    .hero-slide.exit-left { transform: translateX(-100%); opacity: 0; z-index: 1; }
    .hero-slide.exit-right { transform: translateX(100%); opacity: 0; z-index: 1; }
    .hero-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .slider-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 5;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.35);
      background: rgba(15, 23, 42, 0.55);
      color: #ffffff;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s;
    }
    .slider-arrow:hover {
      background: rgba(10, 16, 32, 0.8);
      border-color: rgba(255, 255, 255, 0.6);
    }
    .slider-arrow.prev { left: 18px; }
    .slider-arrow.next { right: 18px; }
    .slider-dots {
      position: absolute;
      bottom: 18px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      z-index: 5;
    }
    .slider-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.5);
      background: rgba(255, 255, 255, 0.3);
      padding: 0;
      cursor: pointer;
      appearance: none;
      outline: none;
      transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .slider-dot.active {
      background: var(--primary);
      border-color: #ffffff;
      transform: scale(1.25);
      box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.2);
      animation: dotPulse 1.4s ease-in-out infinite;
    }
    @keyframes dotPulse {
      0% { box-shadow: 0 0 0 0 rgba(65, 105, 225, 0.35); }
      70% { box-shadow: 0 0 0 10px rgba(65, 105, 225, 0); }
      100% { box-shadow: 0 0 0 0 rgba(65, 105, 225, 0); }
    }
    @keyframes cardReveal {
      from { opacity: 0; transform: translateY(16px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* Section layout (for all sections except hero) */
    section {
      padding: 50px 6%;
      background: #ffffff;
      scroll-margin-top: 90px; /* offset for sticky header */
    }
    section.alt {
      background: var(--bg-light);
    }

    .section-header {
      margin-bottom: 26px;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 16px;
      flex-wrap: wrap;
    }
    .section-kicker {
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--primary);
      margin-bottom: 4px;
    }
    .section-title {
      font-size: 26px;
      font-weight: 700;
    }
    .section-sub {
      font-size: 14px;
      color: var(--muted);
      max-width: 480px;
    }

    /* About */
    #about {
      position: relative;
      background: linear-gradient(135deg, #fdfefe 0%, #f6f9ff 100%);
      overflow: hidden;
    }
    #about::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(260px 260px at 15% 20%, rgba(20,148,255,0.04), transparent 65%),
                  radial-gradient(240px 240px at 82% 80%, rgba(11,108,192,0.03), transparent 65%);
      pointer-events: none;
      opacity: 0.6;
    }
    #about::after { content: none; }
    .about-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
      gap: 18px;
      align-items: center;
      max-width: 1300px;
      margin: 0 auto;
    }
    .about-visual {
      position: relative;
      width: 100%;
      max-width: 720px;
      aspect-ratio: 4 / 3;
      margin-left: -75px;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 16px 32px rgba(0,0,0,0.12);
      background: linear-gradient(135deg, #eef3fb, #fdfefe);
      border: 1px solid rgba(20,148,255,0.08);
    }
    .about-visual img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .about-copy {
      max-width: 540px;
    }
    .about-points {
      margin-top: 12px;
      font-size: 14px;
    }
    .about-points li {
      margin-left: 18px;
      margin-bottom: 4px;
    }
    /* About typography bump (only in doctor section) */
    #about .section-kicker {
      font-size: 16px;
      letter-spacing: 0.1em;
    }
    #about .section-title {
      font-size: 34px;
      line-height: 1.25;
    }
    #about .section-sub {
      font-size: 18px;
      line-height: 1.7;
    }
    #about .about-points {
      font-size: 18px;
      line-height: 1.6;
    }

    /* Services */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 20px;
    }
    .service-card {
      position: relative;
      background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
      border-radius: 18px;
      padding: 20px 20px 20px 62px;
      border: 1px solid var(--accent-border);
      box-shadow: 0 14px 28px rgba(15,23,42,0.08);
      font-size: 14px;
      overflow: hidden;
    }
    .service-card::before {
      content: "";
      position: absolute;
      left: 18px;
      top: 16px;
      bottom: 16px;
      width: 8px;
      border-radius: 999px;
      background: linear-gradient(180deg, #0ea5e9, #7dd3fc);
    }
    .service-card::after {
      content: "";
      position: absolute;
      right: 18px;
      top: 18px;
      width: 18px;
      height: 18px;
      background: rgba(14, 165, 233, 0.2);
      clip-path: polygon(50% 0%, 92% 22%, 100% 60%, 50% 100%, 0 60%, 8% 22%);
      box-shadow: 0 0 0 7px rgba(14, 165, 233, 0.1);
    }
    .service-card:nth-child(1)::before {
      background: linear-gradient(180deg, #10b981, #6ee7b7);
    }
    .service-card:nth-child(1)::after {
      background: rgba(16, 185, 129, 0.26);
      box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.1);
    }
    .service-card:nth-child(2)::before {
      background: linear-gradient(180deg, #f97316, #fdba74);
    }
    .service-card:nth-child(2)::after {
      background: rgba(249, 115, 22, 0.26);
      box-shadow: 0 0 0 7px rgba(249, 115, 22, 0.1);
    }
    .service-card > * {
      position: relative;
      z-index: 1;
    }
    .service-icon {
      width: 55px;
      height: 55px;
      border-radius: 14px;
      border: 1px solid rgba(65, 105, 225, 0.22);
      background:
        radial-gradient(60px 60px at 30% 30%, rgba(65, 105, 225, 0.12), transparent 60%),
        #f8fbff;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      overflow: visible;
    }
    .service-icon svg {
      width: 20px;
      height: 20px;
      stroke: var(--primary);
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .service-icon img {
      width: 72px;
      height: 72px;
      object-fit: contain;
    }

    /* Appointment form */
    .page {
      min-height: 100vh;
      background: radial-gradient(600px 600px at 20% 20%, rgba(20,148,255,0.08), transparent 60%), #f9fbff;
      padding: 60px 6%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .form-card {
      background: #ffffff;
      border-radius: 18px;
      border: 1px solid var(--border);
      box-shadow: 0 18px 38px rgba(0,0,0,0.08);
      padding: 28px 32px;
      width: min(720px, 100%);
    }
    .appointment-section .form-card {
      position: relative;
      margin: 0 auto;
      border: 1px solid rgba(20, 148, 255, 0.16);
      background:
        radial-gradient(180px 180px at 90% -20%, rgba(14, 165, 233, 0.14), transparent 60%),
        linear-gradient(120deg, #ffffff 0%, #f2f7ff 100%);
      box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
      overflow: hidden;
    }
    .appointment-section .form-card::before {
      content: none;
    }
    .appointment-section .form-card::after {
      content: "";
      position: absolute;
      right: 22px;
      top: 20px;
      width: 18px;
      height: 18px;
      background: rgba(14, 165, 233, 0.2);
      clip-path: polygon(50% 0%, 92% 22%, 100% 60%, 50% 100%, 0 60%, 8% 22%);
      box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.1);
    }
    .appointment-section .form-card > * {
      position: relative;
      z-index: 1;
    }
    .form-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 18px;
    }
    .form-title {
      font-size: 24px;
      font-weight: 700;
    }
    .form-sub {
      color: var(--muted);
      font-size: 14px;
    }
    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 14px;
    }
    .form-group--full {
      grid-column: 1 / -1;
    }
    .form-group textarea {
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 14px;
      min-height: 110px;
      resize: vertical;
      font-family: inherit;
      background: linear-gradient(180deg, #ffffff, #f9fbff);
    }
    .form-group textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.15);
    }
    .insurance-panel {
      margin-top: 10px;
      display: none;
      padding: 12px;
      border-radius: 12px;
      border: 1px dashed rgba(65, 105, 225, 0.25);
      background: #f7faff;
    }
    .insurance-panel.is-visible {
      display: block;
    }
    .form-group label {
      font-weight: 600;
      color: var(--text);
    }
    .form-group input,
    .form-group select {
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 14px;
      transition: border-color 0.2s, box-shadow 0.2s;
      background: linear-gradient(180deg, #ffffff, #f9fbff);
    }
    .form-group input:focus,
    .form-group select:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(20,148,255,0.15);
    }
    .appointment-section .form-group input:focus,
    .appointment-section .form-group select:focus,
    .appointment-section .form-group textarea:focus {
      box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.2);
    }
    .radio-row,
    .checkbox-row {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
    }
    .radio-row label,
    .checkbox-row label {
      font-weight: 500;
      color: var(--text);
    }
    .appointment-section .radio-row label {
      background: #ffffff;
      border: 1px solid rgba(65, 105, 225, 0.18);
      border-radius: 999px;
      padding: 6px 12px;
      display: inline-flex;
      gap: 8px;
      align-items: center;
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
    }
    .appointment-section .radio-row input {
      accent-color: var(--primary);
    }
    .form-actions {
      margin-top: 16px;
      display: flex;
      justify-content: center;
    }
    .form-actions .btn {
      width: 100%;
      max-width: 320px;
      text-align: center;
    }
    .appointment-section .form-actions .btn {
      box-shadow: 0 16px 30px rgba(65, 105, 225, 0.25);
    }
    .thankyou {
      display: none;
      text-align: center;
      margin-top: 12px;
      padding: 20px 18px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: #f8fbff;
      box-shadow: 0 8px 20px rgba(0,0,0,0.05);
      gap: 10px;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .thankyou h2 {
      font-size: 20px;
      margin-bottom: 6px;
    }
    .thankyou p {
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 12px;
    }
    @media (max-width: 768px) {
      .form-grid {
        grid-template-columns: 1fr;
      }
      .form-card {
        padding: 24px 22px;
      }
    }
    .service-card h3 {
      font-size: 16px;
      margin-bottom: 6px;
    }
    .services-grid.services-grid--two {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .service-list {
      margin-top: 10px;
      padding-left: 18px;
      color: var(--text);
      font-size: 14px;
    }
    .service-list li + li {
      margin-top: 4px;
    }
    .service-note {
      color: var(--muted);
      font-size: 14px;
      margin-top: 6px;
    }
    .service-subtitle {
      margin-top: 10px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      font-weight: 600;
    }
    .info-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
      max-width: 1100px;
      margin: 0 auto;
    }
    .info-card {
      position: relative;
      background: var(--card);
      border-radius: 18px;
      padding: 22px 24px 22px 70px;
      border: 1px solid var(--accent-border);
      box-shadow: 0 12px 26px rgba(15,23,42,0.08);
      background:
        radial-gradient(140px 140px at 95% -10%, rgba(65, 105, 225, 0.16), transparent 70%),
        linear-gradient(120deg, #ffffff 0%, #f2f7ff 100%);
      overflow: hidden;
    }
    .info-card::before {
      content: "";
      position: absolute;
      left: 20px;
      top: 18px;
      bottom: 18px;
      width: 10px;
      border-radius: 999px;
      background: linear-gradient(180deg, #0ea5e9, #7dd3fc);
    }
    .info-card::after {
      content: "";
      position: absolute;
      right: 18px;
      top: 18px;
      width: 16px;
      height: 16px;
      border-radius: 6px;
      background: rgba(14, 165, 233, 0.28);
      transform: rotate(45deg);
      box-shadow: 0 0 0 7px rgba(14, 165, 233, 0.12);
    }
    .info-card:nth-child(1)::before {
      background: linear-gradient(180deg, #10b981, #6ee7b7);
    }
    .info-card:nth-child(1)::after {
      background: rgba(16, 185, 129, 0.28);
      box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.12);
    }
    .info-card:nth-child(2)::before {
      background: linear-gradient(180deg, #f97316, #fdba74);
    }
    .info-card:nth-child(2)::after {
      background: rgba(249, 115, 22, 0.28);
      box-shadow: 0 0 0 7px rgba(249, 115, 22, 0.12);
    }
    .info-card h3 {
      font-size: 18px;
      margin-bottom: 8px;
    }
    .info-card p {
      font-size: 15px;
      color: var(--muted);
    }
    .overview-text {
      max-width: 900px;
      font-size: 16px;
      color: var(--muted);
      margin: 0;
    }
    .overview-card {
      position: relative;
      border-radius: 22px;
      padding: 26px 28px 26px 76px;
      border: 1px solid var(--accent-border);
      background:
        radial-gradient(140px 140px at 92% 120%, rgba(65, 105, 225, 0.18), transparent 65%),
        radial-gradient(180px 180px at -15% -30%, rgba(65, 105, 225, 0.12), transparent 65%),
        linear-gradient(120deg, #ffffff 0%, #f1f6ff 100%);
      box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
      overflow: hidden;
    }
    .overview-card::before {
      content: "";
      position: absolute;
      left: 22px;
      top: 20px;
      bottom: 20px;
      width: 10px;
      border-radius: 10px;
      background: linear-gradient(180deg, #0ea5e9, #7dd3fc);
    }
    .overview-card::after {
      content: "";
      position: absolute;
      right: 24px;
      top: 20px;
      width: 14px;
      height: 14px;
      border-radius: 6px;
      background: rgba(65, 105, 225, 0.28);
      transform: rotate(45deg);
      box-shadow: 0 0 0 6px rgba(65, 105, 225, 0.12);
    }
    .overview-content {
      position: relative;
      z-index: 1;
      max-width: 900px;
    }
    .overview-label {
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--primary-dark);
      font-weight: 600;
      margin-bottom: 8px;
    }
    .research-list {
      list-style: none;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }
    .research-list li {
      position: relative;
      padding: 18px 22px 18px 58px;
      border-radius: 18px;
      background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
      border: 1px solid var(--accent-border);
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
      font-size: 14px;
      color: var(--text);
      overflow: hidden;
    }
    .research-list li::before {
      content: "";
      position: absolute;
      left: 18px;
      top: 14px;
      bottom: 14px;
      width: 8px;
      border-radius: 8px;
      background: linear-gradient(180deg, #0ea5e9, #7dd3fc);
    }
    .research-list li::after {
      content: "";
      position: absolute;
      right: 16px;
      top: 16px;
      width: 14px;
      height: 14px;
      border-radius: 4px;
      transform: rotate(45deg);
      box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.1);
      background: rgba(14, 165, 233, 0.25);
    }
    .research-list li:nth-child(1)::after {
      background: rgba(16, 185, 129, 0.28);
      box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
    }
    .research-list li:nth-child(1)::before {
      background: linear-gradient(180deg, #10b981, #6ee7b7);
    }
    .research-list li:nth-child(2)::after {
      background: rgba(249, 115, 22, 0.28);
      box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.1);
    }
    .research-list li:nth-child(2)::before {
      background: linear-gradient(180deg, #f97316, #fdba74);
    }
    .research-list li:nth-child(3)::after {
      background: rgba(14, 165, 233, 0.28);
      box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.1);
    }
    .research-list li:nth-child(3)::before {
      background: linear-gradient(180deg, #0ea5e9, #7dd3fc);
    }
    .research-list li:nth-child(4)::after {
      background: rgba(168, 85, 247, 0.28);
      box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.1);
    }
    .research-list li:nth-child(4)::before {
      background: linear-gradient(180deg, #a855f7, #d8b4fe);
    }
    .research-list li:nth-child(5)::after {
      background: rgba(234, 88, 12, 0.28);
      box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.1);
    }
    .research-list li:nth-child(5)::before {
      background: linear-gradient(180deg, #ea580c, #fdba74);
    }
    .education-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }
    .education-card {
      position: relative;
      background: linear-gradient(120deg, #ffffff 0%, #f3f7ff 100%);
      border-radius: 18px;
      padding: 18px 20px;
      border: 1px solid var(--accent-border);
      display: grid;
      grid-template-columns: 84px 1fr;
      gap: 16px;
      align-items: center;
      box-shadow: 0 12px 24px rgba(15,23,42,0.08);
      font-size: 14px;
      overflow: hidden;
    }
    .education-card::after {
      content: "";
      position: absolute;
      right: 18px;
      top: 18px;
      width: 18px;
      height: 18px;
      background: rgba(14, 165, 233, 0.2);
      clip-path: polygon(50% 0%, 92% 22%, 100% 60%, 50% 100%, 0 60%, 8% 22%);
      box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.1);
    }
    .education-card:nth-child(1)::after {
      background: rgba(20, 184, 166, 0.26);
      box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.1);
    }
    .education-card:nth-child(2)::after {
      background: rgba(249, 115, 22, 0.26);
      box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.1);
    }
    .education-card:nth-child(3)::after {
      background: rgba(249, 115, 22, 0.26);
      box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.1);
    }
    .education-card:nth-child(4)::after {
      background: rgba(168, 85, 247, 0.26);
      box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.1);
    }
    .education-card:nth-child(5)::after {
      background: rgba(34, 197, 94, 0.26);
      box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1);
    }
    .education-icon {
      width: 84px;
      height: 84px;
      border-radius: 18px;
      border: 1px dashed rgba(65, 105, 225, 0.28);
      background:
        radial-gradient(80px 80px at 30% 30%, rgba(65, 105, 225, 0.08), transparent 60%),
        #f8fbff;
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .education-icon img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }
    .education-icon::after {
      content: none;
    }
    .info-card,
    .service-card,
    .research-list li,
    .education-card,
    .overview-card {
      opacity: 0;
      transform: translateY(16px);
      animation: cardReveal 0.7s ease forwards;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }
    .overview-card {
      animation-delay: 0.05s;
    }
    .info-card:nth-child(1) { animation-delay: 0.08s; }
    .info-card:nth-child(2) { animation-delay: 0.16s; }
    .services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
    .services-grid .service-card:nth-child(2) { animation-delay: 0.18s; }
    .research-list li:nth-child(1) { animation-delay: 0.06s; }
    .research-list li:nth-child(2) { animation-delay: 0.12s; }
    .research-list li:nth-child(3) { animation-delay: 0.18s; }
    .research-list li:nth-child(4) { animation-delay: 0.24s; }
    .research-list li:nth-child(5) { animation-delay: 0.3s; }
    .education-card:nth-child(1) { animation-delay: 0.08s; }
    .education-card:nth-child(2) { animation-delay: 0.14s; }
    .education-card:nth-child(3) { animation-delay: 0.2s; }
    .education-card:nth-child(4) { animation-delay: 0.26s; }
    .education-card:nth-child(5) { animation-delay: 0.32s; }
    .info-card:hover,
    .service-card:hover,
    .research-list li:hover,
    .education-card:hover,
    .overview-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
      border-color: rgba(65, 105, 225, 0.25);
    }

    /* Stats */
    .stats-strip {
      margin-top: 28px;
      padding: 18px 20px;
      border-radius: 18px;
      background: #0f172a;
      color: #e5e7eb;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
    }
    .stat-item strong {
      display: block;
      font-size: 18px;
    }
    .stat-item span {
      font-size: 12px;
      color: #9ca3af;
    }

    /* Team */
    .team-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 20px;
    }
    .team-card {
      background: var(--card);
      border-radius: 18px;
      padding: 16px;
      border: 1px solid var(--border);
      text-align: left;
      font-size: 14px;
    }
    .team-photo {
      width: 100%;
      border-radius: 14px;
      margin-bottom: 10px;
      object-fit: cover;
    }
    .team-name { font-weight: 600; }
    .team-role {
      font-size: 13px;
      color: var(--muted);
    }

    /* Blog */
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
    }
    .blog-card {
      background: var(--card);
      border-radius: 16px;
      padding: 18px;
      border: 1px solid var(--border);
      font-size: 14px;
    }
    .blog-meta {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 6px;
    }
    .blog-card h3 {
      font-size: 16px;
      margin-bottom: 6px;
    }
    .blog-card a {
      font-size: 13px;
      color: var(--primary-dark);
      margin-top: 6px;
      display: inline-block;
    }

    /* Footer */
    footer {
      background: #0b1020;
      color: #cbd5f5;
      padding: 28px 6% 18px;
      font-size: 13px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.6fr 1.2fr 1.2fr;
      gap: 28px;
      margin-bottom: 18px;
    }
    .footer-title {
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 8px;
    }
    .footer-list {
      list-style: none;
    }
    .footer-list li + li {
      margin-top: 4px;
    }
    .footer-bottom {
      border-top: 1px solid #18213a;
      padding-top: 10px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: #9ca3af;
      flex-wrap: wrap;
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .about-grid {
        grid-template-columns: 1fr;
      }
      .stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .services-grid,
      .team-grid,
      .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .footer-grid {
        grid-template-columns: 1.4fr 1fr;
      }
    }
    @media (max-width: 900px) {
      body {
        font-size: 15px;
      }
      .topbar { display: none; }
      .navbar {
        padding: 14px 5%;
        gap: 9px; /* tighten spacing between logo and CTA stack */
        flex-direction: column;
        align-items: stretch;
        text-align: center;
      }
      .logo { justify-content: center; width: 100%; }
      .logo-img { height: 48px; }
      nav ul { display: none; } /* hide desktop nav on small screens to prevent overflow */
      nav ul::-webkit-scrollbar { display: none; }
      .nav-cta {
        width: 100%;
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 2px; /* reduce white space below logo */
      }
      .nav-cta .btn {
        width: 100%;
        text-align: center;
      }
      .btn {
        padding: 8px 16px;
        font-size: 13px;
        white-space: normal;
        display: inline-flex;
        justify-content: center;
        align-items: center;
      }
      section {
        padding: 36px 5%;
      }
      .hero {
        height: clamp(260px, 56vw, 380px);
        padding: 0;
      }
      .hero-content {
        left: 5%;
        right: 5%;
        bottom: 48px;
        top: auto;
        transform: none;
        max-width: 440px;
        padding: 0;
      }
      .hero h1 {
        font-size: 22px;
        line-height: 1.2;
      }
      .hero p {
        font-size: 13px;
      }
      .slider-arrow {
        display: none; /* hide prev/next controls on mobile */
      }
      .slider-dots {
        bottom: 16px;
      }
      .hero-slide img {
        object-position: center top;
      }
      .hero-actions {
        gap: 10px;
        margin-top: 18px;
      }
      .hero-actions .btn {
        padding: 8px 14px;
        font-size: 12px;
      }
      .hero-small,
      .hero-badge {
        display: none; /* hide extra text/badge on mobile */
      }
      .about-visual {
        margin-left: 0;
        max-width: 100%;
      }
      .section-title {
        font-size: 22px;
      }
      .section-sub {
        font-size: 13px;
      }
      .services-grid.services-grid--two {
        grid-template-columns: 1fr;
      }
      .service-card {
        padding: 16px 16px 16px 54px;
      }
      .service-card::before {
        left: 14px;
        top: 14px;
        bottom: 14px;
      }
      .service-card::after {
        right: 14px;
        top: 14px;
        width: 16px;
        height: 16px;
      }
      .service-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
      }
      .service-icon img {
        width: 60px;
        height: 60px;
      }
      .service-list {
        font-size: 13px;
      }
      .service-note {
        font-size: 13px;
      }
      .overview-card {
        padding: 22px 20px 22px 64px;
      }
      .overview-card::after {
        right: 18px;
        top: 18px;
      }
      .stats-strip,
      .services-grid,
      .team-grid,
      .blog-grid,
      .info-grid,
      .research-list,
      .education-grid {
        grid-template-columns: 1fr;
      }
      .stats-strip {
        text-align: center;
      }
      .footer-grid {
        grid-template-columns: 1fr;
      }
      .form-header {
        flex-direction: column;
        align-items: flex-start;
      }
      .form-actions { justify-content: center; }
      .form-actions .btn { width: 100%; text-align: center; }
      .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .info-card,
      .service-card,
      .research-list li,
      .education-card,
      .overview-card {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
      }
    }

    /* RTL adjustments */
    [dir="rtl"] body {
      direction: rtl;
      text-align: right;
      font-family: "Cairo", "Almarai", "Tajawal", "Noto Kufi Arabic", "Segoe UI", sans-serif;
    }
    [dir="rtl"] .logo {
      font-size: 28px;
      letter-spacing: 0;
      font-weight: 800;
      line-height: 1.2;
      display: inline-flex;
      align-items: baseline;
      gap: 8px;
    }
    [dir="rtl"] .logo span {
      font-weight: 900;
    }
    [dir="rtl"] .navbar {
      flex-direction: row-reverse;
    }
    [dir="rtl"] nav ul {
      flex-direction: row-reverse;
    }
    [dir="rtl"] .nav-cta {
      flex-direction: row-reverse;
    }
    [dir="rtl"] .hero-content {
      left: auto;
      right: 6%;
      text-align: right;
    }
    [dir="rtl"] .hero::after {
      background: linear-gradient(270deg, rgba(4, 12, 26, 0.7), rgba(4, 12, 26, 0.5), rgba(65, 105, 225, 0.2));
    }
    [dir="rtl"] .hero-actions {
      flex-direction: row-reverse;
      justify-content: flex-start;
    }
    [dir="rtl"] .section-header,
    [dir="rtl"] .section-sub {
      text-align: right;
    }
    [dir="rtl"] .info-card {
      padding: 22px 70px 22px 24px;
    }
    [dir="rtl"] .info-card::before {
      left: auto;
      right: 20px;
    }
    [dir="rtl"] .info-card::after {
      right: auto;
      left: 18px;
    }
    [dir="rtl"] .service-card {
      padding: 20px 62px 20px 20px;
    }
    [dir="rtl"] .service-card::before {
      left: auto;
      right: 18px;
    }
    [dir="rtl"] .service-card::after {
      right: auto;
      left: 18px;
    }
    [dir="rtl"] .overview-card {
      padding: 26px 76px 26px 28px;
    }
    [dir="rtl"] .overview-card::before {
      left: auto;
      right: 22px;
    }
    [dir="rtl"] .overview-card::after {
      right: auto;
      left: 24px;
      width: 14px;
      height: 14px;
      background: rgba(65, 105, 225, 0.28);
      box-shadow: 0 0 0 6px rgba(65, 105, 225, 0.12);
    }
    [dir="rtl"] .research-list li {
      padding: 18px 58px 18px 22px;
    }
    [dir="rtl"] .research-list li::before {
      left: auto;
      right: 18px;
    }
    [dir="rtl"] .research-list li::after {
      right: auto;
      left: 16px;
    }
    [dir="rtl"] .education-card {
      grid-template-columns: 1fr 84px;
    }
    [dir="rtl"] .education-card .education-icon {
      order: 2;
    }
    [dir="rtl"] .appointment-section .form-card::after {
      right: auto;
      left: 22px;
    }
    [dir="rtl"] .radio-row {
      justify-content: flex-start;
    }
    [dir="rtl"] .form-group input,
    [dir="rtl"] .form-group textarea,
    [dir="rtl"] .form-group select {
      text-align: right;
    }
    [dir="rtl"] input[type="time"] {
      direction: ltr;
      text-align: left;
    }
    [dir="rtl"] .back-to-top {
      right: auto;
      left: 24px;
    }

    /* Compact header state on scroll (mobile) */
    header.compact .nav-cta {
      max-height: 0;
      opacity: 0;
      transform: translateY(-12px);
      margin-top: 0;
      margin-bottom: 0;
      pointer-events: none;
    }
    header.compact .navbar {
      padding-top: 10px;
      padding-bottom: 10px;
      gap: 6px;
    }
  
