/* ============================================================
   ONLINENOTESASSAM - MOBILE RESPONSIVE OPTIMIZATIONS
   ============================================================ */

/* GLOBAL RESPONSIVE DEFAULTS */
.navbar {
    transition: var(--transition);
}

.page-header {
    padding: 40px 5% !important;
}

.page-header h1 {
    font-size: 24px !important;
}

/* TABLET & MOBILE (Below 1024px) */
@media (max-width: 1024px) {
    .navbar {
        width: 95%;
    }
    
    .search-container {
        width: 35%;
    }
    
    .nav-links {
        gap: 15px;
    }

    .hero-slider {
        aspect-ratio: 2 / 1;
        min-height: 350px;
    }
}

/* MOBILE LANDSCAPE (Below 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .search-container {
        display: none; /* Hide main search on mobile, can be integrated into menu if needed */
    }

    /* Hero Section Mobile */
    .hero-slider {
        aspect-ratio: 16 / 9;
        min-height: 400px;
    }

    .slide::after {
        background: rgba(0, 0, 0, 0.5) !important; /* Unified dark overlay for mobile readability */
    }

    .slide-content, 
    .slide-content.content-right, 
    .slide-content.content-center {
        left: 50% !important;
        right: auto !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        text-align: center !important;
        width: 90%;
        max-width: 100%;
    }

    .slide-content h1 {
        font-size: 2rem !important;
        margin-bottom: 15px;
    }

    .slide-content p {
        font-size: 0.95rem !important;
        margin-bottom: 25px;
        max-width: 100% !important;
    }

    .hero-cta {
        justify-content: center !important;
        flex-direction: column;
        gap: 10px;
    }

    .btn-hero {
        width: 100%;
        padding: 12px 20px;
    }

    /* Filters Mobile */
    .filter-body {
        padding: 25px;
    }

    .filter-group {
        min-width: 100% !important;
    }

    /* Shortcuts Mobile */
    .shortcuts {
        padding: 50px 5%;
    }

    .shortcuts h2 {
        font-size: 28px;
    }

    .shortcut-container {
        grid-template-columns: 1fr;
    }

    .shortcut-card {
        padding: 15px 20px;
    }
}

/* SMALL MOBILE (Below 480px) */
@media (max-width: 480px) {
    .hero-slider {
        min-height: 450px;
    }

    .slide-content h1 {
        font-size: 1.75rem !important;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .books-grid {
        gap: 15px;
    }

    .book-card {
        min-width: 180px;
        flex: 0 0 180px;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
    }
}

/* JOBS & BOOKS SECTION RESPONSIVE */
@media (max-width: 900px) {
    .jobs-grid, .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 18px;
    }

    .jobs-title-box h2, .books-title-box h2 {
        font-size: 26px;
    }

    .job-alert-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 25px;
    }

    .job-alert-btns {
        width: 100%;
    }

    .btn-whatsapp, .btn-telegram {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .ad-slide-banner {
        height: 240px;
    }
}

@media (max-width: 600px) {
    .jobs-grid, .books-grid {
        grid-template-columns: 1fr;
    }

    .jobs-header-wrap, .books-header-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .jobs-tabs, .books-tabs {
        width: 100%;
    }

    .job-card, .book-card {
        padding: 18px;
    }

    .job-modal-content {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .modal-action-btns {
        flex-direction: column;
    }

    .ad-slide-banner {
        height: 180px;
    }

    .ad-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .ad-slider-arrow.prev { left: 10px; }
    .ad-slider-arrow.next { right: 10px; }
}



