:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #444444;
    --text-muted: #666666;
    --accent: #0066ff;
    --accent-hover: #0052d4;
    --success: #00c853;
    --border: #e0e4e8;
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 18px;
    --radius-sm: 14px;
    --transition: all 0.26s ease;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Inter', system-ui, sans-serif; 
    background: var(--bg-primary); 
    color: var(--text-primary); 
    line-height: 1.6; 
    font-size: 16px; 
}

/* Header & Navigation */
header { 
    background: var(--bg-card); 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    box-shadow: var(--shadow-sm); 
}

nav { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 16px 20px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 20px; 
}

.logo { 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--accent); 
    text-decoration: none; 
}

.nav-links { 
    display: flex; 
    gap: 32px; 
    flex-wrap: wrap; 
}

.nav-links a { 
    color: var(--text-secondary); 
    text-decoration: none; 
    font-weight: 500; 
    transition: var(--transition); 
}

.nav-links a:hover { 
    color: var(--accent); 
}

.search-bar { 
    display: flex; 
    align-items: center; 
    background: var(--bg-secondary); 
    border-radius: 30px; 
    padding: 10px 18px; 
    min-width: 320px; 
}

.search-bar input { 
    border: none; 
    background: transparent; 
    outline: none; 
    width: 100%; 
    color: var(--text-primary); 
    font-family: inherit;
    font-size: 1rem;
}

/* Main Container */
.container { 
    max-width: 1000px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

/* Thread Title */
.thread-title { 
    background: var(--bg-card); 
    border-radius: var(--radius); 
    padding: 32px; 
    margin-bottom: 32px; 
    box-shadow: var(--shadow-sm); 
    border: 1px solid var(--border); 
}

.thread-title h1 { 
    font-size: 2.1rem; 
    font-weight: 700; 
    margin-bottom: 12px; 
    line-height: 1.3; 
}

.meta { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    font-weight: 500; 
}

.meta span + span::before { 
    content: "•"; 
    margin: 0 10px; 
}

/* Posts */
.post { 
    background: var(--bg-card); 
    border-radius: var(--radius-sm); 
    margin-bottom: 24px; 
    overflow: hidden; 
    box-shadow: var(--shadow-sm); 
    border: 1px solid var(--border); 
    transition: var(--transition); 
}

.post:hover { 
    box-shadow: var(--shadow-lg); 
    transform: translateY(-2px); 
}

.post.op { 
    border-left: 5px solid var(--accent); 
}

.post.best-answer { 
    border-left: 5px solid var(--success); 
    position: relative; 
}

.post.best-answer .badge { 
    position: absolute; 
    top: 0; 
    right: 0; 
    background: var(--success); 
    color: white; 
    font-size: 0.8rem; 
    font-weight: 700; 
    padding: 6px 20px; 
    border-bottom-left-radius: 12px; 
}

.post-header { 
    padding: 20px 28px 0; 
    display: flex; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 12px; 
    margin-bottom: 16px; 
}

.username { 
    font-weight: 600; 
    font-size: 1.1rem; 
    color: var(--accent); 
}

.user-tag { 
    background: #e3f2fd; 
    color: var(--accent); 
    font-size: 0.75rem; 
    padding: 4px 10px; 
    border-radius: 20px; 
    text-transform: uppercase; 
}

.verified { 
    background: var(--success); 
    color: white; 
    padding: 4px 10px; 
    border-radius: 20px; 
}

.post-content { 
    padding: 0 28px 20px; 
    font-size: 1.05rem; 
}

.post-content p {
    margin-bottom: 16px;
}

.post-content img { 
    max-width: 100%; 
    border-radius: var(--radius-sm); 
    margin: 20px auto; 
    display: block; 
    box-shadow: var(--shadow-sm); 
}

.citations { 
    background: var(--bg-secondary); 
    padding: 16px 20px; 
    border-radius: var(--radius-sm); 
    margin: 24px 0; 
    border: 1px solid var(--border); 
}

.post-footer { 
    padding: 16px 28px; 
    background: var(--bg-secondary); 
    border-top: 1px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 12px; 
}

.helpful::before { 
    content: "👍 "; 
}

/* Reply Box */
.reply-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin: 50px 0;
    box-shadow: var(--shadow-sm);
}

.reply-box h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.reply-box textarea {
    width: 100%;
    min-height: 180px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.reply-box textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}

.reply-box button {
    margin-top: 16px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
}

.reply-box button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

#success-message {
    margin-top: 20px;
    padding: 20px;
    background: #e8f5e9;
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
    color: #005c00;
    font-weight: 600;
    display: none;
}

