:root {
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --navy-600: #475569;
    --navy-50: #f8fafc;

    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-600: #d97706;
    --amber-50: #fffbeb;

    --emerald-500: #10b981;

    --color-primary: var(--navy-800);
    --color-accent: var(--amber-500);
    --color-accent-hover: var(--amber-600);

    --bg-primary: #fafaf9;
    --bg-secondary: #ffffff;
    --bg-elevated: #ffffff;
    --bg-subtle: var(--navy-50);

    --text-heading: var(--navy-900);
    --text-body: var(--navy-700);
    --text-muted: var(--navy-600);
    --text-inverse: #ffffff;

    --border-subtle: #e2e8f0;
    --border-light: #f1f5f9;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
    --text-4xl: clamp(2rem, 1.75rem + 1.5vw, 3rem);

    --sidebar-width: 280px;
    --sidebar-width-collapsed: 92px;
    --max-content-width: 1400px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
video {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-body);
    line-height: 1.6;
    font-size: var(--text-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Prevent background scroll when the mobile sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--amber-200), var(--amber-100));
    top: -200px;
    right: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.app-container {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 10;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    transition: width var(--transition-normal), transform var(--transition-normal);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

.sidebar-header {
    padding: 1.4rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.22);
    flex-shrink: 0;
}

.brand-icon-button {
    appearance: none;
    cursor: default;
}

.brand-icon-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35), 0 10px 24px -16px rgba(15, 23, 42, 0.3);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 220px;
    overflow: hidden;
    transition: opacity var(--transition-normal), transform var(--transition-normal), max-width var(--transition-normal);
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brand-status {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(30, 41, 59, 0.9);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-chip--ts {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.22);
    color: rgba(15, 23, 42, 0.9);
}

.sidebar-collapse-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    box-shadow: 0 10px 25px -18px rgba(15, 23, 42, 0.35);
}

.sidebar-close-toggle {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    box-shadow: 0 10px 25px -18px rgba(15, 23, 42, 0.35);
    color: var(--text-heading);
}

.sidebar-close-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 14px 30px -20px rgba(245, 158, 11, 0.35);
}

.sidebar-close-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

.sidebar-collapse-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 14px 30px -20px rgba(245, 158, 11, 0.35);
}

.sidebar-collapse-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

.sidebar-collapse-icon {
    color: var(--text-muted);
}

.sidebar-collapse-icon--expand {
    display: none;
}

body.sidebar-collapsed {
    --sidebar-width: var(--sidebar-width-collapsed);
}

.main-content {
    transition: margin-left var(--transition-normal);
}

.nav-menu {
    flex: 1;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-item {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    background: transparent;
    width: 100%;
    text-align: left;
    font: inherit;
}

.nav-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35), 0 8px 18px -14px rgba(15, 23, 42, 0.35);
}

.nav-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 12% 50%, rgba(245, 158, 11, 0.16), transparent 55%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.nav-item:hover {
    background: var(--bg-subtle);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-item:hover::after {
    opacity: 1;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--amber-50) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: var(--amber-200);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 0 4px 4px 0;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid transparent;
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-icon svg {
    width: 18px;
    height: 18px;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    color: var(--color-accent);
    transform: scale(1.1);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.22);
    box-shadow: 0 10px 20px -18px rgba(245, 158, 11, 0.6);
}

.nav-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    transition: opacity var(--transition-normal), transform var(--transition-normal), max-width var(--transition-normal);
}

.nav-item.active .nav-label {
    color: var(--amber-600);
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
}

.nav-sub-item {
    padding-left: 1rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.nav-sub-item .nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.nav-sub-item .nav-label { font-size: 0.85rem; font-weight: 600; }

.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    flex-shrink: 0;
}

.sidebar-footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

.sidebar-footer-copy {
    font-weight: 700;
    color: rgba(71, 85, 105, 0.95);
}

.sidebar-footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    max-height: 140px;
    overflow: auto;
    transition: opacity var(--transition-normal), transform var(--transition-normal), max-height var(--transition-normal);
}

.footer-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(71, 85, 105, 0.92);
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sidebar-collapsed .brand-text {
    opacity: 0;
    transform: translateX(-10px);
    max-width: 0;
    pointer-events: none;
}

body.sidebar-collapsed .sidebar-footer-tags {
    opacity: 0;
    transform: translateY(6px);
    max-height: 0;
    pointer-events: none;
}

body.sidebar-collapsed .sidebar-header {
    padding: 1.2rem 0.9rem;
    align-items: center;
    justify-content: center;
}

body.sidebar-collapsed .brand {
    gap: 0;
}

