/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

/* --- CSS Variables --- */
:root {
    --brand-dark: #0d0d0d;
    --brand-dark-secondary: #1a1a1a;
    --brand-gold: #c9a46a;
    --brand-gold-light: #e6c89c;
    --brand-off-white: #e8e8e8;
    --font-primary: 'Poppins', sans-serif;
    
    /* Lifeline Palette */
    --ll-moonstone: #469BA7;
    --ll-midnight-green: #005765;
    --ll-gunmetal: #012731;
    --ll-ghost-white: #F1F3F9;
    --ll-peach: #F1B393;
}

/* ==============================================
--- 1. Base & Global Styles ---
==============================================
*/
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--brand-dark);
    color: var(--brand-off-white);
    line-height: 1.6;
    margin: 0;
    transition: background-color 0.5s ease;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3, h4 {
    font-weight: 600;
    margin-top: 0;
    color: white;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--brand-gold);
}

.section-bg {
    background-color: var(--brand-dark-secondary);
    padding: 6rem 0;
}

.page-header {
    padding: 6rem 0 4rem;
    background-color: var(--brand-dark-secondary);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
}

.page-header p {
    font-size: 1.25rem;
    color: rgba(232, 232, 232, 0.7);
    max-width: 700px;
    margin: 1rem auto 0 auto;
}

/* ==============================================
--- 2. Preloader & Page Transitions ---
==============================================
*/
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brand-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    width: 10rem;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brand-dark); /* Default transition color */
    transform: translateY(100%);
    z-index: 9998;
    transition: transform 0.6s cubic-bezier(0.83, 0, 0.17, 1);
    pointer-events: none;
}

.page-transition-overlay.is-active {
    transform: translateY(0);
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animations */
.hero .scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.hero .scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.hero .scroll-animate:nth-child(3) { transition-delay: 0.3s; }

.initiatives-grid .scroll-animate:nth-child(2),
.team-grid .scroll-animate:nth-child(2),
.doctors-grid .scroll-animate:nth-child(2),
.consultation-grid .scroll-animate:nth-child(2),
.steps-grid .scroll-animate:nth-child(2),
.partners-grid .partner-card:nth-child(2),
.benefits-grid .benefit-card:nth-child(2) {
    transition-delay: 0.1s;
}
.initiatives-grid .scroll-animate:nth-child(3),
.team-grid .scroll-animate:nth-child(3),
.doctors-grid .scroll-animate:nth-child(3),
.steps-grid .scroll-animate:nth-child(3),
.partners-grid .partner-card:nth-child(3),
.benefits-grid .benefit-card:nth-child(3) {
    transition-delay: 0.2s;
}
.team-grid .scroll-animate:nth-child(4),
.partners-grid .partner-card:nth-child(4) {
    transition-delay: 0.3s;
}
.team-grid .scroll-animate:nth-child(5),
.partners-grid .partner-card:nth-child(5) {
    transition-delay: 0.4s;
}
.partners-grid .partner-card:nth-child(6) {
    transition-delay: 0.5s;
}
.partners-grid .partner-card:nth-child(7) {
    transition-delay: 0.6s;
}
.partners-grid .partner-card:nth-child(8) {
    transition-delay: 0.7s;
}


/* ==============================================
--- 3. Header & Navigation ---
==============================================
*/
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 164, 106, 0.1);
    padding: 0.75rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 48px; 
    height: 48px; 
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(12deg) scale(1.05);
}

.main-nav {
    display: none;
}

@media (min-width: 992px) {
    .main-nav {
        display: flex;
        gap: 1.5rem;
        font-weight: 500;
        align-items: center;
    }
    .main-nav a {
        color: var(--brand-off-white);
        padding: 0.5rem;
    }
    .main-nav a:hover {
        color: var(--brand-gold-light);
    }
     .main-nav a.active {
        color: var(--brand-gold);
        font-weight: 700;
    }
    .main-nav a.nav-lifeline-link {
        color: var(--brand-gold);
        background-color: rgba(201, 164, 106, 0.1);
        border-radius: 6px;
        border: 1px solid rgba(201, 164, 106, 0.2);
    }
    .main-nav a.nav-lifeline-link:hover {
        background-color: rgba(201, 164, 106, 0.2);
        color: var(--brand-gold-light);
    }
}

.mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}
@media (min-width: 992px) {
    .mobile-nav-toggle {
        display: none;
    }
}
.mobile-nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    max-width: 320px;
    background-color: var(--brand-dark-secondary);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.83, 0, 0.17, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}

.mobile-nav-menu.is-open {
    right: 0;
}

.mobile-nav-menu nav {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.mobile-nav-menu nav a {
    color: var(--brand-off-white);
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1rem;
    margin: 0.5rem 0;
}

.mobile-nav-menu nav a.nav-lifeline-link {
    color: var(--brand-gold);
}


/* ==============================================
--- 4. Main Site Sections ---
==============================================
*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px; 
}

.hero-logo-container {
    width: 15rem; 
    height: 15rem; 
    margin: 0 auto 1.5rem auto;
}

.hero-logo {
    width: 100%;
    height: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(232, 232, 232, 0.7);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(232, 232, 232, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.initiatives-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .initiatives-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: var(--brand-dark);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.card h3 {
    color: var(--brand-gold);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card p {
    flex-grow: 1;
    margin-bottom: 2rem;
    color: rgba(232, 232, 232, 0.8);
}

.partners-section {
    padding: 6rem 0;
}

.partners-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.partner-card {
    background-color: var(--brand-dark-secondary);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo-wrapper {
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.partner-card img {
    max-height: 70px; 
    max-width: 140px; 
    width: auto;
    object-fit: contain;
}

.partner-name {
    font-size: 1.25rem;
    color: var(--brand-off-white);
    margin-bottom: 0.5rem;
}

.partner-description {
    font-size: 0.9rem;
    color: rgba(232, 232, 232, 0.7);
    line-height: 1.5;
}

.team-section {
    padding: 4rem 0 6rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: var(--brand-dark-secondary);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}
.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    border: 2px solid var(--brand-gold);
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.4rem;
    color: var(--brand-gold);
    margin-bottom: 0.25rem;
}

.team-card .role {
    font-size: 1rem;
    color: rgba(232, 232, 232, 0.7);
}

.card:hover, .partner-card:hover, .team-card:hover, .doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
    border-color: rgba(201, 164, 106, 0.3);
}

.contact-section {
    padding: 6rem 0;
}
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}
.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-group input, .form-group textarea {
    flex-grow: 1;
    min-width: 250px;
    background-color: var(--brand-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 1rem;
    color: var(--brand-off-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(232, 232, 232, 0.5);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(201, 164, 106, 0.2);
}
.form-group textarea {
    width: 100%;
}
.form-success-message {
    display: none;
    background-color: rgba(70, 155, 167, 0.1);
    color: var(--ll-moonstone);
    border: 1px solid var(--ll-moonstone);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    text-align: center;
}
.form-success-message.is-visible {
    display: block;
}

/* ==============================================
--- 5. Lifeline Page Specific Styles ---
==============================================
*/
.lifeline-page {
    background-color: var(--ll-ghost-white);
    color: var(--ll-gunmetal);
}
.lifeline-page .main-header {
    background-color: rgba(241, 243, 249, 0.8);
    border-bottom-color: rgba(0, 87, 101, 0.1);
}
.lifeline-page .main-nav a {
    color: var(--ll-midnight-green);
    background-color: transparent;
    border: none;
}
.lifeline-page .main-nav a:hover {
    color: var(--ll-moonstone);
}
.lifeline-page .main-nav a.active {
    color: var(--ll-moonstone);
    font-weight: 700;
}
.lifeline-page .mobile-nav-toggle .bar {
    background-color: var(--ll-gunmetal);
}
.lifeline-page .mobile-nav-menu {
    background-color: var(--ll-ghost-white);
}
.lifeline-page .mobile-nav-menu nav a {
    color: var(--ll-gunmetal);
}
.lifeline-page .mobile-nav-menu nav a.nav-lifeline-link {
    color: var(--ll-moonstone);
}
.lifeline-page .main-nav a.nav-lifeline-link.active {
    background-color: rgba(70, 155, 167, 0.15);
    border-radius: 6px;
}

.lifeline-hero {
    padding: 6rem 0;
}
.lifeline-hero .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}
.lifeline-hero .hero-content {
    flex: 1;
    min-width: 300px;
}
.lifeline-hero .hero-image {
    flex: 1;
    display: none;
    min-width: 300px;
}
@media (min-width: 992px) {
    .lifeline-hero .hero-image {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
.image-placeholder { 
    width: 350px;
    height: 350px;
    background: #e6eaf1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--ll-moonstone);
    border: 2px dashed var(--ll-moonstone);
}
.image-placeholder span {
    margin-top: 1rem;
    font-weight: 500;
}
.lifeline-hero-logo {
    width: 100px;
    margin-bottom: 1.5rem;
}
.lifeline-page h1, .lifeline-page h2, .lifeline-page h3, .lifeline-page h4 {
    color: var(--ll-gunmetal);
}
.lifeline-page p, .lifeline-page span, .lifeline-page li {
    color: var(--ll-midnight-green);
}
.lifeline-page .section-header p {
     color: var(--ll-midnight-green);
}

.lifeline-hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.lifeline-hero p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.lifeline-consultations {
    padding: 6rem 0;
}
.consultation-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media(min-width: 768px) {
    .consultation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.consultation-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 87, 101, 0.08);
    border: 1px solid #e6eaf1;
}
.consultation-card h3 {
    color: var(--ll-moonstone);
    margin-bottom: 1rem;
}

.lifeline-how-it-works {
    padding: 6rem 0;
}
.steps-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.step-card {
    padding: 2rem;
}
.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--ll-peach);
    color: var(--ll-gunmetal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin: 0 auto 1.5rem auto;
}
.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-bg-lifeline {
    background-color: #eaf1f3;
}
.lifeline-cta {
    padding: 6rem 0;
    background: var(--ll-midnight-green);
}
.lifeline-cta h2, .lifeline-cta p {
    color: white;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.btn-lifeline-primary {
    background-color: var(--ll-moonstone);
    color: white;
}
.btn-lifeline-primary:hover {
    background-color: #3a8a97;
    transform: scale(1.05);
}
.btn-lifeline-secondary {
    background-color: transparent;
    color: var(--ll-moonstone);
    border: 2px solid var(--ll-moonstone);
}
.btn-lifeline-secondary:hover {
    background-color: var(--ll-moonstone);
    color: white;
}

/* ==============================================
--- 6. Lifeline FAQ Section ---
==============================================
*/
.lifeline-faq {
    padding: 6rem 0;
    background-color: var(--ll-ghost-white);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 87, 101, 0.15);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ll-gunmetal);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-primary);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--ll-peach);
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 1rem 1.5rem 0;
    line-height: 1.7;
    font-size: 1rem;
}
.faq-answer p strong {
    font-weight: 600;
    color: var(--ll-gunmetal);
}


