/* Main Stylesheet for TheBrain.org.in
  This file replaces Tailwind CSS and contains all styles for the website.
*/

/* 1. Global Styles & Resets
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8fafc; /* Slate 50 */
    color: #334155; /* Slate 700 */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    color: #0f172a; /* Slate 900 */
    line-height: 1.3;
}

a {
    color: #1d4ed8; /* Blue 700 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e3a8a; /* Blue 800 */
}

ul {
    list-style: none;
}

img, iframe {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* 2. Header & Navigation
-------------------------------------------------- */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e2e8f0; /* Slate 200 */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a; /* Slate 900 */
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}


.main-nav {
    display: none; /* Hidden on mobile */
}

.main-nav a {
    color: #475569; /* Slate 600 */
    padding: 0.5rem 0;
    margin: 0 1rem;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.main-nav a:hover {
    color: #0f172a; /* Slate 900 */
}

.main-nav a.nav-active {
    font-weight: 500;
    color: #0f172a; /* Slate 900 */
    border-bottom-color: #475569; /* Slate 600 */
}

#mobile-menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #475569; /* Slate 600 */
}

#mobile-menu-button svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
}

#mobile-menu-button[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0; /* Slate 200 */
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 500px; /* Adjust as needed to fit content */
    transition: max-height 0.3s ease-in;
}

#mobile-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    color: #334155; /* Slate 700 */
}

#mobile-menu a:hover {
    background-color: #f1f5f9; /* Slate 100 */
}

#mobile-menu a.nav-active {
    background-color: #f1f5f9; /* Slate 100 */
    font-weight: 500;
}

/* 3. Footer
-------------------------------------------------- */
.site-footer {
    background-color: #1e293b; /* Slate 800 */
    color: #ffffff;
    margin-top: 4rem;
    padding: 3rem 0;
    text-align: center;
}

.site-footer .container p {
    margin-bottom: 1rem;
    color: #cbd5e1; /* Slate 300 */
}

.site-footer .disclaimer {
    font-size: 0.875rem;
    color: #94a3b8; /* Slate 400 */
    margin-top: 1.5rem;
}

/* 4. Page: Home
-------------------------------------------------- */
.home-hero {
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}

.home-hero .hero-box {
    background-color: #ffffff;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0; /* Slate 200 */
    border-radius: 0.5rem;
}

.home-hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.home-hero p {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: #475569; /* Slate 600 */
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.research-focus {
    margin-top: 5rem;
}

.research-focus h2, .previews-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.topic-card {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0; /* Slate 200 */
    border-radius: 0.5rem;
    overflow: hidden;
    text-align: center;
    padding: 2.5rem;
    max-width: 48rem;
    margin: 0 auto;
    border-left: 4px solid #3b82f6; /* Blue 500 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.topic-card svg {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    color: #475569; /* Slate 600 */
}

.topic-card h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

.topic-card p {
    margin-top: 1rem;
    color: #475569; /* Slate 600 */
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    margin-top: 2rem;
    background-color: #1e293b; /* Slate 800 */
    color: #ffffff;
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0f172a; /* Slate 900 */
    color: #ffffff;
}

.previews-section {
    margin-top: 5rem;
    display: grid;
    gap: 2.5rem;
}

.preview-card {
    background-color: #ffffff;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0; /* Slate 200 */
    text-align: center;
    border-radius: 0.5rem;
    border-top: 3px solid #1e293b; /* Slate 800 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.preview-card svg {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    color: #475569; /* Slate 600 */
}

.preview-card h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

.preview-card p {
    margin-top: 1rem;
    color: #475569; /* Slate 600 */
}

.preview-card a {
    display: inline-block;
    margin-top: 2rem;
    color: #1e293b; /* Slate 800 */
    font-weight: 500;
}

.preview-card a:hover {
    text-decoration: underline;
}

/* 5. Page: About & Funding
-------------------------------------------------- */
.content-box {
    max-width: 48rem;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0; /* Slate 200 */
}

.content-box h1 {
    font-size: 2.25rem;
    text-align: center;
}

.content-box .lead {
    font-size: 1.25rem;
    color: #475569; /* Slate 600 */
    text-align: center;
    margin-top: 1rem;
}

.prose {
    margin-top: 2rem;
    color: #334155; /* Slate 700 */
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.prose a {
    text-decoration: underline;
}

/* Funding Page Specifics */
.funding-details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.funding-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid #cbd5e1; /* Slate 300 */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.funding-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8fafc; /* Slate 50 */
    border: 1px solid #e2e8f0; /* Slate 200 */
}

.funding-item .source {
    color: #334155; /* Slate 700 */
}

.funding-item .amount-credit {
    font-weight: 500;
    color: #16a34a; /* Green 600 */
}

.funding-item .amount-debit {
    font-weight: 500;
    color: #dc2626; /* Red 600 */
}

#receipt-button {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: #2563eb; /* Blue 600 */
    background: none;
    border: none;
    cursor: pointer;
}
#receipt-button:hover {
    text-decoration: underline;
}

