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

:root {
    /* Color Palette */
    --color-primary: #0f5bce;
    --color-primary-dark: #004494;
    --color-secondary: #ff6b00;
    --color-secondary-hover: #ff8533;
    --color-text-main: #2a2d30;
    --color-text-light: #7f8b9e;
    --color-bg-body: #f5f7fa;
    --color-bg-white: #ffffff;
    --color-border: #e6e8ec;
    
    /* Status Colors */
    --color-success: #28a745;
    --color-info: #17a2b8;
    --color-warning: #ffc107;
    --color-danger: #dc3545;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 1rem;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 4.5rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

ul, ol {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    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;
}

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

/* Styling Helpers */
.w500 { font-weight: 500; }
.f12 { font-size: 0.75rem; }

.radius16 { border-radius: 1rem; }
.radius20 { border-radius: 1.25rem; }

.shadow-dark { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.shadow-white { box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3); }

/* Visibility */
@media (max-width: 992px) {
    .hide_992 {
        display: none !important;
    }
}

/* =========================================
   3. BUTTONS & INTERACTIVE ELEMENTS
   ========================================= */
.btn, .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
}

.btn:hover, .btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* Height Utilities as Classes */
.h30 { height: 2.2rem; } /* Approx 35px for touch targets */
.h60 { height: 3.75rem; }

/* Color Themes */
.fon-blu {
    background: linear-gradient(135deg, #1e90ff 0%, var(--color-primary) 100%);
    color: var(--color-bg-white);
}

.fon-blu2 {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.fon-orang {
    background: linear-gradient(135deg, #ff9f43 0%, var(--color-secondary) 100%);
    color: var(--color-bg-white);
}

.fon-orang:hover {
    background: linear-gradient(135deg, #ffb065 0%, var(--color-secondary-hover) 100%);
}

.download {
    background: #eef5ff;
    color: var(--color-primary);
    padding: 0 1rem;
    font-weight: 600;
}

.btn-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

/* =========================================
   4. HEADER
   ========================================= */
header.b10 {
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.drop {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
}

.logo svg {
    height: 3rem;
    width: auto;
    display: block;
}

.logo circle {
    fill: var(--color-secondary);
}

.logo path {
    fill: var(--color-primary-dark);
}

/* Main Menu in Header */
.main-menu ul {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

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

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

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

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

/* =========================================
   5. LAYOUT GRID (Sidebar + Content)
   ========================================= */
.content-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .col-left {
        display: none; /* Often sidebars are hidden or become off-canvas on mobile */
    }
}

/* =========================================
   6. SIDEBAR (.col-left)
   ========================================= */
.menu-category {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    overflow: hidden;
}

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

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

.menu-category > ul > li > a:hover {
    background-color: #f0f4ff;
    color: var(--color-primary);
}

.menu-category svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: #a0a5b1; /* Default grey icon */
    transition: var(--transition);
}

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

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

.menu-category ul ul li a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* =========================================
   7. MAIN CONTENT
   ========================================= */
.box.text {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
}

h1.center, h2 {
    text-align: center;
    color: var(--color-text-main);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h1.center {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin-top: 2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

/* Blockquotes styling */
blockquote {
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 5px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #f9f9f9;
    font-style: italic;
    position: relative;
}

blockquote.success {
    border-color: var(--color-success);
    background-color: rgba(40, 167, 69, 0.05);
}

blockquote.info {
    border-color: var(--color-info);
    background-color: rgba(23, 162, 184, 0.05);
}

blockquote.warning {
    border-color: var(--color-warning);
    background-color: rgba(255, 193, 7, 0.05);
}

blockquote.danger {
    border-color: var(--color-danger);
    background-color: rgba(220, 53, 69, 0.05);
}

blockquote strong {
    font-weight: 700;
}

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

figure.image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease;
}

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

/* Call to Action Areas in Content */
.flx.jcc.b30 {
    margin: 2rem 0;
}

.flx.jcc.b30 .btn {
    padding: 0 3rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* =========================================
   8. COMMENTS SECTION
   ========================================= */
#comments {
    margin-top: 3rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

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

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

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

.comment-avatar svg {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-bg-white);
    padding: 2px;
    border: 1px solid var(--color-border);
}

.comment-meta {
    display: flex;
    flex-direction: column;
}

.comment-author {
    font-style: normal;
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 1.1rem;
}

.comment-time {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.comment-text p {
    margin-bottom: 0;
    color: #4a4d55;
}

/* =========================================
   9. FORM ELEMENTS (Implicit)
   ========================================= */
input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    transition: var(--transition);
    background-color: #fff;
}

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

/* =========================================
   10. RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
    .header-bottom .flx {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-menu {
        display: none; /* Assuming mobile menu script handles this */
    }
    
    .box.text {
        padding: 1.5rem;
    }
    
    .flx.jcc.b30 .btn {
        width: 100%;
        padding: 0;
    }
    
    .head-top {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
}
