/* =========================================
     WCAG 2.2 TEAM SINGLE PAGE FIXES
     ========================================= */
  
  /* 1. Page Header Contrast */
  .page-header-box h1,
  .breadcrumb-item a,
  .breadcrumb-item.active {
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    color: var(--white-color) !important;
  }

  /* 2. Form Inputs (Placeholders as Labels) */
  .form-control::placeholder {
    color: #4a4a4a !important; 
    opacity: 1;
  }
  
  /* 3. Input Borders */
  .form-control {
    border-color: #767676 !important;
  }
  .form-control:focus {
    border-color: var(--primary-color) !important;
  }

  /* 4. Validation Errors */
  .help-block.with-errors ul li {
    color: #D32F2F !important;
  }

  /* Redesigned Physician Card Styles */
  .physician-card.light-card {
    display: flex;
    align-items: stretch; /* Match height of image and content */
    background: #ffffff;
    border: none;
    border-radius: 40px; /* More modern, smoother radius */
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(2, 48, 71, 0.08); /* Softer, deeper shadow */
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .physician-card.light-card:hover {
    transform: translateY(-5px);
  }

  .physician-image-wrapper {
    flex: 0 0 38%; /* Larger visual weight for the portrait */
    padding: 60px 40px 60px 60px;
    background: #f8fafc; /* Subtle grounded background for the image side */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  /* Decorative element behind image */
  .physician-image-wrapper::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    opacity: 0.1;
    pointer-events: none;
  }

  .physician-image-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 550px;
    object-fit: cover;
    object-position: center top;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(2, 48, 71, 0.12);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 2;
  }

  .physician-card.light-card:hover .physician-image-wrapper img {
    transform: scale(1.02); /* Very subtle minimal zoom */
  }

  .physician-info-wrapper {
    flex: 1;
    padding: 80px 80px 80px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-rendering: optimizeLegibility;
    position: relative;
  }

  .physician-info-wrapper .section-title {
    margin-bottom: 40px;
  }

  .physician-info-wrapper .section-title .sub-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--primary-color) !important; /* Changed to primary for better contrast */
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 1;
  }

  .physician-info-wrapper .section-title .sub-title::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary-color);
  }

  .physician-info-wrapper .section-title h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-color);
    letter-spacing: -0.02em;
  }

  .specialty-breadcrumb {
    font-size: 1.25rem;
    color: var(--primary-color) !important;
    font-weight: 700;
    margin-top: 25px;
    letter-spacing: -0.01em;
    background: #f1f5f9;
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid #e2e8f0;
  }

  html[data-contrast="dark"] .specialty-breadcrumb {
    background: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
  }

  .physician-career-bio {
    margin: 35px 0;
    max-width: 680px; /* Optimal reading width (approx 75-80 chars) */
  }

  .physician-career-bio p {
    font-size: 1.15rem; /* Increased for better legibility */
    line-height: 1.75;  /* More breathing room */
    color: var(--text-color);
    margin-bottom: 20px;
  }

  .physician-career-bio p:last-child {
    margin-bottom: 0;
  }

  .credential-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-bottom: 50px;
    padding: 40px;
    background: #fcfdfe;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
  }

  .credential-item {
    display: flex;
    align-items: center; /* Better vertical alignment for icons */
    gap: 18px;
  }

  .cred-text strong {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-weight: 800; /* Bolder for clearer hierarchy */
    opacity: 0.8;
  }

  .cred-text span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
  }


  .physician-action {
    margin-top: 20px;
  }

  .physician-action .btn-default {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(2, 48, 71, 0.2);
  }

  .physician-action .btn-default span {
    padding: 22px 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.95rem;
  }

  .physician-action .btn-default:hover,
  .physician-action .btn-default:focus-visible {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 45px rgba(2, 48, 71, 0.3) !important;
    text-decoration: none !important;
  }
  
  .physician-action .btn-default:focus-visible {
    outline: 5px solid #ff3399 !important;
    outline-offset: 8px !important;
    box-shadow: 0 0 35px rgba(255, 51, 153, 0.4) !important;
  }

  /* --- Expertise Section Styles --- */
  .expertise-section {
    padding: 120px 0;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
  }

  .expertise-section .section-title h2,
  .expertise-section .section-title .sub-title {
    color: #ffffff;
  }

  .expertise-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 90%, rgba(255,255,255,0.03) 0%, transparent 50%),
                radial-gradient(circle at 90% 10%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
  }

  .expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
  }

  .expertise-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 45px 35px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .expertise-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  }

  .expertise-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
  }

  .expertise-card:hover .expertise-icon-box {
    background: var(--secondary-color);
    transform: scale(1.1);
  }

  .expertise-icon-box img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
  }

  .expertise-card:hover .expertise-icon-box img {
    filter: brightness(0) saturate(100%) invert(10%) sepia(35%) saturate(3025%) hue-rotate(178deg) brightness(95%) contrast(98%);
  }

  .expertise-card .expertise-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
  }

  @media (max-width: 991px) {
    .expertise-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 767px) {
    .expertise-grid {
      grid-template-columns: 1fr;
    }
    .expertise-section {
      padding: 80px 0;
    }
  }

  @media (max-width: 480px) {
    .expertise-section {
      padding: 60px 0;
    }
    .expertise-section .section-title h2 {
      font-size: 1.75rem !important;
      line-height: 1.25;
    }
    .expertise-grid {
      margin-top: 40px;
      gap: 20px;
    }
    .expertise-card {
      padding: 35px 20px;
    }
    .expertise-icon-box {
      width: 60px;
      height: 60px;
      margin-bottom: 20px;
    }
    .expertise-icon-box img {
      width: 28px;
      height: 28px;
    }
    .expertise-card .expertise-title {
      font-size: 1.1rem;
    }
  }


  @media (max-width: 991px) {
    .physician-card.light-card {
      flex-direction: column;
      align-items: stretch;
      text-align: center;
      border-radius: 30px;
    }
    .physician-image-wrapper {
      flex: none;
      width: 100%;
      height: 400px;
      padding: 30px; 
    }
    .physician-image-wrapper img {
      width: auto;
      height: 100%;
      max-width: 100%;
    }
    .physician-info-wrapper {
      padding: 50px 30px;
      align-items: center;
    }
    .physician-info-wrapper .section-title {
       margin-bottom: 30px;
       display: flex;
       flex-direction: column;
       align-items: center;
    }
    .physician-info-wrapper .section-title h1 {
       font-size: 2.5rem;
    }
    .physician-career-bio {
       margin: 0 0 30px 0;
    }
    .credential-grid {
      grid-template-columns: 1fr;
      padding: 20px;
    }
  }

  /* --- Mobile Optimization (≤ 480px) --- */
  @media (max-width: 480px) {
    .physician-profile-section {
      padding: 60px 0 !important; /* Override inline padding for mobile */
    }

    .physician-image-wrapper {
      height: auto;
      padding: 40px 30px 0 30px;
    }
    .physician-image-wrapper img {
      width: 85%;
    }

    .physician-info-wrapper {
      padding: 35px 20px;
    }

    .section-title p.sub-title {
      font-size: 0.9rem;
      margin-bottom: 5px;
    }

    .section-title h1 {
      font-size: 1.75rem !important;
      line-height: 1.2;
    }

    .specialty-breadcrumb {
      font-size: 0.95rem;
      margin-top: 8px;
    }

    .physician-career-bio {
      margin: 25px 0;
    }

    .physician-career-bio p {
      font-size: 1.05rem;
      line-height: 1.6;
      margin-bottom: 15px;
    }

    .credential-grid {
      padding: 15px;
      gap: 20px;
      margin-bottom: 30px;
    }

    .credential-item {
      gap: 12px;
    }

    .cred-icon img {
      width: 20px !important;
      height: 20px !important;
    }

    .cred-text strong {
      font-size: 0.75rem;
      letter-spacing: 0.8px;
      margin-bottom: 3px;
    }

    .cred-text span {
      font-size: 0.95rem;
    }

    .physician-action {
      text-align: center;
    }

    .physician-action .btn-default {
      width: auto;
      display: inline-flex;
    }

    .physician-action .btn-default span {
      padding: 14px 30px;
      font-size: 0.95rem;
    }
  }

  /* --- The Prestige Layout (High Contrast & Readability) --- */
  .decorative-creds-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f9fbfd 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
  }

  /* Decorative Background Elements - Kept subtle but present */
  .decorative-creds-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(2, 48, 71, 0.05) 0%, transparent 70%); /* Slightly stronger for definition */
    border-radius: 50%;
    z-index: 1;
  }

  .creds-title-wrapper {
    position: relative;
    margin-bottom: 60px;
    z-index: 2;
  }
  
  .creds-title-wrapper .sub-title {
     color: var(--accent-color) !important;
     font-weight: 700;
  }
  
  .creds-title-wrapper h2 {
      color: var(--primary-color) !important;
  }

  .creds-icon-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
  }

  .creds-icon-title h3 {
    margin: 0;
    font-family: var(--accent-font);
    font-size: 1.8rem;
    color: var(--primary-color); /* #023047 - High Contrast */
    font-weight: 700;
  }

  .creds-icon-title .icon-decoration {
    width: 40px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
  }

  /* --- Timeline Styling --- */
  .decorative-timeline {
    position: relative;
    padding-left: 40px;
  }

  .decorative-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 10px;
    bottom: 20px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, #cfd9e0 0, #cfd9e0 6px, transparent 6px, transparent 12px); /* Darker line for visibility */
  }

  .d-timeline-item {
    position: relative;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); /* Stronger base shadow */
    border: 1px solid #e1e7ec;
    transition: transform 0.3s ease;
  }

  .d-timeline-item:hover {
     transform: translateY(-3px) translateX(5px);
     border-color: var(--primary-color); /* Darker border on hover */
     box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  }

  /* Node Dot */
  .d-timeline-item::after {
    content: '';
    position: absolute;
    left: -32px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(2, 48, 71, 0.15); /* Stronger ring */
    z-index: 2;
  }

  .dt-degree {
    font-size: 1.15rem; /* Larger */
    font-weight: 800; /* Bolder */
    color: var(--primary-color);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    line-height: 1.3;
  }

  html[data-contrast="light"] .dt-degree {
    color: #000000 !important;
  }
  
  .dt-inst {
    font-size: 1rem;
    color: #2c323a; /* Very dark grey for max readability */
    font-weight: 600;
  }

  /* --- Badge/Certificate Grid --- */
  .cert-grid-decorative {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cert-badge-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 25px 30px; /* Increased padding */
    border-radius: 12px;
    border: 1px solid #e1e7ec;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .cert-badge-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
  }

  .cert-seal {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #023047 0%, #034e73 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-right: 25px;
    flex-shrink: 0;
    border: 2px solid #eef2f6;
    outline: 2px solid white;
    font-weight: bold;
  }

  .cert-text h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.25;
  }

  .cert-text span {
    font-size: 0.9rem; /* Increased size */
    color: #4a505e; /* WCAG AAA compliant dark grey */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    display: block;
  }

  /* --- Featured Block (Regenexx) --- */
  .feature-proficiency {
    margin-top: 40px;
    background: #023047; /* Primary Dark */
    padding: 45px;
    border-radius: 16px;
    color: #ffffff;
    position: relative;
    background-image: linear-gradient(#033E5B 1px, transparent 1px), linear-gradient(90deg, #033E5B 1px, transparent 1px);
    background-size: 30px 30px;
    border: 1px solid transparent;
  }

  .feature-proficiency::before {
     content: '';
     position: absolute;
     top: 0; left: 0; right: 0; bottom: 0;
     background: linear-gradient(135deg, rgba(2,48,71,0.95) 0%, rgba(2,48,71,0.98) 100%); /* Simpler, darker gradient for text contrast */
     border-radius: 16px;
     z-index: 1;
  }

  .fp-content {
    position: relative;
    z-index: 2;
  }

  .fp-label {
    display: inline-block;
    padding: 8px 16px;
    background: #ffffff; /* White background for label */
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--primary-color); /* Dark text on white */
  }

  .fp-title {
    font-family: var(--accent-font);
    font-size: 1.8rem;
    margin-bottom: 18px;
    color: #ffffff; /* Pure white */
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  .fp-desc {
    font-size: 1.1rem; /* Larger body text */
    line-height: 1.7;
    color: #e6f6fa; /* Very light blue-white for contrast against dark background */
    margin: 0;
    font-weight: 400;
  }
  
  .fp-desc strong {
    color: #ffffff;
    font-weight: 700;
  }

  @media (max-width: 991px) {
    .decorative-creds-section {
       padding: 70px 0;
    }
    .creds-title-wrapper {
        margin-top: 0;
    }
    .cert-badge-card {
        padding: 20px;
        border-radius: 12px;
    }
  }

  /* --- Credentials Mobile Optimization (≤ 480px) --- */
  @media (max-width: 480px) {
    .decorative-creds-section {
      padding: 60px 0;
    }

    .creds-title-wrapper h2 {
      font-size: 1.75rem !important;
      line-height: 1.3;
    }

    .creds-icon-title h3 {
      font-size: 1.4rem;
    }

    .decorative-timeline {
      padding-left: 30px;
    }

    .decorative-timeline::before {
      left: 10px;
    }

    .d-timeline-item {
      padding: 20px;
      margin-bottom: 25px;
    }

    .d-timeline-item::after {
      left: -28px;
      top: 25px;
      width: 14px;
      height: 14px;
    }

    .dt-degree {
      font-size: 1.05rem;
    }

    .dt-inst {
      font-size: 0.9rem;
    }

    .cert-badge-card {
      padding: 15px 20px;
      gap: 15px;
    }

    .cert-seal {
      width: 42px;
      height: 42px;
      font-size: 16px;
      margin-right: 0; /* Handled by gap if flex */
    }

    .cert-text h5 {
      font-size: 0.95rem;
    }

    .cert-text span {
      font-size: 0.8rem;
    }

    .feature-proficiency {
      padding: 35px 25px;
      margin-top: 35px;
    }

    .fp-label {
      padding: 6px 14px;
      font-size: 0.7rem;
      letter-spacing: 0.5px;
      margin-bottom: 18px;
    }

    .fp-title {
      font-size: 1.45rem !important;
      margin-bottom: 15px;
    }

    .fp-desc {
      font-size: 0.95rem;
      line-height: 1.6;
    }
  }

  /* --- Clinic Hours Mobile Optimization (≤ 480px) --- */
  @media (max-width: 480px) {
    .clinic-hours-section {
      padding: 60px 0;
    }
    .hours-intro-col h2 {
      font-size: 1.75rem !important;
      line-height: 1.25;
    }
    .info-glass-panel {
      padding: 20px;
    }
    .schedule-card-wrapper {
      margin-top: 40px;
      margin-left: 0;
      padding: 0;
    }
    .hours-card {
      padding: 30px 20px;
    }
    .hours-card h3 {
      font-size: 1.4rem;
      text-align: center;
      margin-bottom: 25px;
    }
    .hours-card .hour-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      padding: 15px 0;
    }
    .hours-card .time-slot {
      width: 100%;
      display: flex;
      justify-content: space-between;
      padding-left: 28px;
    }
  }

  /* --- Career Narrative Mobile Optimization (≤ 480px) --- */
  @media (max-width: 480px) {
    .career-narrative-section {
      padding: 60px 0;
    }
    .narrative-intro h1 {
      font-size: 1.85rem !important;
      line-height: 1.2;
    }
    .narrative-block {
      margin-bottom: 35px;
    }
    .narrative-block h3 {
      font-size: 1.3rem;
      margin-bottom: 15px;
    }
    .narrative-block p {
      font-size: 1.05rem;
      line-height: 1.6;
    }
    .current-role {
      margin-top: 10px;
    }
  }

  /* --- Consultation Mobile Optimization (≤ 480px) --- */
  @media (max-width: 480px) {
    .consultation-section {
      padding: 60px 0;
    }
    .consultation-intro h2 {
      font-size: 1.75rem !important;
      line-height: 1.25;
      margin-bottom: 20px;
    }
    .direct-contact-info {
      margin-top: 30px;
    }
    .contact-item {
      margin-bottom: 25px;
      gap: 15px;
    }
    .contact-detail p {
      font-size: 0.95rem; /* Ensure long emails wrap or fit */
      word-break: break-all;
    }
    .profile-appointment-form {
      margin-top: 40px;
      padding: 30px 20px;
    }
    .form-control, .form-select {
      font-size: 16px; /* Prevents auto-zoom on iOS */
      height: 50px;
    }
    .profile-appointment-form button {
      width: 100%;
      height: auto;
      padding: 16px 20px;
      font-size: 1rem;
      line-height: 1.3;
    }
  }





  /* --- Clinic Hours: Decorative High Contrast Concept --- */
  .clinic-hours-section {
    padding: 100px 0;
    background: linear-gradient(145deg, var(--primary-color) 0%, #001f3f 100%); /* Deep rich gradient */
    position: relative;
    color: #ffffff;
    z-index: 2;
    overflow: hidden;
  }
  
  /* Decorative Glow Lines */
  .clinic-hours-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
  }

  /* Right-side decorative accent */
  .clinic-hours-section::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(var(--secondary-color-rgb), 0.1) 0%, transparent 70%); /* Fallback or hex if var not set: rgba(129, 212, 250, 0.1) */
    background: radial-gradient(circle, rgba(129, 212, 250, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
  }

  .hours-intro-col {
    position: relative;
    z-index: 2;
  }

  .hours-intro-col .sub-title {
    color: var(--secondary-color);
    font-weight: 700;
  }
  
  .hours-intro-col h2 {
    color: #ffffff !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 25px;
  }
  
  .hours-intro-col p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #f1f5f8; /* Max readability white */
    margin-bottom: 35px;
    max-width: 95%;
    font-weight: 400;
  }

  /* Info Block - Telehealth */
  .info-glass-panel {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08); /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 30px; /* More horizontal padding */
    border-radius: 12px;
    margin-top: 15px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 550px; /* Increased to allow single line text */
    width: auto;
  }
  
  .info-glass-icon {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }

  .info-glass-text h5 {
    color: #ffffff;
    font-size: 1.1rem; /* Slightly larger base */
    margin: 0 0 6px 0;
    font-weight: 600; /* Slightly lighter than 700 to open it up */
    letter-spacing: 0.5px; /* Adds breathing room */
    line-height: 1.3; /* Improves vertical spacing */
    font-family: var(--default-font); /* Ensure sans-serif clean look */
  }

  .info-glass-text span {
    color: #dbe9f0;
    font-size: 0.9rem;
    display: block;
    line-height: 1.4;
  }

  /* The Schedule Card - Premium Styling */
  .schedule-card-wrapper {
    position: relative;
    z-index: 2;
  }

  .hours-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 45px; /* Generous padding */
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
  }
  
  /* Decorative Gold Top Border */
  .hours-card::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 0 0 4px 4px;
  }

  .hours-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    font-family: var(--accent-font);
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 20px;
  }

  .hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px dashed #e1e7ec; /* Dashed for technical feel */
    transition: background 0.3s ease;
  }
  
  .hour-row:hover {
     background: #fcfdfe;
     padding-left: 10px;
     padding-right: 10px;
     border-radius: 8px;
     border-bottom-color: transparent;
     box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  }
  
  .hour-row:last-child {
    border-bottom: none;
  }
  
  .day-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  /* Icon indicators for emphasis */
  .day-icon {
    color: var(--primary-color, #023047);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
  }

  .day-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color, #023047);
  }
  
  .time-slot {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4a505e; /* Strong grey */
    text-align: right;
  }

  /* Availability Badges */
  .avail-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
  }
  
  .badge-app { background: #e3f2fd; color: #0d47a1; }
  .badge-limit { background: #ffedd5; color: #9a3412; }
  .badge-closed { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

  /* --- Career Narrative Section (Highly Decorative Premium) --- */
  .career-narrative-section {
    padding: 120px 0;
    background-color: #ffffff;
    /* Base Grid Pattern */
    background-image: 
        linear-gradient(rgba(225, 231, 236, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 231, 236, 0.4) 1px, transparent 1px);
    background-size: 50px 50px;
    position: relative;
    border-bottom: 1px solid #e1e7ec;
    overflow: hidden;
  }

  /* Large Floating Decorative Orb */
  .career-narrative-section::after {
      content: '';
      position: absolute;
      top: -200px;
      right: -200px;
      width: 800px;
      height: 800px;
      background: radial-gradient(circle, rgba(2, 48, 71, 0.03) 0%, transparent 70%);
      border-radius: 50%;
      z-index: 0;
      pointer-events: none;
      filter: blur(60px);
  }

  /* Second Orb for Balance */
  .career-narrative-section::before {
      content: '';
      position: absolute;
      bottom: -150px;
      left: -150px;
      width: 600px; height: 600px;
      background: radial-gradient(circle, rgba(129, 212, 250, 0.05) 0%, transparent 70%);
      border-radius: 50%;
      z-index: 0;
      pointer-events: none;
  }

  .narrative-intro {
    position: relative; 
    margin-bottom: 70px;
    z-index: 2;
  }

  /* Decorative Title Styling */
  .narrative-intro h1 {
    font-family: var(--accent-font);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    position: relative;
    display: inline-block;
  }
  
  /* Double decorative underline */
  .narrative-intro h1::after {
      content: '';
      display: block;
      width: 60px;
      height: 3px;
      background: var(--primary-color);
      margin-top: 15px;
  }
  .narrative-intro h1::before {
      content: '';
      position: absolute;
      bottom: -18px; /* Offset from text */
      left: 70px; /* spacing from first line */
      width: 40px;
      height: 3px;
      background: var(--secondary-color);
  }

  /* --- Timeline Side (Left) --- */
  .narrative-block {
    position: relative;
    padding-left: 60px;
    margin-bottom: 70px;
    z-index: 2;
  }
  
  /* Timeline Line */
  .narrative-block::before {
      content: '';
      position: absolute;
      left: 14px;
      top: 15px;
      bottom: -50px;
      width: 2px;
      background: rgba(2, 48, 71, 0.1);
      transition: background 0.4s ease;
  }
  
  .narrative-block:hover::before {
      background: rgba(2, 48, 71, 0.3);
  }
  
  .narrative-block:last-child::before {
      background: linear-gradient(to bottom, rgba(2, 48, 71, 0.1), transparent);
  }

  /* Timeline Node - Diamond Shape */
  .narrative-block::after {
      content: '';
      position: absolute;
      left: 6px;
      top: 6px;
      width: 18px;
      height: 18px;
      background: #ffffff;
      border: 2px solid var(--primary-color);
      transform: rotate(45deg); /* Diamond */
      z-index: 3;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      box-shadow: 0 0 0 4px #ffffff;
  }
  
  .narrative-block:hover::after {
      background: var(--primary-color);
      transform: rotate(45deg) scale(1.3);
      border-color: var(--secondary-color);
      box-shadow: 0 0 0 6px #ffffff, 0 0 15px rgba(2, 48, 71, 0.2);
  }

  .narrative-block h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem; /* Label style heading */
  }
  
  /* Make the heading look like a label, and add a larger actual title visual if needed, 
     but we are sticking to content fidelity. So we style the H3 distinctively. */
  .narrative-block h3 {
      font-size: 1.35rem;
      text-transform: none;
      letter-spacing: normal;
      font-family: var(--accent-font);
  }

  .narrative-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
  }

  /* --- Current Practice (Right Side - Premium Glass Card) --- */
  .narrative-block.current-role {
    background: #ffffff;
    padding: 60px 50px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 30px 80px rgba(2, 48, 71, 0.1);
    padding-left: 50px;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    /* Glassy look */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  
  /* Reset timeline markers for the card */
  .narrative-block.current-role::before,
  .narrative-block.current-role::after {
      display: none;
  }

  /* Decorative Background Icon for Card */
  .narrative-block.current-role i-bg {
     /* We don't have an I tag, using pseudo */
  }
  .narrative-block.current-role::after {
     content: '';
     display: block;
     position: absolute;
     bottom: -50px;
     right: -50px;
     width: 200px;
     height: 200px;
     background: radial-gradient(circle, var(--secondary-color) 0%, transparent 60%);
     opacity: 0.15;
     border-radius: 50%;
  }

  /* Top Gradient Bar */
  .narrative-block.current-role::before {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 100%; height: 8px;
      background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
      display: block;
  }

  .narrative-block.current-role h3 {
     font-size: 2rem;
     margin-bottom: 25px;
     color: var(--primary-color);
     position: relative;
     z-index: 2;
  }
  
  .narrative-block.current-role p {
     font-size: 1.25rem;
     line-height: 1.9;
     color: #2c323a;
     position: relative;
     z-index: 2;
     font-weight: 400;
  }

  @media (max-width: 991px) {
    .career-narrative-section { padding: 80px 0; }
    .narrative-intro h1 { font-size: 2.2rem; }
    .narrative-block { padding-left: 40px; margin-bottom: 50px; }
  }
  /* --- Consultation Section with Form (Dark Theme) --- */
  .consultation-section {
    padding: 100px 0;
    background-color: var(--primary-color); /* Dark Background */
    position: relative;
    border-top: none;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
  }

  /* Intro Column Light Text */
  .consultation-intro {
    max-width: 600px;
    margin-bottom: 50px;
  }

  .consultation-intro h2 {
    font-family: var(--accent-font);
    font-size: 2.4rem;
    color: #ffffff; /* White Text */
    margin-bottom: 20px;
  }

  .consultation-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e6f6fa; /* Light Off-White */
  }

  /* Form Container - Popped out White Card */
  .profile-appointment-form {
    background: #ffffff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); /* Stronger shadow for dark mode */
    border: none;
  }
  
  .profile-appointment-form .form-label {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .profile-appointment-form .form-control,
  .profile-appointment-form .form-select {
    height: 55px;
    border-radius: 12px;
    border: 1px solid #dce4eb;
    background: #fcfdfe;
    padding: 15px 20px;
    font-size: 1rem;
    color: #2c323a;
    transition: all 0.3s ease;
  }
  
  .profile-appointment-form .form-control:focus,
  .profile-appointment-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(2, 48, 71, 0.05);
    background: #ffffff;
  }
  
  .profile-appointment-form button[type="submit"] {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    font-size: 1rem;
  }
  
  .profile-appointment-form button[type="submit"]:hover,
  .profile-appointment-form button[type="submit"]:focus-visible {
    background: var(--accent-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(2, 48, 71, 0.2) !important;
  }
  
  .profile-appointment-form button[type="submit"]:focus-visible {
    outline: 5px solid #ff3399 !important;
    outline-offset: 6px !important;
    box-shadow: 0 0 35px rgba(255, 51, 153, 0.4) !important;
  }

  .direct-contact-info {
    margin-top: 40px;
  }
  
  .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
  }
  
  .contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1); /* Translucent White */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff; /* White Icon */
    margin-right: 20px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
  }
  
  .contact-detail h5 {
    font-size: 1.1rem;
    color: #ffffff; /* White Text */
    margin-bottom: 5px;
    font-weight: 700;
  }
  
  .contact-detail p {
    margin: 0;
    color: #dbe9f0; /* Light Grey Text */
  }

  @media (max-width: 991px) {
    .consultation-section { padding: 80px 0; }
    .profile-appointment-form { padding: 30px; }
  }



    /* Ambient Background SVGs for Physician Profile Section */
    .ambient-backgrounds-profile {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
    }

    .ambient-svg-profile {
      position: absolute;
      color: var(--primary-color);
      opacity: 0.12; /* Increased from 0.05 */
      transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .physician-profile-section .svg-profile-plus {
      width: 220px;
      height: 220px;
      top: -40px;
      left: -20px;
      transform: rotate(15deg);
    }

    .physician-profile-section .svg-profile-structure {
      width: 450px;
      height: 450px;
      bottom: -120px;
      right: -100px;
      transform: rotate(-10deg);
      opacity: 0.07;
    }

    .physician-profile-section .svg-profile-pulse {
      width: 100%;
      max-width: 1200px;
      height: auto;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      opacity: 0.03;
    }

    /* Hover Effect for Profile Section Interactivity */
    .physician-profile-section:hover .ambient-svg-profile {
      opacity: 0.25;
    }

    /* Enhanced Card Interaction */
    .physician-card.light-card {
      transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .physician-card.light-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    }

    /* Mobile Adjustments for Profile Section SVGs */
    @media (max-width: 767px) {
      .physician-profile-section .svg-profile-plus {
        width: 140px;
        height: 140px;
        top: -20px;
        left: -20px;
      }
      .physician-profile-section .svg-profile-structure {
        width: 300px;
        bottom: -60px;
        right: -50px;
      }
      .physician-profile-section .svg-profile-pulse {
        display: none;
      }
    }

    /* Ambient Background SVGs for Expertise Section */
    .ambient-backgrounds-expertise {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
    }

    .ambient-svg-expertise {
      position: absolute;
      color: #ffffff;
      opacity: 0.15;
      transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .expertise-section .svg-exp-dna {
      width: 250px;
      height: auto;
      top: 10%;
      left: -60px;
      transform: rotate(-15deg);
    }

    .expertise-section .svg-exp-rings {
      width: 650px;
      height: 650px;
      bottom: -280px;
      right: -180px;
      opacity: 0.1;
    }

    .expertise-section .svg-exp-joint {
      width: 350px;
      height: 350px;
      top: 45%;
      right: 2%;
      opacity: 0.12;
      transform: rotate(5deg);
    }

    /* Interactive Hover Effect for Expertise Decoration */
    .expertise-section:hover .ambient-svg-expertise {
      opacity: 0.32;
    }

    /* Mobile Responsive Logic for Expertise SVGs */
    @media (max-width: 767px) {
      .expertise-section .svg-exp-dna {
        width: 150px;
        top: 5%;
        left: -30px;
      }
      .expertise-section .svg-exp-rings {
        width: 350px;
        bottom: -150px;
        right: -100px;
      }
      .expertise-section .svg-exp-joint {
        display: none;
      }
    }

    /* Ambient Background SVGs for Qualifications Section (Credentials) */
    .ambient-backgrounds-creds {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
    }

    .ambient-svg-creds {
      position: absolute;
      color: var(--primary-color);
      opacity: 0.22; /* Increased from 0.12 */
      transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .decorative-creds-section .svg-cred-nodes {
      width: 320px;
      height: 320px;
      top: -80px;
      left: 5%;
      transform: rotate(-8deg);
    }

    .decorative-creds-section .svg-cred-seal {
      width: 500px;
      height: 500px;
      bottom: -150px;
      right: -120px;
      opacity: 0.15; /* Increased from 0.08 */
      transform: rotate(15deg);
    }

    .decorative-creds-section .svg-cred-grid {
      width: 200px;
      height: 200px;
      top: 20%;
      right: 3%;
      opacity: 0.25; /* Increased from 0.15 */
    }

    /* Interactive Hover Effect for Credentials Decoration */
    .decorative-creds-section:hover .ambient-svg-creds {
      opacity: 0.38; /* Increased from 0.25 */
    }

    /* Mobile Responsive Logic for Credentials SVGs */
    @media (max-width: 767px) {
      .decorative-creds-section .svg-cred-nodes {
        width: 220px;
        top: -40px;
        left: 0;
      }
      .decorative-creds-section .svg-cred-seal {
        width: 350px;
        bottom: -80px;
        right: -60px;
      }
      .decorative-creds-section .svg-cred-grid {
        display: none;
      }
    }

    /* Ambient Background SVGs for Clinic Hours Section */
    .ambient-backgrounds-hours {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
    }

    .ambient-svg-hours {
      position: absolute;
      color: #ffffff;
      opacity: 0.18;
      transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .clinic-hours-section .svg-hours-signal {
      width: 480px;
      height: 480px;
      top: -120px; /* Moved to top corner */
      left: -160px;
      transform: rotate(-25deg);
    }

    .clinic-hours-section .svg-hours-clock {
      width: 420px;
      height: 420px;
      bottom: -100px; /* Moved to bottom corner */
      right: -120px;
      opacity: 0.12;
      transform: rotate(15deg);
    }

    .clinic-hours-section .svg-hours-grid {
      width: 280px;
      height: 280px;
      bottom: 60px; /* Moved to bottom left edge */
      left: -120px;
      opacity: 0.15;
    }

    /* Interactive Hover Effect for Hours Decoration */
    .clinic-hours-section:hover .ambient-svg-hours {
      opacity: 0.38;
    }

    /* Mobile Responsive Logic for Hours SVGs */
    @media (max-width: 767px) {
      .clinic-hours-section .svg-hours-signal {
        width: 280px;
        bottom: -80px;
        left: -60px;
      }
      .clinic-hours-section .svg-hours-clock {
        width: 220px;
        top: -40px;
        right: -30px;
      }
      .clinic-hours-section .svg-hours-grid {
        display: none;
      }
    }

    /* Ambient Background SVGs for Career Narrative Section */
    .ambient-backgrounds-narrative {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
    }

    .ambient-svg-narrative {
      position: absolute;
      color: var(--primary-color);
      opacity: 0.25; /* Increased from 0.15 */
      transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .career-narrative-section .svg-journey-arc {
      width: 450px;
      height: auto;
      top: -80px;
      right: -100px;
      transform: rotate(10deg);
      opacity: 0.2; /* Increased from 0.12 */
    }

    .career-narrative-section .svg-foundation-grid {
      width: 250px;
      height: auto;
      bottom: -60px;
      left: -20px;
      opacity: 0.28; /* Increased from 0.18 */
    }

    .career-narrative-section .svg-regen-cells {
      width: 380px;
      height: 380px;
      top: 55%;
      left: 48%; /* Positioned in the gap area */
      transform: translate(-50%, -50%);
      opacity: 0.15; /* Increased from 0.08 */
    }

    /* Interactive Hover Effect for Narrative Decoration */
    .career-narrative-section:hover .ambient-svg-narrative {
      opacity: 0.45; /* Increased from 0.32 */
    }

    /* Mobile Responsive Logic for Narrative SVGs */
    @media (max-width: 991px) {
      .career-narrative-section .svg-journey-arc {
        width: 280px;
        top: -40px;
        right: -50px;
      }
      .career-narrative-section .svg-regen-cells {
        display: none; /* Hide complex mobile overlap */
      }
      .career-narrative-section .svg-foundation-grid {
        width: 180px;
        bottom: -40px;
      }
    }

    /* Ambient Background SVGs for Consultation Section */
    .ambient-backgrounds-consultation {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
    }

    .ambient-svg-consult {
      position: absolute;
      color: #ffffff;
      opacity: 0.15;
      transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .consultation-section .svg-consult-grid {
      width: 300px;
      height: 300px;
      top: -100px;
      left: -120px;
      opacity: 0.12;
    }

    .consultation-section .svg-consult-flow {
      width: 550px;
      height: auto;
      bottom: -180px;
      left: -150px;
      transform: rotate(-10deg);
      opacity: 0.1;
    }

    .consultation-section .svg-consult-target {
      width: 520px;
      height: 520px;
      top: -150px;
      right: -180px;
      opacity: 0.08;
    }

    /* Interactive Hover Effect for Consultation Decoration */
    .consultation-section:hover .ambient-svg-consult {
      opacity: 0.35;
    }

    /* Mobile Responsive Logic for Consultation SVGs */
    @media (max-width: 767px) {
      .consultation-section .svg-consult-grid {
        width: 200px;
        top: -50px;
        left: -60px;
      }
      .consultation-section .svg-consult-flow {
        width: 350px;
        bottom: -100px;
        left: -80px;
      }
      .consultation-section .svg-consult-target {
        width: 320px;
        top: -80px;
        right: -100px;
      }
    }
    /* Premium Image Styling for Career Narrative */
    .narrative-image-box {
      position: relative;
      z-index: 2;
      border-radius: 30px;
      overflow: hidden;
      box-shadow: 0 20px 50px rgba(2, 48, 71, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.8);
      transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .narrative-image-box:hover {
      transform: translateY(-8px);
      box-shadow: 0 40px 80px rgba(2, 48, 71, 0.25);
    }
    .narrative-image-box img {
      width: 100%;
      height: auto;
      display: block;
    }

    @media (max-width: 991px) {
      .narrative-image-box {
        margin-top: 30px;
      }
    }