
:root {
    /* Colors */
    --primary-color: #0f5baf;
    --primary-dark: #093d79;
    --primary-light: #e6f0fa;
    --accent-color: #ff6a00;
    --accent-hover: #e65c00;
    --text-main: #2a2d30;
    --text-secondary: #7e8c9d;
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --success-bg: #e8f5e9;
    --success-border: #4caf50;
    --warning-bg: #fff8e1;
    --warning-border: #ffc107;
    --info-bg: #e3f2fd;
    --info-border: #2196f3;
    --danger-bg: #ffebee;
    --danger-border: #f44336;

    /* Spacing & Sizing */
    --container-width: 1200px;
    --header-height: 4rem;
    --radius-sm: 0.3125rem; /* 5px */
    --radius-md: 0.625rem; /* 10px */
    --radius-lg: 1.25rem; /* 20px */
    --radius-xl: 1.5rem;

    /* Effects */
    --shadow-sm: 0 2px 8px 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 10px 30px rgba(15, 91, 175, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    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;
}

img, svg {
    vertical-align: middle;
    max-width: 100%;
}

/* Utility Classes (mapped from HTML) */
.flx { display: flex; }
.jcsb { justify-content: space-between; }
.jcc { justify-content: center; }
.aic { align-items: center; }
.fxg { flex-grow: 1; }
.w500 { font-weight: 500; }
.f12 { font-size: 0.75rem; }
.h30 { height: 1.875rem; line-height: 1.875rem; }
.h60 { height: 3.75rem; line-height: 3.75rem; }
.radius20, .radius16 { border-radius: var(--radius-lg); }
.r20 { margin-right: 1.25rem; }
.r10 { margin-right: 0.625rem; }
.b10 { margin-bottom: 0.625rem; }
.b20 { margin-bottom: 1.25rem; }
.b30 { margin-bottom: 1.875rem; }
.shadow-dark { box-shadow: var(--shadow-md); }

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

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
    padding: 1rem 0;
}

.head-top {
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--bg-body);
}

.head-bottom {
    padding-top: 0.625rem;
    align-items: center;
}

/* Header Buttons & Elements */
.fon-blu, .fon-blu2 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.fon-orang {
    background: linear-gradient(135deg, var(--accent-color), #ff4e00);
    color: white;
    padding: 0 1.25rem;
    font-weight: bold;
}

.btn, .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    white-space: nowrap;
}

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

.download {
    background: var(--bg-body);
    color: var(--text-secondary);
    padding-left: 1rem;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.download .btn-icon svg path {
    fill: var(--text-secondary);
    transition: var(--transition);
}

.download:hover .btn-icon svg path {
    fill: var(--primary-color);
}

.drop {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-main);
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-md);
}

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

.drop svg path {
    fill: currentColor;
}

/* Logo */
.logo svg {
    height: 2.5rem;
    width: auto;
    display: block;
}

.logo svg path[fill="#fff"] {
    fill: var(--primary-color); /* Overriding white fill for light theme */
}

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

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

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

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

/* Main Content Layout */
.content-row {
    display: grid;
    grid-template-columns: 16rem 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Sidebar Styling */
.menu-category {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.menu-category::-webkit-scrollbar {
    width: 4px;
}
.menu-category::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.menu-category ul li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-main);
    border-left: 3px solid transparent;
}

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

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

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

/* Nested Menu */
.menu-category ul ul {
    background-color: #fafafa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.menu-category ul ul li a {
    padding-left: 2.5rem;
    font-size: 0.85rem;
}

/* Article Content */
.content {
    background: transparent;
}

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

h1 {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 800;
}

h2 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    border-bottom: 2px solid var(--bg-body);
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #4a4a4a;
}

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

/* CTA Buttons in Text */
.content .btn {
    display: inline-flex;
    padding: 0 2rem;
    height: 3.5rem;
    line-height: 3.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0;
    transition: var(--transition);
}

.content .btn:hover {
    box-shadow: 0 10px 20px rgba(255, 106, 0, 0.3);
    transform: translateY(-3px);
}

/* Blockquotes / Alerts */
blockquote {
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: 5px solid;
    position: relative;
}

blockquote p {
    margin-bottom: 0;
}

blockquote.success {
    background-color: var(--success-bg);
    border-color: var(--success-border);
    color: #2e7d32;
}

blockquote.info {
    background-color: var(--info-bg);
    border-color: var(--info-border);
    color: #1565c0;
}

blockquote.warning {
    background-color: var(--warning-bg);
    border-color: var(--warning-border);
    color: #bf360c; /* Darker orange for text readability */
}

blockquote.danger {
    background-color: var(--danger-bg);
    border-color: var(--danger-border);
    color: #c62828;
}

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

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

/* 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.01);
    box-shadow: var(--shadow-lg);
}

/* Comments Section */
#comments {
    margin-top: 3rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.comments-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-body);
    padding-bottom: 1rem;
}

.comment-list {
    padding: 0;
}

.comment-box {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.comment-box:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
}

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

.comment-avatar svg {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    margin-right: 0.75rem;
}

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

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

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

.comment-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* 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 or moved to off-canvas on mobile */
    }

    .head-top {
        justify-content: center;
    }
    
    .head-bottom {
        justify-content: center;
    }
    
    .box.text {
        padding: 1.5rem;
    }
}

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

    .wrap {
        padding: 0 0.75rem;
    }

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

    .download {
        display: none;
    }

    h1 {
        margin-top: 1rem;
    }
    
    .content .btn {
        width: 100%;
    }
}
