/* ==========================================================================
   MedicalGoGo - Professional Pharmaceutical B2B Website
   Complete CSS Stylesheet
   ========================================================================== */

/* CSS Variables */
:root {
    --primary-blue: #0066CC;
    --secondary-blue: #004C99;
    --accent-blue: #0080FF;
    --light-blue: #E6F2FF;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-gray: #e0e0e0;
    --success-green: #28a745;
    --warning-orange: #ff9800;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-blue);
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-blue);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

/* LOGO - icon + text side by side */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    color: var(--secondary-blue);
    opacity: 0.85;
}

.logo a img,
.logo a .logo-img {
    height: 40px;
    width: auto;
}

.logo-img {
    height: 55px;
    width: auto;
}

.logo-text {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--primary-blue);
    background: var(--light-blue);
}

nav a:active,
nav a.active {
    background: var(--primary-blue);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 7rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero .cta-button {
    background: var(--white);
    color: var(--primary-blue);
}

.hero .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.cta-button:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.4);
}

.cta-button-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.cta-button-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Section Styles */
.section {
    padding: 6rem 2rem;
}

.section-alt {
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
}

/* Card Grid System */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.card-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Card Styles */
.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.15);
    border-color: var(--primary-blue);
}

.card h3 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.card h4 {
    color: var(--secondary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.card strong {
    color: var(--text-dark);
    font-weight: 600;
}

.card ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.card li {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

/* Profile Cards */
.profile-card {
    text-align: center;
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--light-blue);
    object-fit: cover;
}

.profile-card h3 {
    margin-bottom: 0.5rem;
}

.profile-card .title {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.profile-card .credentials {
    color: var(--primary-blue);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    margin: 0;
}

.feature-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-gray);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Stats & Numbers */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Content Sections */
.content-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-blue);
}

.content-box h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/* Highlight Boxes */
.highlight-box {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    margin: 2rem 0;
}

