@media (max-width: 768px) {
    /* Header */
    .logo .tagline {
        display: none;
    }
    
    #menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--primary-dark);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        padding: 0.75rem 0;
        display: block;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Grids */
    .topic-grid,
    .tiktok-grid {
        grid-template-columns: 1fr;
    }
    
    /* Subscribe Form */
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        border-radius: 9999px;
        margin-bottom: 0.5rem;
    }
    
    .form-group button {
        border-radius: 9999px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Topic Page Enhanced Styles */

/* Main container width adjustment for readability */
.topic-page .container {
    max-width: 900px;
}

/* Topic header styling */
.topic-header {
    margin-bottom: 2rem;
}

.topic-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-color);
}

/* Navigation breadcrumbs */
.topic-navigation {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: translateX(-3px);
}

.back-link i {
    margin-right: 0.5rem;
}

/* Myth box styling */
.myth-box {
    background-color: var(--primary-light);
    border-left: 5px solid var(--primary-color);
    padding: 1.75rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.myth-box h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.myth-box p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Reality box styling */
.reality-box {
    background-color: var(--success-light);
    border-left: 5px solid var(--success-color);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.1);
}

.reality-box h2 {
    font-size: 1.5rem;
    color: var(--success-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.reality-box p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Ensure menu works on very small screens */
@media (max-width: 580px) {
    /* Adjust header elements for smaller screens */
    .logo h1 {
        font-size: 1.2rem;
    }
    
    /* Ensure menu takes full width */
    nav ul {
        width: 100%;
        padding: 0.5rem;
    }
    
    nav ul li a {
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    /* Improve toggle button positioning */
    #menu-toggle {
        padding: 0.5rem;
        font-size: 1.2rem;
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Make header more compact */
    header .container {
        padding: 0.5rem;
    }
    
    /* Fix dropdown menu positioning */
    nav ul.active {
        top: 100%;
        max-height: calc(100vh - 60px); /* Prevent overflow */
        overflow-y: auto; /* Allow scrolling if many menu items */
        z-index: 1000;
    }
}

/* Fix mobile menu display */
#menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.compact-header .container {
    padding: 0.5rem 1rem;
}

.small-screen-menu {
    width: 100vw;
    left: 0;
    right: 0;
    position: absolute;
    background-color: var(--primary-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

@media (max-width: 580px) {
    header {
        position: sticky;
        top: 0;
    }
    
    header .logo h1 {
        font-size: 1.2rem;
    }
    
    nav ul.active {
        display: flex;
        flex-direction: column;
        top: 100%;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem 0;
    }
    
    /* Ensure text is visible */
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Header and Menu Styles */
header {
    background-color: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.logo a {
    color: var(--white);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
    display: inline-block;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    padding-top:20px;
}

/* Floating donate button styles */
.floating-donate {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.floating-donate.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-donate:hover {
    transform: translateY(-5px);
}

.donate-button {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 18px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: background-color 0.2s;
}

.donate-button:hover {
    background-color: var(--primary-dark);
    color: white;
}

.donate-button i {
    margin-right: 8px;
}

/* Mobile menu fixes - add to mobile.css */

/* Hide the toggle button on desktop */
@media (min-width: 769px) {
    #menu-toggle {
        display: none !important;
    }
}

/* Show toggle and hide menu on mobile */
@media (max-width: 768px) {
    #menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.25rem;
        cursor: pointer;
        position: relative;
        z-index: 101;
        padding-top: 20px;
    }
    
    nav ul {
        display: none;
    }
    
    nav ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        z-index: 100;
    }
}