
/* Reset & Base Settings */
:root {
    --primary: #428CDC;
    --primary-dark: #3070b5;
    --secondary: #2A2D30;
    --accent: #FF9F17;
    --accent-hover: #e08a0e;
    --success: #59FF8A;
    --text-main: #2A2D30;
    --text-light: #505A66;
    --bg-body: #F5F7FA;
    --bg-white: #FFFFFF;
    --border: #E1E6EB;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(66, 140, 220, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img, svg {
    vertical-align: middle;
    max-width: 100%;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.25rem, 3vw, 1.8rem); margin-top: 2rem; }

/* Utility Classes from HTML */
.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.flx { display: flex; }
.jcsb { justify-content: space-between; }
.aic { align-items: center; }
.fxg { flex-grow: 1; }
.b10 { margin-bottom: 0.625rem; }
.b20 { margin-bottom: 1.25rem; }
.r10 { margin-right: 0.625rem; }
.r20 { margin-right: 1.25rem; }
.w500 { font-weight: 500; }
.f12 { font-size: 0.75rem; }

/* Radius & Heights */
.radius20 { border-radius: var(--radius-lg); }
.h30 { height: 30px; line-height: 30px; }

/* Colors & Backgrounds */
.fon-blu, .fon-blu2 {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-white);
}

.fon-orang {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-white);
}

/* Header Styles */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.head-top {
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons & Interactive Elements */
.btn, .download, .drop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:hover, .download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.btn svg, .download svg {
    margin-right: 0.5rem;
    fill: currentColor;
}

.download {
    background: rgba(66, 140, 220, 0.1);
    color: var(--primary);
    padding: 0 0.5rem 0 1rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: 0.25rem;
    background: var(--bg-white);
    transition: var(--transition);
}

.btn-icon:hover {
    transform: scale(1.1);
}

.drop {
    color: var(--bg-white);
    padding: 0 0.8rem;
}

.drop svg {
    margin-right: 0.4rem;
}

/* Header Bottom & Menu */
.head-bottom {
    margin-top: 1rem;
    align-items: center;
    gap: 2rem;
}

.logo {
    width: 150px;
    flex-shrink: 0;
}

.logo svg {
    height: auto;
    width: 100%;
}

.main-menu ul {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-menu a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-main);
    position: relative;
    padding-bottom: 4px;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.main-menu a:hover {
    color: var(--primary);
}

.main-menu a:hover::after {
    width: 100%;
}

/* Layout Grid */
.content-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* Sidebar Styling */
.col-left {
    position: sticky;
    top: 90px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* Custom Scrollbar */
.col-left::-webkit-scrollbar {
    width: 4px;
}
.col-left::-webkit-scrollbar-track {
    background: transparent;
}
.col-left::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.menu-category ul li {
    margin-bottom: 0.25rem;
}

.menu-category > ul > li > a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-main);
    background-color: transparent;
}

.menu-category > ul > li > a:hover {
    background-color: rgba(66, 140, 220, 0.08);
    color: var(--primary);
}

.menu-category svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    transition: var(--transition);
}

.menu-category a:hover svg path {
    fill: var(--primary);
}

/* Nested Menu */
.menu-category ul ul {
    padding-left: 1rem;
    margin-top: 0.25rem;
    border-left: 1px solid var(--border);
    margin-left: 1rem;
}

.menu-category ul ul a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.menu-category ul ul a:hover {
    color: var(--primary);
}

/* Content Area */
.content {
    min-width: 0; /* Prevents flex/grid overflow */
}

.box {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.refka {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.refka a {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(66, 140, 220, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(66, 140, 220, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(66, 140, 220, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(66, 140, 220, 0); }
}

/* Article Typography */
.entry-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
}

/* Navigation within Article */
.entry-content nav {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
}

.entry-content nav ol {
    counter-reset: item;
    padding-left: 0;
}

.entry-content nav ol li {
    display: block;
    margin-bottom: 0.8rem;
}

.entry-content nav ol li a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.entry-content nav ol li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    font-size: 0.95rem;
}

table tr {
    border-bottom: 1px solid var(--border);
}

table tr:last-child {
    border-bottom: none;
}

table tr:nth-child(even) {
    background-color: #fafbfc;
}

table td {
    padding: 1rem;
    vertical-align: top;
    color: var(--text-light);
}

table td:first-child {
    font-weight: 600;
    color: var(--text-main);
    width: 35%;
}

/* List Styles in Content */
.entry-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.entry-content ul li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.entry-content ul li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    left: -0.8rem;
    top: -0.4rem;
}

/* Footerish elements inside text */
h2[id] {
    padding-top: 100px; /* Offset for sticky header */
    margin-top: -80px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hide_992 {
        display: none !important;
    }
    
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .col-left {
        display: none; /* Often hidden on mobile or moved to drawer */
    }
    
    .head-top {
        justify-content: center;
    }

    .head-bottom {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .head-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .head-top > div {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn, .download {
        width: 100%;
        margin-right: 0;
    }

    .box {
        padding: 1.25rem;
    }

    table td {
        display: block;
        width: 100%;
    }
    
    table td:first-child {
        background-color: var(--bg-body);
        font-size: 0.85rem;
        padding-bottom: 0.25rem;
        color: var(--primary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}