body.sidebar-collapsed .brand-icon {
    width: 48px;
    height: 48px;
}

body.sidebar-collapsed .brand-icon-button {
    cursor: pointer;
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18), 0 16px 36px -22px rgba(245, 158, 11, 0.7);
    animation: sidebarLogoPulse 1.8s ease-in-out infinite;
}

body.sidebar-collapsed .brand-icon-button:hover {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22), 0 18px 40px -22px rgba(245, 158, 11, 0.85);
}

body.sidebar-collapsed .nav-menu {
    padding: 1.1rem 0.75rem;
}

body.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 0.7rem;
    transform: none;
}

body.sidebar-collapsed .nav-item:hover {
    transform: none;
}

body.sidebar-collapsed .nav-sub-item {
    padding-left: 0.7rem;
}

body.sidebar-collapsed .nav-label {
    opacity: 0;
    transform: translateX(-10px);
    max-width: 0;
}

body.sidebar-collapsed .nav-item.active::before {
    left: 6px;
    height: 28px;
}

body.sidebar-collapsed .sidebar-collapse-toggle {
    display: none;
}

body.sidebar-collapsed .sidebar-collapse-icon--collapse {
    display: none;
}

body.sidebar-collapsed .sidebar-collapse-icon--expand {
    display: inline;
}

@media (max-width: 768px) {
    .sidebar-collapse-toggle {
        display: none;
    }

    .sidebar-close-toggle {
        display: inline-flex;
    }

    body.sidebar-collapsed {
        --sidebar-width: 260px;
    }
}

@keyframes sidebarLogoPulse {
    0% { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18), 0 16px 36px -22px rgba(245, 158, 11, 0.65); }
    50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.26), 0 20px 44px -22px rgba(245, 158, 11, 0.9); }
    100% { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18), 0 16px 36px -22px rgba(245, 158, 11, 0.65); }
}
/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* FIXED: Compact Hero Section - Full width from sidebar to viewport edge */
.hero-section {
    position: relative;
    padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    overflow: hidden;
    border-radius: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.hero-section--home::before {
    content: '';
    position: absolute;
    inset: -45%;
    background:
        radial-gradient(circle at 30% 25%, rgba(245, 158, 11, 0.22), transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.16), transparent 60%),
        radial-gradient(circle at 55% 15%, rgba(59, 130, 246, 0.14), transparent 55%);
    filter: blur(12px);
    opacity: 0.95;
    z-index: 0;
    pointer-events: none;
    animation: heroBlobDrift 18s ease-in-out infinite alternate;
}

.hero-section--home::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.06) 55%, transparent 100%);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
    transform: translateX(-35%);
    animation: heroSheen 7s ease-in-out infinite;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    background-position: 0 0;
    animation: heroGridMove 28s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-content-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--amber-400);
    margin-bottom: 0.75rem;
    backdrop-filter: blur(10px);
}

/* FIXED: Title with entrance animation and text shadow */
.hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-inverse);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    animation: slideInLeft 0.8s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-title-accent {
    background: linear-gradient(90deg, var(--amber-400), #fbbf24, #f59e0b, #fbbf24, var(--amber-400));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
    user-select: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: white;
    box-shadow: 0 10px 24px -14px rgba(245, 158, 11, 0.7);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px -16px rgba(245, 158, 11, 0.85);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* FIXED: Stats bar with continuous animations */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInUp 0.6s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: white;
    line-height: 1;
    transition: transform 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
}

.stat-item:hover .stat-value {
    transform: scale(1.1);
    color: var(--amber-400);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.25rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-item:hover .stat-label {
    color: rgba(255, 255, 255, 0.85);
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 2rem 2.5rem;
    max-width: var(--max-content-width);
    margin: 0 auto;
    width: 100%;
}

#menu-utama .content-area {
    max-width: none;
}

#menu-utama .hero-content {
    max-width: none;
}

/* Chart UX: make charts tappable (opens full image in a new tab) */
.chart-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.chart-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.15);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    grid-auto-rows: minmax(140px, auto);
}

.bento-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--emerald-500));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.bento-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-card.wide {
    grid-column: span 2;
}

.bento-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--amber-50), rgba(245, 158, 11, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 0.875rem;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.bento-card:hover .bento-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--color-accent), var(--amber-600));
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.bento-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.375rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bento-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.home-panels {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.75rem;
    align-items: start;
}

