/* ================================================================
   MAJALAH EKSIS — MOBILE RESPONSIVE OVERHAUL
   Comprehensive fix for all mobile/smartphone layouts
   ================================================================ */

/* ------ D-FIX: Mobile (Max 768px) — Override & Complete ------ */
@media (max-width: 768px) {

    /* NAVBAR — Compact */
    .navbar {
        height: 60px !important;
        padding: 0 0.75rem !important;
    }

    .nav-brand-new {
        height: 60px !important;
        padding: 0 1.5rem 0 1rem !important;
        margin-left: -0.75rem !important;
        border-radius: 0 0 30px 0 !important;
    }

    .nav-brand-new img {
        height: 36px !important;
    }

    .nav-actions {
        gap: 8px;
        width: auto !important;
        border-top: none !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .search-nav-container {
        width: auto !important;
        min-width: 0 !important;
        flex: 1;
        max-width: 160px !important;
    }

    .search-nav-container:focus-within,
    .search-nav-container.active {
        max-width: 200px !important;
    }

    .search-nav-input {
        width: 100% !important;
        min-width: 50px !important;
        font-size: 0.8rem !important;
    }

    .btn-search-nav-submit {
        padding: 5px 8px !important;
        font-size: 0.7rem !important;
    }

    .nav-user-info {
        display: none !important;
    }

    .nav-user-badge {
        padding: 4px !important;
        gap: 4px !important;
    }

    .nav-btn-text {
        display: none !important;
    }

    .btn-nav-primary {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
    }

    /* HERO — Responsive Height */
    .px-grid-hero-section {
        padding: 1.5rem 4% 2rem !important;
    }

    .px-grid-hero-wrapper {
        flex-direction: column !important;
        height: auto !important;
        gap: 1rem !important;
    }

    .px-hero-main {
        flex: none !important;
        height: 280px !important;
    }

    .px-hero-side-grid {
        grid-template-columns: 1fr 1fr !important;
        height: auto !important;
        gap: 0.75rem !important;
    }

    .px-hero-card {
        border-radius: 16px !important;
    }

    .px-hero-card-small {
        height: 160px !important;
    }

    .px-hero-main .px-hc-content {
        bottom: 0.75rem !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        padding: 0.75rem 1rem !important;
        border-radius: 14px !important;
    }

    .px-hero-main .px-hc-title {
        font-size: 1rem !important;
        -webkit-line-clamp: 2 !important;
    }

    .hero-main-card {
        height: 320px !important;
    }

    /* POST ROW — Stack Vertically */
    .post-row-body {
        padding: 1.25rem !important;
    }

    /* CATEGORY CARDS */
    .cat-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* PREMIUM CARD */
    .premium-card-img {
        height: 180px !important;
    }

    .premium-card-body {
        padding: 1.25rem !important;
    }

    /* DETAIL PAGE — Article Detail */
    .detail-column-main {
        padding: 2rem 1.25rem !important;
        border-radius: 18px !important;
    }

    .detail-hero .breadcrumbs {
        font-size: 0.65rem !important;
        padding: 6px 14px !important;
        letter-spacing: 1px !important;
    }

    .detail-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .detail-content p {
        margin-bottom: 1.5rem;
    }

    .detail-featured-img {
        border-radius: 14px;
        margin-bottom: 1.5rem;
    }

    /* GILDED BENTO GRID — Contact, Survey */
    .gilded-bento-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .gilded-sticky-col {
        position: relative !important;
        top: 0 !important;
    }

    .survey-row-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .gilded-timeline {
        padding-left: 1.5rem;
    }

    .gilded-step::before {
        left: -2rem;
        width: 16px;
        height: 16px;
    }

    /* SECTION HEADING */
    .section-heading-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-h2 {
        font-size: 1.6rem;
    }

    /* BANNER CTA */
    .banner-cta::after {
        font-size: 8rem;
    }

    /* SINGLE HERO CARD */
    .px-single-hero-card {
        height: 55vh !important;
        min-height: 350px !important;
    }

    .px-shc-content {
        padding: 2rem 1.5rem !important;
        gap: 1rem !important;
    }

    .px-shc-title {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
    }

    .px-shc-meta-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .px-shc-dot {
        display: none !important;
    }

    /* CONTAINER PADDING */
    .container-eksis {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

    /* FOOTER CLEARANCE */
    .footer-hybrid,
    .footer-tiered,
    .footer {
        padding-bottom: 120px !important;
    }

    .footer-grid-hybrid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .footer-brand-side h2 {
        font-size: 1.5rem !important;
    }

    /* INTERACTION & SHARING */
    .interaction-bar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .share-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    /* TRENDING */
    .trending-grid {
        grid-template-columns: 1fr !important;
    }

    /* FEATURED CATEGORY CARD */
    .featured-cat-img {
        height: 200px !important;
    }

    .featured-cat-body {
        padding: 2rem 1.5rem !important;
    }

    .featured-cat-title {
        font-size: 1.5rem !important;
    }

    /* PREMIUM INPUT - Contact/Survey */
    .premium-input-style {
        padding: 1rem !important;
        border-radius: 12px !important;
        font-size: 0.9rem !important;
    }

    /* QUOTE SECTION */
    .quote-glass-container {
        padding: 2rem 1.5rem !important;
    }

    .quote-text {
        font-size: 1.15rem !important;
    }

    /* BLOCKQUOTE inside detail */
    .detail-body blockquote {
        padding: 1.75rem 1.5rem !important;
        font-size: 1.15rem !important;
        margin: 2.5rem 0 !important;
    }

    .detail-body blockquote::before {
        font-size: 4rem !important;
        top: -12px !important;
        left: 12px !important;
    }

    /* DROP CAP */
    .drop-cap::first-letter {
        font-size: 3.5rem !important;
    }

    /* MULTIMEDIA */
    .multimedia-wrapper {
        grid-template-columns: 1fr !important;
        padding: 0 4% !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ------ E-FIX: Small Smartphones (Max 480px) ------ */
@media (max-width: 480px) {
    .navbar {
        height: 54px !important;
        padding: 0 0.4rem !important;
    }

    .nav-brand-new {
        height: 54px !important;
        padding: 0 1rem 0 0.6rem !important;
        margin-left: -0.4rem !important;
        border-radius: 0 0 20px 0 !important;
    }

    .nav-brand-new img {
        height: 30px !important;
    }

    .search-nav-container {
        max-width: 120px !important;
        padding: 3px 8px !important;
    }

    .px-hero-main {
        height: 220px !important;
    }

    .px-hero-side-grid {
        grid-template-columns: 1fr !important;
    }

    .px-hero-card-small {
        height: 140px !important;
    }

    .detail-hero {
        padding: 3rem 4% 2rem !important;
    }

    .detail-column-main {
        padding: 1.5rem 1rem !important;
    }

    .detail-body {
        padding: 1.25rem !important;
    }

    .banner-cta {
        padding: 2rem 1rem !important;
        border-radius: 16px !important;
    }

    .banner-cta h3 {
        font-size: 1.3rem !important;
    }

    .section-wrap {
        padding: 2rem 4% !important;
    }

    .gilded-bento-grid {
        gap: 1rem !important;
    }
}


/* ------ LOADING SPINNER (for form submit buttons) ------ */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ------ ARTIKEL PILIHAN SLIDER (Hot Strip) ------ */
.px-hot-swiper {
    width: 100%;
    overflow: hidden;
    padding: 5px 0 30px;
    margin-bottom: 0;
}

.px-hot-item {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.px-hot-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    width: 100%;
}

.px-hot-text h4 {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    color: var(--blue-900) !important;
    margin-top: 0.5rem !important;
}

.px-hot-img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 18px !important;
}

/* Custom Pagination for Hot Strip */
.px-hot-pagination {
    position: absolute !important;
    bottom: 0px !important;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.px-hot-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--blue-200);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.px-hot-pagination .swiper-pagination-bullet-active {
    width: 24px;
    background: var(--blue-600);
    opacity: 1;
    border-radius: 4px;
}

/* ------ THEATER NEWS (Warta & Kabar) MOBILE FIX ------ */
@media (max-width: 1024px) {
    .px-theater-layout {
        width: 100% !important;
        height: auto !important;
        flex-direction: column !important;
        border-radius: 20px !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .px-theater-main {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        background: white !important;
    }

    .px-theater-swiper,
    .px-theater-slide {
        width: 100% !important;
    }

    .px-theater-img-wrap {
        width: 100% !important;
        height: 280px !important;
        border-radius: 24px 24px 0 0 !important;
    }

    .px-theater-img-wrap img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .px-theater-nav {
        display: none !important;
    }

    .px-theater-content {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        padding: 1.5rem 1.5rem 3rem !important;
        height: auto !important;
        background: white !important;
        border-radius: 0 0 24px 24px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
    }

    .px-theater-pagination {
        bottom: 25px !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .px-theater-main {
        height: 420px !important;
    }
    .px-theater-img-wrap {
        height: 220px !important;
    }
    .px-theater-title {
        font-size: 1.2rem !important;
    }
}

/* Pagination Style for Theater */
.px-theater-pagination .swiper-pagination-bullet {
    background: var(--blue-200);
    opacity: 0.5;
}

.px-theater-pagination .swiper-pagination-bullet-active {
    background: var(--blue-600);
    opacity: 1;
}

.spin, .spin svg {
    animation: spin 1.2s linear infinite;
}

@media (max-width: 768px) {
    .px-hot-strip-wrapper {
        padding: 1rem 0 !important;
    }
    
    .px-hot-item {
        padding: 0 4% !important;
    }

    .px-hot-text h4 {
        font-size: 0.95rem !important;
    }
    .px-hot-img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .px-hot-pagination {
        bottom: -5px !important;
    }

    .px-cat-grid-phlox {
        grid-template-columns: 1fr !important;
    }

    .px-rubric-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}
