/* Base Styles */
body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    background: #f4f4f4; 
    color: #333;
    min-height: auto;
}

#search { 
    width: 100%; 
    padding: 10px; 
    margin-bottom: 20px; 
    font-size: 16px; 
}

.container { 
    max-width: 1200px; 
    margin: 60px auto 20px; 
    padding: 0 20px; 
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

/* === NAVBAR STYLES === */
.navbar {
    background: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #e60023;
}

.nav-center {
    flex: 1;
    max-width: 800px;
    margin: 0 24px;
}

#nav-search {
    width: 100%;
    padding: 12px 16px;
    border-radius: 24px;
    border: 2px solid #e1e1e1;
    background: #e1e1e1;
    font-size: 16px;
}

#nav-search:focus {
    background: white;
    border-color: #c8c8c8;
    outline: none;
}

.nav-right {
    display: flex;
    gap: 8px;
}

.nav-button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-button:hover {
    background: #e1e1e1;
}

.nav-button.secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.nav-button.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.nav-button.primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* === RESPONSIVE BANNER STYLES === */
.desktop-ad {
    display: block;
    width: 100%;
    height: auto;
    max-width: 980px;
}

.mobile-ad {
    display: none;
}

.google-auto-placed {
    width: 100% !important;
    text-align: center;
    margin: 20px 0;
}

/* === CATEGORIES SECTION OPTIMIZATION === */
.categories {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.categories h1 {
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.2em;
}

.categories p {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.6;
}

.categories h2 {
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-list li {
    display: inline-block;
}

.cat-list li a, .cat-list li button {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cat-list li a:hover, .cat-list li button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049, #4CAF50);
}

.cat-list li a.active, .cat-list li button.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.cat-list li a.active:hover, .cat-list li button.active:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-3px);
}

/* === STICKY CATEGORIES - DESKTOP ONLY === */
@media (min-width: 1024px) {
    .categories.sticky {
        position: fixed;
        top: 75.5px;
        left: 0;
        right: 0;
        background: rgba(248, 249, 250, 0.95);
        backdrop-filter: blur(10px);
        z-index: 999;
        margin: 0;
        padding: 15px 25px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-radius: 0;
        animation: slideDown 0.3s ease;
    }
    
    .categories.sticky h2 {
        display: none;
    }
    
    .categories.sticky h1,
    .categories.sticky p {
        display: none;
    }
    
    @keyframes slideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    body.categories-sticky {
        padding-top: 80px;
    }
}

/* === POPUP STYLES === */
#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

#popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 350px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

#ad-placeholder {
    margin: 10px 0;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    text-align: center;
    display: block;
}

#loading-ad {
    color: #666;
    margin: 10px 0;
    display: none;
}

#confirm-download {
    display: none;
    background: #2196F3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#confirm-download:hover {
    background: #F44336;
}

#close-button {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

#close-button:hover {
    background: #45a049;
}

#progress-bar {
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #4CAF50 0%, #ddd 0%);
    margin-top: 10px;
    transition: background 5s linear;
}

/* === MAIN CONTENT STYLES === */
.main-content {
    flex: 1;
    min-height: 0;
}

/* === INTRO SECTION - ENHANCED === */
.intro { 
    padding: 30px 25px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    animation: introSlideIn 0.8s ease-out;
    color: white;
    text-align: center;
}

.intro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: introFloating 6s ease-in-out infinite;
    pointer-events: none;
}

.intro h1 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.intro p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.intro .highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 15px;
    font-weight: 600;
    text-shadow: none;
}

.intro svg, .intro img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

/* Intro animations */
@keyframes introSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes introFloating {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    33% {
        transform: translate(-45%, -55%) rotate(120deg);
    }
    66% {
        transform: translate(-55%, -45%) rotate(240deg);
    }
}

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

.item { 
    border: 1px solid #ddd; 
    padding: 10px; 
    text-align: center; 
    background: #fff; 
    border-radius: 5px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    transition: transform 0.2s ease; 
    animation: fadeIn 0.5s;
}

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

