
:root {
    /* Colors */
    --color-primary: #428CDC;
    --color-primary-dark: #2a6bb5;
    --color-secondary: #1183D3;
    --color-accent: #fb4d00;
    --color-accent-hover: #e04500;
    --color-success: #28a745;
    
    --text-main: #2A2D30;
    --text-secondary: #5F6469;
    --text-light: #ffffff;
    
    --bg-body: #F4F6F9;
    --bg-card: #FFFFFF;
    --bg-header: #FFFFFF;
    
    --border-color: #E6E8EB;
    
    /* Spacing & Sizes */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-sm: 0.25rem;
    --radius-md: 0.625rem; /* ~10px */
    --radius-lg: 1.25rem; /* ~20px */
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 15px rgba(66, 140, 220, 0.3);
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.5rem;
    --fs-2xl: clamp(1.5rem, 3vw, 2.25rem);
}

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

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

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

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

ul, ol {
    list-style: none;
}

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

/* Utilities */
.wrap {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.flx {
    display: flex;
    flex-wrap: wrap;
}

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

.radius20 { border-radius: var(--radius-lg); }
.radius10 { border-radius: var(--radius-md); }

.b10 { margin-bottom: 0.625rem; }
.b20 { margin-bottom: 1.25rem; }
.r10 { margin-right: 0.625rem; }
.r20 { margin-right: 1.25rem; }

.h30 { height: 1.875rem; line-height: 1.875rem; }
.w500 { font-weight: 500; }
.f12 { font-size: 0.75rem; }

/* Buttons & Gradients */
.fon-blu, .fon-blu2 {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    font-weight: 600;
    font-size: var(--fs-xs);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.fon-orang {
    background: linear-gradient(135deg, #ff8a00 0%, var(--color-accent) 100%);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover, .fon-blu:hover, .fon-orang:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn:active, .fon-blu:active, .fon-orang:active {
    transform: translateY(0);
}

.btn-icon svg {
    fill: currentColor;
    margin: 0 2px;
}

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

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

.download {
    background-color: rgba(66, 140, 220, 0.1);
    color: var(--color-primary);
    padding: 0 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.head-bottom {
    padding: 0.75rem 0;
    align-items: center;
}

.logo svg {
    height: 40px;
    width: auto;
}

/* Navigation Menu */
.main-menu ul {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
}

.main-menu a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: var(--fs-xs);
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

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

/* Sidebar */
.col-left {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

/* Custom Scrollbar for Sidebar */
.col-left::-webkit-scrollbar {
    width: 6px;
}
.col-left::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.col-left::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.col-left::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

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

.menu-category > ul > li {
    border-bottom: 1px solid var(--border-color);
}

.menu-category a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: var(--fs-sm);
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.menu-category a svg {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.menu-category a:hover {
    background-color: rgba(66, 140, 220, 0.05);
    color: var(--color-primary);
    padding-left: 1.5rem;
}

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

/* Nested Menu items */
.menu-category ul ul {
    background-color: #fafbfc;
}
.menu-category ul ul a {
    padding-left: 2.5rem;
    font-size: 0.85rem;
}

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

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

/* Article Typography */
.entry-content {
    font-size: var(--fs-base);
    color: var(--text-secondary);
}

h1.center {
    text-align: center;
    font-size: var(--fs-2xl);
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.refka {
    text-align: center;
    margin-bottom: 2rem;
}

.refka a {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(251, 77, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.refka a:hover {
    background-color: var(--color-accent-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(251, 77, 0, 0.6);
}

/* Table of Contents */
nav ol {
    background: #f8f9fa;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    margin-bottom: 2rem;
}

nav ol li {
    margin-bottom: 0.5rem;
}

nav ol li a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: transparent;
}

nav ol li a:hover {
    text-decoration-color: var(--color-primary);
}

/* Paragraphs & Headings */
.entry-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.entry-content h2 {
    font-size: var(--fs-xl);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
    position: relative;
    padding-left: 1rem;
}

.entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

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

.entry-content ul li {
    margin-bottom: 0.5rem;
}

/* 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-color: var(--bg-card);
}

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

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

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

table td {
    padding: 1rem;
    vertical-align: top;
    font-size: var(--fs-sm);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hide_992 {
        display: none !important;
    }
    
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .col-left {
        display: none; /* Often sidebars are hidden behind a hamburger on mobile, hiding based on HTML implies simpler mobile view */
    }
    
    .head-top {
        justify-content: center;
    }
    
    .head-bottom {
        justify-content: space-between;
    }
    
    .box.text {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .wrap {
        padding: 0 0.75rem;
    }

    .head-top .flx {
        justify-content: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .logo svg {
        height: 32px;
    }
    
    .reg, .enter {
        padding: 0 0.8rem;
        font-size: 0.7rem;
    }
    
    table td {
        padding: 0.75rem;
        display: block;
        width: 100%;
    }
    
    table td:first-child {
        border-bottom: 1px dashed var(--border-color);
    }
}

/* Form Styles (Generic Prep) */
input[type="text"], input[type="email"], select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(66, 140, 220, 0.1);
}

/* Dropdown styling from Header */
.drop {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: var(--fs-xs);
    cursor: pointer;
}

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

/* SVG Color overrides for specific fills in header if needed */
.fon-blu svg path { fill: #fff; }

/* Micro-animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content {
    animation: fadeIn 0.5s ease-out;
}
