/* ======================================================== */
/* 1. IMPORT FONT (Plex Sans, Newsreader, Plex Mono)        */
/* ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,600&display=swap');

body { 
    font-family: 'IBM Plex Sans', sans-serif; 
    background-color: #F3F6F0; 
    color: #202522; 
    transition: font-size 0.2s ease;
}

/* ======================================================== */
/* 2. ACCESSIBILITY & FOCUS OUTLINES                        */
/* ======================================================== */
:focus-visible {
    outline: 2px solid #B7F531;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ======================================================== */
/* 3. STRUCTURAL EDITORIAL BORDERS                          */
/* ======================================================== */
.editorial-rule {
    border-top: 2px solid #142D24;
}

/* ======================================================== */
/* 4. DROPDOWN ANIMATION                                    */
/* ======================================================== */
.dropdown-menu { display: none; }
.dropdown-wrapper:hover .dropdown-menu,
.dropdown-wrapper:focus-within .dropdown-menu,
.dropdown-wrapper.is-open .dropdown-menu {
    display: block;
    animation: dropdownReveal 0.12s ease-out;
}

@keyframes dropdownReveal {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ======================================================== */
/* 5. FLOATING ACTIONS (WHATSAPP & BACK-TO-TOP)             */
/* ======================================================== */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    height: 46px;
    padding: 0 18px;
    background-color: #142D24;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #B7F531;
    box-shadow: 4px 4px 0px #202522;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.wa-float:hover { 
    background-color: #214536;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #202522;
}
.wa-float i { color: #B7F531; }

.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 90;
    width: 46px;
    height: 46px;
    background-color: #142D24;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #B7F531;
    box-shadow: 4px 4px 0px #202522;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.back-to-top:hover { 
    background-color: #214536;
    transform: translate(2px, -2px);
    box-shadow: 6px 6px 0px #202522;
}
.back-to-top i { color: #B7F531; font-size: 1.1rem; }

/* ======================================================== */
/* 6. LOGO HANDLING                                         */
/* ======================================================== */
.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-logo-footer {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

/* ======================================================== */
/* 7. RICH TEXT FORMATTING (BERITA & HALAMAN DALAM)         */
/* ======================================================== */
.prose-news, .rich-text {
    color: #202522;
    font-size: 1.05rem; 
    line-height: 1.8;
}
.prose-news p, .rich-text p {
    margin-bottom: 1.5rem;
}
.prose-news ul, .rich-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #475569; /* slate-600 */
}
.prose-news ol, .rich-text ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #475569;
}
.prose-news li, .rich-text li {
    margin-bottom: 0.5rem;
}
.prose-news li > p, .rich-text li > p {
    margin-bottom: 0;
}

/* HEADING: Font disamakan IBM Plex Sans & Warna Primary 900 */
.prose-news h1, .prose-news h2, .prose-news h3, .prose-news h4, .prose-news h5, .prose-news h6,
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4, .rich-text h5, .rich-text h6 {
    color: #142D24 !important;
    font-family: 'IBM Plex Sans', sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.prose-news h1, .rich-text h1 { font-size: 2.25rem; line-height: 1.2; }
.prose-news h2, .rich-text h2 { font-size: 1.875rem; }
.prose-news h3, .rich-text h3 { font-size: 1.5rem; }

.prose-news strong, .prose-news b,
.rich-text strong, .rich-text b {
    color: #142D24;
    font-weight: 700;
}
.prose-news em, .prose-news i,
.rich-text em, .rich-text i {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-size: 1.1em;
}
.prose-news a, .rich-text a {
    color: #2d5a45; /* primary-500 */
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: color 0.2s ease;
}
.prose-news a:hover, .rich-text a:hover {
    color: #7ab010; /* accent-700 */
}
.prose-news blockquote, .rich-text blockquote {
    border-left: 4px solid #B7F531;
    background-color: #f8fafc;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #173023; /* primary-800 */
}
.prose-news img, .rich-text img {
    max-width: 100%;
    height: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #cbd5e1;
}