/* Font Declarations */
/* Cabinet Grotesk Font Family */
@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk-Extralight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk-Extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('../fonts/CabinetGrotesk-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Plus Jakarta Sans Font Family */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Creative modern design system */
:root {
    --primary: #4F00C1;
    --primary-light: rgba(79, 0, 193, 0.05);
    --primary-medium: rgba(79, 0, 193, 0.1);
    --primary-dark: #3d009a;
    --secondary: #FFB000;
    --secondary-light: rgba(255, 176, 0, 0.1);
    --dark: #0F0F0F;
    --light: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-900: #171717;
    
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Enable smooth scrolling for the entire page */
}

body {
    font-family: 'Cabinet Grotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.5;
}

.main-container {
    max-width: 100%;
    overflow-x: hidden;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
    position: relative;
}

/* Section Headers */
.section-header {
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-marker {
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.section-intro {
    font-size: 18px;
    max-width: 800px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/*-------------------------------
  HERO SECTION
-------------------------------*/
.hero-section {
    padding: 120px var(--space-lg) var(--space-xl);
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: var(--space-xl);
    position: relative;
}

/* Hero Statement */
.hero-statement {
    padding-right: var(--space-lg);
    position: relative;
}

.statement-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
    position: relative;
}

.hero-title .highlight,
.section-title .title-accent {
    position: relative;
    display: inline-block;
    color: var(--primary);
}

.hero-title .highlight::after,
.section-title .title-accent::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 16px;
    bottom: 4px;
    left: 0;
    background-color: var(--secondary);
    opacity: 0.3;
    z-index: -1;
}

.hero-paragraph {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
}

.hero-paragraph strong {
    color: var(--dark);
}

/* Relevance Panel */
.relevance-panel {
    background-color: var(--gray-50);
    padding: var(--space-xl);
    position: relative;
    display: flex;
    flex-direction: column;
}

.visual-element {
    position: absolute;
    top: 20%;
    right: -100px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.15;
}

.visual-element::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 2px solid var(--secondary);
    border-radius: 50%;
}

.visual-element::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    background-color: var(--primary);
    border-radius: 50%;
    opacity: 0.2;
}

.relevance-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--gray-300);
}

.audience-intro {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

.support-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
}

.category-marker {
    width: 16px;
    height: 16px;
    margin-right: var(--space-sm);
    flex-shrink: 0;
}

.foundational .category-marker {
    background-color: var(--primary);
}

.advanced .category-marker {
    background-color: var(--secondary);
}

.category-title {
    font-size: 18px;
    font-weight: 600;
}

.category-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-md);
}

.category-item {
    font-size: 15px;
    line-height: 1.5;
    padding-left: var(--space-sm);
    position: relative;
}

.category-item::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--gray-400);
}

/* Credentials Bar */
.credentials-container {
    margin-top: var(--space-lg);
    border-top: 1px solid var(--gray-200);
}

.credentials-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-lg);
    align-items: center;
}

.credentials-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    white-space: nowrap;
    font-weight: 500;
}

.credentials-list {
    display: flex;
    gap: var(--space-md);
    list-style: none;
    flex-wrap: wrap;
}

.credential-item {
    position: relative;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.credential-item::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    margin-right: 8px;
}

/*-------------------------------
  SPECIALIZATION SECTION
-------------------------------*/
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.specialty-card {
    background-color: var(--light);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.specialty-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.specialty-card.active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(79, 0, 193, 0.1);
}

.card-header {
    padding: var(--space-lg);
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Ensure uniform height for specialty card headers */
.specialty-card .card-header {
    height: 250px; /* Increased height to accommodate more text */
    box-sizing: border-box; /* Include padding in height calculation */
}

/* Handle overflow in card description to maintain layout */
.specialty-card .card-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6; /* Increased to 3 lines to show more text */
    -webkit-box-orient: vertical;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.specialty-card:hover .card-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.card-title-block {
    flex-grow: 1;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--dark);
}

.card-description {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.5;
}

.card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    height: 100%;
}

.card-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
}

.card-key-point {
    font-size: 16px;
    color: var(--gray-900);
    line-height: 1.5;
    font-style: italic;
}

.card-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.card-action svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.specialty-card:hover .card-action {
    color: var(--primary-dark);
}

.specialty-card:hover .card-action svg {
    transform: translateX(4px);
}

/* Expanded Specialty Content */
.expanded-content {
    opacity: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    border: 1px solid var(--gray-200);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: absolute;
    width: 100%;
}