.home-panel {
    min-width: 0;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.home-intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-intro-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-intro-photo {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid rgba(245, 158, 11, 0.22);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
    background: var(--bg-subtle);
    flex-shrink: 0;
}

.home-intro-name {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.home-intro-role {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.35;
}

.home-intro-text p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 0.75rem;
}

.home-intro-text p:last-child {
    margin-bottom: 0;
}

.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-contact-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.85rem 0.9rem;
}

.home-contact-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.home-contact-value {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.4;
    word-break: break-word;
}

.home-contact-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.home-contact-inline a {
    min-width: 0;
}

.btn-small {
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
}

.home-contact-item:nth-child(4) {
    grid-column: 1 / -1;
}

.home-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.home-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(160px, auto);
}

.bento-link {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    color: inherit;
}

.bento-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

.bento-link:hover .bento-cta {
    color: var(--color-accent);
}

.bento-cta {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-heading);
}

.ranking-card {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
    color: white;
    border: none;
    margin-bottom: 1rem;
}

.ranking-card::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--amber-400), var(--emerald-500));
}

.ranking-card__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.ranking-card__eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 0.4rem;
}

.ranking-card__value {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    line-height: 1.05;
}

.ranking-card__sub {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.ranking-card__icon {
    color: var(--amber-400);
    display: flex;
    align-items: center;
    justify-content: center;
}

.year-icon--amber {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
}

.year-icon--emerald {
    background: linear-gradient(135deg, var(--emerald-500), #059669);
}

.achievement-bullet--emerald {
    background: var(--emerald-500);
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.achievement-item:hover {
    background: white;
    border-color: var(--amber-200);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.achievement-bullet {
    width: 5px;
    height: 5px;
    background: var(--color-accent);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.achievement-text {
    font-size: 0.8rem;
    color: var(--text-body);
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

.content-section-wrapper {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroGridMove {
    from { background-position: 0 0; }
    to { background-position: 160px 160px; }
}

@keyframes heroBlobDrift {
    0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
    50% { transform: translate3d(1.2%, 0.8%, 0) scale(1.04); }
    100% { transform: translate3d(-0.8%, 1.2%, 0) scale(1.02); }
}

@keyframes heroSheen {
    0% { transform: translateX(-35%); }
    50% { transform: translateX(15%); }
    100% { transform: translateX(-35%); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Continuous animations for hero section */
@keyframes floatText {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

@keyframes floatStats {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0px rgba(245, 158, 11, 0);
    }
    50% {
        border-color: rgba(245, 158, 11, 0.3);
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
    }
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

.hidden {
    display: none !important;
}

/* Year Comparison Layout */
.year-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
}

.year-column {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.year-column:hover {
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.year-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.year-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.year-title {
    display: flex;
    flex-direction: column;
}

.year-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.year-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.year-column .achievement-list {
    flex: 1;
    padding: 1rem;
    gap: 0.625rem;
}

.year-column .achievement-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
}

.year-column .achievement-item:hover {
    background: white;
    border-color: var(--border-subtle);
    transform: translateX(4px);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.content-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.content-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.content-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.content-card ul {
    list-style: none;
}

.content-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-body);
    font-size: 0.9rem;
}

.content-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 5px;
    height: 5px;
    background: var(--color-accent);
    border-radius: 50%;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.info-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.info-card:hover {
    background: white;
    border-color: var(--border-subtle);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.info-card-title {
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.info-card-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.profil-block {
    margin-top: 2rem;
}

.profil-block-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.profil-info-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.5rem;
    align-items: stretch;
}

.profil-map-card {
    padding: 0;
    overflow: hidden;
}

.profil-map-iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
    display: block;
}

.profil-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.profil-details-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    align-items: start;
}

.profil-details-row dt {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-heading);
}

.profil-details-row dd {
    font-size: 0.9rem;
    color: var(--text-body);
    overflow-wrap: anywhere;
}

.profil-link {
    color: var(--amber-600);
    font-weight: 800;
    text-decoration: none;
}

.profil-link:hover {
    text-decoration: underline;
}

.pentadbir-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.pentadbir-card {
    text-align: center;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pentadbir-photo {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid rgba(245, 158, 11, 0.22);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
    background: var(--bg-subtle);
    margin-bottom: 0.85rem;
}

.pentadbir-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.25;
}

.pentadbir-role {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
}

.profil-chart-card {
    padding: 1rem;
}

.profil-chart {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
    .profil-info-grid {
        grid-template-columns: 1fr;
    }

    .profil-map-iframe {
        min-height: 360px;
    }

    .pentadbir-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .profil-details-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .pentadbir-grid {
        grid-template-columns: 1fr;
    }
}

.ucapan-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 920px;
    margin: 0 auto;
}

.ucapan-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(16, 185, 129, 0.06));
}

.ucapan-photo {
    width: clamp(170px, 22vw, 260px);
    height: clamp(170px, 22vw, 260px);
    border-radius: 999px;
    object-fit: cover;
    border: 5px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
    background: var(--bg-subtle);
}

.ucapan-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ucapan-role {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.35;
}

.ucapan-text p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.ucapan-text p:first-child {
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
}

.ucapan-signature {
    margin-top: 1.5rem;
    text-align: right;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .ucapan-profile-card {
        padding: 1.5rem 1.25rem;
    }

    .ucapan-signature {
        text-align: center;
    }
}

.timeline {
    position: relative;
    padding-left: 1.25rem;
    margin-top: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-accent), var(--emerald-500));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 1rem;
    transition: all var(--transition-fast);
}

.timeline-item:hover {
    transform: translateX(4px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.625rem;
    top: 0.25rem;
    width: 8px;
    height: 8px;
    background: white;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--amber-50), 0 2px 8px rgba(245, 158, 11, 0.3);
    transition: all var(--transition-fast);
}

.timeline-item:hover::before {
    box-shadow: 0 0 0 3px var(--amber-50), 0 4px 12px rgba(245, 158, 11, 0.5);
    transform: scale(1.2);
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.8rem;
    margin-bottom: 0.125rem;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
}

.timeline-content {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.5;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1002;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-heading);
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}

.mobile-menu-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35), var(--shadow-lg);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