/* Thread Footer */
.thread-footer { 
    margin-top: 60px; 
    text-align: center; 
    padding: 20px; 
    background: var(--bg-card); 
    border-radius: var(--radius); 
    border: 1px solid var(--border); 
}

/* Main Footer */
footer { 
    background: var(--bg-card); 
    border-top: 1px solid var(--border); 
    margin-top: 100px; 
    padding: 60px 20px 40px; 
}

.footer-content { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    text-align: center; 
}

.footer-links h4 { 
    margin-bottom: 16px; 
    color: var(--accent); 
}

.footer-links a { 
    display: block; 
    color: var(--text-muted); 
    text-decoration: none; 
    margin: 8px 0; 
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright { 
    text-align: center; 
    margin-top: 40px; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-bar { 
        min-width: auto; 
        width: 100%; 
    }
    
    nav { 
        flex-direction: column; 
        align-items: stretch;
    }
    
    .nav-links {
        justify-content: center;
        gap: 20px;
    }
    
    .thread-title h1 {
        font-size: 1.7rem;
    }
    
    .post-header,
    .post-content,
    .post-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .thread-title,
    .post,
    .reply-box {
        padding: 20px;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Accessibility Improvements */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== HOMEPAGE STYLES ===== */

/* Hero Section */
.hero-forum {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-forum h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-search {
    max-width: 700px;
    margin: 2rem auto;
    display: flex;
    gap: 0.5rem;
}

.hero-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.hero-search .search-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.hero-search .search-btn:hover {
    background: #ff5252;
}

/* Categories */
.categories-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.topic-count {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Topics Section */
.topics-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: border-color 0.3s;
}

.topic-card:hover {
    border-color: #0066cc;
}

.topic-category {
    display: inline-block;
    background: #e3f2fd;
    color: #0066cc;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.topic-card h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.topic-card h3 a {
    color: #333;
    text-decoration: none;
}

.topic-card h3 a:hover {
    color: #0066cc;
}

.topic-excerpt {
    color: #666;
    margin: 0.5rem 0 1rem;
    line-height: 1.5;
}

.topic-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.recent-activity, .forum-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.discussion-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.discussion-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.discussion-list li:last-child {
    border-bottom: none;
}

.discussion-title {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.3rem;
}

.discussion-title:hover {
    color: #0066cc;
}

.discussion-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

.info-card {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.info-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-card h4 {
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 2px solid #0066cc;
    color: #0066cc;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #0066cc;
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #ff5252;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid white;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: #0066cc;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-forum h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-search {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== NAVIGATION STYLES ===== */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

/* Main Navigation Links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
}

.nav-links > a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 0;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links > a:hover {
    color: #0066cc;
}

.nav-links > a.active {
    color: #0066cc;
    font-weight: 600;
}

.nav-links > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0066cc;
    border-radius: 2px 2px 0 0;
}

/* ===== DROPDOWN STYLES ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Content */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: -1rem;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e9ecef;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    gap: 0.8rem;
}

.dropdown-content a:hover {
    background: #f0f7ff;
    color: #0066cc;
    padding-left: 1.8rem;
}

.dropdown-content a::before {
    content: '•';
    color: #0066cc;
    font-size: 1.2rem;
}

/* Grid layout for lab values */
.dropdown-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-width: 500px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1100px) {
    .dropdown-content {
        grid-template-columns: 1fr;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        min-width: 100%;
        padding-left: 1rem;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .dropdown-toggle::after {
        content: '▶';
        margin-left: auto;
    }
    
    .dropdown.active .dropdown-toggle::after {
        content: '▼';
    }
}

/* ===== UPDATED HOMEPAGE STYLES (using your variables) ===== */

.hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
}

.stat .number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

/* Lab Values Grid - Updated to use your variables */
.lab-values-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.lab-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.lab-value-card {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: block;
}

.lab-value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.lab-value-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.lab-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.normal-range {
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--success);
}

/* Discussions Section */
.discussions-section {
    padding: 5rem 0;
}

.discussions-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.discussions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.discussion-card {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.discussion-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.discussion-category {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.discussion-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.discussion-card h3 a:hover {
    color: var(--accent);
}

.discussion-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.discussion-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Community Section */
.community-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.recent-activity {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.activity-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-topic {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.activity-topic:hover {
    color: var(--accent);
}

.activity-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 1rem;
}

.btn-more {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-more:hover {
    background: var(--accent);
    color: white;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius);
}

.cta-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-card p {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    flex: 1;
}

.btn-secondary:hover {
    background: white;
    color: var(--accent);
}

.info-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 1024px) {
    .community-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .lab-values-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .discussions-grid,
    .lab-values-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* ===== DATENSCHUTZ PAGE STYLES ===== */
.privacy-policy {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.privacy-policy h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-style: italic;
}

.privacy-section {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.privacy-section h2 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.privacy-section h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.privacy-section p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

.privacy-section ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.privacy-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.privacy-section li::marker {
    color: var(--accent);
}

.warning-box {
    background: #fff8e6;
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box h4 {
    color: #e65100;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.right-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.right-card h3 {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.right-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-box {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    margin: 3rem 0;
    text-align: center;
}

.contact-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-box p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-btn {
    display: inline-block;
    background: white;
    color: var(--accent);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid white;
}

.contact-btn:hover {
    background: transparent;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .privacy-policy {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .privacy-policy h1 {
        font-size: 2rem;
    }
    
    .privacy-section {
        padding: 1.5rem;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-box {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .privacy-section {
        padding: 1.2rem;
    }
    
    .privacy-section h2 {
        font-size: 1.5rem;
    }
}

/* ===== IMPRESSUM PAGE STYLES ===== */
.impressum {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.impressum h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-info, .disclaimer-section {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.legal-info h2, .disclaimer-section h2 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.contact-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
}

.contact-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-card p {
    line-height: 1.6;
    color: var(--text-secondary);
}

.disclaimer-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.disclaimer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.disclaimer-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-card p {
    line-height: 1.7;
    color: var(--text-secondary);
}

.eu-dispute {
    background: #f0f7ff;
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    border: 1px solid #d1e7ff;
}

.eu-dispute h2 {
    color: #0066cc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-links {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-top: 3rem;
}

.quick-links h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.legal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    color: var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.legal-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .impressum {
        padding: 0 1rem;
    }
    
    .legal-info, .disclaimer-section {
        padding: 1.5rem;
    }
    
    .links {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.contact-label {
    display: inline-block;
    min-width: 100px;
    color: var(--text-muted);
}

.address-note {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border-left: 4px solid #0066cc;
}

.address-note h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-notice {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid #bbdefb;
}

.legal-notice h4 {
    color: #1565c0;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.legal-reference {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===== CATEGORY PAGE STYLES ===== */
.category-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.category-header {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.category-header h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.category-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

.normal-range {
    background: var(--bg-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--accent);
}

.articles-list {
    margin: 3rem 0;
}

.article-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent);
}

.article-card h2 {
    margin: 0 0 0.8rem;
    font-size: 1.4rem;
}

.article-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
}

.article-card h2 a:hover {
    color: var(--accent);
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.no-articles {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}

.related-categories {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.tag:hover {
    background: var(--accent);
    color: white;
}

/* ===== CATEGORY PAGE STYLES ===== */
.category-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb > span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Category Header */
.category-header {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: center;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-header h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.category-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.normal-range-box {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border-left: 4px solid var(--success);
    margin-top: 1rem;
}

/* Article Count */
.article-count {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    border-left: 4px solid var(--accent);
}

/* Articles List */
.articles-list {
    margin: 3rem 0;
}

.article-card {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent);
}

.article-card h2 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.article-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
}

.article-card h2 a:hover {
    color: var(--accent);
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    margin: 3rem 0;
}

.empty-state {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Related Categories */
.related-categories {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-categories h3 {
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--accent);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.tag:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .category-page {
        padding: 0 1rem;
    }
    
    .category-header {
        padding: 2rem 1.5rem;
    }
    
    .category-header h1 {
        font-size: 1.8rem;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .article-meta {
        gap: 1rem;
    }
    
    .related-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-header {
        padding: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
}

.dispute-content {
    line-height: 1.6;
}

.dispute-notice {
    background: #fff8e6;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 3px solid #ff9800;
}

.dispute-notice p {
    margin: 0;
    font-size: 0.95rem;
}

/* Update these CSS rules */
.email-note {
    /* Remove this entire class if it exists */
}

.detail-item p {
    color: var(--accent);
    font-weight: 500;
}

/* Important Notice Styling */
.important-notice {
    background: #fff8e6;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    border-left: 4px solid #ff9800;
}

.important-notice h3 {
    color: #e65100;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.important-notice p {
    margin: 0;
    color: #5d4037;
    line-height: 1.6;
}

/* ===== FORUM INDEX PAGE STYLES ===== */
.forum-index {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Forum Header */
.forum-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.forum-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.forum-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.forum-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.forum-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lab Values Grid */
.forum-categories {
    margin: 4rem 0;
}

.forum-categories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.lab-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.lab-value-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.lab-value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.lab-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.lab-icon {
    font-size: 2rem;
}

.lab-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.lab-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.lab-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.normal-range {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.normal-range strong {
    color: var(--text-primary);
}

.count-badge {
    background: var(--accent);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--accent);
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.lab-value-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Forum Guidelines */
.forum-guidelines {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 3rem 0;
    border: 1px solid var(--border);
}

.forum-guidelines h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.guidelines-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.guideline {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.guideline h4 {
    margin: 0 0 0.8rem;
    font-size: 1.1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guideline p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Quick Links */
.quick-links {
    margin: 3rem 0;
    text-align: center;
}

.quick-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.link-card {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border);
    transition: var(--transition);
    min-width: 200px;
}

.link-card:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.link-icon {
    font-size: 1.2rem;
}

.link-text {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .forum-header {
        padding: 2rem 1.5rem;
    }
    
    .forum-header h1 {
        font-size: 2rem;
    }
    
    .forum-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .lab-values-grid {
        grid-template-columns: 1fr;
    }
    
    .guidelines-content {
        grid-template-columns: 1fr;
    }
    
    .links {
        flex-direction: column;
        align-items: center;
    }
    
    .link-card {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .forum-index {
        padding: 0 1rem;
    }
    
    .forum-header {
        padding: 1.5rem;
    }
    
    .lab-value-card {
        padding: 1.2rem;
    }
}
/* New Discussion Form Styles */
.new-discussion-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

.form-description {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.discussion-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-optional {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #4a90e2;
}

.form-optional h3 {
    margin-top: 0;
    color: #333;
}

.form-submit {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-terms {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #4a90e2;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #3a80d2;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    padding: 12px 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.form-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 6px;
    margin-top: 30px;
    font-size: 14px;
    color: #856404;
}

.form-tips {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tip {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tip h4 {
    margin-top: 0;
    color: #4a90e2;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-error ul {
    margin: 10px 0 0 20px;
}


/* Medical Quality Page */
.medical-quality {
    max-width: 900px;
    margin: 0 auto;
}

.page-intro {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

.quality-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.process-step {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background: #4a90e2;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.quality-standards {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.quality-standards ul {
    list-style: none;
    padding: 0;
}

.quality-standards li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.quality-standards li:before {
    content: "✅";
    margin-right: 10px;
    font-size: 1.2em;
}

.disclaimer-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

/* Doctors Page */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.doctor-profile {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.doctor-profile:hover {
    transform: translateY(-5px);
}

.doctor-image {
    position: relative;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-placeholder {
    font-size: 80px;
    color: #ccc;
}

.doctor-info {
    padding: 25px;
}

.doctor-specialty {
    color: #4a90e2;
    font-weight: 600;
    margin: 10px 0;
}

.doctor-qualifications {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.qualification {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

.doctor-bio {
    color: #555;
    line-height: 1.6;
    margin-top: 15px;
}

.advisory-board {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.et-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.et-point {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.et-point h3 {
    margin-top: 0;
    color: #4a90e2;
}

/* Disclaimer Page */
.disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.disclaimer-section:last-child {
    border-bottom: none;
}

.disclaimer-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.disclaimer-section ul {
    padding-left: 20px;
}

.disclaimer-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.acknowledgement-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
    text-align: center;
}

.disclaimer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px 5px;
}

.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background: #3a80d2;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .quality-process {
        grid-template-columns: 1fr;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .et-points {
        grid-template-columns: 1fr;
    }
    
    .disclaimer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
	
	/* Simple version */
.doctor-credentials {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
    margin-top: 2px;
}

/* Badges version */
.doctor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.doctor-badges .badge {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: #0369a1;
}

/* Full box version */
.doctor-credentials-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.doctor-avatar img {
    border-radius: 8px;
    border: 2px solid #3b82f6;
}
.doctor-info h4 {
    margin: 0 0 4px 0;
    color: #1e293b;
}
.doctor-title {
    color: #3b82f6;
    font-weight: 600;
    margin: 0 0 8px 0;
}
.doctor-experience {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
}
.doctor-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.doctor-certifications span {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #475569;
}
}

/* Doctor Profile Page Styles */
.doctor-profile {
    max-width: 1000px;
    margin: 0 auto;
}

/* Doctor Header */
.doctor-header {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}

@media (max-width: 768px) {
    .doctor-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

.doctor-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
}

.doctor-intro {
    flex-grow: 1;
}

.doctor-intro h1 {
    margin: 0 0 10px 0;
    color: #333;
}

.doctor-title {
    font-size: 1.2em;
    color: #4a90e2;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.doctor-expertise {
    color: #666;
    font-size: 1.1em;
    margin: 0 0 20px 0;
}

.doctor-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: #e9ecef;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
}

/* Doctor Content */
.doctor-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.doctor-section:last-child {
    border-bottom: none;
}

.doctor-section h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5em;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #4a90e2;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #4a90e2;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #4a90e2;
}

.timeline-year {
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.timeline-content h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1em;
}

.timeline-content p {
    margin: 5px 0;
    color: #666;
    line-height: 1.5;
}

/* Specializations Grid */
.specializations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.specialization {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.specialization:hover {
    transform: translateY(-5px);
}

.spec-icon {
    font-size: 2em;
    margin-bottom: 15px;
}

.specialization h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.specialization p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.95em;
}

/* Role Description */
.role-description {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.role-icon {
    flex-shrink: 0;
    font-size: 2em;
    color: #28a745;
}

.role-content {
    flex-grow: 1;
}

.role-content h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.responsibilities {
    margin-top: 20px;
}

.responsibilities h4 {
    margin: 0 0 10px 0;
    color: #555;
}

.responsibilities ul {
    padding-left: 20px;
    color: #666;
}

.responsibilities li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Publications */
.publications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.publication-category h3 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.publication-category ul {
    padding-left: 20px;
    color: #666;
}

.publication-category li {
    margin-bottom: 10px;
    line-height: 1.5;
    position: relative;
}

/* Disclaimer Box */
.disclaimer-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 25px;
    border-radius: 8px;
    color: #856404;
}

.disclaimer-box h3 {
    color: #856404;
    margin-top: 0;
}

.disclaimer-box p {
    margin: 10px 0;
}

.disclaimer-box strong {
    color: #856404;
}

/* Expert Navigation */
.expert-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.expert-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.expert-link:hover {
    background: #f8f9fa;
    border-color: #4a90e2;
    transform: translateY(-2px);
}

.link-icon {
    font-size: 1.5em;
}

.link-text {
    font-weight: 500;
}

.doctor-avatar {
    flex-shrink: 0;
    width: 300px;  /* Fixed width for consistency */
}

.doctor-photo {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1; /* Ensures square image */
}

/* If image fails to load */
.doctor-photo.placeholder {
    display: none; /* Hide broken image */
}

/* Fallback placeholder (if image doesn't exist) */
.avatar-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.placeholder-icon {
    font-size: 80px;
    margin-bottom: 10px;
}

.placeholder-text {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .doctor-avatar {
        width: 200px;
        margin: 0 auto;
    }
    
    .doctor-photo {
        width: 200px;
        height: 200px;
    }
    
    .avatar-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .placeholder-icon {
        font-size: 60px;
    }
}
/* Female doctor specific styles */
.doctor-profile .doctor-placeholder[data-gender="female"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gender-badge.female {
    background: #f8bbd9;
    color: #880e4f;
}

/* Update the placeholder fallback for female doctor */
.avatar-placeholder.female {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
/* Clickable Doctor Cards */
.doctor-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.doctor-profile.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doctor-profile.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #4a90e2;
}

/* Profile link indicator */
.profile-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4a90e2;
    font-weight: 500;
    transition: color 0.3s;
}

.doctor-profile.clickable:hover .profile-link {
    color: #3a80d2;
}

.link-text {
    font-size: 14px;
}

.link-arrow {
    font-size: 16px;
    transition: transform 0.3s;
}

.doctor-profile.clickable:hover .link-arrow {
    transform: translateX(5px);
}

/* Doctor placeholders */
.doctor-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.doctor-image {
    position: relative;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.doctor-profile.clickable:hover .doctor-image img {
    transform: scale(1.05);
}

/* Quality Links Grid */
.quality-links {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.quality-links h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.quality-link {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 1px solid #eaeaea;
}

.quality-link:hover {
    border-color: #4a90e2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.link-icon {
    font-size: 24px;
    color: #4a90e2;
    flex-shrink: 0;
}

.link-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1em;
}

.link-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Hover effects for entire card */
.doctor-profile.clickable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.doctor-profile.clickable:hover::after {
    opacity: 1;
}

/* Accessibility - focus styles */
.doctor-card-link:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .doctor-profile.clickable {
        margin-bottom: 20px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-profile.clickable:hover {
        transform: translateY(-3px);
    }
}

/* Touch device improvements */
@media (hover: none) {
    .doctor-profile.clickable:hover {
        transform: none;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    
    .doctor-profile.clickable:active {
        transform: scale(0.98);
    }
}