.expanded-content.active {
    opacity: 1;
    height: auto;
    visibility: visible;
    position: relative;
    margin-bottom: var(--space-xl);
    animation: fadeIn 0.4s ease;
}

.expanded-content.transitioning-out {
    opacity: 0;
    height: auto;
    visibility: visible;
    position: absolute;
    transition: opacity 0.3s ease;
}

.expanded-header {
    padding: var(--space-md) var(--space-lg);
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expanded-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.expanded-body {
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--space-xl);
}

.insight-quote-container {
    position: relative;
    padding: var(--space-md);
    background-color: var(--primary-light);
    margin-bottom: var(--space-md);
}

.quote-marks {
    position: absolute;
    color: var(--secondary);
    font-size: 60px;
    line-height: 1;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.quote-start {
    top: var(--space-xs);
    left: var(--space-xs);
}

.quote-end {
    bottom: calc(-1 * var(--space-md));
    right: var(--space-xs);
}

.insight-quote {
    font-size: 18px;
    line-height: 1.6;
    color: var(--primary);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.insight-implication {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

.service-details h4 {
    font-size: 18px;
    margin-bottom: var(--space-md);
    color: var(--dark);
}

.service-list {
    list-style: none;
}

.service-item {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    padding-left: var(--space-lg);
}

.service-item:last-child {
    border-bottom: none;
}

.service-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(var(--space-md) + 10px);
    width: var(--space-md);
    height: 2px;
    background-color: var(--secondary);
}

.service-item-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.service-item-description {
    font-size: 15px;
    color: var(--gray-500);
}

.close-button {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}

.close-button:hover {
    color: var(--primary);
}

.close-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/*-------------------------------
  MODALITIES SECTION
-------------------------------*/
.modality-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.modality-tab {
    padding: var(--space-md);
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modality-tab:hover {
    transform: translateY(-2px);
}

.modality-tab.active {
    background-color: var(--light);
    border-color: var(--primary);
    position: relative;
}

.modality-tab.active::after {
    content: "";
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary);
}

.tab-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.tab-title {
    font-size: 16px;
    font-weight: 600;
}

/* Modality Content Panel */
.content-panel {
    background-color: var(--light);
    border: 1px solid var(--gray-200);
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.content-panel.active {
    opacity: 1;
    height: auto;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    background-color: var(--gray-50);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.panel-tag {
    font-size: 14px;
    color: var(--gray-400);
    background-color: var(--gray-100);
    padding: var(--space-xs) var(--space-sm);
}

.panel-content {
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.content-block {
    position: relative;
}

.block-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.block-label::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    display: inline-block;
}

.big-quote {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--primary);
    position: relative;
    background-color: rgba(79, 0, 193, 0.05);
    padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
}

.big-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: var(--space-sm);
    font-size: 60px;
    color: var(--secondary);
    opacity: 0.3;
}

.content-text {
    line-height: 1.6;
    color: var(--gray-500);
}

.content-text p {
    margin-bottom: var(--space-md);
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-card {
    background-color: var(--gray-50);
    padding: var(--space-md);
    border: 1px solid var(--gray-200);
}

.content-list {
    list-style: none;
    margin-top: var(--space-sm);
}

.content-list li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
}

.content-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.evidence-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: var(--space-xs) var(--space-sm);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 1rem;
}

.evidence-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.evidence-button:hover {
    background-color: var(--primary);
    color: var(--light);
}

.evidence-button:hover svg {
    transform: translateY(2px);
}

.evidence-content {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
    display: none;
}

.evidence-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.evidence-refs {
    margin-top: var(--space-sm);
    font-size: 12px;
    color: var(--gray-400);
}

/*-------------------------------
  CLINICAL APPROACH SECTION
-------------------------------*/
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.approach-card {
    background-color: var(--light);
    border: 1px solid var(--gray-200);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.approach-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.approach-card.active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(79, 0, 193, 0.1);
}

.approach-card .card-header {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--light);
}

.approach-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: none;
}

.approach-card:hover .card-icon {
    background-color: var(--primary-medium);
}

.approach-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.approach-card {
    display: flex;
    flex-direction: column;
    height: 400px; /* Fixed card height */
}

.approach-card .card-header {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--light);
    height: auto; /* Let it take natural height */
    flex-shrink: 0; /* Prevent header from shrinking */
}

.approach-card .card-body {
    padding: var(--space-lg);
    border: none;
    display: flex;
    flex-direction: column;
    flex: 1; /* Take remaining space */
    position: relative; /* For absolute positioning of card-action */
    min-height: 120px; /* Ensure minimum height for content */
}