@media (min-width: 900px) and (min-height: 720px) {
    #menu-utama {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    #menu-utama .hero-section {
        flex: 0 0 auto;
        padding: 1.25rem 2.5rem;
        margin-bottom: 1rem;
    }

    #menu-utama .hero-title {
        font-size: var(--text-2xl);
    }

    #menu-utama .hero-subtitle {
        font-size: 0.95rem;
    }

    #menu-utama .hero-actions {
        margin-top: 1rem;
    }

    #menu-utama .stats-bar {
        padding: 1.1rem;
        gap: 0.85rem;
    }

    #menu-utama .stat-value {
        font-size: var(--text-xl);
    }

    #menu-utama .content-area {
        flex: 1;
        display: flex;
        min-height: 0;
        padding: 0 2.5rem 1.25rem;
    }

    #menu-utama .home-panels {
        flex: 1;
        gap: 1.25rem;
        align-items: stretch;
        min-height: 0;
    }

    #menu-utama .home-panel {
        padding: 1.25rem;
        min-height: 0;
    }

    #menu-utama .section-header {
        margin-bottom: 1rem;
    }

    #menu-utama .intro-panel {
        display: flex;
        flex-direction: column;
    }

    #menu-utama .home-intro {
        flex: 1;
        min-height: 0;
        overflow: auto;
        padding-right: 0.25rem;
    }

    #menu-utama .home-intro-photo {
        width: 64px;
        height: 64px;
    }

    #menu-utama .home-intro-text p {
        font-size: 0.86rem;
        margin-bottom: 0.6rem;
    }

    #menu-utama .home-contact-grid {
        gap: 0.6rem;
    }

    #menu-utama .home-contact-item {
        padding: 0.7rem 0.75rem;
    }

    #menu-utama .home-contact-value {
        font-size: 0.85rem;
    }

    #menu-utama .ranking-card {
        margin-bottom: 0.75rem;
    }

    #menu-utama .achievements-panel {
        display: flex;
        flex-direction: column;
    }

    #menu-utama .year-comparison {
        flex: 1;
        min-height: 0;
        gap: 1rem;
    }

    #menu-utama .year-column {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    #menu-utama .achievement-list {
        gap: 0.4rem;
        margin-top: 0.5rem;
        flex: 1;
        min-height: 0;
        overflow: auto;
    }

    #menu-utama .achievement-item {
        padding: 0.45rem 0.6rem;
    }
}

/* Small desktop / large tablet: reclaim some horizontal space from the fixed sidebar */
@media (max-width: 1100px) {
    :root {
        --sidebar-width: 250px;
    }
}

