
/* =========================================
   1. Reset & Base Styles
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --color-primary: #0f2b4c;        /* Deep Navy */
    --color-primary-light: #1e4570;
    --color-accent: #2d73f5;         /* Bright Blue */
    --color-accent-hover: #1a5cce;
    --color-secondary: #ff5722;      /* Vibrant Orange */
    --color-secondary-hover: #e64a19;
    --color-success: #4caf50;
    --color-text-main: #1a202c;
    --color-text-muted: #718096;
    --color-bg-body: #f4f7fa;
    --color-bg-card: #ffffff;
    --color-border: #e2e8f0;
    --color-white: #ffffff;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --line-height-base: 1.6;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing & Sizes */
    --container-width: 1200px;
    --header-height: 4rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 15px rgba(45, 115, 245, 0.3);
}

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

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

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

ul, ol {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* =========================================
   2. Layout & Utilities (Matching HTML Classes)
   ========================================= */
.wrap {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.flx { display: flex; }
.aic { align-items: center; }
.jcsb { justify-content: space-between; }
.fxg { flex-grow: 1; }

/* Margins helpers based on HTML classes b10, b20 */
.b10 { margin-bottom: 0.625rem; }
.b20 { margin-bottom: 1.25rem; }
.r10 { margin-right: 0.625rem; }
.r20 { margin-right: 1.25rem; }

/* Font utilities */
.f12 { font-size: 0.75rem; }
.w500 { font-weight: 500; }
.center { text-align: center; }

/* =========================================
   3. Header Styles
   ========================================= */
header {
    background: var(--color-bg-card);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.head-top {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.head-bottom {
    padding: 1rem 0;
    align-items: center;
    gap: 2rem;
}

/* Download Section */
.download {
    background: rgba(45, 115, 245, 0.1);
    padding: 0 1rem;
    color: var(--color-accent);
    font-weight: 600;
    gap: 0.5rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--color-white);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Dropdowns & Options */
.drop {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
}

.drop svg path {
    fill: var(--color-primary);
    transition: fill var(--transition-fast);
}

.drop:hover {
    color: var(--color-accent);
}

.drop:hover svg path {
    fill: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
}

.radius20 { border-radius: 1.25rem; }
.h30 { height: 2.2rem; } /* Adjusted from px to rem approx */

.fon-orang {
    background: linear-gradient(135deg, #ff8a65, var(--color-secondary));
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
}

.fon-orang:hover {
    background: linear-gradient(135deg, var(--color-secondary), #d84315);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.4);
}

.fon-blu, .fon-blu2 {
    background: rgba(45, 115, 245, 0.1);
    color: var(--color-accent);
}

.fon-blu:hover, .fon-blu2:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.fon-blu2.btn {
    background: var(--color-white);
    border: 1px solid var(--color-accent);
}

.fon-blu2.btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Specific button overrides from HTML structure */
a.btn.fon-blu2.radius20.shadow-white {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: var(--color-white);
    border: none;
}
a.btn.fon-blu2.radius20.shadow-white:hover {
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.6);
}

/* Logo */
.logo a svg {
    height: 2.5rem;
    width: auto;
    fill: var(--color-primary);
}

/* Main Menu */
.main-menu ul {
    display: flex;
    gap: 1.5rem;
}

.main-menu a {
    font-weight: 600;
    color: var(--color-text-main);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

/* =========================================
   4. Sidebar (Aside) Styles
   ========================================= */
.content-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.col-left {
    display: block;
}

.menu-category {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.menu-category ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-category li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.menu-category li a svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform var(--transition-fast);
}

.menu-category li a:hover {
    background-color: var(--color-bg-body);
    color: var(--color-accent);
    transform: translateX(5px);
}

.menu-category li a:hover svg {
    transform: scale(1.1);
}

/* Nested lists in sidebar */
.menu-category ul ul {
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--color-border);
    margin-left: 1rem;
}

/* =========================================
   5. Content Styles
   ========================================= */
.content {
    min-width: 0; /* Prevents flex/grid overflow issues */
}

.box.text {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Typography in content */
h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--color-primary);
    margin: 2rem 0 1rem;
    font-weight: 700;
    position: relative;
    padding-left: 1rem;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 4px;
    background: var(--color-secondary);
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 1rem;
}

/* Navigation inside article */
nav ol {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    margin: 1.5rem 0;
}

nav ol li {
    margin-bottom: 0.5rem;
    list-style-type: decimal;
    color: var(--color-accent);
    font-weight: 600;
}

nav ol li a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--color-border);
}

nav ol li a:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* Refka (Call to Action) */
.refka {
    margin: 2rem 0;
    text-align: center;
}

.refka a {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-accent), #4facfe);
    color: white;
    padding: 1rem 3rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px -5px rgba(45, 115, 245, 0.4);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.refka a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(45, 115, 245, 0.6);
}

/* Table Styles */
.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(--color-white);
    font-size: 0.95rem;
}

table td, table th {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

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

table tr td:first-child {
    font-weight: 600;
    color: var(--color-primary);
    background: #f8fafc;
    width: 30%;
}

table tr:hover td {
    background-color: #f1f5f9;
}

/* Lists styling */
.entry-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.entry-content ul li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* =========================================
   6. Forms (Generic Styles - if needed)
   ========================================= */
input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #f9fafb;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(45, 115, 245, 0.1);
}

/* =========================================
   7. Responsive Design
   ========================================= */

/* Tablet & Mobile */
@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 a drawer */
    }

    .head-bottom {
        justify-content: space-between;
    }
    
    .logo a svg {
        height: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .head-top {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .head-top > div {
        width: 100%;
        justify-content: center;
    }

    .head-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .box.text {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table td {
        padding: 0.75rem;
    }
    
    .refka a {
        width: 100%;
        padding: 1rem;
    }
}