.highlight-box h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.contact-info-sidebar {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

iframe {
    border: none;
    width: 100%;
    min-height: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .card-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    nav a {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* ========================================
   EXTENDED CSS FOR CASE STUDY PAGES
   ======================================== */

/* Navbar (alias for header) */
.navbar {
    background: white;
    border-bottom: 3px solid var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
}

.btn-primary-nav {
    background: var(--primary-blue);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

/* Page headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #3b82f6 100%);
    color: white;
    padding: 5rem 2rem 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Case study specific */
.case-studies-intro,
.case-studies-grid-section {
    padding: 3rem 2rem;
}

.intro-large {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.case-study-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.case-study-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.case-study-card.featured-case {
    border: 3px solid var(--primary-blue);
    position: relative;
}

.featured-ribbon {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.case-study-header {
    margin-bottom: 1.5rem;
}

.case-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.therapy-badge,
.service-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.therapy-badge.respiratory {
    background: #3b82f6;
}

.therapy-badge.dermatology {
    background: #ec4899;
}

.therapy-badge.rare-disease {
    background: #6366f1;
}

.therapy-badge.cns {
    background: #7c3aed;
}

.therapy-badge.oncology {
    background: #ef4444;
}

.service-badge {
    background: #10b981;
}

.case-study-client {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.case-study-summary {
    margin-bottom: 1.5rem;
}

.summary-section {
    margin-bottom: 1.5rem;
}

.summary-section h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.results-list {
    list-style: none;
    padding-left: 0;
}

.results-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.results-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.case-study-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.case-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.case-study-testimonial {
    background: #f0f9ff;
    border-left: 4px solid var(--primary-blue);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 4px;
    font-style: italic;
}

.case-study-testimonial p:first-child {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.testimonial-author {
    text-align: right;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 1rem;
    font-style: normal;
}

/* Case study detail pages */
.case-study-detail {
    background: white;
}

.case-detail-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #3b82f6 100%);
    color: white;
    padding: 3rem 2rem;
}

.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.case-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-top: 1rem;
}

.compliance-notice {
    background: #fef3c7;
    padding: 1.5rem 2rem;
    border-left: 4px solid #f59e0b;
    margin-bottom: 2rem;
}

.notice-box {
    max-width: 1200px;
    margin: 0 auto;
}

.notice-box p {
    margin: 0;
    line-height: 1.6;
}

.key-metrics-section {
    padding: 3rem 2rem;
    background: #f9fafb;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.metric-card {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.metric-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.case-content-section {
    padding: 3rem 2rem;
    line-height: 1.8;
}

.container-article {
    max-width: 900px;
    margin: 0 auto;
}

.case-info-box {
    background: #f9fafb;
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.case-info-box h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.case-info-box p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.solution-list {
    list-style: disc;
    padding-left: 2rem;
    margin: 1rem 0;
}

.solution-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.segment-results {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.segment-block {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
}

.segment-block h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.highlight-results {
    background: transparent !important;
}

.highlight-results li {
    background: #f9fafb !important;
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
    border-left: 4px solid var(--primary-blue) !important;
    border-radius: 4px;
}

.services-deployed {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.service-tag {
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.case-cta-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #3b82f6 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
}

.case-cta-box h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.case-cta-box p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.case-cta-box .btn {
    background: white;
    color: var(--primary-blue);
}

.related-cases {
    margin: 3rem 0;
}

.related-cases h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.related-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.related-card h4 {
    color: var(--text-dark);
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.related-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.back-to-cases {
    text-align: center;
    margin: 3rem 0;
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

/* Final CTA section */
.final-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-large {
    background: white;
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border-gray);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        padding: 1rem 0;
        gap: 0;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.85rem 2rem;
        border-radius: 0;
        font-size: 1rem;
    }

    .nav-menu a:hover {
        background: var(--light-blue);
    }

    .btn-primary-nav {
        margin: 0.5rem 1.5rem;
        text-align: center;
        border-radius: 6px !important;
    }

    /* Hamburger animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .mobile-menu-toggle span {
        transition: all 0.3s ease;
    }

    /* Make navbar relative so menu positions correctly */
    .nav-wrapper {
        position: relative;
    }
}

/* Fix navigation active state issue */
.nav-menu a.active {
    color: var(--primary-blue) !important;
    background: transparent !important;
}

.btn-primary-nav.active {
    background: var(--primary-blue) !important;
    color: white !important;
}

/* Remove yellow highlighting from results lists */
.results-list.highlight-results li {
    background: transparent !important;
    padding-left: 1.5rem;
}

/* Fix compliance badge color */
.therapy-badge.compliance {
    background: #059669;
}

/* Better spacing for case content */
.case-content-section h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
}

.case-content-section h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.case-content-section h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.case-content-section p {
    margin-bottom: 1rem;
}

.case-content-section ul {
    margin-bottom: 1.5rem;
}

.case-content-section li {
    margin-bottom: 0.5rem;
}

/* Better button styling */
.btn.btn-primary {
    background: white;
    color: var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn.btn-primary:hover {
    background: var(--primary-blue);
    color: white;
}

/* Footer styling consistency */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    .case-content-section h2 {
        font-size: 1.5rem;
    }
    
    .case-detail-header h1 {
        font-size: 1.8rem;
    }
}


/* ========================================
   BLOG ARTICLE STYLES
   Professional, readable article layout
   ======================================== */

/* Article Header / Hero */
.blog-article .article-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a5fad 60%, #3b82f6 100%);
    color: white;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.blog-article .article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.blog-article .article-header .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.blog-article .article-header .breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.blog-article .article-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.blog-article .article-header .breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.blog-article .article-header .breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

/* Category Badge */
.article-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 1.25rem;
}

/* Article Title */
.blog-article .article-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

/* Article Meta (author, date, read time) */
.article-meta-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.article-meta-header .author {
    font-weight: 600;
    color: white;
}

.article-meta-header .date,
.article-meta-header .read-time {
    position: relative;
    padding-left: 1.5rem;
}

.article-meta-header .date::before,
.article-meta-header .read-time::before {
    content: '·';
    position: absolute;
    left: 0;
    font-size: 1.4rem;
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}


/* ----------------------------------------
   Article Content Body
   ---------------------------------------- */

.article-content {
    padding: 4rem 2rem;
    background: var(--white);
}

.article-content .container-article {
    max-width: 760px;
    margin: 0 auto;
}

/* Intro Paragraph */
.article-intro {
    font-size: 1.2rem;
    line-height: 1.85;
    color: var(--text-dark);
    font-weight: 400;
    border-left: 3px solid var(--primary-blue);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Content Headings */
.article-content h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-blue);
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.35rem;
    color: var(--primary-blue);
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content h4 {
    font-size: 1.1rem;
    color: var(--secondary-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Content Paragraphs */
.article-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
    margin-bottom: 1.25rem;
}

.article-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Content Lists */
.article-content ol,
.article-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

.article-content ol li {
    padding-left: 0.5rem;
}

/* Blockquotes in articles */
.article-content blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-gray);
}


/* ----------------------------------------
   Article CTA Box
   ---------------------------------------- */

.article-cta {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border: 1px solid rgba(0, 102, 204, 0.15);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
    text-align: center;
}

.article-cta h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
}

.article-cta p {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.article-cta .btn.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.article-cta .btn.btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
}


/* ----------------------------------------
   Article Footer (Author Bio & Related)
   ---------------------------------------- */

.article-footer {
    background: var(--bg-light);
    padding: 4rem 2rem;
}

.article-footer .container {
    max-width: 760px;
    margin: 0 auto;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 3rem;
    border: 1px solid var(--border-gray);
}

.author-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.author-info h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.author-info p {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0;
}

/* Related Articles */
.related-articles {
    margin-bottom: 2.5rem;
}

.related-articles h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.related-articles .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.related-articles .related-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.related-articles .related-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
    transform: translateY(-3px);
}

.related-articles .related-card h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.related-category {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Back to Insights */
.back-to-insights {
    text-align: center;
    padding-top: 1rem;
}

.back-to-insights .btn.btn-secondary {
    border-radius: 50px;
    padding: 0.75rem 2rem;
}


/* ----------------------------------------
   Blog Article Responsive
   ---------------------------------------- */

@media (max-width: 768px) {
    .blog-article .article-header {
        padding: 3.5rem 1.5rem 3rem;
    }

    .blog-article .article-header h1 {
        font-size: 1.85rem;
    }

    .article-meta-header {
        gap: 0.75rem;
        font-size: 0.875rem;
    }

    .article-content {
        padding: 2.5rem 1.25rem;
    }

    .article-intro {
        font-size: 1.1rem;
    }

    .article-content h2 {
        font-size: 1.45rem;
        margin-top: 2.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .article-footer {
        padding: 3rem 1.25rem;
    }

    .article-cta {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-article .article-header h1 {
        font-size: 1.6rem;
    }

    .article-meta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .article-meta-header .date::before,
    .article-meta-header .read-time::before {
        display: none;
    }

    .article-meta-header .date,
    .article-meta-header .read-time {
        padding-left: 0;
    }
}


/* ========================================
   LEGAL PAGES (Terms, Privacy, Cookies)
   Clean, readable legal content layout
   ======================================== */

.legal-content {
    padding: 4rem 2rem;
    background: var(--white);
}

.legal-content .container-article {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-blue);
    font-weight: 700;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
    margin-bottom: 1.25rem;
}

.legal-content ul,
.legal-content ol {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.legal-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-content a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 204, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.legal-content a:hover {
    text-decoration-color: var(--primary-blue);
}

/* Contact Info Box on legal pages */
.contact-info-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-blue);
    border-radius: 0 8px 8px 0;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0 2rem;
}

.contact-info-box p {
    margin: 0;
    line-height: 1.8;
}

.contact-info-box a {
    color: var(--primary-blue);
    font-weight: 500;
}

/* Legal page responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: 2.5rem 1.25rem;
    }

    .legal-content h2 {
        font-size: 1.4rem;
        margin-top: 2.5rem;
    }

    .legal-content h3 {
        font-size: 1.15rem;
    }

    .legal-content p,
    .legal-content li {
        font-size: 1rem;
    }
}