.approach-card .card-description {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-xl); /* Consistent space for learn more */
}

/* Specific styling for the Learn more element in approach cards */
.approach-card .card-action {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-medium);
    font-weight: 500;
    transition: all 0.2s ease;
    width: max-content; /* Only take up as much space as needed */
    position: absolute; /* Position at bottom of card body */
    bottom: var(--space-md);
    left: var(--space-lg);
}

.approach-card .card-action svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.approach-card:hover .card-action {
    color: var(--primary-dark);
}

.approach-card:hover .card-action svg {
    transform: translateX(4px);
}

/* Expanded Panels */
/* Container for expanded panels */
.expanded-panels-container {
    position: relative;
    margin-top: var(--space-md);
    min-height: 200px;
    transition: min-height 0.4s ease;
}

/* Individual expanded panel styling */
.expanded-panel {
    background-color: var(--light);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-xl);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, max-height 0.4s ease;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.expanded-panel.active {
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

.expanded-panel.transitioning-out {
    max-height: 2000px;
    opacity: 0;
    visibility: visible;
    position: absolute;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.expanded-panel .panel-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expanded-panel .panel-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.expanded-panel .panel-title svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.expanded-panel .panel-body {
    padding: var(--space-xl);
}

/* Assessment Panel Styles */
.assessment-content {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.assessment-intro {
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    color: var(--gray-500);
    line-height: 1.6;
}

.lens-container {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    position: relative;
}

.lens-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gray-300) 20%, 
        var(--gray-300) 80%, 
        transparent
    );
    z-index: 0;
}

.lens-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background-color: var(--light);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.lens-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.lens-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.lens-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
}

.lens-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.lens-tagline {
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.lens-description {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    text-align: center;
}

.lens-summary {
    max-width: 800px;
    margin: var(--space-lg) auto 0;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    line-height: 1.6;
}

/* Intervention Panel Styles */
.intervention-content {
    display: flex;
    gap: var(--space-xl);
}

.intervention-visual {
    flex: 0 0 40%;
    position: relative;
}

.intervention-details {
    flex: 0 0 60%;
}

.intro-text {
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* Concentric circles */
.concentric-container {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
}

.intervention-circle {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light);
    border: 1px solid var(--gray-200);
    font-weight: 500;
}

.intervention-circle:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 0, 193, 0.1);
}

.intervention-circle.active {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.outer-circle {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    font-size: 16px;
    /* Shift label upward and add background for visibility */
    padding-bottom: 80%; /* Push the text upward */
    /* padding-top: 15%; /* Keep text near the top */
    text-shadow: 0 0 5px var(--light), 0 0 5px var(--light), 0 0 5px var(--light); /* Enhanced text shadow */
    font-weight: 600; /* Make text more visible */
}

.middle-circle {
    top: 17%; /* Slightly increased from 15% to create better balance */
    left: 17%; /* Slightly increased from 15% to create better balance */
    width: 66%; /* Decreased from 70% to create better proportion */
    height: 66%; /* Decreased from 70% to create better proportion */
    z-index: 2;
    font-size: 15px;
    /* Shift label upward and add background for visibility */
    padding-bottom: 45%; /* Push the text further upward */
    /* padding-top: 15%; /* Position text higher in the circle */
    text-shadow: 0 0 5px var(--light), 0 0 5px var(--light), 0 0 5px var(--light); /* Enhanced text shadow */
    font-weight: 600; /* Make text more visible */
}

.inner-circle {
    top: 35%;
    left: 35%;
    width: 30%;
    height: 30%;
    z-index: 3;
    font-size: 15px;
    /* Add slight shadow to ensure visibility */
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 5px var(--light), 0 0 5px var(--light), 0 0 5px var(--light); /* Enhanced text shadow */
    font-weight: 600; /* Make text more visible */
}

/* Layer content */
.layer-content {
    background-color: var(--gray-50);
    padding: var(--space-lg);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    display: none;
    animation: fadeIn 0.4s ease;
    margin-right: var(--space-lg);
}

.layer-content.active {
    display: block;
}

.layer-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.layer-description {
    color: var(--gray-500);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.layer-list-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.layer-list {
    list-style: none;
}

.layer-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--gray-500);
}

.layer-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(var(--space-sm) + 10px);
    width: var(--space-md);
    height: 2px;
    background-color: var(--secondary);
}

.layer-list li strong {
    color: var(--dark);
    font-weight: 500;
}

