
/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    /* Colors */
    --primary-blue: #428CDC;
    --primary-dark: #0052B4;
    --primary-orange: #FF6600;
    --primary-orange-hover: #e65c00;
    --text-main: #2A2D30;
    --text-light: #6c757d;
    --bg-body: #F4F6F9;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    
    /* Status Colors */
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --fs-base: 1rem;
    --fs-sm: 0.875rem;
    --fs-xs: 0.75rem;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem; /* 20px */
    --radius-xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-blue: 0 4px 15px rgba(66, 140, 220, 0.3);
    --shadow-orange: 0 4px 15px rgba(255, 102, 0, 0.3);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
    margin: 0;
    padding: 0;
    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 {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* =========================================
   2. Utility Classes (Based on HTML)
   ========================================= */
.wrap {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

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

/* Margins */
.b10 { margin-bottom: 0.625rem; }
.b20 { margin-bottom: 1.25rem; }
.b30 { margin-bottom: 1.875rem; }
.r10 { margin-right: 0.625rem; }
.r20 { margin-right: 1.25rem; }

/* Sizing & Radius */
.h30 { height: 1.875rem; line-height: 1.875rem; }
.h60 { height: 3.75rem; line-height: 3.75rem; display: inline-flex; align-items: center; justify-content: center; }
.radius16 { border-radius: 1rem; }
.radius20 { border-radius: 1.25rem; }
.w500 { font-weight: 500; }
.f12 { font-size: 0.75rem; }
.center { text-align: center; }

/* =========================================
   3. Header Styling
   ========================================= */
header.b10 {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 0;
}

.head-top {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.download {
    background: rgba(66, 140, 220, 0.1);
    color: var(--primary-blue);
    padding: 0 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.download a svg path {
    fill: var(--primary-blue);
    transition: var(--transition);
}

.download a:hover svg {
    transform: translateY(-2px);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.drop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.drop svg {
    width: 1.2rem;
    height: 1.2rem;
}

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

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

.logo path {
    fill: var(--primary-dark); /* Override white fill for light header */
}
.logo circle {
    fill: var(--primary-orange);
}

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

.main-menu a {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    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: var(--primary-blue);
    transition: var(--transition);
}

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

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

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

/* =========================================
   5. Sidebar Styling
   ========================================= */
.col-left {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    position: sticky;
    top: 100px;
}

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

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

.menu-category > ul > li > a:hover {
    background-color: rgba(66, 140, 220, 0.1);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.menu-category svg {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

/* Submenu */
.menu-category ul ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid #eee;
}

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

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

/* =========================================
   6. Main Content & Article
   ========================================= */
.content {
    min-width: 0; /* Prevents flex/grid overflow */
}

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

h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
    color: #4a4a4a;
    font-size: 1.05rem;
}

strong {
    color: var(--text-main);
    font-weight: 700;
}

/* Info Boxes */
.info-box {
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    border-left: 4px solid transparent;
    background: var(--bg-light);
}

.info-box-success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: var(--success);
}

.info-box-danger {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger);
}

.info-box-info {
    background: rgba(23, 162, 184, 0.1);
    border-left-color: var(--info);
}

.info-box-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning);
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

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

tr:hover {
    background-color: #f1f3f5;
}

/* Images */
figure.image {
    margin: 2rem 0;
    text-align: center;
}

figure.image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

figure.image img:hover {
    transform: scale(1.02);
}

/* =========================================
   7. Buttons & Interactive Elements
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(110%);
}

.btn:active {
    transform: translateY(0);
}

/* Orange Button */
.fon-orang {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8c00 100%);
    box-shadow: var(--shadow-orange);
}

/* Blue Button */
.fon-blu, .fon-blu2 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-blue);
}

.shadow-dark {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.shadow-white {
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.btn svg path {
    fill: white;
}

/* Header specific buttons */
.reg, .enter {
    min-width: 100px;
}

/* =========================================
   8. Comments Section
   ========================================= */
#comments {
    margin-top: 3rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #eee;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar svg {
    border-radius: 50%;
    background: #e9ecef;
    padding: 5px;
    fill: #adb5bd;
}

/* =========================================
   9. Responsive Media Queries
   ========================================= */
@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 {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .wrap {
        padding: 0 15px;
    }

    .box.text {
        padding: 1.5rem;
    }

    .btn.h60 {
        width: 100%;
        height: 3.5rem;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .head-bottom {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .head-top .flx {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .reg, .enter {
        width: 100%;
    }
}