@media (max-height: 760px) and (min-width: 900px) {
    .sidebar-header {
        padding: 1.1rem 1.1rem;
    }

    .nav-menu {
        padding: 1.1rem 0.9rem;
    }

    .sidebar-footer {
        padding: 0.9rem;
    }

    .sidebar-footer-tags {
        max-height: 120px;
    }

    #menu-utama .hero-section {
        padding: 1.05rem 2.5rem;
        margin-bottom: 0.75rem;
    }

    #menu-utama .content-area {
        padding-bottom: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-right {
        justify-content: flex-start;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-panels {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card.large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 260px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        width: min(86vw, 320px);
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    body.sidebar-open .mobile-menu-toggle {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-120%);
        visibility: hidden;
    }

    .main-content {
        margin-left: 0;
    }

    .hero-section {
        padding: 1.5rem;
        padding-top: calc(1.5rem + 60px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: var(--text-xl);
    }

    #menu-utama .hero-badge {
        position: fixed;
        top: 1rem;
        left: calc(1rem + 44px + 0.75rem);
        height: 44px;
        margin: 0;
        max-width: calc(100% - 88px);
        z-index: 1003;
    }

    .hero-actions {
        gap: 0.5rem;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    #menu-utama .stats-bar {
        margin-left: auto;
        margin-right: auto;
        max-width: 320px;
    }

    .stat-value {
        font-size: var(--text-xl);
    }

    .content-area {
        padding: 1.5rem;
    }

    #profil .content-area {
        padding-top: calc(1.5rem + 56px);
    }

    #ucapan .content-area {
        padding-top: calc(1.5rem + 56px);
    }

    #kurikulum .content-area {
        padding-top: calc(1.5rem + 56px);
    }

    #kokurikulum .content-area {
        padding-top: calc(1.5rem + 56px);
    }

    #hal-ehwal .content-area {
        padding-top: calc(1.5rem + 56px);
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .home-intro-header {
        flex-direction: column;
        text-align: center;
    }

    .home-contact-grid {
        grid-template-columns: 1fr;
    }

    .home-contact-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .home-contact-inline .btn {
        justify-content: center;
    }

    .home-contact-item:nth-child(4) {
        grid-column: auto;
    }

    .home-shortcuts {
        grid-template-columns: 1fr;
    }

    .bento-card.large,
    .bento-card.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .year-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .year-header {
        padding: 1rem;
    }

    .year-icon {
        width: 48px;
        height: 48px;
    }

    .year-number {
        font-size: 1.5rem;
    }

    #profil .profil-block {
        margin-top: 1.5rem;
    }

    #profil .profil-block-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    #profil .profil-info-grid {
        gap: 1rem;
    }

    #profil .profil-map-iframe {
        min-height: 300px;
    }

    #profil .profil-details-card {
        padding: 1.25rem;
    }

    #profil .profil-details-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    #profil .pentadbir-grid {
        grid-template-columns: 1fr;
    }

    #profil .pentadbir-card {
        padding: 1.1rem;
    }

    #profil .pentadbir-photo {
        width: 96px;
        height: 96px;
    }

    #profil .profil-chart-card {
        padding: 0.75rem;
    }

    #kurikulum .profil-chart-card {
        padding: 0.75rem;
    }

    #kokurikulum .profil-chart-card {
        padding: 0.75rem;
    }

    #hal-ehwal .profil-chart-card {
        padding: 0.75rem;
    }

    /* Charts: allow horizontal pan/zoom on small screens (images are dense) */
    .profil-chart-card {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .profil-chart {
        min-width: 720px;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 1rem;
    }

    .hero-section {
        padding: 1.25rem;
        padding-top: calc(1.25rem + 60px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-bar {
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .profil-map-iframe {
        min-height: 260px;
    }

    #profil .profil-map-iframe {
        min-height: 240px;
    }

    #profil .pentadbir-photo {
        width: 82px;
        height: 82px;
    }

    #profil .profil-details-row dt {
        font-size: 0.8rem;
    }

    #profil .profil-details-row dd {
        font-size: 0.85rem;
    }

    #profil .profil-chart {
        min-width: 0;
    }

    #kurikulum .profil-chart {
        min-width: 0;
    }

    #kokurikulum .profil-chart {
        min-width: 0;
    }

    #hal-ehwal .profil-chart {
        min-width: 0;
    }

    .footer-chip {
        max-width: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ambient-blob {
        animation: none !important;
    }

    .hero-title,
    .hero-title-accent,
    .hero-subtitle,
    .stat-item {
        animation: none !important;
    }

    .hero-section--home::before,
    .hero-section--home::after,
    .hero-grid-pattern {
        animation: none !important;
    }

    .brand-icon-button {
        animation: none !important;
    }

    .bento-card,
    .nav-item,
    .content-card,
    .info-card,
    .timeline-item,
    .btn {
        transition: none !important;
    }
}

/* Touch targets on coarse pointers (phones/tablets) */
@media (pointer: coarse) {
    .sidebar-collapse-toggle {
        width: 44px;
        height: 44px;
    }

    .nav-item {
        min-height: 44px;
    }
}