.financial-summary {
    padding-top: 1.5rem;
    border-top: 2px solid #cbd5e1; /* Slate 300 */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item .label {
    font-size: 1.125rem;
    color: #475569; /* Slate 600 */
}

.summary-item .value {
    font-size: 1.25rem;
    font-weight: bold;
}

.summary-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0; /* Slate 200 */
}

.summary-total .label {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1e293b; /* Slate 800 */
}
.summary-total .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f172a; /* Slate 900 */
}

/* Receipt Modal */
#receipt-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    max-width: 56rem;
    width: 100%;
    height: 83.33%; /* h-5/6 */
    display: flex;
    flex-direction: column;
    border: 1px solid #cbd5e1; /* Slate 300 */
    border-radius: 0.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0; /* Slate 200 */
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
}

#close-modal-button {
    font-size: 1.5rem;
    font-weight: 300;
    color: #64748b; /* Slate 500 */
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
#close-modal-button:hover {
    color: #1e293b; /* Slate 800 */
}

.modal-body {
    flex-grow: 1;
    margin-top: 1rem;
    background-color: #e2e8f0; /* Slate 200 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default */
}

#pdf-placeholder {
    text-align: center;
    color: #64748b; /* Slate 500 */
    padding: 1rem;
}

#pdf-placeholder svg {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: #94a3b8; /* Slate 400 */
}

.modal-footer {
    margin-top: 1rem;
    text-align: center;
    border-top: 1px solid #e2e8f0; /* Slate 200 */
    padding-top: 1rem;
}

.btn-download {
    display: inline-block;
    background-color: #1e293b; /* Slate 800 */
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s ease;
    border-radius: 0.25rem;
}
.btn-download:hover {
    background-color: #0f172a; /* Slate 900 */
    color: #ffffff;
}
.btn-download.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 6. Page: Bipolar Disorder
-------------------------------------------------- */
.page-section {
    padding: 4rem 0;
}

.bipolar-hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #e0f2fe 0%, #ede9fe 100%);
}

.bipolar-hero h1 {
    font-size: 2.5rem;
}

