/* Modern Medical Laboratory Design - Jahwins Medical Lab */
/* Font: Inter (Professional, Clean) */

:root {
    /* Light Mode - Modern Medical Blue & Teal */
    --primary: #0066CC;
    --primary-dark: #0052A3;
    --primary-light: #E6F0FF;
    --secondary: #00B4D8;
    --secondary-light: #E0F7FF;
    --accent: #00B4D8;
    --success: #06A77D;
    --warning: #FFA500;
    --error: #E74C3C;
    
    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8FAFB;
    --gray-100: #F0F4F8;
    --gray-200: #E8EEF5;
    --gray-300: #D5DDE5;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #2E3847;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --black: #000000;
    
    /* Current Theme */
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-500);
    --border-color: var(--gray-200);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Dark Mode */
html[data-theme="dark"] {
    --bg-primary: #0F1419;
    --bg-secondary: #16212B;
    --bg-tertiary: #1E2A38;
    --text-primary: #F5F7FA;
    --text-secondary: #B4BAC4;
    --text-tertiary: #8A909D;
    --border-color: #2D3A48;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.logo i {
    font-size: 1.5rem;
}

.logo:hover {
    color: var(--secondary);
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px;
}

.theme-toggle:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

/* Animate to X when open */
.menu-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Desktop: show nav links, hide hamburger */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 70px;
    background: rgba(0, 0, 0, 0.45);
    z-index: 98;
    cursor: pointer;
}
.mobile-menu-overlay.active { display: block; }

/* Prevent body scroll when menu open */
body.menu-open { overflow: hidden; }

@media (max-width: 768px) {
    /* Show hamburger */
    .menu-toggle { display: flex; }

    /* Hide nav by default — slide in from right */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: -100%;
        width: min(280px, 80vw);
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        border-left: 1px solid var(--border-color);
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        z-index: 99;
        gap: 0;
        padding: 8px 0;
        overflow-y: auto;
        transition: right 0.3s ease;
    }

    /* Slide in when active */
    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child { border-bottom: none; }

    .nav-menu .nav-link {
        display: block;
        padding: 16px 24px;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--primary);
        background: var(--bg-secondary);
    }

    /* Hide the active underline on mobile */
    .nav-link.active::after { display: none; }
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.6), rgba(0, 180, 216, 0.6));
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 30px;
}

.carousel-btn.next {
    right: 30px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--white);
    width: 30px;
    border-radius: 6px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 5;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--secondary);
    color: var(--white);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 2px solid var(--secondary);
    cursor: pointer;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Search Symptom Section */
