:root {
      --primary: #663399;
      --primary-light: #994CE5;
      --accent: #3498db;
      --light-bg: #f9f9f9;
      --border: #e0e0e0;
      --white: #ffffff;
      --grey-text: #666666;
      --heading: #2c3e50;
    }


    /* ── HERO ───────────────────────────────────── */

    .advisers-hero {
      background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
      padding: 50px 0 40px;
      border-bottom: 1px solid var(--border);
    }

    .hero-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
    }

    .hero-left-col { padding: 20px 0; }

    .hero-title {
      font-size: 2.5rem;
      color: var(--heading);
      margin-bottom: 15px;
      letter-spacing: -1.5px;
      font-weight: 800;
      line-height: 1.1;
    }

    .hero-title em {
      font-style: normal;
      color: var(--primary);
    }

    .hero-kicker {
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 12px;
    }

    .hero-desc {
      font-size: 1.05rem;
      color: var(--grey-text);
      line-height: 1.7;
      max-width: 520px;
    }

    .hero-right-col {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Stats 2×2 grid */

    .hero-stats-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      width: 100%;
      max-width: 380px;
    }

    .hero-stat-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 24px 20px;
      text-align: center;
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .hero-stat-card:hover {
      box-shadow: 0 8px 20px rgba(0,0,0,0.08);
      transform: translateY(-2px);
    }

    .hero-stat-number {
      font-size: 2.4rem;
      font-weight: 800;
      color: var(--primary);
      line-height: 1.1;
      margin-bottom: 6px;
    }

    .hero-stat-icon {
      color: var(--primary);
      margin-bottom: 8px;
    }

    .hero-stat-label {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--grey-text);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      line-height: 1.3;
    }

    /* ── ALPHA INDEX ────────────────────────────── */

    .alpha-index {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      padding: 12px 0;
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .alpha-index-inner {
      display: flex;
      gap: 3px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .alpha-link {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700;
      color: var(--grey-text);
      border-radius: 4px;
      transition: all 0.15s;
      cursor: pointer;
      border: 0;
      background: transparent;
      font-family: 'Open Sans', sans-serif;
    }

    .alpha-link:hover,
    .alpha-link.has-items:hover {
      background: var(--primary);
      color: var(--white);
    }

    .alpha-link.active {
      background: var(--primary);
      color: var(--white);
    }

    .alpha-link.has-items { color: var(--heading); }

    .alpha-link.no-items {
      color: #ccc;
      pointer-events: none;
    }

    /* ── GRID SECTION ──────────────────────────── */

    .advisers-grid-section { padding: 60px 0; }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 30px;
      border-bottom: 2px solid var(--light-bg);
      padding-bottom: 15px;
    }

    .section-kicker {
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 6px;
    }


    .section-title {
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--heading);
      letter-spacing: -0.5px;
    }

    .section-title em {
      font-style: normal;
      color: var(--primary);
    }

    /* ── SEARCH BAR ────────────────────────────── */

    .filter-search-row {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 20px;
      margin-bottom: 30px;
      flex-wrap: wrap;
    }

    .filter-search-bar {
      display: flex;
      border: 1px solid var(--border);
      border-radius: 30px;
      overflow: hidden;
      background: var(--white);
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .filter-search-bar input {
      padding: 10px 20px;
      border: none;
      outline: none;
      font-family: 'Open Sans', sans-serif;
      font-size: 14px;
      color: #212529;
      background: transparent;
      width: 260px;
      flex: 1;
    }

    .filter-search-bar button {
      background: var(--primary);
      color: var(--white);
      border: none;
      padding: 10px 22px;
      font-family: 'Open Sans', sans-serif;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
      white-space: nowrap;
    }

    .filter-search-bar button:hover { background: var(--primary-light); }

    .reset-search-btn {
      background: #f3f3f3 !important;
      color: #222 !important;
      border-left: 1px solid #ddd;
    }

    .reset-search-btn:hover { background: #e8e8e8 !important; }

    /* ── ADVISER CARD GRID ─────────────────────── */

    .advisers-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 30px;
    }

    .adviser-card {
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      background: var(--white);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
    }

    .adviser-card:hover {
      box-shadow: 0 10px 25px rgba(0,0,0,0.1);
      text-decoration: none;
      transform: translateY(-3px);
    }

    .adviser-card-photo {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 240px;
      overflow: hidden;
      background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    }

    .adviser-card-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      opacity: 0.9;
      transition: opacity 0.3s, transform 0.4s;
      display: block;
    }

    .adviser-card:hover .adviser-card-photo img {
      opacity: 1;
      transform: scale(1.03);
    }

    .adviser-card-initials {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 90px;
      height: 90px;
      border-radius: 50%;
      background: var(--primary);
      color: var(--white);
      font-size: 1.8rem;
      font-weight: 700;
      letter-spacing: 1px;
    }

    .adviser-card-body {
      padding: 20px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .adviser-card-speciality {
      display: inline-block;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: var(--primary);
      background: var(--light-bg);
      border: 1px solid var(--border);
      padding: 3px 10px;
      border-radius: 20px;
      margin-bottom: 10px;
      align-self: flex-start;
    }

    .adviser-card-name {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--heading);
      line-height: 1.3;
      margin-bottom: 8px;
    }

    .adviser-card-desc {
      font-size: 0.85rem;
      color: var(--grey-text);
      line-height: 1.6;
      flex: 1;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin: 0;
    }

    .adviser-card-footer {
      padding: 14px 20px;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: flex-start;
      align-items: center;
    }

    .adviser-card-link {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--accent);
      display: flex;
      align-items: center;
      gap: 5px;
      text-decoration: none;
      transition: color 0.2s;
    }

    .adviser-card:hover .adviser-card-link {
      color: var(--primary);
      text-decoration: none;
    }

    .adviser-card-link svg {
      width: 12px;
      height: 12px;
      transition: transform 0.2s;
    }

    .adviser-card:hover .adviser-card-link svg {
      transform: translateX(3px);
    }

    /* ── NOTICE ─────────────────────────────────── */

    .adviser-notice { padding: 0 0 20px; }

    .notice-inner {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      background: var(--light-bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 20px 24px;
    }

    .notice-icon {
      color: var(--accent);
      flex-shrink: 0;
      margin-top: 2px;
    }

    .notice-text {
      font-size: 0.85rem;
      color: var(--grey-text);
      line-height: 1.7;
      margin: 0;
    }

    /* ── CTA BAND ──────────────────────────────── */

    .cta-band {
      background: linear-gradient(to bottom, #f2f2f2 0%, #ffffff 100%);
      border-top: 1px solid #e3e3e3;
      padding: 50px 0;
    }

    .cta-band-inner {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 40px;
      align-items: center;
    }

    .cta-title {
      font-size: 28px;
      font-weight: 700;
      color: var(--heading);
      line-height: 1.3;
      margin-bottom: 8px;
    }

    .cta-sub {
      font-size: 17px;
      color: #555;
      line-height: 1.6;
      max-width: 500px;
    }

    .cta-buttons { display: flex; gap: 12px; }

    .btn-white {
      display: inline-block;
      background: var(--primary);
      color: var(--white);
      padding: 14px 30px;
      font-family: 'Open Sans', sans-serif;
      font-size: 14px;
      font-weight: 600;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
    }

    .btn-white:hover {
      background: var(--primary-light);
      color: var(--white);
      text-decoration: none;
    }

    .btn-outline {
      display: inline-block;
      background: transparent;
      color: var(--heading);
      padding: 14px 30px;
      font-family: 'Open Sans', sans-serif;
      font-size: 14px;
      font-weight: 600;
      border: 1px solid var(--border);
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
    }

    .btn-outline:hover {
      border-color: var(--primary);
      color: var(--primary);
      text-decoration: none;
    }

    /* ── NO RESULTS ────────────────────────────── */

    .no-results {
      grid-column: 1 / -1;
      text-align: center;
      padding: 60px 20px;
      color: var(--grey-text);
    }

    /* ── REVEAL ─────────────────────────────────── */

    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ── RESPONSIVE ─────────────────────────────── */

    @media (max-width: 768px) {
      .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
      }

      .hero-stats-grid { max-width: 100%; }

      .advisers-grid-section { padding: 40px 0; }

      .cta-band { padding: 40px 0; }

      .cta-band-inner {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .cta-sub { margin: 0 auto 20px; }

      .cta-buttons {
        justify-content: center;
        flex-direction: column;
      }

      .filter-search-row {
        flex-direction: column;
        align-items: flex-start;
      }

      .notice-inner {
        flex-direction: column;
        gap: 12px;
      }

      .profile-name { font-size: 1.8rem; }

      .profile-photo-wrap { width: 200px; height: 200px; }

      .treatments-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 576px) {
      .hero-title { font-size: 2rem; }

      .hero-stats-grid { gap: 10px; }

      .hero-stat-card { padding: 18px 14px; }

      .hero-stat-number { font-size: 2rem; }
    }

    /* ── PROFILE HERO ──────────────────────────── */

    .profile-hero {
      background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
      padding: 50px 0 40px;
      border-bottom: 1px solid var(--border);
    }

    .profile-hero-grid {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 40px;
      align-items: start;
    }

    .profile-photo-col { position: relative; }

    .profile-photo-wrap {
      width: 260px; height: 260px;
      border-radius: 16px;
      overflow: hidden;
      border: 4px solid var(--white);
      box-shadow: 0 8px 30px rgba(0,0,0,0.1);
      background: var(--light-bg);
    }

    .profile-photo-wrap img {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: top center;
    }

    .profile-verified-badge {
      display: inline-flex;
      align-items: center; gap: 6px;
      background: #e8f5e9;
      color: #2e7d32;
      font-size: 0.75rem; font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      padding: 6px 14px;
      border-radius: 20px;
      margin-top: 14px;
    }

    .profile-verified-badge svg {
      width: 14px; height: 14px;
    }

    .profile-info-col { padding: 10px 0; }

    .profile-kicker {
      font-size: 0.8rem; font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 8px;
    }

    .profile-name {
      font-size: 2.4rem; font-weight: 800;
      color: var(--heading);
      letter-spacing: -1px;
      line-height: 1.1;
      margin-bottom: 6px;
    }

    .profile-name em {
      font-style: normal;
      color: var(--primary);
    }

    .profile-job-title {
      font-size: 1.1rem; font-weight: 600;
      color: var(--primary);
      margin-bottom: 4px;
    }

    .profile-org {
      font-size: 0.95rem;
      color: var(--grey-text);
      margin-bottom: 16px;
    }

    .profile-org a {
      color: var(--accent);
      text-decoration: none; font-weight: 600;
    }

    .profile-org a:hover { text-decoration: underline; }

    .profile-meta-row {
      display: flex; flex-wrap: wrap;
      gap: 20px; margin-bottom: 20px;
    }

    .profile-meta-item {
      display: flex; align-items: center;
      gap: 8px; font-size: 0.85rem;
      color: var(--grey-text);
    }

    .profile-meta-item svg {
      width: 16px; height: 16px;
      color: var(--primary); flex-shrink: 0;
    }

    .profile-meta-item strong {
      color: var(--heading); font-weight: 700;
    }

    /* Social row */

    .profile-social-row {
      display: flex; flex-wrap: wrap;
      gap: 10px; margin-top: 16px;
    }

    .profile-social-link {
      display: inline-flex; align-items: center;
      gap: 7px;
      padding: 8px 16px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--white);
      color: var(--heading);
      font-size: 0.8rem; font-weight: 600;
      text-decoration: none;
      transition: all 0.2s;
    }

    .profile-social-link:hover {
      border-color: var(--primary);
      color: var(--primary);
      text-decoration: none;
      box-shadow: 0 2px 8px rgba(102,51,153,0.1);
    }

    .profile-social-link svg {
      width: 16px; height: 16px;
    }


    /* ── MAIN CONTENT LAYOUT ───────────────────── */

    .profile-content-section { padding: 50px 0; }

    .profile-content-grid {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 50px;
      align-items: start;
    }

    /* ── LEFT COLUMN: BIO, QUALS, TREATMENTS ──── */

    .profile-bio {
      font-size: 1rem; color: #444;
      line-height: 1.8; margin-bottom: 40px;
    }

    .profile-bio p { margin: 0 0 16px; font-size: 1rem; }

    /* Divider */

    .section-divider {
      border: 0;
      border-top: 2px solid var(--light-bg);
      margin: 40px 0;
    }

    

    
    /* Treatment links */

    .treatments-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 12px;
    }

    .treatment-link-card {
      display: flex; align-items: center;
      gap: 12px;
      padding: 14px 18px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--white);
      text-decoration: none;
      color: inherit;
      transition: all 0.2s;
    }

    .treatment-link-card:hover {
      border-color: var(--primary);
      box-shadow: 0 4px 12px rgba(102,51,153,0.08);
      text-decoration: none;
      transform: translateY(-1px);
    }

    .treatment-link-icon {
      width: 36px; height: 36px;
      border-radius: 8px;
      background: #f0ebf8;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }

    .treatment-link-icon svg {
      width: 16px; height: 16px; color: var(--primary);
    }

    .treatment-link-name {
      font-size: 0.85rem; font-weight: 600;
      color: var(--heading);
      line-height: 1.3;
    }

    .treatment-link-card:hover .treatment-link-name {
      color: var(--primary);
    }

    /* ── RIGHT SIDEBAR ─────────────────────────── */

    .sidebar-card {
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--white);
      padding: 24px;
      margin-bottom: 24px;
    }

    .sidebar-card-title {
      font-size: 0.95rem; font-weight: 700;
      color: var(--heading);
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 2px solid var(--light-bg);
    }

    /* Quick facts */

    .quick-facts { list-style: none; margin: 0; padding: 0; }

    .quick-facts li {
      display: flex; align-items: flex-start;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid var(--light-bg);
      font-size: 0.85rem;
    }

    .quick-facts li:last-child { border-bottom: 0; }

    .quick-facts .qf-label {
      min-width: 90px;
      font-weight: 700;
      color: var(--heading);
      flex-shrink: 0;
    }

    .quick-facts .qf-value { color: var(--grey-text); }

    .quick-facts .qf-value a {
      color: var(--accent); text-decoration: none;
    }

    .quick-facts .qf-value a:hover { text-decoration: underline; }

    /* CTA card */

    .sidebar-cta {
      background: linear-gradient(135deg, #663399 0%, #8b5fcf 100%);
      border: 0;
      color: var(--white);
      text-align: center;
    }

    .sidebar-cta .sidebar-card-title {
      color: var(--white);
      border-bottom-color: rgba(255,255,255,0.2);
    }

    .sidebar-cta p {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.85);
      line-height: 1.6; margin: 0 0 16px;
    }

    .sidebar-cta-btn {
      display: inline-block;
      background: var(--white);
      color: var(--primary);
      padding: 12px 28px;
      font-size: 0.85rem; font-weight: 700;
      border-radius: 6px;
      text-decoration: none;
      transition: all 0.2s;
    }

    .sidebar-cta-btn:hover {
      background: #f0ebf8;
      text-decoration: none;
    }

    /* Other advisers */

    .other-adviser-item {
      display: flex; align-items: center;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid var(--light-bg);
    }

    .other-adviser-item:last-child { border-bottom: 0; }

    .other-adviser-thumb {
      width: 44px; height: 44px;
      border-radius: 50%;
      overflow: hidden;
      background: var(--light-bg);
      flex-shrink: 0;
    }

    .other-adviser-thumb img {
      width: 100%; height: 100%;
      object-fit: cover;
    }

    .other-adviser-info { flex: 1; }

    .other-adviser-name {
      font-size: 0.85rem; font-weight: 700;
      color: var(--heading);
    }

    .other-adviser-name a {
      color: inherit; text-decoration: none;
    }

    .other-adviser-name a:hover { color: var(--primary); }

    .other-adviser-spec {
      font-size: 0.72rem; color: var(--grey-text);
    }

    /* ── LAST UPDATED ──────────────────────────── */

    .page-last-updated {
      text-align: center;
      padding: 16px 0;
      font-size: 0.75rem;
      color: #aaa;
    }

    /* ── RESPONSIVE ─────────────────────────────── */

    @media (max-width: 960px) {
      .profile-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
      }

      .profile-photo-col {
        display: flex; flex-direction: column;
        align-items: center;
      }

      .profile-meta-row { justify-content: center; }
      .profile-social-row { justify-content: center; }

      .profile-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
      }
    }