.item img { 
    max-width: 80%; 
    height: auto; 
    transition: transform 0.3s ease; 
}

.item img:hover { 
    transform: scale(1.05); 
    cursor: pointer; 
}

.item button { 
    background: #2196F3; 
    color: white; 
    padding: 10px; 
    border: none; 
    cursor: pointer; 
    width: 100%; 
    border-radius: 5px; 
    transition: background 0.3s ease; 
}

.item button:hover { 
    background: #e64a19; 
}

.item button:disabled { 
    background: #ccc; 
    cursor: not-allowed; 
}

/* === GRID AD STYLES === */
.grid-ad-item {
    grid-column: span 1;
    background: linear-gradient(135deg, #f8f9fc 0%, #e9f4ff 100%);
    border: 2px dashed #2196F3;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
}

.grid-ad-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.grid-ad-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #1976d2;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
}

.ad-content h4 {
    color: #2196F3;
    font-size: 16px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.grid-ad-image {
    width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.grid-ad-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.ad-content p {
    color: #666;
    font-size: 14px;
    margin: 15px 0 0 0;
    line-height: 1.5;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* === LOADING & BUTTONS === */
#loading {
    text-align: center;
    color: #666;
    margin-top: 20px;
}

#load-more {
    display: none;
    background: #ff9800;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin: 20px auto;
    border-radius: 5px;
    transition: background 0.3s ease;
}

#load-more:hover {
    background: #e64a19;
}

/* === SEARCH STYLES === */
.search-container {
    position: relative;
    width: 100%;
}

.suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f0f0f0;
}

.suggestion-item mark {
    background: #ffe6e6;
    color: #e60023;
    font-weight: 500;
    padding: 0 2px;
    border-radius: 2px;
}

/* === MODAL STYLES === */
.onboarding-modal, .register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-width: 400px;
}

.modal-content button {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.modal-content button:hover {
    background: #45a049;
}

/* === REGISTER MODAL SPECIFIC === */
.register-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: modalSlide 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
}

.membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.plan {
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan:hover {
    border-color: #2196F3;
    transform: translateY(-5px);
}

.plan.selected {
    border-color: #2196F3;
    background: #f8f8f8;
}

.plan h3 {
    color: #333;
    margin-bottom: 15px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 20px;
}

.price span {
    font-size: 14px;
    color: #666;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan li {
    margin: 10px 0;
    color: #666;
}

.plan-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    background: #FF4081;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 12px;
}

#register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#register-form input {
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 16px;
}

.register-submit {
    background: #2196F3;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.register-submit:hover {
    background: #1976D2;
}

/* === FAQ & BENEFITS SECTIONS === */
.faq-section, .benefits-section {
    margin-top: 50px;
    padding: 40px;
    border-radius: 15px;
}

.faq-section {
    background: #f8f9fa;
}

.benefits-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
}

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

.benefit-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.benefit-item h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #fff;
}

.benefit-item p {
    line-height: 1.6;
    opacity: 0.9;
}