.search-symptom {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.search-symptom h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.symptom-search {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.symptom-search input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.symptom-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.symptom-search button {
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.symptom-search button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--bg-primary);
}

.services h2 {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Why Choose Us Section */
.why-choose {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

.why-choose h2 {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2rem;
    background-color: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Booking Section */
.booking-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

.booking-section h1 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.booking-form {
    background-color: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.required {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.service-type-options,
.payment-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.radio-label,
.payment-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.radio-label input,
.payment-label input {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.form-group.checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-weight: 500;
}

.form-group.checkbox input {
    width: auto;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.message {
    padding: 12px;
    margin-top: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Patient Portal */
.portal-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

.login-card {
    background-color: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
}

.login-card h1 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.login-form {
    text-align: left;
}

.patient-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.patient-header h1 {
    color: var(--text-primary);
    font-size: 1.8rem;
}

.btn-logout {
    padding: 10px 20px;
    background-color: var(--error);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: #C0392B;
    transform: translateY(-2px);
}

.test-history {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.test-history h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.results-table thead {
    background-color: var(--bg-secondary);
}

.results-table th,
.results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.results-table th {
    font-weight: 600;
    color: var(--text-primary);
}

.results-table tr:hover {
    background-color: var(--bg-secondary);
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-badge.completed {
    background-color: #DCFCE7;
    color: #166534;
}

.status-badge.processing {
    background-color: #DBEAFE;
    color: #0C4A6E;
}

.btn-small {
    padding: 6px 12px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.no-results {
    background-color: var(--bg-primary);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.no-results i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.blog-section h1 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.blog-filters {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 1.5rem auto;
    flex-wrap: wrap;
    justify-content: center;
}

.search-input,
.category-filter {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.search-input:focus,
.category-filter:focus {
    outline: none;
    border-color: var(--primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.blog-card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background-color: var(--bg-secondary);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.blog-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-meta i {
    margin-right: 4px;
}

.read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    transform: translateX(4px);
}

.load-more-container {
    text-align: center;
}

.btn-load-more {
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.whatsapp-widget a {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-widget a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section a {
    color: var(--secondary);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    /* nav-menu mobile handled above — do not redefine here */

    .hero { height: 400px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p  { font-size: 1rem; }

    .carousel-btn { width: 40px; height: 40px; font-size: 1rem; }
    .carousel-btn.prev { left: 15px; }
    .carousel-btn.next { right: 15px; }

    .symptom-search { flex-direction: column; }
    .symptom-search button { width: 100%; }

    .services-grid,
    .features-grid { grid-template-columns: 1fr; }

    .booking-form { padding: 1.5rem; }
    .footer-content { grid-template-columns: 1fr; }

    .whatsapp-widget { bottom: 20px; right: 20px; }
    .whatsapp-widget a { width: 50px; height: 50px; font-size: 1.5rem; }
}
    .hamburger {
        display: flex;
    }

    .hero {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-btn.prev {
        left: 15px;
    }

    .carousel-btn.next {
        right: 15px;
    }

    .symptom-search {
        flex-direction: column;
    }

    .symptom-search button {
        width: 100%;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-widget a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .navbar-container {
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        font-size: 1.1rem;
        gap: 8px;
    }

    .logo i {
        font-size: 1.2rem;
    }

    .hero {
        height: 300px;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .search-symptom {
        padding: 2rem 0;
    }

    .search-symptom h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .service-card,
    .feature {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .booking-section,
    .blog-section,
    .portal-section {
        padding: 2rem 0;
    }

    .booking-form {
        padding: 1.5rem;
        max-width: 100%;
    }

    .footer-section {
        margin-bottom: 1rem;
    }

    .results-table th,
    .results-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* Policy Pages */
.policy-section {
    padding: 60px 20px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 600px;
    margin-top: 70px;
}

.policy-section h1 {
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
}

.policy-section .last-updated {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.policy-section h2 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.policy-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.policy-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.policy-section ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.policy-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Blog Post Detail Page */
.blog-post-section {
    padding: 40px 20px 80px;
    background-color: var(--bg-primary);
    margin-top: 70px;
    min-height: 800px;
}

.post-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-category {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.post-date, .post-views {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content h2 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.post-cta {
    max-width: 800px;
    margin: 3rem auto;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.cta-box h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-subtext {
    font-size: 0.9rem;
    margin-top: 1rem;
}

.cta-subtext a {
    color: var(--white);
    text-decoration: underline;
}

.consultation-cta {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
    text-align: center;
}

.consultation-cta i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.post-share {
    max-width: 800px;
    margin: 3rem auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.related-posts {
    max-width: 1000px;
    margin: 3rem auto;
}

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

.related-card {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.related-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.read-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.back-to-blog {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.back-to-blog a {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Results Section */
.results-section {
    padding: 40px 20px 80px;
    background-color: var(--bg-primary);
    margin-top: 70px;
    min-height: 600px;
}

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

.results-header h1 {
    margin-bottom: 0.5rem;
}

.results-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.results-card {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.user-details h3 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.user-details p {
    color: var(--text-secondary);
}

.results-list {
    max-width: 800px;
    margin: 0 auto;
}

.results-list h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.result-item {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: var(--shadow-lg);
}

.result-info {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.result-icon {
    font-size: 2rem;
    color: var(--primary);
}

.result-details h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.result-date, .result-notes {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
}

.empty-state {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.close:hover {
    color: var(--primary);
}

/* Utility Classes */
.text-center { text-align: center; }
.mt { margin-top: 1rem; }
.mb { margin-bottom: 1rem; }
.transition { transition: all 0.3s ease; }

/* ─── Policy Pages (Privacy, Terms) ─── */
.policy-hero {
  background: linear-gradient(135deg, #0d1b2a, #1565C0);
  padding: 72px 24px 56px;
  text-align: center;
}
.policy-hero-icon {
  font-size: 52px;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-bottom: 16px;
}
.policy-hero h1 {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.policy-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
@media (max-width: 860px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { order: -1; }
}

.policy-toc {
  position: sticky;
  top: 90px;
  height: fit-content;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
}
html[data-theme="dark"] .policy-toc { background: #1a2535; border-color: #253448; }
.policy-toc h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.policy-toc h4 i { color: #1565C0; margin-right: 6px; }
.policy-toc ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.policy-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}
.policy-toc a:hover { color: #1565C0; }

.policy-body { max-width: 780px; }

.policy-section-block {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-color);
}
.policy-section-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.policy-section-block h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-primary);
}
.policy-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #1565C0;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.policy-section-block p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 12px;
}
.policy-section-block a { color: #1565C0; }

.policy-checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.policy-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.policy-checklist li i { color: #2e7d32; margin-top: 3px; flex-shrink: 0; }

.policy-list {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.policy-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 600px) { .policy-card-grid { grid-template-columns: 1fr; } }

.policy-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
}
html[data-theme="dark"] .policy-info-card { background: #1a2535; border-color: #253448; }
.policy-info-card i {
  font-size: 22px;
  color: #1565C0;
  margin-bottom: 10px;
  display: block;
}
.policy-info-card h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.policy-info-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.policy-highlight {
  display: flex;
  gap: 16px;
  background: var(--highlight-bg, #e3f2fd);
  border-left: 4px solid var(--highlight-color, #1565C0);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
}
html[data-theme="dark"] .policy-highlight { background: rgba(21,101,192,0.12); }
.policy-highlight i { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.policy-highlight p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--text-secondary); }

.policy-contact-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px 24px;
  margin-top: 12px;
}
html[data-theme="dark"] .policy-contact-box { background: #1a2535; border-color: #253448; }
.policy-contact-box p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14.5px;
}
.policy-contact-box i { color: #1565C0; width: 18px; }
.policy-contact-box a { color: #1565C0; }

/* ============================================================
   JAHWINS — PATCH: Hamburger menu, theme toggle, mobile TOC
   Paste this at the BOTTOM of assets/css/style.css
   ============================================================ */

/* ── Hamburger menu-toggle bars ── */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ── Mobile nav menu (slide in from top) ── */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        border-bottom: 2px solid var(--border-color);
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        z-index: 150;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        animation: slideDown 0.25s ease;
    }

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

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 14px 24px;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
        transition: background 0.2s, color 0.2s;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--primary);
        background: var(--bg-secondary);
    }

    .nav-menu .nav-link.active::after {
        display: none;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile overlay (dims page behind open menu) ── */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 140;
    top: 70px;
}
.mobile-menu-overlay.active {
    display: block;
}

/* ── Dark mode: ensure body & page backgrounds are themed ── */
html[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}
html[data-theme="dark"] .navbar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}
html[data-theme="dark"] .nav-menu {
    background-color: var(--bg-primary);
}
html[data-theme="dark"] section,
html[data-theme="dark"] .booking-section,
html[data-theme="dark"] .booking-form {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: var(--text-tertiary);
}
html[data-theme="dark"] .test-option-label:hover {
    background: var(--bg-tertiary);
}
html[data-theme="dark"] .footer,
html[data-theme="dark"] footer {
    background-color: #0a1520;
    color: var(--text-secondary);
}

/* ── Policy TOC: mobile dropdown ── */
@media (max-width: 768px) {
    .policy-toc {
        position: static !important;
        top: auto !important;
        border-radius: 10px;
        padding: 0;
        overflow: hidden;
    }

    .policy-toc-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        cursor: pointer;
        user-select: none;
        background: var(--bg-secondary);
    }

    .policy-toc-header h4 {
        margin: 0;
        font-size: 13px;
    }

    .policy-toc-toggle-icon {
        transition: transform 0.3s ease;
        font-size: 12px;
        color: var(--text-secondary);
    }

    .policy-toc.toc-open .policy-toc-toggle-icon {
        transform: rotate(180deg);
    }

    .policy-toc-body {
        display: none;
        padding: 12px 18px 16px;
        border-top: 1px solid var(--border-color);
    }

    .policy-toc.toc-open .policy-toc-body {
        display: block;
    }

    .policy-toc ol {
        margin-top: 4px;
    }
}

@media (min-width: 769px) {
    /* On desktop, hide the toggle icon and keep normal layout */
    .policy-toc-toggle-icon { display: none; }
    .policy-toc-body { display: block !important; }
    .policy-toc-header { cursor: default; pointer-events: none; }
}

/* ── Dark Mode completeness ── */
html[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}
html[data-theme="dark"] .navbar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}
html[data-theme="dark"] .nav-menu {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: var(--text-tertiary);
}

/* ── Policy TOC mobile dropdown ── */
@media (max-width: 768px) {
    .policy-toc {
        position: static !important;
        top: auto !important;
        padding: 0;
        overflow: hidden;
    }
    .policy-toc-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        cursor: pointer;
        user-select: none;
        background: var(--bg-secondary);
    }
    .policy-toc-header h4 { margin: 0; font-size: 13px; }
    .policy-toc-toggle-icon { transition: transform 0.3s; font-size: 12px; color: var(--text-secondary); }
    .policy-toc.toc-open .policy-toc-toggle-icon { transform: rotate(180deg); }
    .policy-toc-body { display: none; padding: 12px 18px 16px; border-top: 1px solid var(--border-color); }
    .policy-toc.toc-open .policy-toc-body { display: block; }
}
@media (min-width: 769px) {
    .policy-toc-toggle-icon { display: none; }
    .policy-toc-body { display: block !important; }
    .policy-toc-header { cursor: default; pointer-events: none; }
}