/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #1e2b32;
    color: #e0e6ed;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Base Link Styling */
a {
    color: #bed730;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* SVG Hidden utility */
.svg-def-container, svg.hidden {
    display: none;
}

/* ==========================================
   2. MAIN CONTAINER & LAYOUT STRUCTURE
   ========================================== */
.document-article-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.theme-sidebar-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
}

@media screen and (min-width: 992px) {
    .theme-sidebar-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .theme-sidebar-layout__blocks {
        flex: 1;
        min-width: 0;
    }

    .theme-sidebar-layout__sidebar {
        width: 260px;
        flex-shrink: 0;
        position: sticky;
        top: 20px;
    }
}

/* ==========================================
   3. HEADER & HERO SECTION
   ========================================== */
header {
    padding: 40px 0 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1, header .font-size9 {
    font-family: 'Quintessential', 'Fondamento', cursive, Georgia;
    font-size: 3rem;
    color: #bed730 !important;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

header p, header .font-size5 {
    font-family: 'Junge', serif;
    font-size: 1.25rem;
    color: #ffffff !important;
    font-style: italic;
    opacity: 0.9;
}

/* ==========================================
   4. SIDEBAR & NAVIGATION
   ========================================== */
.navigation-pip {
    background: #253741;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.desktopLinks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desktopLinks .link a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    color: #e0e6ed !important;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.desktopLinks .link a:hover,
.desktopLinks .link a.navigation-link-active-page {
    background: #bed730;
    color: #1e2b32 !important;
    transform: translateX(4px);
}

/* Mobile Nav fallback */
.mobile-menu-trigger {
    display: none;
}

/* ==========================================
   5. MAIN CONTENT CARDS & GRIDS
   ========================================== */
.block {
    background: #253741;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Heading styling di dalam konten */
.rich-text-content p {
    margin-bottom: 16px;
}

.rich-text-content span[class*="font-fondamento"],
.rich-text-content .font-fondamento {
    font-family: 'Fondamento', cursive;
}

/* Sub-Grid Layout (Gambar + Teks Samping) */
.subGrid-pip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 30px 0;
    align-items: center;
}

@media screen and (min-width: 768px) {
    .subGrid-pip {
        grid-template-columns: 1fr 2fr;
    }
}

/* Image Container Fix */
.image-media__image-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.image-media__image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-media__image-container img:hover {
    transform: scale(1.03);
}

/* Contact & Map Grid */
.subGrid-pip:last-of-type {
    grid-template-columns: 1fr;
}

@media screen and (min-width: 768px) {
    .subGrid-pip:last-of-type {
        grid-template-columns: 1fr 1fr;
    }
}

/* Map Styling */
.MapPip-pip > div {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alert Boxes / Jam Buka Highlights */
.rich-text-content p u span[style*="color: #bed730"],
.rich-text-content p u span[data-color="#bed730"] {
    text-decoration: none;
    color: #bed730 !important;
    font-weight: bold;
    display: inline-block;
}

/* Highlight pesan khusus */
.rich-text-content span[style*="color: rgb(250, 184, 38)"],
.rich-text-content span[style*="color: #fab826"] {
    color: #ffce71 !important;
    background: rgba(255, 206, 113, 0.1);
    padding: 12px 16px;
    border-left: 4px solid #ffce71;
    border-radius: 4px;
    display: block;
    margin: 16px 0;
}

/* ==========================================
   6. FOOTER
   ========================================== */
footer {
    margin-top: auto;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 0.9rem;
}