.bipolar-hero p {
    font-size: 1.25rem;
    color: #334155; /* Slate 700 */
    max-width: 48rem;
    margin: 1rem auto 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero-actions a {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.hero-actions .btn-dark {
    background-color: #1e293b; /* Slate 800 */
    color: #ffffff;
}
.hero-actions .btn-dark:hover {
    background-color: #0f172a; /* Slate 900 */
}

.hero-actions .btn-light {
    background-color: #ffffff;
    color: #1e293b; /* Slate 800 */
    border: 1px solid #cbd5e1; /* Slate 300 */
}
.hero-actions .btn-light:hover {
    background-color: #f8fafc; /* Slate 50 */
}
.hero-actions .btn-blue {
    background-color: #2563eb; /* Blue 600 */
    color: #ffffff;
}
.hero-actions .btn-blue:hover {
    background-color: #1d4ed8; /* Blue 700 */
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
}

.section-header p {
    color: #475569; /* Slate 600 */
    max-width: 42rem;
    margin: 1rem auto 0;
}

/* Symptom Toggles */
.symptom-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.symptom-toggle-group {
    display: inline-flex;
    background-color: #f1f5f9; /* Slate 100 */
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.symptom-toggle-btn {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.symptom-toggle-btn.active {
    background-color: #1e293b; /* Slate 800 */
    color: #ffffff;
}

/* Symptom & Treatment Grids */
.symptom-grid, .treatment-grid, .diagnosis-grid, .comparison-grid {
    display: grid;
    gap: 2rem;
}

.symptom-card, .treatment-card, .diagnosis-card, .comparison-card, .cause-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0; /* Slate 200 */
}

.symptom-card h3, .treatment-card h3, .diagnosis-card h3, .comparison-card h3, .cause-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.symptom-card ul, .treatment-card ul, .diagnosis-card ul, .comparison-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #475569; /* Slate 600 */
}

.symptom-card ul li, .treatment-card ul li, .diagnosis-card ul li, .comparison-card ul li {
    display: flex;
    align-items: flex-start;
}

.symptom-card ul li svg, .treatment-card ul li svg, .diagnosis-card ul li svg, .comparison-card ul li svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.icon-blue { color: #3b82f6; }
.icon-amber { color: #f59e0b; }
.icon-green { color: #22c55e; }
.icon-purple { color: #8b5cf6; }

/* Causes Section */
.causes-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.cause-card {
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.cause-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.cause-card .icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

#cause-explanation {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    max-width: 64rem;
    margin: 0 auto;
}
#cause-explanation h4 {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Diagnosis Section */
.info-box {
    margin-top: 3rem;
    background-color: #eff6ff; /* Blue 50 */
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #bfdbfe; /* Blue 200 */
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}
.info-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Treatment Tabs */
.tab-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-group {
    display: inline-flex;
    background-color: #f1f5f9; /* Slate 100 */
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #1e293b; /* Slate 800 */
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tab-pane {
    max-width: 64rem;
    margin: 0 auto;
}

.precision-medicine-box {
    margin-top: 2rem;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

/* Demographics & Comparison */
.chart-container {
    max-width: 80rem;
    margin: 0 auto;
    background-color: #f8fafc; /* Slate 50 */
    padding: 2rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

#prevalenceChart {
    height: 300px !important;
}

.comparison-container {
    margin-top: 3rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}
.comparison-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.diff-btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.diff-btn {
    background-color: #ffffff;
    border: 1px solid #cbd5e1; /* Slate 300 */
    color: #475569; /* Slate 700 */
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
}
.diff-btn.active {
    background-color: #334155; /* Slate 700 */
    color: #ffffff;
    border-color: #334155;
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    max-width: 96rem;
    margin: 0 auto;
}
#testimonial-container {
    display: flex;
    overflow-x: hidden;
    transition: transform 0.5s ease;
    scroll-behavior: smooth;
}
.testimonial-card {
    flex: 0 0 100%;
    padding: 1rem;
}
.testimonial-card-inner {
    background-color: #ffffff;
    height: 100%;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
}
.testimonial-card-inner .quote {
    flex-grow: 1;
    color: #475569;
}
.testimonial-card-inner .source {
    text-align: right;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1rem;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    border-radius: 9999px;
    padding: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    z-index: 10;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}
.slider-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.slider-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #334155;
}
#prev-btn { left: -1rem; }
#next-btn { right: -1rem; }

/* Accordion */
.accordion-item {
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}
.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #334155;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.accordion-header:hover {
    background-color: #f1f5f9;
}
.accordion-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}
.accordion-content-inner {
    padding: 0 1rem 1rem;
    color: #475569;
}
.accordion-item.open .accordion-content {
    max-height: 1000px; /* Adjust as needed */
    transition: max-height 0.5s ease-in;
}
.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}


/* 7. Utility & Helper Classes
-------------------------------------------------- */
.hidden {
    display: none !important;
}
.main-content {
    padding: 3rem 0;
}

/* 8. Responsive Styles
-------------------------------------------------- */
@media (min-width: 768px) {
    /* General */
    .main-content {
        padding: 5rem 0;
    }
    .content-box {
        padding: 3rem;
    }

    /* Navigation */
    .main-nav {
        display: flex;
        align-items: center;
    }
    #mobile-menu-button {
        display: none;
    }

    /* Home */
    .home-hero h1 {
        font-size: 3rem;
    }
    .previews-section {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Bipolar Disorder */
    .bipolar-hero h1 {
        font-size: 3rem;
    }
    .symptom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .symptom-card.full-width {
        grid-column: 1 / -1;
    }
    .symptom-card.full-width .symptom-subgrid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .causes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .diagnosis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonial-card {
        flex: 0 0 50%;
    }
    .slider-btn {
        display: block;
    }
}

@media (min-width: 1024px) {
    /* Home */
    .home-hero .hero-box {
        padding: 3.5rem;
    }
    .home-hero h1 {
        font-size: 3.75rem;
    }
    /* Bipolar Disorder */
    .testimonial-card {
        flex: 0 0 33.33%;
    }
}

.main-nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 60;
    border: 1px solid #f1f5f9;
}

.main-nav .nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #334155 !important; /* Override specificity */
    border-bottom: none !important; /* Override specificity */
    margin: 0 !important; /* Override specificity */
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f8fafc;
    color: #0f172a !important; /* Override specificity */
}


/* 10. Clickable Cause Cards
-------------------------------------------------- */
a.cause-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.cause-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

a.cause-card-link .cause-card {
    height: 100%;
    transition: none; /* Override hover effect on the inner card */
    box-shadow: 0 2px 4px rgba(0,0,0,0.06); /* Reset shadow to be on the link */
}
a.cause-card-link:hover .cause-card {
     box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.cause-card {
    display: flex;
    flex-direction: column;
}

.cause-card p {
    flex-grow: 1;
}

.cause-card .read-more {
    margin-top: 1rem;
    font-weight: 500;
    color: #1d4ed8;
    align-self: flex-start;
}