/* ==============================================
--- 7. Careers Page ---
==============================================
*/
.careers-intro {
    padding: 6rem 0;
}
.careers-intro .section-header {
    margin-bottom: 4rem;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.benefit-card {
    background-color: var(--brand-dark-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.benefit-card h4 {
    color: var(--brand-gold);
    margin-bottom: 0.5rem;
}
.openings-section {
    padding: 6rem 0;
}
.job-list {
    max-width: 900px;
    margin: 0 auto;
}
.job-card {
    background-color: var(--brand-dark);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}
.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.job-card-header h3 {
    margin: 0;
}
.job-card-header span {
    background-color: rgba(201, 164, 106, 0.1);
    color: var(--brand-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}
.job-description {
    color: rgba(232, 232, 232, 0.7);
    margin-bottom: 2rem;
}
.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.job-card-footer .job-type {
    font-style: italic;
    color: rgba(232, 232, 232, 0.6);
}
.how-to-apply-section {
    padding: 6rem 0;
}
.how-to-apply-section p {
    margin-bottom: 2rem;
}


/* ==============================================
--- 8. Timeline Page ---
==============================================
*/
.timeline-section {
    padding: 4rem 0 6rem;
}
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: rgba(201, 164, 106, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 1rem 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -14px;
    background-color: var(--brand-dark);
    border: 4px solid var(--brand-gold);
    top: 32px;
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s ease;
}
.timeline-item:hover::after {
    transform: scale(1.2);
}
.timeline-item:nth-child(even)::after {
    left: -14px;
}
.timeline-content {
    padding: 2rem;
    background-color: var(--brand-dark-secondary);
    border: 1px solid rgba(201, 164, 106, 0.1);
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease;
}
.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
}
.timeline-phase {
    display: inline-block;
    background-color: var(--brand-gold);
    color: var(--brand-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.timeline-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

/* ==============================================
--- 9. Footer ---
==============================================
*/
.main-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(201, 164, 106, 0.1);
    color: rgba(232, 232, 232, 0.6);
}
.footer-link {
    color: rgba(232, 232, 232, 0.4);
    font-size: 0.9rem;
}
.lifeline-page .main-footer {
    background-color: #e6eaf1;
    border-top-color: rgba(0, 87, 101, 0.1);
    color: var(--ll-gunmetal);
}
.lifeline-page .footer-link {
    color: var(--ll-midnight-green);
}

/* ==============================================
--- 10. Buttons ---
==============================================
*/
.btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--brand-gold);
    color: var(--brand-dark);
}
.btn-primary:hover {
    background-color: var(--brand-gold-light);
    transform: scale(1.05);
    color: var(--brand-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--brand-gold);
    border: 1px solid rgba(201, 164, 106, 0.5);
}
.btn-secondary:hover {
    background-color: var(--brand-gold);
    color: var(--brand-dark);
}

.btn-disabled {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    background-color: rgba(232, 232, 232, 0.1);
    color: rgba(232, 232, 232, 0.5);
    cursor: not-allowed;
    border: 1px solid rgba(232, 232, 232, 0.1);
}

/* ==============================================
--- 11. Doctors & Team Page Modals ---
==============================================
*/
.doctors-section {
    padding: 4rem 0 6rem;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.doctor-card {
    background-color: var(--brand-dark-secondary);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.doctor-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--brand-dark);
    margin: 0 auto 1.5rem auto;
    border: 2px solid var(--brand-gold);
}

.doctor-card h3 {
    font-size: 1.5rem;
    color: var(--brand-gold);
    margin-bottom: 0.25rem;
}

.doctor-card .role {
    font-size: 1rem;
    color: rgba(232, 232, 232, 0.7);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--brand-dark-secondary);
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@media(min-width: 768px) {
    .modal-content {
        padding: 3rem;
    }
}


.modal-overlay.is-visible .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--brand-off-white);
    cursor: pointer;
    line-height: 1;
}

.doctor-detail, .member-detail {
    display: none;
}

.doctor-detail.is-active, .member-detail.is-active {
    display: block;
}

.doctor-photo-placeholder-modal, .member-photo-modal {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--brand-dark);
    margin: 0 auto 1.5rem auto;
    border: 3px solid var(--brand-gold);
    object-fit: cover;
}

.doctor-detail h2, .member-detail h2 {
    text-align: center;
    color: var(--brand-gold);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.member-detail .role {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(232, 232, 232, 0.7);
    margin-bottom: 1.5rem;
}

.doctor-detail .bio, .member-detail .bio {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(232, 232, 232, 0.8);
}

.doctor-detail h4, .member-detail h4 {
    font-size: 1.2rem;
    color: var(--brand-gold-light);
    border-bottom: 1px solid rgba(201, 164, 106, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.doctor-detail ul, .member-detail ul {
    list-style: none;
    padding: 0;
}

.doctor-detail ul li, .member-detail ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
