
/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    /* Colors */
    --c-primary: #428CDC;
    --c-primary-dark: #2a6bb5;
    --c-secondary: #2A2D30;
    --c-accent: #fb4d00;
    --c-accent-hover: #e04300;
    --c-success: #28a745;
    --c-warning: #ffc107;
    --c-danger: #dc3545;
    --c-info: #17a2b8;
    
    /* Backgrounds */
    --bg-body: #f4f7f9;
    --bg-card: #ffffff;
    --bg-light: #e9ecef;

    /* Typography */
    --font-main: 'Roboto', '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.25rem;
    --fs-h1: clamp(1.5rem, 4vw, 2.25rem);
    --fs-h2: clamp(1.25rem, 3vw, 1.75rem);

    /* Spacing & Layout */
    --container-width: 1200px;
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 1.5rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;

    /* 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-hover: 0 6px 16px rgba(66, 140, 220, 0.25);
    --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-main);
    background-color: var(--bg-body);
    color: var(--c-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    transition: var(--transition);
}

/* =========================================
   2. Utility Classes (Based on HTML analysis)
   ========================================= */
.flx { display: flex; }
.jcsb { justify-content: space-between; }
.jcc { justify-content: center; }
.aic { align-items: center; }
.fxg { flex-grow: 1; }
.wrap {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

/* 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; }

/* Heights & Radius */
.h30 { height: 1.875rem; line-height: 1.875rem; }
.h60 { height: 3.75rem; line-height: 3.75rem; }
.radius16 { border-radius: 1rem; }
.radius20 { border-radius: 1.25rem; }

/* Fonts */
.f12 { font-size: 0.75rem; }
.w500 { font-weight: 500; }
.fxs { font-size: 0; } /* Often used for image-only logos */
.center { text-align: center; }

/* Backgrounds & Buttons specific to HTML */
.fon-blu {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    color: white;
}
.fon-blu2 {
    background-color: #eef5fa;
    color: var(--c-primary);
    border: 1px solid rgba(66, 140, 220, 0.2);
}
.fon-orang {
    background: linear-gradient(135deg, var(--c-accent), #ff7043);
    color: white;
}

/* Shadows */
.shadow-dark { box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.shadow-white { box-shadow: 0 2px 5px rgba(255,255,255,0.5); }

/* =========================================
   3. Header Styling
   ========================================= */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    padding: var(--gap-md) 0;
    position: relative;
    z-index: 100;
}

.head-top {
    padding-bottom: var(--gap-md);
    border-bottom: 1px solid var(--bg-light);
}

.download {
    padding: 0 var(--gap-md);
    font-size: var(--fs-xs);
    gap: 0.5rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}
.btn-icon:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}
.btn-icon svg path { fill: white !important; }

/* Header Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn svg { margin-right: 0.5rem; }

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.btn:hover::after { opacity: 1; }

.btn.fon-blu2:hover {
    background-color: var(--c-primary);
    color: white;
}
.btn.fon-blu2:hover svg path { fill: white; }

/* Drops (Time, Language) */
.drop {
    padding: 0 0.8rem;
    font-size: var(--fs-xs);
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
}
.drop:hover { opacity: 0.9; }

/* Logo Area */
.head-bottom {
    padding-top: var(--gap-md);
    align-items: center;
    gap: var(--gap-lg);
}

.logo svg {
    height: 40px;
    width: auto;
}
.logo path {
    fill: var(--c-secondary); /* Override white fill from inline SVG for light theme */
}
.logo circle { fill: var(--c-accent); }

/* Main Menu */
.main-menu {
    background: var(--bg-light);
    overflow: hidden;
}
.main-menu ul {
    display: flex;
    height: 100%;
}
.main-menu li { height: 100%; }
.main-menu a {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: 100%;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--c-secondary);
}
.main-menu a:hover {
    background-color: var(--c-primary);
    color: white;
}

/* =========================================
   4. Layout: Content Row & Sidebar
   ========================================= */
.content-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--gap-lg);
    margin-top: var(--gap-lg);
    align-items: start;
}

/* Sidebar */
.col-left {
    position: sticky;
    top: 1rem;
}

.menu-category {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: var(--gap-sm) 0;
}

.menu-category > ul > li > a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--c-secondary);
    border-left: 3px solid transparent;
}

.menu-category > ul > li > a svg {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

.menu-category > ul > li > ul {
    background-color: #fcfcfc;
    border-top: 1px solid var(--bg-light);
    border-bottom: 1px solid var(--bg-light);
}

.menu-category > ul > li > ul li a {
    padding: 0.6rem 1rem 0.6rem 2.5rem; /* Indent subitems */
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    color: #666;
}

.menu-category > ul > li > ul li a:hover {
    color: var(--c-primary);
    padding-left: 2.8rem; /* Slide effect */
}

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

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

/* Typography in Content */
h1 {
    font-size: var(--fs-h1);
    color: var(--c-secondary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

h2 {
    font-size: var(--fs-h2);
    margin: 2rem 0 1rem;
    color: var(--c-primary-dark);
}

p {
    margin-bottom: 1.25rem;
    color: #4a4d52;
}

article ul, article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

article ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

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

figure.image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
    transition: transform 0.3s ease;
}

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

/* Info Boxes */
.info-box {
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    background-color: #f8f9fa;
}

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

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

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

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

/* Large CTA Buttons in Content */
.box.text .btn.h60 {
    font-size: 1.1rem;
    padding: 0 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 77, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(251, 77, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 77, 0, 0); }
}

/* =========================================
   6. Comments Section
   ========================================= */
#comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-light);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-box {
    background: #f9fbfd;
    border: 1px solid #edf2f7;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.comment-box:hover {
    box-shadow: var(--shadow-md);
    background: #ffffff;
    transform: translateY(-2px);
}

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

.comment-avatar svg {
    border-radius: 50%;
    margin-right: 1rem;
    width: 45px;
    height: 45px;
}

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

.comment-author {
    font-style: normal;
    font-weight: 700;
    color: var(--c-secondary);
    font-size: 1rem;
}

.comment-time {
    font-size: 0.8rem;
    color: #888;
}

/* =========================================
   7. Form Elements (General Styling)
   ========================================= */
input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--fs-base);
    transition: var(--transition);
}

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

/* =========================================
   8. Responsive Design
   ========================================= */

/* Tablet & Smaller Desktop */
@media (max-width: 992px) {
    .hide_992 {
        display: none !important;
    }
    
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .col-left {
        display: none; /* Or create a mobile drawer menu */
    }

    .head-top {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .head-bottom {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --fs-base: 14px;
    }
    
    .box.text {
        padding: 1.25rem;
    }
    
    .flx.jcc.b30 {
        width: 100%;
    }
    
    .btn.h60 {
        width: 100%;
        font-size: 1rem;
    }
    
    .head-top .flx {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo svg {
        height: 32px;
    }
    
    figure.image img {
        width: 100%;
    }
}