/* === FOOTER STYLES === */
.footer {
    background: #2c3e50;
    color: white;
    margin-top: 60px;
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 15px;
    color: #ecf0f1;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #34495e;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    color: #ecf0f1;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

.footer-bottom p {
    margin: 5px 0;
}

/* === UTILITY CLASSES === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.no-results, .loading-message, .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.error-message {
    color: #f44336;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.container > *:last-child {
    margin-bottom: 0 !important;
}

.main-content:last-child {
    margin-bottom: 0 !important;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

    @media (max-width: 768px) {
        .nav-center {
            margin: 0 12px;
        }
        
        .nav-button {
            padding: 8px 12px;
            font-size: 14px;
        }

        #nav-search {
            padding: 8px 12px;
        }
    }

    @media (max-width: 480px) {
        .nav-right {
            display: none;
        }
    }




        .category-select {
        width: 200px;
        padding: 10px;
        margin-bottom: 20px;
        font-size: 16px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background-color: white;
        margin-right: 10px;
    }
    
    @media (max-width: 600px) {
        .category-select {
            width: 100%;
            margin-right: 0;
            margin-bottom: 10px;
        }
    }
    .search-container {
        position: relative;
        width: 100%;
    }

    .suggestions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-top: 4px;
        max-height: 300px;
        overflow-y: auto;
        z-index: 1000;
    }

    .suggestion-item {
        padding: 12px 16px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .suggestion-item:hover {
        background: #f0f0f0;
    }

    .suggestion-item mark {
        background: #ffe6e6;
        color: #e60023;
        font-weight: 500;
        padding: 0 2px;
        border-radius: 2px;
    }

    @media (max-width: 768px) {
        .suggestions {
            max-height: 200px;
        }
    }
    

/* Registration Modal Styles */
.register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.register-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: modalSlide 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
}

.membership-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.plan {
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan:hover {
    border-color: #2196F3;
    transform: translateY(-5px);
}

.plan.selected {
    border-color: #2196F3;
    background: #f8f8f8;
}

.plan h3 {
    color: #333;
    margin-bottom: 15px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 20px;
}

.price span {
    font-size: 14px;
    color: #666;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan li {
    margin: 10px 0;
    color: #666;
}

.plan-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    background: #FF4081;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 12px;
}

#register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#register-form input {
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 16px;
}

.register-submit {
    background: #2196F3;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.register-submit:hover {
    background: #1976D2;
}

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

@media (max-width: 768px) {
    .register-content {
        padding: 20px;
    }
    
    .membership-plans {
        grid-template-columns: 1fr;
    }
}
.no-results, .loading-message, .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.error-message {
    color: #f44336;
}

.category-link.active {
    background-color: #2196F3;
    color: white;
    border-radius: 4px;
}

