/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {

    /* PROGRAM DETAIL PAGE MOBILE */
    .program-content-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .program-sidebar-card {
        position: static !important;
        margin-top: 10px;
    }

    .program-description-card,
    .program-sidebar-card {
        padding: 20px !important;
    }

    .container {
        padding: 0 15px !important;
    }


    /* HEADER MOBILE */
    .header-inner {
        position: relative;
        z-index: 2001;
    }

    .mobile-menu-btn {
        display: flex !important;
        background-color: transparent !important;
        border: none;
        color: #1e293b !important;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 8px;
        line-height: 1;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .mobile-menu-btn i {
        color: #1e293b !important;
    }

    /* Mobile Nav Container - FIXED POSITION */
    .main-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #1a202c;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        z-index: 2000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
    }

    /* Active State */
    .main-nav.mobile-active {
        display: flex !important;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 1rem;
        border: none;
        width: 100%;
        text-align: left;
    }

    /* Bold White on Hover/Active */
    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.05);
        color: #ffffff !important;
        font-weight: 700 !important;
        padding-left: 25px;
    }

    /* DROPDOWN IN MOBILE */
    .nav-item-dropdown {
        flex-direction: column;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        box-shadow: none;
        border: none;
        display: none;
        padding: 0;
    }

    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 20px 12px 40px;
        color: #cbd5e1;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* HERO SLIDER TWEAKS */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .headline-slider-wrapper {
        border-radius: 0;
        width: 100%;
        aspect-ratio: 16/9;
    }

    /* Reduced Title Size & Centered */
    .slider-title {
        font-size: 1.1rem !important;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    /* Spacing and Alignment */
    .slider-content {
        padding: 1rem 2.5rem;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .slider-content p {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0 auto 1.5rem auto;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-col {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .header-actions .btn {
        display: none;
    }

    .header-actions .btn {
        display: none;
    }

    .program-title {
        font-size: 2rem !important;
    }

    /* NOW PLAYING BAR MOBILE */
    .now-playing-bar {
        font-size: 12px !important;
        padding: 10px 0 !important;
    }

    .now-playing-bar strong {
        font-size: 13px !important;
        display: block;
        margin: 5px 0;
    }

    .now-playing-bar span {
        margin-left: 0 !important;
    }

    /* FOOTER MOBILE FIX */
    .main-footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        gap: 30px;
    }

    /* NEWS TICKER MOBILE OPTIMIZATION */
    .news-ticker-wrap {
        height: auto !important;
        min-height: 40px;
    }

    .ticker-label {
        font-size: 11px !important;
        padding: 0 10px !important;
        clip-path: none !important;
    }

    .ticker-content {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    .ticker-content marquee {
        /* If marquee is used, ensure it can be seen, otherwise might need multi-line or smaller text */
        width: 100%;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}