/* Collaboration Panel Styles */
.collaboration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.collaboration-intro {
    grid-column: 1 / -1;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.collaboration-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.collaboration-card {
    background-color: var(--light);
    border: 1px solid var(--gray-200);
    padding: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    transition: all 0.3s ease;
}

.collaboration-card:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.collaboration-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collaboration-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.collaboration-details {
    flex: 1;
}

.collaboration-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.collaboration-description {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

.collaboration-points {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: var(--space-md);
}

.points-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.points-list {
    list-style: none;
}

.point-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.point-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.point-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--secondary);
}

.point-text {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

/*-------------------------------
  WORKING TOGETHER SECTION
-------------------------------*/
.working-section {
    padding-bottom: var(--space-xl);
}

/* Visual accents */
.visual-accent {
    position: absolute;
    z-index: 0;
}

.accent-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px dashed var(--primary);
    opacity: 0.15;
    top: -60px;
    right: 100px;
}

.accent-square {
    width: 80px;
    height: 80px;
    border: 2px solid var(--secondary);
    opacity: 0.2;
    top: 60px;
    right: 40px;
    transform: rotate(15deg);
}

/* Main content grid */
.working-together-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

/* Practice details card */
.practice-details {
    background-color: var(--light);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.practice-details::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 60%;
    background-color: var(--primary);
}

.details-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.details-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    flex-shrink: 0;
}

.details-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.details-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.details-content {
    padding: var(--space-lg);
}

.details-grid {
    display: grid;
    gap: var(--space-md);
}

.detail-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: center;
    position: relative;
    padding-bottom: var(--space-md);
}

.detail-item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--gray-200), transparent);
}

.detail-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
}

.detail-value {
    font-size: 16px;
    color: var(--gray-900);
}

.highlight-value {
    background-color: var(--secondary-light);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    font-weight: 500;
}

/* Referral process card */
.referral-process {
    background-color: var(--primary);
    color: var(--light);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.process-header {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.process-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.process-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--light);
}

.process-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--light);
}

.process-content {
    padding: var(--space-lg);
    position: relative;
}

.process-steps {
    position: relative;
    z-index: 1;
}

.process-step {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--light);
}

.step-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* Process background decorative elements */
.process-accent {
    position: absolute;
    opacity: 0.1;
}

.process-accent-1 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--light);
    top: 20px;
    right: -40px;
}

.process-accent-2 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--light);
    bottom: 40px;
    right: 60px;
}

/* Call to action */
.cta-container {
    margin-top: var(--space-xl);
    text-align: center;
    position: relative;
    z-index: 1;
    padding: var(--space-lg) 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background-color: var(--primary);
    color: var(--light);
    text-decoration: none;
    padding: var(--space-md) var(--space-xl);
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 0, 193, 0.3);
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(79, 0, 193, 0.4);
}

.cta-button:hover::before {
    transform: translateX(0);
}

.cta-icon {
    width: 24px;
    height: 24px;
    stroke: var(--light);
    position: relative;
    z-index: 1;
}

.cta-text {
    position: relative;
    z-index: 1;
}

/*-------------------------------
  FOOTER SECTION
-------------------------------*/

footer {
    /* background-color: var(--primary); */
    /* color: white; */
    text-align: center;
    padding: 2rem 0;
    font-style: italic;
}

/*-------------------------------
  RESPONSIVE ADJUSTMENTS
-------------------------------*/
@media (max-width: 1200px) {
    .hero-section,
    .section-container {
        padding: var(--space-lg);
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .hero-statement {
        padding-right: 0;
    }
    
    .credentials-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .credentials-list {
        flex-wrap: wrap;
    }
    
    .intervention-content {
        flex-direction: column;
    }
    
    .modality-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lens-container {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
    }
    
    .lens-container::before {
        width: 1px;
        height: 80%;
        background: linear-gradient(180deg, 
            transparent, 
            var(--gray-300) 20%, 
            var(--gray-300) 80%, 
            transparent
        );
    }
    
    .panel-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .expanded-body {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .collaboration-content {
        grid-template-columns: 1fr;
    }
    
    .visual-accent {
        display: none;
    }
    
    .working-together-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .hero-section,
    .section-container {
        padding: var(--space-md);
    }
    
    .category-list {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .modality-tabs {
        grid-template-columns: 1fr;
    }
    
    .modality-tab.active::after {
        display: none;
    }
    
    .specialty-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
    
    .process-step {
        flex-direction: column;
        gap: var(--space-sm);
    }
}
