/* ============================================
   BASE STYLES (Dekstop & Global)
   ============================================ */
.custom-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
}

/* ============================================
   PAKSA TAMPILAN MENU MOBILE (SIDR)
   Karena WP Fastest Cache sering menghapus CSS aslinya
   ============================================ */
#sidr {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 999999 !important;
    width: 280px;
    overflow-x: none;
    overflow-y: auto;
    background-color: #333333 !important;
    color: #ffffff !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    padding-top: 60px !important;
}
#sidr.sidr-open {
    display: block !important;
}
#sidr .primary-menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
#sidr .primary-menu ul li {
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    margin: 0 !important;
    padding: 0 !important;
}
#sidr .primary-menu ul li a {
    color: #ffffff !important;
    background: transparent !important;
    display: block !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    font-weight: normal !important;
    text-decoration: none !important;
    border: none !important;
}
#sidr .primary-menu ul li a:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
}
#sidr .sub-menu {
    background-color: #222222 !important;
}
#sidr .sub-menu li a {
    padding-left: 40px !important;
    font-size: 14px !important;
}
a.sidr-class-sidr-button-close {
    position: absolute !important;
    right: 15px !important;
    top: 15px !important;
    height: 30px !important;
    width: 30px !important;
    line-height: 30px !important;
    background-color: #002868 !important;
    color: #ffffff !important;
    z-index: 1000000 !important;
    font-size: 20px !important;
    text-align: center !important;
}

/* ============================================
   TABLET (601px - 768px)
   ============================================ */
@media only screen and (min-width: 601px) and (max-width: 768px) {
    body .custom-logo {
        width: 80px;
    }
}

/* ============================================
   MOBILE (Max 600px)
   ============================================ */
@media only screen and (max-width: 600px) {
    
    /* --- Logo --- */
    body .custom-logo {
        width: 50px;
    }
    
    /* --- Header --- */
    body .site-header,
    body .main-header,
    body #masthead {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    body .site-branding,
    body .custom-logo-link {
        display: flex;
        align-items: center;
    }
    
    /* --- JUDUL WEBSITE --- */
    body .site-branding .site-title,
    body .site-branding .site-title a {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* --- Subscribe Button --- */
    body .subscribe-button,
    body button.subscribe,
    body a[href*="subscribe"] {
        font-size: 0.8rem;
        padding: 10px 16px;
    }
    
    /* --- Section Headings --- */
    body .section-title,
    body .widget-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    /* --- Ticker / Marquee --- */
    body .exclusive-slides a,
    body .aft-flash-slide a {
        font-size: 0.85rem;
        line-height: 1.4;
        font-weight: 600;
    }
    body .exclusive-slides .circle-marq img,
    body .aft-flash-slide .circle-marq img {
        width: 35px;
        height: 35px;
    }
    
    /* --- Slider Overlay --- */
    body .grid-design-texts-over-image .read-details {
        padding: 10px !important;
        max-height: 65% !important;
        overflow: hidden !important;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%) !important;
    }
    
    body .grid-design-texts-over-image .read-title h3,
    body .grid-design-texts-over-image .read-title h3 a {
        font-size: clamp(0.65rem, 2.8vw, 0.78rem) !important;
        line-height: 1.25 !important;
        margin: 0 0 4px 0 !important;
        padding: 0 !important;
        color: #ffffff !important;
        text-transform: capitalize !important;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8) !important;
    }
    
    /* --- Meta Info Slider --- */
    body .grid-design-texts-over-image .entry-meta,
    body .grid-design-texts-over-image .post-item-metadata {
        font-size: 0.65rem !important;
        text-transform: capitalize !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* --- Kategori Slider --- */
    body .grid-design-texts-over-image .read-categories {
        margin-bottom: 4px !important;
    }
    body .grid-design-texts-over-image .read-categories a {
        font-size: 0.75rem !important;
        padding: 2px 6px !important;
        margin: 0 !important;
    }
    
    /* --- Daftar Berita --- */
    body .aft-trending-posts .read-title h3,
    body .aft-trending-posts .read-title h3 a,
    body .af-sec-post .read-title h3,
    body .af-sec-post .read-title h3 a {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    /* --- Meta Info Umum --- */
    body .entry-meta,
    body .post-meta,
    body .byline,
    body .posted-on {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* --- Excerpt --- */
    body .entry-summary,
    body .entry-excerpt,
    body .read-descprition .post-description {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    /* --- Tabs --- */
    body .tabs-nav a,
    body .tab-button {
        font-size: 0.8rem;
    }
    
    /* --- Base Font --- */
    body {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    body .site-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ============================================
   MOBILE SANGAT KECIL (Max 380px)
   ============================================ */
@media only screen and (max-width: 380px) {
    body .custom-logo {
        width: 40px;
    }
    
    body .site-branding .site-title,
    body .site-branding .site-title a {
        font-size: 1rem !important;
    }
    
    body .grid-design-texts-over-image .read-title h3,
    body .grid-design-texts-over-image .read-title h3 a {
        font-size: 0.8rem !important;
    }
    
    #sidr {
        width: 100% !important;
    }
}

/* ============================================
   SINGLE POST: KOMENTAR & NAVIGASI
   ============================================ */
.sptn-comments-wrapper { background-color: #ffffff; margin-top: 0; margin-bottom: 0; padding-top: 10px; }
.sptn-comments-wrapper .comments-area { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; margin-bottom: 0; padding: 0 20px; }
.sptn-comments-wrapper.sptn-comments-open .comments-area { padding: 20px; margin-bottom: 20px; }
.navigation.post-navigation { background-color: #ffffff; -webkit-box-shadow: 0 2px 2px 0 rgb(0 0 0 / 8%); box-shadow: 0 2px 2px 0 rgb(0 0 0 / 8%); padding: 20px; margin-bottom: 20px; }
.sptn-comments-trigger p { margin: 0 0 5px 0; }
.sptn-comments-toggle-btn { background: none; border: none; padding: 0; margin: 0; font-size: inherit; font-family: inherit; color: #333 !important; cursor: pointer; display: inline; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; font-weight: 600; text-transform: none; }
.sptn-comments-toggle-btn:hover, .sptn-comments-toggle-btn:focus { color: #000 !important; text-decoration-style: solid; }
.sptn-comments-container { display: none; margin-top: 20px; }
.sptn-comments-container.sptn-comments-open { display: block; animation: sptnFadeIn 0.3s ease; }
@keyframes sptnFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================
   SINGLE POST: LEBAR KONTEN
   ============================================ */
body.single .entry-content-wrap {
    padding: 20px;
}
body.single .entry-content-wrap .color-pad {
    padding: 0;
}

/* ============================================
   SINGLE POST: VIDEO EMBED RESPONSIF
   ============================================ */
.sptn-single-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
    margin-bottom: 15px;
}
.sptn-single-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

/* Fix Bug 2: Teks menu mobile putih di atas background putih */
@media screen and (max-width: 992px) {
    body .main-navigation .menu li a {
        color: #333333 !important;
    }
}