.category-link {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.category-link:hover {
    background-color: #f5f5f5;
}

/* FAQ Section */
        .faq-section {
            margin-top: 50px;
            padding: 40px;
            background: #f8f9fa;
            border-radius: 15px;
        }

        .faq-item {
            margin-bottom: 20px;
            padding: 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .faq-question {
            font-size: 1.1em;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .faq-answer {
            color: #666;
            line-height: 1.6;
        }

        /* Responsive design */
        @media (max-width: 768px) { 
            .container {
                margin: 10px;
                padding: 15px;
            }

            h1 {
                font-size: 2em;
            }

            .stats {
                flex-direction: column;
                gap: 15px;
            }
            
            #popup-content { 
                width: 90%; 
                margin: 20% auto;
            }

            .suggestions {
                max-height: 200px;
            }

            .categories-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            }

            .faq-section {
                padding: 20px;
            }
        }

        /* Benefits Section */
        .benefits-section {
            margin-top: 40px;
            padding: 40px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 15px;
            color: white;
        }

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

        .benefit-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 25px;
            border-radius: 10px;
            text-align: center;
            backdrop-filter: blur(10px);
        }

        .benefit-item h3 {
            font-size: 1.2em;
            margin-bottom: 15px;
            color: #fff;
        }

        .benefit-item p {
            line-height: 1.6;
            opacity: 0.9;
        }

        /* Accessibility improvements */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        /* Footer styles */
        .footer {
            background: #2c3e50;
            color: white;
            margin-top: 60px;
            padding: 40px 0 20px;
        }

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

        .footer-section h3 {
            margin-bottom: 15px;
            color: #ecf0f1;
        }

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

        .footer-section ul li {
            margin-bottom: 8px;
        }

        .footer-section a {
            color: #bdc3c7;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-section a:hover {
            color: #3498db;
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag {
            background: #34495e;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.8em;
            color: #ecf0f1;
        }

        .footer-bottom {
            border-top: 1px solid #34495e;
            padding-top: 20px;
            text-align: center;
            color: #bdc3c7;
        }

        .footer-bottom p {
            margin: 5px 0;
        }

        /* Utility classes to prevent excessive bottom spacing */
        .container > *:last-child {
            margin-bottom: 0 !important;
        }
        
        .main-content:last-child {
            margin-bottom: 0 !important;
        }
        /* Main grid styles */
        .main-content {
            flex: 1;
            min-height: 0;
        }

/* === CONSOLIDATED RESPONSIVE DESIGN === */

/* Mobile Styles - 768px and below */
@media (max-width: 768px) {
    /* Navbar responsive */
    .nav-center {
        margin: 0 12px;
    }
    
    .nav-button {
        padding: 8px 12px;
        font-size: 14px;
    }

    #nav-search {
        padding: 8px 12px;
    }
    
    /* Banner responsive */
    .desktop-ad {
        display: none;
    }
    
    .mobile-ad {
        display: block;
        width: 100%;
        height: auto;
        max-width: 336px;
    }
    
    .google-auto-placed {
        margin: 15px 0;
    }
    
    /* Container responsive */
    .container {
        margin: 10px;
        padding: 15px;
    }

    h1 {
        font-size: 2em;
    }
    
    /* Intro responsive */
    .intro {
        margin-bottom: 20px;
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .intro h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }
    
    .intro p {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    /* Categories mobile - keep normal, no sticky */
    .categories {
        position: relative !important;
        top: auto !important;
        background: #f8f9fa !important;
        margin: 20px 0 !important;
        padding: 15px !important;
        border-radius: 12px !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
    }
    
    .categories h1 {
        font-size: 1.4em;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .categories p {
        font-size: 0.9em;
        margin-bottom: 15px;
        text-align: center;
        color: #666;
    }
    
    .categories h2 {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    
    .cat-list {
        gap: 8px;
        justify-content: center;
    }
    
    .cat-list li a, .cat-list li button {
        padding: 10px 16px;
        font-size: 0.85em;
        border-radius: 20px;
        min-width: auto;
    }
    
    /* Ensure no sticky behavior on mobile */
    body.categories-sticky {
        padding-top: 0 !important;
    }
    
    /* Grid responsive */
    .grid { 
        grid-template-columns: 1fr; 
    }
    
    /* Popup responsive */
    #popup {
        padding: 10px;
    }
    
    #popup-content {
        padding: 20px;
        max-width: 95%;
        margin: 0 auto;
    }
    
    #popup-content h3 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    #popup-content p {
        font-size: 0.9em;
    }
    
    #ad-placeholder img {
        width: 100% !important;
        height: auto !important;
        max-width: 280px;
    }
    
    #confirm-download, #close-button {
        padding: 12px 20px;
        margin: 10px 5px;
        font-size: 0.9em;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        min-width: 100px;
    }
    
    #confirm-download {
        background: #e74c3c;
        color: white;
    }
    
    #close-button {
        background: #95a5a6;
        color: white;
    }
    
    /* Search responsive */
    .suggestions {
        max-height: 200px;
    }
    
    /* FAQ responsive */
    .faq-section, .benefits-section {
        padding: 20px;
    }
    
    /* Grid ads responsive */
    .grid-ad-item {
        grid-column: span 2;
        padding: 15px;
        min-height: 280px;
    }
    
    .grid-ad-image {
        width: 280px;
        height: 200px;
        object-fit: cover;
    }
    
    .ad-content h4 {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    /* Register modal responsive */
    .register-content {
        padding: 20px;
    }
    
    .membership-plans {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    /* Navbar ultra small */
    .nav-right {
        display: none;
    }
    
    /* Intro ultra compact */
    .intro {
        padding: 15px 10px;
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .intro h1 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }
    
    .intro p {
        font-size: 0.9em;
        margin-bottom: 12px;
    }
    
    /* Categories ultra compact */
    .categories {
        padding: 15px 10px;
    }
    

}
