/* ==========================================================================
   1. CSS RESET & BASE (Single Source of Truth)
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', 'PT Sans', 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #3d3d3d;
    line-height: 1.6;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #8B0000; /* Dark red accent konsisten */
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   2. LAYOUT STRUCTURE (Desktop 1024px, Tablet, Mobile 360px)
   ========================================================================== */

.site-main {
    padding-top: 30px;
    padding-bottom: 60px;
    background: #ffffff;
}

.content-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 0 12px; /* Default padding desktop */
}

/* Kolom Kiri: Konten Utama (Fleksibel) */
.primary-content {
    flex: 1;
    min-width: 0; /* Mencegah flex item overflow */
}

/* Kolom Kanan: Sidebar (Fixed 300px, Sticky) */
.sidebar-content {
    width: 300px;
    flex-shrink: 0;
    align-self: flex-start;
    height: fit-content;
}

 

/* ==========================================================================
   3. RESPONSIVE: TABLET (Max 999px)
   ========================================================================== */
@media (max-width: 999px) {
    .content-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 0 24px;
    }

    .primary-content {
        width: 100%;
    }

    .sidebar-content {
        width: 100%;
        position: static; /* Hilangkan sticky di tablet */
        border-top: 2px dashed #dddddd;
        padding-top: 30px;
    }
}

/* ==========================================================================
   4. RESPONSIVE: MOBILE (Max 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .site-main {
        padding-top: 16px;
        padding-bottom: 80px; /* Space untuk fixed bottom menu mobile nanti */
    }

    .content-wrapper {
        padding: 0 16px; /* Aman untuk layar 360px (360 - 32 = 328px konten) */
        gap: 24px;
    }

    .sidebar-content {
        width: 100%;
        position: static;
    }
}

/* ==========================================================================
   5. RESPONSIVE: KECIL MOBILE (Max 375px, Optimal untuk 360px)
   ========================================================================== */
@media (max-width: 375px) {
    .content-wrapper {
        padding: 0 12px; /* Margin lebih tipis untuk layar sangat kecil */
    }
}