/* ============================================================
   IMPORT FONT
   ============================================================ */
/* EMERGENCY RESET - Taruh paling atas */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.nav-logo-icon img,
.nav-logo-icon svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    object-fit: contain;
}

.nav-logo-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    overflow: hidden;
    flex-shrink: 0 !important;
}
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ============================================================
   ROOT VARIABLES - LIGHT MODE
   ============================================================ */
:root {
    --primary:       #4A90D9;
    --primary-dark:  #357ABD;
    --primary-light: #EBF4FF;
    --secondary:     #7B68EE;
    --accent:        #F5A623;
    --danger:        #E53E3E;
    --warning:       #F59E0B;

    --bg:            #F8FAFC;
    --bg-card:       #FFFFFF;
    --bg-alt:        #F1F5F9;

    --text:          #1A202C;
    --text-secondary:#4A5568;
    --text-muted:    #718096;

    --border:        #E2E8F0;
    --border-light:  #EDF2F7;

    --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
    --shadow:        0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.12);

    --font-main:     'Plus Jakarta Sans', sans-serif;
    --font-display:  'Playfair Display', serif;

    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     20px;
    --radius-xl:     28px;

    --transition:    all 0.3s ease;
    --container:     1200px;
}

/* ============================================================
   ROOT VARIABLES - DARK MODE
   ============================================================ */
[data-theme="dark"] {
    --primary:       #60A5FA;
    --primary-dark:  #3B82F6;
    --primary-light: #1E3A5F;
    --secondary:     #A78BFA;
    --accent:        #FCD34D;

    --bg:            #0F1117;
    --bg-card:       #1A1D27;
    --bg-alt:        #242736;

    --text:          #F0F4F8;
    --text-secondary:#CBD5E0;
    --text-muted:    #718096;

    --border:        #2D3748;
    --border-light:  #2A2F3E;

    --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
    --shadow:        0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.5);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--primary-dark); }

ul, ol { list-style: none; }

button {
    cursor: pointer;
    font-family: var(--font-main);
    border: none;
    background: none;
}

input, textarea, select {
    font-family: var(--font-main);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-main);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1;
}

.btn-sm  { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg  { padding: 14px 28px; font-size: 0.95rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 16px rgba(74,144,217,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,144,217,0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: #0F1B35;
    border-color: white;
}
.btn-white:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.12);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}
.btn-danger:hover {
    background: #C53030;
    transform: translateY(-2px);
    color: white;
}

/* Hero buttons */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: white !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-hero-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,144,217,0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: white !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

/* ============================================================
   SECTION
   ============================================================ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(74,144,217,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 14px;
    font-family: var(--font-display);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   NAVBAR SPACER
   ============================================================ */
.navbar-spacer {
    height: 70px;
}

body.has-hero .navbar-spacer {
    height: 0;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.site-header.at-top {
    background: transparent;
    box-shadow: none;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 32px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(26,29,39,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 2px 32px rgba(0,0,0,0.3);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}
.nav-logo:hover { opacity: 0.85; }

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4A90D9, #7B68EE);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(74,144,217,0.3);
    transition: transform 0.3s ease;
}
.nav-logo:hover .nav-logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-logo-name {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.nav-logo-tagline {
    font-size: 0.62rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.site-header.scrolled .nav-logo-name {
    color: var(--text);
}
.site-header.scrolled .nav-logo-tagline {
    color: var(--text-muted);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content : center;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    left: 14px;
    right: 14px;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.12);
}

.nav-link.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.site-header.scrolled .nav-link {
    color: var(--text-secondary);
}
.site-header.scrolled .nav-link::after {
    background: var(--primary);
}
.site-header.scrolled .nav-link:hover {
    color: var(--primary);
    background: rgba(74,144,217,0.08);
}
.site-header.scrolled .nav-link.active {
    color: var(--primary);
    background: rgba(74,144,217,0.1);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-donate-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4A90D9, #7B68EE);
    color: white;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(74,144,217,0.35);
}
.nav-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,144,217,0.45);
    color: white;
}

/* Theme Toggle */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: rotate(20deg);
}
.site-header.scrolled .theme-toggle {
    border-color: var(--border);
    background: var(--bg-alt);
    color: var(--text);
}
.site-header.scrolled .theme-toggle:hover {
    background: var(--border);
    transform: rotate(20deg);
}

.icon-moon { display: none; }
.icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: none; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}
.site-header.scrolled .nav-toggle {
    border-color: var(--border);
    background: var(--bg-alt);
}
.site-header.scrolled .nav-toggle span {
    background: var(--text);
}
.nav-toggle:hover {
    background: rgba(255,255,255,0.2);
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.mobile-menu.open { right: 0; }

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 80px 0 32px;
    overflow-y: auto;
}

.mobile-nav-list {
    list-style: none;
    padding: 0 16px;
    margin: 0;
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    margin-bottom: 4px;
}
.mobile-nav-link:hover {
    background: rgba(74,144,217,0.08);
    color: var(--primary);
    transform: translateX(4px);
}
.mobile-nav-link.active {
    background: linear-gradient(135deg,
        rgba(74,144,217,0.12),
        rgba(123,104,238,0.08));
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.mobile-nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-menu-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}
.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   RESPONSIVE NAVBAR
   ============================================================ */
@media (max-width: 1024px) {
    .nav-link { padding: 8px 10px; font-size: 0.82rem; }
}

@media (max-width: 768px) {
    .nav-toggle    { display: flex; }
    .nav-menu      { display: none; }
    .nav-donate-btn{ display: none; }
    .navbar        { height: 60px; }
    .navbar-spacer { height: 60px; }
    .nav-logo-icon { width: 36px; height: 36px; }
    .nav-logo-name { font-size: 0.9rem; }
    .nav-logo-tagline { display: none; }
}

@media (max-width: 480px) {
    .mobile-menu { width: 100%; }
}

/* ============================================
   HERO VIDEO - TAMPIL DI SEMUA DEVICE
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 50%, #0F1B35 100%);
}

.hero-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* VIDEO TAMPIL DI SEMUA UKURAN LAYAR */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
    display: block; /* SELALU TAMPIL */
    opacity: 1;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15,27,53,0.78) 0%,
        rgba(26,42,94,0.68) 100%
    );
    z-index: 2;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    animation: particleFloat 8s infinite ease-in-out;
}

.particle:nth-child(1) { left:10%; top:20%; animation-delay:0s;   animation-duration:7s; }
.particle:nth-child(2) { left:20%; top:80%; animation-delay:1s;   animation-duration:9s; }
.particle:nth-child(3) { left:35%; top:40%; animation-delay:2s;   animation-duration:6s; }
.particle:nth-child(4) { left:50%; top:70%; animation-delay:0.5s; animation-duration:8s; }
.particle:nth-child(5) { left:65%; top:30%; animation-delay:1.5s; animation-duration:7s; }
.particle:nth-child(6) { left:75%; top:60%; animation-delay:3s;   animation-duration:9s; }
.particle:nth-child(7) { left:85%; top:15%; animation-delay:2.5s; animation-duration:6s; }
.particle:nth-child(8) { left:90%; top:85%; animation-delay:0.8s; animation-duration:8s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1);        opacity: 0.3; }
    50%       { transform: translateY(-20px) scale(1.5);  opacity: 0.8; }
}

.hero .container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 140px 0 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0,119,182,0.8);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(0,150,199,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: #60C3FF;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

.hero-scroll-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: scrollBounce 2s infinite ease-in-out;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0);    opacity: 0.6; }
    50%       { transform: translateY(6px); opacity: 1;   }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {

    /* VIDEO TETAP TAMPIL DI MOBILE */
    .hero-video {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        /* Mobile: paksa cover penuh */
        width: 100vw !important;
        height: 100vh !important;
        min-width: unset !important;
        min-height: unset !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        object-fit: cover !important;
    }

    .hero-content {
        padding: 110px 0 80px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .particle:nth-child(5),
    .particle:nth-child(6),
    .particle:nth-child(7),
    .particle:nth-child(8) {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 90px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video       { display: none !important; }
    .particle         { display: none !important; }
    .hero-scroll-icon { animation: none !important; }
    /* Fallback jika reduced motion */
    .hero {
        background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 50%, #0F1B35 100%);
    }
}

/* DESKTOP - min 769px */
@media (min-width: 769px) {
    .hero-video {
        display: block !important;
        visibility: visible !important;
    }

    .hero-fallback-bg {
        /* Tetap ada sebagai background di belakang video */
        display: block;
        opacity: 1;
    }
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-scroll-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: scrollBounce 2s infinite ease-in-out;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0);    opacity: 0.6; }
    50%       { transform: translateY(6px); opacity: 1; }
}

/* Fallback jika video tidak load */
.hero-video-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 50%, #0F1B35 100%);
    z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    .particle   { display: none; }
}

@media (max-width: 768px) {
    .hero-video { display: none; }
    .hero-content {
        padding: 110px 0 70px;
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions { justify-content: center; }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content { padding: 90px 0 60px;
    }
    .hero-title { font-size: 1.8rem; }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Animasi background mobile */
@keyframes mobileBgShift {
    0% {
        background:
            radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.35) 0%, transparent 60%),
            radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.25) 0%, transparent 55%),
            radial-gradient(ellipse at 60% 85%, rgba(0,119,182,0.2) 0%, transparent 50%),
            linear-gradient(135deg, #0F1B35 0%, #1A2A5E 50%, #0F1B35 100%);
    }
    33% {
        background:
            radial-gradient(ellipse at 60% 30%, rgba(59,130,246,0.4) 0%, transparent 60%),
            radial-gradient(ellipse at 30% 70%, rgba(99,102,241,0.3) 0%, transparent 55%),
            radial-gradient(ellipse at 80% 80%, rgba(0,119,182,0.25) 0%, transparent 50%),
            linear-gradient(135deg, #0F1B35 0%, #1e3a8a 50%, #1A2A5E 100%);
    }
    66% {
        background:
            radial-gradient(ellipse at 80% 60%, rgba(99,102,241,0.35) 0%, transparent 60%),
            radial-gradient(ellipse at 20% 30%, rgba(59,130,246,0.25) 0%, transparent 55%),
            radial-gradient(ellipse at 50% 90%, rgba(0,119,182,0.2) 0%, transparent 50%),
            linear-gradient(135deg, #1A2A5E 0%, #0F1B35 50%, #1e40af 100%);
    }
    100% {
        background:
            radial-gradient(ellipse at 75% 40%, rgba(59,130,246,0.45) 0%, transparent 60%),
            radial-gradient(ellipse at 25% 75%, rgba(0,119,182,0.35) 0%, transparent 55%),
            radial-gradient(ellipse at 40% 20%, rgba(99,102,241,0.2) 0%, transparent 50%),
            linear-gradient(135deg, #0F1B35 0%, #1e40af 50%, #1A2A5E 100%);
    }
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, #0F1B35, #1A2A5E);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #4A90D9, #7B68EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-family: var(--font-display);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid { gap: 12px; }
    .stat-item  { padding: 16px; }
}

/* ============================================================
   PROGRAMS SECTION
   ============================================================ */
.programs-highlight {
    padding: 80px 0;
    background: var(--bg);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.program-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A90D9, #7B68EE);
    border-radius: 20px 20px 0 0;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(74,144,217,0.15);
}

.program-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.program-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-display);
}

.program-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.program-card-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-alt);
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-top: auto;
}

.program-card-num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.program-card-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.program-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: 4px;
    transition: gap 0.3s ease;
}
.program-card-link:hover {
    gap: 10px;
    color: var(--secondary);
}

@media (max-width: 1024px) {
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .programs-grid { grid-template-columns: 1fr; }
}

[data-theme="dark"] .program-card {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .program-card-stat {
    background: var(--bg-alt);
    border-color: var(--border);
}

/* ============================================================
   ABOUT PREVIEW (Homepage)
   ============================================================ */
.about-preview {
    padding: 80px 0;
    background: var(--bg);
    overflow: hidden;
}

.about-story-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
    margin-top: 56px;
}

/* Visual kiri */
.about-visual {
    position: relative;
}

.about-img-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1A2A5E, #0F1B35);
    box-shadow: 0 24px 64px rgba(74,144,217,0.2);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.about-img-main:hover img { transform: scale(1.03); }

.about-img-placeholder {
    width: 100%;
    min-height: 300px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 50%, #0077B6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,119,182,0.25);
}

.about-placeholder-logo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow:
        0 0 0 8px rgba(255,255,255,0.08),
        0 12px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    display: block;
}
.about-placeholder-logo:hover {
    transform: scale(1.05);
}

.about-img-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.about-img-placeholder p {
    font-size: 1.2rem;
    font-weight: 800;
    color: white !important;
    letter-spacing: 2px;
}

.about-img-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 14px;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 90px;
}

.about-img-badge-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-family: var(--font-display);
}

.about-img-badge-text {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.about-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.about-mini-stat {
    background: var(--bg-alt);
    border-radius: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-mini-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.about-mini-stat-icon { font-size: 1.4rem; flex-shrink: 0; }

.about-mini-stat strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.about-mini-stat small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Content kanan */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-story-text h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    font-family: var(--font-display);
    position: relative;
    padding-left: 16px;
}

.about-story-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, #4A90D9, #7B68EE);
    border-radius: 2px;
}

.about-story-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 0;
}

.about-visi-misi {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-vm-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-vm-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.about-vm-visi {
    background: linear-gradient(135deg,
        rgba(74,144,217,0.06),
        rgba(123,104,238,0.04));
    border-color: rgba(74,144,217,0.2);
}

.about-vm-misi {
    background: linear-gradient(135deg,
        rgba(72,187,120,0.06),
        rgba(56,161,105,0.04));
    border-color: rgba(72,187,120,0.2);
}

.about-vm-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-vm-item h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-vm-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}
.about-value-item:hover { transform: translateY(-2px); }

.about-value-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-value-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.about-value-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.about-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

/* Responsive About Preview */
@media (max-width: 1024px) {
    .about-story-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about-story-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 40px;
    }
    .about-img-main { aspect-ratio: 16/9; }
    .about-values   { grid-template-columns: 1fr 1fr; }
    .about-cta      { flex-direction: row; }
}

@media (max-width: 480px) {
    .about-preview  { padding: 60px 0; }
    .about-img-main { aspect-ratio: 4/3; border-radius: 16px; }
    .about-img-badge { bottom: 12px; right: 12px; padding: 10px 12px; }
    .about-img-badge-num { font-size: 1.3rem; }
    .about-mini-stats { gap: 10px; }
    .about-mini-stat  { padding: 12px; }
    .about-values     { grid-template-columns: 1fr; gap: 10px    }
    .about-cta { flex-direction: column; }
    .about-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.gallery-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.gallery-filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}
.gallery-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(74,144,217,0.06);
}
.gallery-filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 14px rgba(74,144,217,0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
    z-index: 2;
}

.gallery-item.wide  { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item.tall  { grid-row: span 2;    aspect-ratio: 1/2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15,27,53,0.85) 0%,
        rgba(15,27,53,0.2)  50%,
        transparent         100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    line-height: 1.3;
}

.gallery-item-cat {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.gallery-item-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}
.gallery-item:hover .gallery-item-zoom {
    opacity: 1;
    transform: scale(1);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-card));
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 16px;
    text-align: center;
}

.gallery-placeholder-icon {
    font-size: 2rem;
    opacity: 0.5;
}

.gallery-more {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gallery-item.wide { grid-column: span 2; }
    .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }
}

@media (max-width: 480px) {
    .gallery-section { padding: 60px 0; }
    .gallery-grid    { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-filter  { gap: 8px; }
    .gallery-filter-btn { padding: 7px 14px; font-size: 0.8rem; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}

.lightbox-caption {
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 500px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0,0,0,0.4);
    padding: 6px 16px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-prev,
    .lightbox-next { width: 40px; height: 40px; font-size: 0.9rem; }
    .lightbox-img-wrap img { max-width: 95vw; }
}

/* ============================================================
   NEWS / BLOG SECTION
   ============================================================ */
.news-section {
    padding: 80px 0;
    background: var(--bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.1);
}

.news-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-alt);
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }

.news-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary);
    color: white;
}

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    margin: 0;
    font-family: var(--font-display);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.news-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.news-card-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.news-card-read {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}
.news-card-read:hover {
    gap: 8px;
    color: var(--secondary);
}

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-section { padding: 60px 0; }
}

/* ============================================================
   DONATION CTA SECTION
   ============================================================ */
.donation-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 50%, #0F1B35 100%);
    position: relative;
    overflow: hidden;
}

.donation-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,144,217,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.donation-cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123,104,238,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.donation-cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.donation-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(74,144,217,0.2);
    border: 1px solid rgba(74,144,217,0.4);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #60C3FF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.donation-cta-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.donation-cta-title .highlight {
    background: linear-gradient(135deg, #60C3FF, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.donation-cta-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 40px;
}

.donation-amounts {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.donation-amount-btn {
    padding: 10px 22px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    backdrop-filter: blur(8px);
}
.donation-amount-btn:hover,
.donation-amount-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,144,217,0.4);
}

.donation-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.donation-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.donation-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.donation-trust-item i {
    color: #48BB78;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .donation-cta { padding: 60px 0; }
    .donation-amounts { gap: 8px; }
    .donation-amount-btn { padding: 9px 16px; font-size: 0.82rem; }
    .donation-cta-actions { flex-direction: column; align-items: center; }
    .donation-cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
    padding: 80px 0;
    background: var(--bg);
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-display);
    line-height: 1.3;
    margin-bottom: 4px;
}

.contact-info-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(74,144,217,0.3);
}

.contact-item-body {}

.contact-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-item-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.contact-item-value a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-item-value a:hover { color: var(--primary); }

.contact-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.contact-social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74,144,217,0.3);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-form-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    font-family: var(--font-display);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.92rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}
.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(74,144,217,0.1);
}
.form-control::placeholder { color: var(--text-muted); }

textarea.form-control {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.form-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-note i { color: #48BB78; }

@media (max-width: 1024px) {
    .contact-wrap { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
    .contact-form-wrap { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-section { padding: 60px 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #0A0F1E;
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #4A90D9, #7B68EE);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo-name {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.3px;
}

.footer-logo-tagline {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    display: block;
}

.footer-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(74,144,217,0.35);
}

.footer-col-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-links a::before {
    content: '→';
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
}
.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}
.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

.footer-contact-list li i {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-list a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-contact-list a:hover { color: white; }

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-copy a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-copy a:hover { color: white; }

.footer-bottom-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-links a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-bottom-links a:hover { color: white; }

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .site-footer { padding: 48px 0 0; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom-links { gap: 14px; }
}

/* ============================================================
   ABOUT PAGE - FULL
   ============================================================ */
.about-page-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,144,217,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.about-page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123,104,238,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.about-page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.about-page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(74,144,217,0.2);
    border: 1px solid rgba(74,144,217,0.4);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #60C3FF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.about-page-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.about-page-hero-title .highlight {
    background: linear-gradient(135deg, #60C3FF, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-page-hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
}

/* About Tabs */
.about-tabs-wrap {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.about-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.about-tabs::-webkit-scrollbar { display: none; }

.about-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-main);
}
.about-tab-btn:hover {
    color: var(--primary);
    background: rgba(74,144,217,0.04);
}
.about-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(74,144,217,0.06);
}

.about-tab-icon { font-size: 1rem; }

/* Tab Panels */
.about-tab-panel {
    display: none;
    padding: 64px 0;
}
.about-tab-panel.active { display: block; }

/* Sejarah Panel */
.sejarah-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 0 40px;
}

.sejarah-timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.3);
    z-index: 1;
}

.timeline-item.featured::before {
    width: 18px;
    height: 18px;
    left: -34px;
    top: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 0 4px rgba(74,144,217,0.25);
}

.timeline-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(74,144,217,0.1);
    border: 1px solid rgba(74,144,217,0.2);
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.timeline-img {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 200px;
}
.timeline-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Struktur Panel */
.struktur-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 10px;
}
.struktur-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
}

.struktur-top {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.struktur-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.struktur-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.struktur-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.struktur-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.struktur-card.ketua {
    background: linear-gradient(135deg,
        rgba(74,144,217,0.08),
        rgba(123,104,238,0.06));
    border-color: rgba(74,144,217,0.25);
}
.struktur-card.ketua::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.struktur-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    border: 3px solid var(--border);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.struktur-card.ketua .struktur-avatar {
    width: 88px;
    height: 88px;
    border-color: rgba(74,144,217,0.4);
    border-width: 4px;
}

.struktur-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.struktur-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    font-family: var(--font-display);
}
.struktur-card.ketua .struktur-name { font-size: 1.05rem; }

.struktur-role {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(74,144,217,0.1);
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 8px;
}

.struktur-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Program Panel */
.program-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.program-detail-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.program-detail-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}
.program-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.program-detail-card:hover .program-detail-img img {
    transform: scale(1.05);
}

.program-detail-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-card));
}

.program-detail-body {
    padding: 24px;
}

.program-detail-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(74,144,217,0.1);
    border: 1px solid rgba(74,144,217,0.2);
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.program-detail-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    font-family: var(--font-display);
    line-height: 1.4;
}

.program-detail-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.program-detail-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.program-detail-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.program-detail-stat strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.program-detail-stat span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .program-detail-grid { grid-template-columns: 1fr; }
}

/* Prestasi Panel */
.prestasi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.prestasi-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.prestasi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.prestasi-card.gold {
    background: linear-gradient(135deg,
        rgba(245,166,35,0.08),
        rgba(245,166,35,0.04));
    border-color: rgba(245,166,35,0.3);
}
.prestasi-card.silver {
    background: linear-gradient(135deg,
        rgba(160,174,192,0.08),
        rgba(160,174,192,0.04));
    border-color: rgba(160,174,192,0.3);
}
.prestasi-card.bronze {
    background: linear-gradient(135deg,
        rgba(205,127,50,0.08),
        rgba(205,127,50,0.04));
    border-color: rgba(205,127,50,0.3);
}

.prestasi-medal {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.prestasi-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    font-family: var(--font-display);
    line-height: 1.4;
}

.prestasi-event {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.prestasi-year {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 50px;
}

@media (max-width: 1024px) {
    .prestasi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .prestasi-grid { grid-template-columns: 1fr; }
    .about-tabs-wrap { top: 60px; }
    .struktur-grid { grid-template-columns: repeat(2, 1fr); }
    .struktur-grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .about-tab-btn { padding: 14px 16px; font-size: 0.82rem; }
    .about-tab-btn span:not(.about-tab-icon) { display: none; }
    .struktur-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   GALLERY PAGE - FULL
   ============================================================ */
.gallery-page-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,144,217,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.gallery-page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(74,144,217,0.2);
    border: 1px solid rgba(74,144,217,0.4);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #60C3FF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.gallery-page-hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 14px;
    font-family: var(--font-display);
}

.gallery-page-hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
}

/* Gallery Page Content */
.gallery-page-content {
    padding: 64px 0;
    background: var(--bg);
}

.gallery-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.gallery-page-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--border);
}

.gallery-view-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.gallery-view-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.gallery-view-btn:hover:not(.active) {
    color: var(--text);
    background: rgba(0,0,0,0.04);
}

/* Masonry Layout */
.gallery-masonry {
    columns: 4;
    column-gap: 16px;
}

.gallery-masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    aspect-ratio: unset;
    height: auto;
}

.gallery-masonry .gallery-item img {
    height: auto;
    width: 100%;
}

/* List Layout */
.gallery-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-list .gallery-item {
    aspect-ratio: unset;
    display: flex;
    flex-direction: row;
    height: 120px;
    border-radius: 14px;
}

.gallery-list .gallery-item img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 14px 0 0 14px;
}

.gallery-list .gallery-item-overlay {
    position: relative;
    opacity: 1;
    background: none;
    padding: 16px 20px;
    justify-content: center;
    flex: 1;
}

.gallery-list .gallery-item-title {
    color: var(--text);
    font-size: 0.95rem;
}

.gallery-list .gallery-item-cat {
    color: var(--text-muted);
}

/* Gallery Pagination */
.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.gallery-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}
.gallery-page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(74,144,217,0.06);
}
.gallery-page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(74,144,217,0.3);
}
.gallery-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .gallery-masonry { columns: 3; }
}

@media (max-width: 768px) {
    .gallery-masonry { columns: 2; }
    .gallery-page-toolbar { flex-direction: column; align-items: flex-start; }
    .gallery-page-content { padding: 48px 0; }
    .gallery-list .gallery-item { height: 100px; }
    .gallery-list .gallery-item img { width: 140px; height: 100px; }
}

@media (max-width: 480px) {
    .gallery-masonry { columns: 2; column-gap: 10px; }
    .gallery-masonry .gallery-item { margin-bottom: 10px; }
}

/* ============================================================
   NEWS PAGE - FULL
   ============================================================ */
.news-page-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.news-page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(74,144,217,0.2);
    border: 1px solid rgba(74,144,217,0.4);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #60C3FF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.news-page-hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 14px;
    font-family: var(--font-display);
}

.news-page-hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
}

/* News Page Content */
.news-page-content {
    padding: 64px 0;
    background: var(--bg);
}

.news-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* Featured Post */
.news-featured {
    margin-bottom: 48px;
}

.news-featured-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    transition: box-shadow 0.3s ease;
}
.news-featured-card:hover {
    box-shadow: var(--shadow-lg);
}

.news-featured-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}
.news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-featured-card:hover .news-featured-img img {
    transform: scale(1.04);
}

.news-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-featured-body {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.news-featured-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(74,144,217,0.1);
    border: 1px solid rgba(74,144,217,0.2);
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-featured-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
    font-family: var(--font-display);
    margin: 0;
}

.news-featured-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-wrap: wrap;
}

.news-featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.news-featured-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.news-featured-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.news-featured-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* News Sidebar */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border);
}

.sidebar-widget-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-title i {
    color: var(--primary);
    font-size: 1rem;
}

/* Search Widget */
.sidebar-search {
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 11px 44px 11px 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.88rem;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s ease;
}
.sidebar-search input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(74,144,217,0.1);
}
.sidebar-search input::placeholder { color: var(--text-muted); }

.sidebar-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 4px;
}
.sidebar-search-btn:hover { color: var(--primary); }

/* Categories Widget */
.sidebar-cats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.sidebar-cat-item:hover {
    background: rgba(74,144,217,0.08);
    border-color: rgba(74,144,217,0.2);
    transform: translateX(4px);
}
.sidebar-cat-item.active {
    background: rgba(74,144,217,0.1);
    border-color: rgba(74,144,217,0.3);
}

.sidebar-cat-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-cat-item:hover .sidebar-cat-name,
.sidebar-cat-item.active .sidebar-cat-name {
    color: var(--primary);
}

.sidebar-cat-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 50px;
    min-width: 28px;
    text-align: center;
}

/* Recent Posts Widget */
.sidebar-recent {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-recent-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.sidebar-recent-item:hover { transform: translateX(4px); }

.sidebar-recent-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
}
.sidebar-recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-recent-body {}

.sidebar-recent-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}
.sidebar-recent-item:hover .sidebar-recent-title {
    color: var(--primary);
}

.sidebar-recent-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tags Widget */
.sidebar-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sidebar-tag {
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.sidebar-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* News List */
.news-list-section {}

.news-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.news-list-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-display);
}

.news-list-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* News Pagination */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.news-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    text-decoration: none;
}
.news-page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(74,144,217,0.06);
}
.news-page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(74,144,217,0.3);
}
.news-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .news-page-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .news-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .news-featured-card {
        grid-template-columns: 1fr;
    }
    .news-featured-img { aspect-ratio: 16/9; }
    .news-featured-body { padding: 28px 24px; }
}

@media (max-width: 768px) {
    .news-page-content { padding: 48px 0; }
    .news-list-grid { grid-template-columns: 1fr; }
    .news-sidebar { grid-template-columns: 1fr; }
    .news-featured-body { padding: 20px; }
    .news-featured-title { font-size: 1.15rem; }
}

/* ============================================================
   NEWS DETAIL PAGE
   ============================================================ */
.news-detail-hero {
    padding: 100px 0 0;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 100%);
    position: relative;
    overflow: hidden;
}

.news-detail-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.news-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-detail-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}
.news-detail-breadcrumb a:hover { color: white; }

.news-detail-breadcrumb i { font-size: 0.65rem; }

.news-detail-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #60C3FF;
    background: rgba(74,144,217,0.2);
    border: 1px solid rgba(74,144,217,0.4);
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.news-detail-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    color: white;
    line-height: 1.25;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.news-detail-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-detail-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}
.news-detail-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-author-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
}

.news-detail-author-role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.news-detail-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    flex-wrap: wrap;
}

.news-detail-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* News Detail Content */
.news-detail-content {
    padding: 64px 0;
    background: var(--bg);
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.news-detail-main {}

.news-detail-cover {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    aspect-ratio: 16/9;
    background: var(--bg-alt);
    box-shadow: var(--shadow-lg);
}
.news-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Body */
.article-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    max-width: 100%;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 40px 0 16px;
    font-family: var(--font-display);
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px;
    font-family: var(--font-display);
    line-height: 1.35;
}

.article-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 10px;
}

.article-body p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.85;
}

.article-body p:last-child { margin-bottom: 0; }

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}
.article-body a:hover { color: var(--secondary); }

.article-body strong {
    font-weight: 700;
    color: var(--text);
}

.article-body em { font-style: italic; }

.article-body ul,
.article-body ol {
    margin: 0 0 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 4px;
}

.article-body blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg,
        rgba(74,144,217,0.06),
        rgba(123,104,238,0.04));
    border-radius: 0 16px 16px 0;
    position: relative;
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: var(--font-display);
    line-height: 1;
}

.article-body blockquote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text);
    font-weight: 500;
    margin: 0;
    line-height: 1.7;
}

.article-body blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
}

.article-body img {
    width: 100%;
    border-radius: 16px;
    margin: 24px 0;
    box-shadow: var(--shadow);
}

.article-body figure {
    margin: 28px 0;
}

.article-body figcaption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-body th {
    background: var(--bg-alt);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.article-body td {
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.article-body tr:last-child td { border-bottom: none; }
.article-body tr:hover td { background: rgba(74,144,217,0.03); }

.article-body code {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--primary);
}

.article-body pre {
    background: #1A1D27;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid rgba(255,255,255,0.06);
}

.article-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: #E2E8F0;
    font-size: 0.88rem;
    line-height: 1.7;
}

.article-body hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 40px 0;
}

/* Article Tags */
.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px solid var(--border);
}

.article-tags-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.article-tag {
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}
.article-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Article Share */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--bg-alt);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.article-share-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
}

.article-share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-main);
}

.article-share-btn.facebook {
    background: rgba(24,119,242,0.1);
    color: #1877F2;
    border-color: rgba(24,119,242,0.2);
}
.article-share-btn.facebook:hover {
    background: #1877F2;
    color: white;
}

.article-share-btn.twitter {
    background: rgba(29,161,242,0.1);
    color: #1DA1F2;
    border-color: rgba(29,161,242,0.2);
}
.article-share-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
}

.article-share-btn.whatsapp {
    background: rgba(37,211,102,0.1);
    color: #25D366;
    border-color: rgba(37,211,102,0.2);
}
.article-share-btn.whatsapp:hover {
    background: #25D366;
    color: white;
}

.article-share-btn.copy {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-color: var(--border);
}
.article-share-btn.copy:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Article Author Box */
.article-author-box {
    margin-top: 40px;
    padding: 28px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.article-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--border);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}
.article-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-author-info {}

.article-author-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
    font-family: var(--font-display);
}

.article-author-role {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.article-author-bio {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Related Posts */
.related-posts {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.related-posts-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 10px;
}
.related-posts-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .news-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .news-detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .news-detail-content { padding: 48px 0; }
    .article-author-box { flex-direction: column; gap: 16px; }
    .article-author-avatar { width: 56px; height: 56px; }
    .related-posts-grid { grid-template-columns: 1fr; }
    .news-detail-sidebar { grid-template-columns: 1fr; }
    .article-body h2 { font-size: 1.25rem; }
    .article-body h3 { font-size: 1.05rem; }
    .article-body blockquote { padding: 18px 20px; }
}

/* ============================================================
   DONATION PAGE
   ============================================================ */
.donation-page-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.donation-page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

.donation-page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(245,166,35,0.2);
    border: 1px solid rgba(245,166,35,0.4);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #FCD34D;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.donation-page-hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 14px;
    font-family: var(--font-display);
}

.donation-page-hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
}

/* Donation Page Content */
.donation-page-content {
    padding: 64px 0;
    background: var(--bg);
}

.donation-page-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Donation Form */
.donation-form-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.donation-form-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.donation-form-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Donation Steps */
.donation-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    overflow: hidden;
}

.donation-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.donation-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 32px);
    height: 2px;
    background: var(--border);
    left: 32px;
    z-index: 0;
}

.donation-step.completed:not(:last-child)::after {
    background: var(--primary);
}

.donation-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    z-index: 1;
    transition: all 0.3s ease;
}

.donation-step.active .donation-step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(74,144,217,0.3);
}

.donation-step.completed .donation-step-num {
    background: #48BB78;
    border-color: #48BB78;
    color: white;
}

.donation-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.donation-step.active .donation-step-label { color: var(--primary); }
.donation-step.completed .donation-step-label { color: #48BB78; }

/* Step Panels */
.donation-step-panel {
    display: none;
}
.donation-step-panel.active { display: block; }

/* Amount Selection */
.donation-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.donation-amount-option {
    padding: 14px 10px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}
.donation-amount-option:hover {
    border-color: var(--primary);
    background: rgba(74,144,217,0.06);
}
.donation-amount-option.selected {
    border-color: var(--primary);
    background: rgba(74,144,217,0.1);
    box-shadow: 0 4px 12px rgba(74,144,217,0.15);
}

.donation-amount-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
    transition: color 0.3s ease;
}
.donation-amount-option.selected .donation-amount-value {
    color: var(--primary);
}

.donation-amount-desc {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

.donation-custom-amount {
    position: relative;
    margin-bottom: 20px;
}

.donation-custom-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

.donation-custom-input {
    width: 100%;
    padding: 13px 16px 13px 52px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s ease;
}
.donation-custom-input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(74,144,217,0.1);
}
.donation-custom-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

/* Payment Methods */
.donation-payment-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
}

.donation-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.donation-payment-option {
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.donation-payment-option:hover {
    border-color: var(--primary);
    background: rgba(74,144,217,0.04);
}
.donation-payment-option.selected {
    border-color: var(--primary);
    background: rgba(74,144,217,0.08);
}

.donation-payment-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.donation-payment-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.donation-payment-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Donor Info Form */
.donation-info-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.donation-anonymous {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}
.donation-anonymous:hover {
    border-color: var(--primary);
    background: rgba(74,144,217,0.04);
}

.donation-anonymous input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.donation-anonymous-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.donation-anonymous-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Donation Summary */
.donation-summary {
    background: var(--bg-alt);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.donation-summary-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.donation-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.donation-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.donation-summary-row-label {
    color: var(--text-muted);
    font-weight: 500;
}

.donation-summary-row-value {
    font-weight: 700;
    color: var(--text);
}

.donation-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 2px solid var(--border);
    margin-top: 4px;
}

.donation-summary-total-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text);
}

.donation-summary-total-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
}

/* Donation Nav Buttons */
.donation-form-nav {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Donation Sidebar Info */
.donation-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 90px;
}

.donation-info-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border);
}

.donation-info-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 8px;
}

.donation-info-card-title i { color: var(--primary); }

/* Bank Transfer Info */
.bank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bank-item {
    padding: 14px 16px;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}
.bank-item:hover { transform: translateX(4px); }

.bank-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bank-account {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    font-family: monospace;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.bank-holder {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.bank-copy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(74,144,217,0.1);
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}
.bank-copy-btn:hover {
    background: var(--primary);
    color: white;
}

/* Impact Stats */
.impact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.impact-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.impact-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.impact-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.impact-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Donors List */
.donors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.donor-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.donor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.donor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donor-info { flex: 1; min-width: 0; }

.donor-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.donor-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.donor-amount {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .donation-page-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .donation-info-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .donation-page-content { padding: 48px 0; }
    .donation-form-card { padding: 24px 20px; }
    .donation-amount-grid { grid-template-columns: repeat(2, 1fr); }
    .donation-payment-grid { grid-template-columns: 1fr; }
    .donation-info-sidebar { grid-template-columns: 1fr; }
    .donation-steps { gap: 4px; }
    .donation-step-label { display: none; }
}

@media (max-width: 480px) {
    .donation-amount-grid { grid-template-columns: repeat(2, 1fr); }
    .donation-form-nav { flex-direction: column; }
    .donation-form-nav .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

/* Admin Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    transition: transform 0.3s ease, width 0.3s ease;
    overflow: hidden;
}

.admin-sidebar.collapsed {
    width: 70px;
}

.admin-sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    min-height: 70px;
}

.admin-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.admin-sidebar-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #4A90D9, #7B68EE);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(74,144,217,0.3);
}

.admin-sidebar-logo-text {
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease;
    white-space: nowrap;
}

.admin-sidebar.collapsed .admin-sidebar-logo-text {
    opacity: 0;
    width: 0;
}

.admin-sidebar-logo-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text);
    display: block;
}

.admin-sidebar-logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}

.admin-sidebar-collapse-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 0.75rem;
}
.admin-sidebar-collapse-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Admin Nav */
.admin-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.admin-nav::-webkit-scrollbar { width: 4px; }
.admin-nav::-webkit-scrollbar-track { background: transparent; }
.admin-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.admin-nav-section {
    margin-bottom: 24px;
}

.admin-nav-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0 8px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.admin-sidebar.collapsed .admin-nav-section-title {
    opacity: 0;
}

.admin-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-nav-item { position: relative; }

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
.admin-nav-link:hover {
    background: rgba(74,144,217,0.08);
    color: var(--primary);
}
.admin-nav-link.active {
    background: linear-gradient(135deg,
        rgba(74,144,217,0.15),
        rgba(123,104,238,0.1));
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.admin-nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.admin-nav-link:hover .admin-nav-icon {
    transform: scale(1.15);
}

.admin-nav-label {
    flex: 1;
    transition: opacity 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar.collapsed .admin-nav-label {
    opacity: 0;
    width: 0;
}

.admin-nav-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.admin-sidebar.collapsed .admin-nav-badge {
    opacity: 0;
}

/* Tooltip for collapsed sidebar */
.admin-sidebar.collapsed .admin-nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--text);
    color: var(--bg-card);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 300;
    box-shadow: var(--shadow);
}
.admin-sidebar.collapsed .admin-nav-link:hover::after {
    opacity: 1;
}

/* Admin Sidebar Footer */
.admin-sidebar-footer {
    padding: 16px 10px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.admin-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}
.admin-user-card:hover {
    background: rgba(74,144,217,0.08);
    border-color: rgba(74,144,217,0.2);
}

.admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-info {
    flex: 1;
    min-width: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.admin-sidebar.collapsed .admin-user-info {
    opacity: 0;
    width: 0;
}

.admin-user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-user-menu-icon {
    color: var(--text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}
.admin-sidebar.collapsed .admin-user-menu-icon { opacity: 0; }

/* Admin Main */
.admin-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.admin-sidebar.collapsed ~ .admin-main {
    margin-left: 70px;
}

/* Admin Topbar */
.admin-topbar {
    height: 70px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.admin-mobile-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.admin-mobile-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.admin-page-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-display);
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.admin-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.admin-breadcrumb a:hover { color: var(--primary); }

.admin-breadcrumb i { font-size: 0.6rem; }

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.admin-topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    text-decoration: none;
}
.admin-topbar-btn:hover {
    background: rgba(74,144,217,0.08);
    border-color: rgba(74,144,217,0.2);
    color: var(--primary);
}

.admin-topbar-btn-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

/* Admin Content */
.admin-content {
    flex: 1;
    padding: 28px;
    overflow-x: hidden;
}

/* Admin Dashboard Stats */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}

.admin-stat-card.blue::before   { background: linear-gradient(90deg, #4A90D9, #60A5FA); }
.admin-stat-card.green::before  { background: linear-gradient(90deg, #48BB78, #68D391); }
.admin-stat-card.purple::before { background: linear-gradient(90deg, #7B68EE, #A78BFA); }
.admin-stat-card.orange::before { background: linear-gradient(90deg, #F5A623, #FCD34D); }

.admin-stat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.admin-stat-card.blue   .admin-stat-icon { background: rgba(74,144,217,0.12);  color: #4A90D9; }
.admin-stat-card.green  .admin-stat-icon { background: rgba(72,187,120,0.12);  color: #48BB78; }
.admin-stat-card.purple .admin-stat-icon { background: rgba(123,104,238,0.12); color: #7B68EE; }
.admin-stat-card.orange .admin-stat-icon { background: rgba(245,166,35,0.12);  color: #F5A623; }

.admin-stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 50px;
}

.admin-stat-trend.up {
    background: rgba(72,187,120,0.12);
    color: #48BB78;
}
.admin-stat-trend.down {
    background: rgba(229,62,62,0.12);
    color: #E53E3E;
}

.admin-stat-body {}

.admin-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
    font-family: var(--font-display);
}

.admin-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-stat-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-stat-footer i { color: var(--primary); }

/* Admin Grid Layout */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.admin-grid-1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Admin Card */
.admin-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.admin-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-title i { color: var(--primary); font-size: 1rem; }

.admin-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-body {
    padding: 22px;
}

.admin-card-body.no-pad { padding: 0; }

.admin-card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Admin Table */
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--bg-alt);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td {
    background: rgba(74,144,217,0.03);
}

.admin-table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.admin-table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-table-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-table-user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.admin-table-user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-table-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg-alt);
}

/* Admin Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-success {
    background: rgba(72,187,120,0.12);
    color: #2F855A;
    border: 1px solid rgba(72,187,120,0.25);
}
[data-theme="dark"] .badge-success { color: #68D391; }

.badge-warning {
    background: rgba(245,158,11,0.12);
    color: #B45309;
    border: 1px solid rgba(245,158,11,0.25);
}
[data-theme="dark"] .badge-warning { color: #FCD34D; }

.badge-danger {
    background: rgba(229,62,62,0.12);
    color: #C53030;
    border: 1px solid rgba(229,62,62,0.25);
}
[data-theme="dark"] .badge-danger { color: #FC8181; }

.badge-info {
    background: rgba(74,144,217,0.12);
    color: #2B6CB0;
    border: 1px solid rgba(74,144,217,0.25);
}
[data-theme="dark"] .badge-info { color: #60A5FA; }

.badge-secondary {
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-purple {
    background: rgba(123,104,238,0.12);
    color: #553C9A;
    border: 1px solid rgba(123,104,238,0.25);
}
[data-theme="dark"] .badge-purple { color: #A78BFA; }

/* Admin Form */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-form-label .required {
    color: var(--danger);
    font-size: 0.9em;
}

.admin-form-control {
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.875rem;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}
.admin-form-control:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}
.admin-form-control::placeholder { color: var(--text-muted); }
.admin-form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

textarea.admin-form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

select.admin-form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.admin-form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.admin-form-hint i { margin-top: 2px; flex-shrink: 0; }

.admin-form-error {
    font-size: 0.75rem;
    color: var(--danger);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Admin Image Upload */
.admin-img-upload {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-alt);
    position: relative;
}
.admin-img-upload:hover {
    border-color: var(--primary);
    background: rgba(74,144,217,0.04);
}
.admin-img-upload.dragover {
    border-color: var(--primary);
    background: rgba(74,144,217,0.08);
    transform: scale(1.01);
}

.admin-img-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.admin-img-upload-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.admin-img-upload-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.admin-img-upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-img-preview {
    position: relative;
    display: inline-block;
    margin-top: 12px;
}

.admin-img-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--border);
}

.admin-img-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}
.admin-img-preview-remove:hover { transform: scale(1.1); }

/* Admin Toggle Switch */
.admin-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.admin-toggle input[type="checkbox"] {
    display: none;
}

.admin-toggle-track {
    width: 44px;
    height: 24px;
    border-radius: 50px;
    background: var(--border);
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.admin-toggle input:checked + .admin-toggle-track {
    background: var(--primary);
}

.admin-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.admin-toggle input:checked ~ .admin-toggle-track .admin-toggle-thumb,
.admin-toggle input:checked + .admin-toggle-track .admin-toggle-thumb {
    transform: translateX(20px);
}

.admin-toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    user-select: none;
}

/* Admin Search Bar */
.admin-search-bar {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.admin-search-bar input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.875rem;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s ease;
}
.admin-search-bar input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}
.admin-search-bar input::placeholder { color: var(--text-muted); }

.admin-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Admin Filters Row */
.admin-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.admin-filter-select {
    padding: 8px 32px 8px 12px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-main);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.3s ease;
}
.admin-filter-select:focus {
    border-color: var(--primary);
    background-color: var(--bg-card);
}

/* Admin Pagination */
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-pagination-info {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-pagination-btns {
    display: flex;
    gap: 4px;
}

.admin-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}
.admin-page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(74,144,217,0.06);
}
.admin-page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.admin-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Admin Chart Placeholder */
.admin-chart-wrap {
    position: relative;
    width: 100%;
}

.admin-chart-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-card));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.admin-chart-placeholder i {
    font-size: 2rem;
    opacity: 0.4;
}

/* Admin Activity Feed */
.admin-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.admin-activity-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.admin-activity-item:last-child { border-bottom: none; }

.admin-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.admin-activity-icon.blue   { background: rgba(74,144,217,0.12);  color: #4A90D9; }
.admin-activity-icon.green  { background: rgba(72,187,120,0.12);  color: #48BB78; }
.admin-activity-icon.orange { background: rgba(245,166,35,0.12);  color: #F5A623; }
.admin-activity-icon.red    { background: rgba(229,62,62,0.12);   color: #E53E3E; }
.admin-activity-icon.purple { background: rgba(123,104,238,0.12); color: #7B68EE; }

.admin-activity-body { flex: 1; min-width: 0; }

.admin-activity-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 3px;
}

.admin-activity-text strong {
    color: var(--text);
    font-weight: 700;
}

.admin-activity-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Admin Quick Actions */
.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.admin-quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.admin-quick-action:hover {
    background: rgba(74,144,217,0.08);
    border-color: rgba(74,144,217,0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.admin-quick-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.admin-quick-action-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.admin-quick-action-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Admin Dropdown Menu */
.admin-dropdown {
    position: relative;
    display: inline-block;
}

.admin-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
}

.admin-dropdown.open .admin-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    font-family: var(--font-main);
    text-align: left;
}
.admin-dropdown-item:hover {
    background: rgba(74,144,217,0.08);
    color: var(--primary);
}
.admin-dropdown-item.danger:hover {
    background: rgba(229,62,62,0.08);
    color: var(--danger);
}

.admin-dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.admin-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Admin Modal */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.admin-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.admin-modal {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}
.admin-modal-overlay.open .admin-modal {
    transform: scale(1) translateY(0);
}

.admin-modal.modal-sm { max-width: 400px; }
.admin-modal.modal-lg { max-width: 760px; }
.admin-modal.modal-xl { max-width: 960px; }

.admin-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

.admin-modal-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-modal-title i { color: var(--primary); }

.admin-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.admin-modal-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.admin-modal-body {
    padding: 24px;
}

.admin-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* Admin Notification Toast */
.admin-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.admin-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 400px;
    pointer-events: all;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.admin-toast.show { transform: translateX(0); }
.admin-toast.hide { transform: translateX(120%);}

.admin-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
}

.admin-toast.success::before { background: #48BB78; }
.admin-toast.error::before   { background: var(--danger); }
.admin-toast.warning::before { background: var(--warning); }
.admin-toast.info::before    { background: var(--primary); }

.admin-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.admin-toast.success .admin-toast-icon { background: rgba(72,187,120,0.12);  color: #48BB78; }
.admin-toast.error   .admin-toast-icon { background: rgba(229,62,62,0.12);   color: var(--danger); }
.admin-toast.warning .admin-toast-icon { background: rgba(245,158,11,0.12);  color: var(--warning); }
.admin-toast.info    .admin-toast-icon { background: rgba(74,144,217,0.12);  color: var(--primary); }

.admin-toast-body { flex: 1; min-width: 0; }

.admin-toast-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.admin-toast-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.admin-toast-close {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: var(--bg-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.admin-toast-close:hover {
    background: var(--danger);
    color: white;
}

.admin-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0,0,0,0.1);
    border-radius: 0 0 14px 14px;
    animation: toastProgress 4s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

/* Admin Confirm Dialog */
.admin-confirm-dialog {
    text-align: center;
    padding: 8px 0;
}

.admin-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.admin-confirm-icon.danger  { background: rgba(229,62,62,0.12);  color: var(--danger); }
.admin-confirm-icon.warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.admin-confirm-icon.info    { background: rgba(74,144,217,0.12); color: var(--primary); }

.admin-confirm-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.admin-confirm-msg {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Admin Empty State */
.admin-empty {
    text-align: center;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.admin-empty-icon {
    font-size: 3rem;
    opacity: 0.3;
    color: var(--text-muted);
}

.admin-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-display);
}

.admin-empty-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

/* Admin Loading Skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-alt) 25%,
        var(--border) 50%,
        var(--bg-alt) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.skeleton-text.w-full  { width: 100%; }
.skeleton-text.w-3-4   { width: 75%; }
.skeleton-text.w-1-2   { width: 50%; }
.skeleton-text.w-1-4   { width: 25%; }

.skeleton-title {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 12px;
    width: 60%;
}

.skeleton-avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-img {
    width: 100%;
    border-radius: 12px;
}

/* Admin Responsive */
@media (max-width: 1200px) {
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid-3     { grid-template-columns: repeat(2, 1fr); }
    .admin-grid-1-2   { grid-template-columns: 1fr; }
    .admin-grid-2-1   { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px !important;
        z-index: 300;
    }
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0 !important;
    }
    .admin-mobile-toggle { display: flex; }
    .admin-content { padding: 20px; }
    .admin-topbar  { padding: 0 20px; }
}

@media (max-width: 768px) {
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-grid-2     { grid-template-columns: 1fr; }
    .admin-grid-3     { grid-template-columns: 1fr; }
    .admin-form-row   { grid-template-columns: 1fr; }
    .admin-quick-actions { grid-template-columns: 1fr 1fr; }
    .admin-content    { padding: 16px; }
    .admin-topbar     { padding: 0 16px; height: 60px; }
    .admin-page-title { font-size: 0.95rem; }
    .admin-modal      { border-radius: 16px; }
    .admin-modal-body { padding: 18px; }
    .admin-modal-header { padding: 16px 18px; }
    .admin-modal-footer { padding: 14px 18px; }
}

@media (max-width: 480px) {
    .admin-stats-grid    { grid-template-columns: 1fr; }
    .admin-quick-actions { grid-template-columns: 1fr; }
    .admin-toast-container { right: 10px; left: 10px; }
    .admin-toast { min-width: unset; max-width: 100%; }
    .admin-content { padding: 12px; }
}

/* Admin Sidebar Mobile Overlay */
.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.admin-sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   RICH TEXT EDITOR AREA
   ============================================================ */
.editor-wrap {
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.editor-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.editor-toolbar-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}
.editor-toolbar-btn:hover {
    background: var(--bg-card);
    color: var(--primary);
}
.editor-toolbar-btn.active {
    background: rgba(74,144,217,0.12);
    color: var(--primary);
}

.editor-toolbar-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
    flex-shrink: 0;
}

.editor-body {
    min-height: 200px;
    padding: 16px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.7;
    outline: none;
    font-family: var(--font-main);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-wrap {
    width: 100%;
    height: 8px;
    background: var(--bg-alt);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-bar {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.progress-wrap.sm { height: 5px; }
.progress-wrap.lg { height: 12px; }

.progress-bar.success { background: linear-gradient(90deg, #48BB78, #68D391); }
.progress-bar.warning { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.progress-bar.danger  { background: linear-gradient(90deg, #E53E3E, #FC8181); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(74,144,217,0.4);
    transition: all 0.3s ease;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(74,144,217,0.5);
}

@media (max-width: 768px) {
    .scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4A90D9, #7B68EE);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loaderPulse 1.5s ease-in-out infinite;
    box-shadow: 0 8px 24px rgba(74,144,217,0.4);
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 8px 24px rgba(74,144,217,0.4); }
    50%       { transform: scale(1.08); box-shadow: 0 12px 32px rgba(74,144,217,0.6); }
}

.page-loader-dots {
    display: flex;
    gap: 8px;
}

.page-loader-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: loaderDot 1.4s ease-in-out infinite;
}

.page-loader-dot:nth-child(1) { animation-delay: 0s; }
.page-loader-dot:nth-child(2) { animation-delay: 0.2s; }
.page-loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1; }
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 800;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.cookie-consent.show { transform: translateY(0); }

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-consent-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cookie-consent-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-display);
}

.cookie-consent-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-text a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px 18px;
    }
    .cookie-consent-actions { flex-direction: column; }
    .cookie-consent-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   WHATSAPP FLOAT BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 84px;
    right: 28px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.whatsapp-float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    position: relative;
}
.whatsapp-float-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 32px rgba(37,211,102,0.5);
    color: white;
}

.whatsapp-float-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,0.3);
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% { transform: scale(1);    opacity: 0.6; }
    50%       { transform: scale(1.15); opacity: 0; }
}

.whatsapp-float-tooltip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float { bottom: 72px; right: 20px; }
    .whatsapp-float-btn { width: 46px; height: 46px; font-size: 1.2rem; }
}

/* ============================================================
   ANIMATIONS & TRANSITIONS
   ============================================================ */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In Up */
@keyframes slideInUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* Rotate */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Bounce */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* Animation Utility Classes */
.animate-fade-up    { animation: fadeInUp    0.6s ease forwards; }
.animate-fade-down  { animation: fadeInDown  0.6s ease forwards; }
.animate-fade-left  { animation: fadeInLeft  0.6s ease forwards; }
.animate-fade-right { animation: fadeInRight 0.6s ease forwards; }
.animate-scale-in   { animation: scaleIn     0.5s ease forwards; }
.animate-bounce     { animation: bounce      1s ease-in-out infinite; }
.animate-rotate     { animation: rotate      1s linear infinite; }
.animate-shake      { animation: shake       0.5s ease; }

/* Delay Utilities */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Display */
.d-none    { display: none !important; }
.d-block   { display: block !important; }
.d-flex    { display: flex !important; }
.d-grid    { display: grid !important; }
.d-inline  { display: inline !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flex */
.flex-col     { flex-direction: column !important; }
.flex-row     { flex-direction: row !important; }
.flex-wrap    { flex-wrap: wrap !important; }
.flex-nowrap  { flex-wrap: nowrap !important; }
.flex-1       { flex: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

.items-center  { align-items: center !important; }
.items-start   { align-items: flex-start !important; }
.items-end     { align-items: flex-end !important; }

.justify-center  { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end     { justify-content: flex-end !important; }
.justify-start   { justify-content: flex-start !important; }

/* Gap */
.gap-4  { gap: 4px !important; }
.gap-8  { gap: 8px !important; }
.gap-12 { gap: 12px !important; }
.gap-16 { gap: 16px !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }

/* Text */
.text-center { text-align: center !important; }
.text-left   { text-align: left !important; }
.text-right  { text-align: right !important; }

.text-xs  { font-size: 0.72rem !important; }
.text-sm  { font-size: 0.82rem !important; }
.text-base { font-size: 0.9rem !important; }
.text-lg  { font-size: 1.05rem !important; }
.text-xl  { font-size: 1.2rem !important; }
.text-2xl { font-size: 1.5rem !important; }

.font-normal  { font-weight: 400 !important; }
.font-medium  { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold    { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }

.text-primary   { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-white     { color: white !important; }
.text-success   { color: #48BB78 !important; }
.text-danger    { color: var(--danger) !important; }
.text-warning   { color: var(--warning) !important; }

.uppercase   { text-transform: uppercase !important; }
.lowercase   { text-transform: lowercase !important; }
.capitalize  { text-transform: capitalize !important; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Spacing */
.m-0  { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-8  { margin-top: 8px !important; }
.mb-8  { margin-bottom: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-48 { margin-top: 48px !important; }
.mb-48 { margin-bottom: 48px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.p-0  { padding: 0 !important; }
.p-8  { padding: 8px !important; }
.p-12 { padding: 12px !important; }
.p-16 { padding: 16px !important; }
.p-20 { padding: 20px !important; }
.p-24 { padding: 24px !important; }
.p-32 { padding: 32px !important; }

/* Width & Height */
.w-full  { width: 100% !important; }
.h-full  { height: 100% !important; }
.w-auto  { width: auto !important; }
.h-auto  { height: auto !important; }
.min-w-0 { min-width: 0 !important; }

/* Border Radius */
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded    { border-radius: var(--radius) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: 50px !important; }
.rounded-circle { border-radius: 50% !important; }

/* Background */
.bg-primary { background: var(--primary) !important; }
.bg-card    { background: var(--bg-card) !important; }
.bg-alt     { background: var(--bg-alt) !important; }
.bg-white   { background: white !important; }
.bg-transparent { background: transparent !important; }

/* Border */
.border     { border: 1px solid var(--border) !important; }
.border-0   { border: none !important; }
.border-top { border-top: 1px solid var(--border) !important; }
.border-bottom { border-bottom: 1px solid var(--border) !important; }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow    { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

/* Position */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed    { position: fixed !important; }
.sticky   { position: sticky !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto   { overflow: auto !important; }
.overflow-x-auto { overflow-x: auto !important; }

/* Cursor */
.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* Opacity */
.opacity-0   { opacity: 0 !important; }
.opacity-50  { opacity: 0.5 !important; }
.opacity-75  { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* Visibility */
.visible   { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* Z-index */
.z-0   { z-index: 0 !important; }
.z-10  { z-index: 10 !important; }
.z-50  { z-index: 50 !important; }
.z-100 { z-index: 100 !important; }

/* Pointer Events */
.pointer-events-none { pointer-events: none !important; }
.pointer-events-auto { pointer-events: auto !important; }

/* User Select */
.select-none { user-select: none !important; }
.select-all  { user-select: all !important; }

/* Object Fit */
.object-cover   { object-fit: cover !important; }
.object-contain { object-fit: contain !important; }

/* Aspect Ratio */
.aspect-square { aspect-ratio: 1 !important; }
.aspect-video  { aspect-ratio: 16/9 !important; }
.aspect-4-3    { aspect-ratio: 4/3 !important; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 1024px) {
    .lg-hidden { display: none !important; }
    .lg-block  { display: block !important; }
    .lg-flex   { display: flex !important; }
}

@media (max-width: 768px) {
    .md-hidden { display: none !important; }
    .md-block  { display: block !important; }
    .md-flex   { display: flex !important; }
    .md-text-center { text-align: center !important; }
    .md-w-full { width: 100% !important; }
    .md-flex-col { flex-direction: column !important; }
}

@media (max-width: 480px) {
    .sm-hidden { display: none !important; }
    .sm-block  { display: block !important; }
    .sm-flex   { display: flex !important; }
    .sm-text-center { text-align: center !important; }
    .sm-w-full { width: 100% !important; }
    .sm-flex-col { flex-direction: column !important; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .scroll-top,
    .whatsapp-float,
    .cookie-consent,
    .admin-sidebar,
    .admin-topbar,
    .mobile-menu,
    .mobile-overlay,
    .page-loader {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .admin-main {
        margin-left: 0 !important;
    }

    .admin-content {
        padding: 0 !important;
    }

    a {
        color: black !important;
        text-decoration: underline;
    }

    .btn {
        border: 1px solid black !important;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    .admin-card,
    .news-card,
    .program-card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    table {
        border-collapse: collapse !important;
    }

    th, td {
        border: 1px solid #ccc !important;
        padding: 8px !important;
    }
}

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
[data-theme="dark"] .admin-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

[data-theme="dark"] .admin-img-upload {
    border-color: var(--border);
}

[data-theme="dark"] .admin-img-upload:hover {
    background: rgba(74,144,217,0.06);
}

[data-theme="dark"] .news-card:hover {
    box-shadow: 0 20px 48px rgba(0,0,0,0.3);
}

[data-theme="dark"] .program-card:hover {
    box-shadow: 0 20px 48px rgba(74,144,217,0.1);
}

[data-theme="dark"] .gallery-item:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .contact-form-wrap {
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

[data-theme="dark"] .donation-form-card {
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

[data-theme="dark"] select.form-control,
[data-theme="dark"] select.admin-form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .about-img-badge {
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

[data-theme="dark"] .about-img-badge-num {
    color: var(--primary);
}

[data-theme="dark"] .about-img-badge-text {
    color: var(--text-muted);
}

[data-theme="dark"] .footer-social-link:hover {
    box-shadow: 0 6px 16px rgba(74,144,217,0.25);
}

[data-theme="dark"] .nav-donate-btn {
    box-shadow: 0 4px 14px rgba(74,144,217,0.25);
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 4px 16px rgba(74,144,217,0.2);
}

[data-theme="dark"] .scroll-top {
    box-shadow: 0 8px 24px rgba(74,144,217,0.3);
}

[data-theme="dark"] .whatsapp-float-btn {
    box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

[data-theme="dark"] .admin-stat-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

[data-theme="dark"] .admin-modal {
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

[data-theme="dark"] .admin-toast {
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .admin-dropdown-menu {
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .sidebar-widget {
    box-shadow: none;
}

[data-theme="dark"] .news-featured-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

[data-theme="dark"] .struktur-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

[data-theme="dark"] .prestasi-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

[data-theme="dark"] .timeline-item::before {
    border-color: var(--bg-card);
}

[data-theme="dark"] .article-body pre {
    background: #0D1117;
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .article-body code {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: #60A5FA;
}

[data-theme="dark"] .article-body blockquote {
    background: linear-gradient(135deg,
        rgba(74,144,217,0.08),
        rgba(123,104,238,0.06));
}

[data-theme="dark"] .article-body table {
    border-color: var(--border);
}

[data-theme="dark"] .article-body th {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .article-body td {
    border-color: var(--border);
}

[data-theme="dark"] .article-body tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-content,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-actions {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-muted: #333333;
    }

    [data-theme="dark"] {
        --border: #ffffff;
        --text-muted: #cccccc;
    }

    .btn {
        border-width: 3px;
    }

    .admin-nav-link.active {
        border-left-width: 4px;
    }
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-alt);
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
    background: rgba(74,144,217,0.25);
    color: var(--text);
}

::-moz-selection {
    background: rgba(74,144,217,0.25);
    color: var(--text);
}

/* ============================================================
   END OF STYLESHEET
   ============================================================ */

   /* ============================================================
   FIX: ABOUT IMAGE PLACEHOLDER & LOGO
   ============================================================ */
.about-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 360px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 50%, #0077B6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,119,182,0.25);
    overflow: hidden;
    position: relative;
}

/* FIX UTAMA: Logo di placeholder jangan besar */
.about-placeholder-logo {
    width: 140px !important;
    height: 140px !important;
    max-width: 140px !important;
    max-height: 140px !important;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow:
        0 0 0 8px rgba(255,255,255,0.08),
        0 12px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    display: block;
    flex-shrink: 0;
}

.about-placeholder-logo:hover {
    transform: scale(1.05);
}

.about-img-placeholder p {
    font-size: 1rem;
    font-weight: 800;
    color: white !important;
    letter-spacing: 2px;
    margin: 0;
    text-align: center;
}

.about-img-placeholder .about-img-icon {
    font-size: 3rem;
}

/* FIX: about-img-main harus punya height */
.about-img-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 320px;
    background: linear-gradient(135deg, #1A2A5E, #0F1B35);
    box-shadow: 0 24px 64px rgba(74,144,217,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    position: absolute;
    inset: 0;
}

.about-img-main:hover img { transform: scale(1.03); }

/* ============================================================
   FIX: PENGURUS TREE
   ============================================================ */
.pengurus-preview {
    padding: 80px 0;
    background: var(--bg);
    overflow: hidden;
}

.tree-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
}

.tree-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: 600px;
    padding: 20px 40px;
}

.tree-level {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.tree-node {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Garis vertikal */
.tree-garis-v {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    margin: 0 auto;
    flex-shrink: 0;
}

.tree-garis-v-sm {
    width: 2px;
    height: 24px;
    background: var(--border);
    margin: 0 auto;
    flex-shrink: 0;
}

/* Garis horizontal */
.tree-garis-h {
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0 auto;
    flex-shrink: 0;
}

/* Tree Card */
.tree-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 14px;
    text-align: center;
    min-width: 130px;
    max-width: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tree-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.tree-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}

.tc-pembina::before    { background: linear-gradient(90deg, #F59E0B, #EF4444); }
.tc-ketua::before      { background: linear-gradient(90deg, #4A90D9, #7B68EE); }
.tc-wakil-ketua::before { background: linear-gradient(90deg, #63B3ED, #7B68EE); }
.tc-bendahara::before  { background: linear-gradient(90deg, #48BB78, #38A169); }
.tc-sekretaris::before { background: linear-gradient(90deg, #9F7AEA, #7B68EE); }
.tc-wakil-bendahara::before { background: linear-gradient(90deg, #9AE6B4, #48BB78); }
.tc-wakil-sekretaris::before { background: linear-gradient(90deg, #D6BCFA, #9F7AEA); }

.tc-crown {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

/* Foto di tree card */
.tc-foto {
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 8px;
    border: 3px solid var(--border);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tc-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tc-foto-lg {
    width: 72px;
    height: 72px;
}

.tc-foto-md {
    width: 60px;
    height: 60px;
}

.tc-foto-sm {
    width: 48px;
    height: 48px;
}

/* Inisial fallback */
.tc-inisial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    border-radius: 50%;
}

.tc-foto-sm .tc-inisial { font-size: 1rem; }
.tc-foto-lg .tc-inisial { font-size: 1.5rem; }

.tc-jabatan {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tc-nama {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    word-break: break-word;
}

.tc-periode {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.tree-scroll-hint {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 12px;
    display: none;
}

/* ============================================================
   FIX: GALLERY PREVIEW
   ============================================================ */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-preview-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    display: block;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-preview-item:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-preview-item:hover img {
    transform: scale(1.06);
}

.gallery-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,27,53,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-preview-item:hover .gallery-preview-overlay {
    opacity: 1;
}

.gallery-preview-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #0F1B35, #1A2A5E);
    color: white;
}

/* ============================================================
   FIX: CONTACT PREVIEW
   ============================================================ */
.contact-preview {
    background: var(--bg-alt);
}

.contact-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-preview-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid var(--border);
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.contact-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(74,144,217,0.3);
}

.contact-preview-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.contact-preview-card strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.contact-preview-card span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    word-break: break-all;
}

/* ============================================================
   FIX: DONATION CTA (index.php version)
   ============================================================ */
.donation-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 50%, #0F1B35 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.donation-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(74,144,217,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(123,104,238,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.donation-cta-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.donation-cta-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

.donation-cta-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
    font-family: var(--font-display);
    line-height: 1.25;
}

.donation-cta-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    margin-bottom: 32px;
}

.donation-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   FIX: BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(74,144,217,0.4);
    transition: all 0.3s ease;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.back-to-top.visible,
.back-to-top:not([style*="display:none"]) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(74,144,217,0.5);
    color: white;
}

/* ============================================================
   RESPONSIVE FIXES
   ============================================================ */
@media (max-width: 1024px) {
    .contact-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pengurus-preview { padding: 60px 0; }
    .tree-scroll-hint { display: block; }
    .tree-box { min-width: 500px; padding: 16px 20px; }
    .tree-card { min-width: 110px; max-width: 140px; padding: 12px 10px; }
    .tc-foto-lg { width: 60px; height: 60px; }
    .tc-foto-md { width: 50px; height: 50px; }
    .tc-foto-sm { width: 40px; height: 40px; }
    .tc-nama    { font-size: 0.75rem; }
    .tc-jabatan { font-size: 0.62rem; }

    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .contact-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .about-img-main { min-height: 260px; }
    .about-placeholder-logo {
        width: 110px !important;
        height: 110px !important;
        max-width: 110px !important;
        max-height: 110px !important;
    }

    .donation-cta { padding: 60px 0; }
    .donation-cta-actions { flex-direction: column; align-items: center; }
    .donation-cta-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .contact-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .contact-preview-card { padding: 18px 14px; }
    .contact-preview-icon { font-size: 1.6rem; }

    .about-placeholder-logo {
        width: 90px !important;
        height: 90px !important;
        max-width: 90px !important;
        max-height: 90px !important;
    }

    .tree-card { min-width: 100px; max-width: 120px; }
}
/* ============================================================
   FIX NAVBAR - sesuai navbar.php
   ============================================================ */

/* Brand / Logo wrapper */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
    max-height: 70px;
    overflow: hidden;
}
.navbar-brand:hover { opacity: 0.85; }

/* ============================================================
   FIX: Logo dari upload (img tag)
   ============================================================ */
.site-logo {
    height: 44px !important;
    width: auto !important;
    max-width: 160px !important;
    max-height: 44px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Saat scroll - logo sedikit lebih kecil */
.site-header.scrolled .site-logo {
    height: 38px !important;
    max-height: 38px !important;
}

/* ============================================================
   FIX: SVG Default Logo
   ============================================================ */
.logo-svg-wrap {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(74,144,217,0.3);
}

.logo-svg-wrap svg {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    display: block;
    flex-shrink: 0;
}

/* Teks nama site di sebelah SVG */
.navbar-brand > span {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.site-header.scrolled .navbar-brand > span {
    color: var(--text);
}

/* ============================================================
   FIX: Navbar layout
   ============================================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
}

/* Nav menu center */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

/* Nav links - warna putih saat di hero */
.nav-link {
    display: block;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    left: 14px;
    right: 14px;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.12);
}

.nav-link.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

/* Saat scroll - nav link jadi gelap */
.site-header.scrolled .nav-link {
    color: var(--text-secondary);
}
.site-header.scrolled .nav-link::after {
    background: var(--primary);
}
.site-header.scrolled .nav-link:hover {
    color: var(--primary);
    background: rgba(74,144,217,0.08);
}
.site-header.scrolled .nav-link.active {
    color: var(--primary);
    background: rgba(74,144,217,0.1);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Donate button */
.nav-donate-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4A90D9, #7B68EE);
    color: white !important;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(74,144,217,0.35);
    border: none;
}
.nav-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,144,217,0.45);
    color: white !important;
}

/* Theme Toggle */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: rotate(20deg);
}
.site-header.scrolled .theme-toggle {
    border-color: var(--border);
    background: var(--bg-alt);
    color: var(--text);
}
.site-header.scrolled .theme-toggle:hover {
    background: var(--border);
    transform: rotate(20deg);
}

/* Icon sun/moon toggle */
.icon-moon { display: none; }
.icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: none; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}
.site-header.scrolled .nav-toggle {
    border-color: var(--border);
    background: var(--bg-alt);
}
.site-header.scrolled .nav-toggle span {
    background: var(--text);
}
.nav-toggle:hover {
    background: rgba(255,255,255,0.2);
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   FIX: Site Header
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

.site-header.at-top {
    background: transparent;
    box-shadow: none;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 32px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(26,29,39,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 2px 32px rgba(0,0,0,0.3);
}

/* ============================================================
   FIX: Navbar Spacer
   ============================================================ */
.navbar-spacer {
    height: 70px;
    display: block;
}

/* Halaman dengan hero - spacer tidak perlu */
body.has-hero .navbar-spacer {
    display: none;
}

/* ============================================================
   FIX: Mobile Menu
   ============================================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.mobile-menu.open { right: 0; }

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 80px 0 32px;
    overflow-y: auto;
}

.mobile-nav-list {
    list-style: none;
    padding: 0 16px;
    margin: 0;
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    margin-bottom: 4px;
}
.mobile-nav-link:hover {
    background: rgba(74,144,217,0.08);
    color: var(--primary);
    transform: translateX(4px);
}
.mobile-nav-link.active {
    background: linear-gradient(135deg,
        rgba(74,144,217,0.12),
        rgba(123,104,238,0.08));
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.mobile-nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-menu-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}
.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   RESPONSIVE NAVBAR
   ============================================================ */
@media (max-width: 1024px) {
    .nav-link {
        padding: 8px 10px;
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle     { display: flex; }
    .nav-menu       { display: none; }
    .nav-donate-btn { display: none; }
    .navbar         { height: 60px; }
    .navbar-spacer  { height: 60px; }

    .site-logo {
        height: 36px !important;
        max-height: 36px !important;
    }

    .logo-svg-wrap,
    .logo-svg-wrap svg {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    .navbar-brand > span {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu { width: 100%; }

    .navbar-brand > span {
        font-size: 0.82rem;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ============================================================
   DARK MODE - Navbar
   ============================================================ */
[data-theme="dark"] .site-header.scrolled .navbar-brand > span {
    color: var(--text);
}

[data-theme="dark"] .mobile-menu {
    background: var(--bg-card);
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .nav-donate-btn {
    box-shadow: 0 4px 14px rgba(74,144,217,0.25);
}

/* ============================================================
   ADMIN CSS - Sesuai admin.php
   ============================================================ */

/* Reset admin area */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
    font-family: var(--font-main);
}

/* ============================================================
   ADMIN SIDEBAR
   ============================================================ */
.admin-sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 64px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.admin-logo span:first-child {
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4A90D9, #7B68EE);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-sidebar-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-muted);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.admin-sidebar-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

/* Admin Nav */
.admin-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.admin-nav::-webkit-scrollbar { width: 4px; }
.admin-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
}
.admin-nav-link:hover {
    background: rgba(74,144,217,0.08);
    color: var(--primary);
}
.admin-nav-link.active {
    background: linear-gradient(135deg,
        rgba(74,144,217,0.15),
        rgba(123,104,238,0.1));
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.admin-nav-link svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Badge count di nav */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 50px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    margin-left: auto;
    flex-shrink: 0;
}

/* Sidebar Footer */
.admin-sidebar-footer {
    padding: 12px 10px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90D9, #7B68EE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.admin-user-info > div:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-user-info strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: capitalize;
}

.admin-sidebar-actions {
    display: flex;
    gap: 8px;
}

.admin-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}
.admin-action-btn:hover {
    background: rgba(74,144,217,0.08);
    border-color: rgba(74,144,217,0.2);
    color: var(--primary);
}
.admin-action-btn.logout-btn:hover {
    background: rgba(229,62,62,0.08);
    border-color: rgba(229,62,62,0.2);
    color: var(--danger);
}

/* Overlay mobile */
.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.admin-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   ADMIN MAIN
   ============================================================ */
.admin-main {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    min-width: 0;
}

/* ============================================================
   ADMIN TOPBAR
   ============================================================ */
.admin-topbar {
    height: 64px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.admin-menu-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.admin-menu-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.admin-topbar-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-display);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Notif bell */
.topbar-notif {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.topbar-notif:hover {
    background: rgba(74,144,217,0.08);
    border-color: rgba(74,144,217,0.2);
    color: var(--primary);
}

.notif-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

/* Theme toggle topbar */
.topbar-theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.topbar-theme-btn:hover {
    background: rgba(74,144,217,0.08);
    border-color: rgba(74,144,217,0.2);
    color: var(--primary);
    transform: rotate(20deg);
}

/* ============================================================
   ADMIN CONTENT
   ============================================================ */
.admin-content {
    flex: 1;
    padding: 24px;
    overflow-x: hidden;
}

/* Alert */
.admin-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.admin-alert-success {
    background: rgba(72,187,120,0.1);
    border-color: rgba(72,187,120,0.25);
    color: #276749;
}
[data-theme="dark"] .admin-alert-success { color: #68D391; }

.admin-alert-error {
    background: rgba(229,62,62,0.1);
    border-color: rgba(229,62,62,0.25);
    color: #C53030;
}
[data-theme="dark"] .admin-alert-error { color: #FC8181; }

/* ============================================================
   ADMIN STATS GRID (Dashboard)
   ============================================================ */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}
.admin-stat-card:nth-child(1)::before { background: linear-gradient(90deg,#4A90D9,#60A5FA); }
.admin-stat-card:nth-child(2)::before { background: linear-gradient(90deg,#7B68EE,#A78BFA); }
.admin-stat-card:nth-child(3)::before { background: linear-gradient(90deg,#48BB78,#68D391); }
.admin-stat-card:nth-child(4)::before { background: linear-gradient(90deg,#F5A623,#FCD34D); }

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.admin-stat-icon.blue   { background: rgba(74,144,217,0.12); }
.admin-stat-icon.purple { background: rgba(123,104,238,0.12); }
.admin-stat-icon.green  { background: rgba(72,187,120,0.12); }
.admin-stat-icon.orange { background: rgba(245,166,35,0.12); }

.admin-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* ============================================================
   ADMIN GRID
   ============================================================ */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================================
   ADMIN CARD
   ============================================================ */
.admin-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.admin-card > h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-display);
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.admin-card-header h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-display);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   ADMIN TABLE
   ============================================================ */
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.admin-table th {
    padding: 11px 16px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--bg-alt);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 13px 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light, rgba(0,0,0,0.05));
    vertical-align: middle;
}

[data-theme="dark"] .admin-table td {
    border-bottom-color: rgba(255,255,255,0.04);
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(74,144,217,0.03); }

/* Unread row */
.unread-row td {
    background: rgba(74,144,217,0.04);
    font-weight: 600;
}
.unread-row:hover td {
    background: rgba(74,144,217,0.07) !important;
}

/* Empty cell */
.empty-cell {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 32px 16px !important;
    font-size: 0.875rem;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge.active {
    background: rgba(72,187,120,0.12);
    color: #276749;
    border: 1px solid rgba(72,187,120,0.25);
}
[data-theme="dark"] .status-badge.active { color: #68D391; }

.status-badge.inactive {
    background: rgba(160,174,192,0.12);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.status-badge.unread {
    background: rgba(74,144,217,0.12);
    color: #2B6CB0;
    border: 1px solid rgba(74,144,217,0.25);
}
[data-theme="dark"] .status-badge.unread { color: #60A5FA; }

/* Table actions */
.table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ============================================================
   ADMIN FORM
   ============================================================ */
.admin-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-input {
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.875rem;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-color {
    padding: 4px 6px;
    height: 42px;
    cursor: pointer;
    border-radius: 10px;
}

/* File input */
input[type="file"].form-input {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.82rem;
}
input[type="file"].form-input::-webkit-file-upload-button {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}
input[type="file"].form-input::-webkit-file-upload-button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 4px;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS (Admin)
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #4A90D9, #7B68EE);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(74,144,217,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74,144,217,0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(74,144,217,0.06);
}

.btn-danger {
    background: rgba(229,62,62,0.1);
    color: var(--danger);
    border-color: rgba(229,62,62,0.25);
}
.btn-danger:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 8px;
    border-width: 1px;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 0.95rem;
    border-radius: 12px;
}

/* ============================================================
   PASSWORD WRAP
   ============================================================ */
.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrap .form-input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    border-radius: 6px;
}
.password-toggle:hover { color: var(--primary); }

/* ============================================================
   ADMIN GALLERY GRID
   ============================================================ */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px 20px;
}

.admin-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.admin-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.admin-gallery-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.admin-gallery-item:hover img { transform: scale(1.05); }

.admin-video-thumb {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, #1A2A5E, #0F1B35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-gallery-item-info {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border-top: 1px solid var(--border);
}

.admin-gallery-item-info span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* ============================================================
   LOGO UPLOAD AREA
   ============================================================ */
.logo-preview-wrap {
    margin-bottom: 8px;
}

.logo-current {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logo-preview-box {
    padding: 16px;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 80px;
}

.logo-placeholder-box {
    width: 160px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-alt);
}

.logo-upload-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-alt);
    overflow: hidden;
}
.logo-upload-area:hover {
    border-color: var(--primary);
    background: rgba(74,144,217,0.04);
}
.logo-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(74,144,217,0.08);
    transform: scale(1.01);
}

.logo-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.logo-upload-content {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.logo-upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.logo-upload-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.logo-upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   ICON SUN/MOON (Admin)
   ============================================================ */
.icon-moon { display: none; }
.icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: none; }

/* ============================================================
   ADMIN RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Sidebar jadi overlay di mobile */
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 300;
        width: 260px;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-sidebar-close {
        display: flex;
    }

    /* Main tidak perlu margin */
    .admin-main {
        margin-left: 0 !important;
    }

    /* Toggle button tampil */
    .admin-menu-toggle {
        display: flex;
    }

    /* Topbar */
    .admin-topbar {
        padding: 0 16px;
        height: 58px;
    }
    .admin-topbar-title {
        font-size: 0.9rem;
    }

    /* Content */
    .admin-content {
        padding: 16px;
    }

    /* Stats */
    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .admin-stat-card {
        padding: 14px;
        gap: 12px;
    }
    .admin-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .admin-stat-num {
        font-size: 1.3rem;
    }

    /* Form row jadi 1 kolom */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Admin form padding */
    .admin-form {
        padding: 16px;
    }

    /* Card header */
    .admin-card > h3 {
        padding: 14px 16px;
        font-size: 0.88rem;
    }
    .admin-card-header {
        padding: 12px 16px;
    }

    /* Table */
    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    /* Gallery grid */
    .admin-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        padding: 12px 16px;
        gap: 10px;
    }

    /* Form actions */
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Table actions */
    .table-actions {
        flex-direction: column;
        gap: 4px;
    }
    .table-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .table-actions form {
        width: 100%;
    }
    .table-actions form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    .admin-content {
        padding: 12px;
    }
    .admin-topbar {
        padding: 0 12px;
    }
    .admin-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-stat-card {
        flex-direction: row;
        align-items: center;
    }
}

/* ============================================================
   DARK MODE ADMIN
   ============================================================ */
[data-theme="dark"] .admin-sidebar {
    background: var(--bg-card);
    border-right-color: var(--border);
}

[data-theme="dark"] .admin-topbar {
    background: var(--bg-card);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .admin-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .admin-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

[data-theme="dark"] .unread-row td {
    background: rgba(74,144,217,0.06);
}

[data-theme="dark"] .form-input {
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .form-input:focus {
    background: var(--bg-card);
    border-color: var(--primary);
}

[data-theme="dark"] .logo-upload-area {
    border-color: var(--border);
    background: var(--bg-alt);
}

[data-theme="dark"] .admin-action-btn {
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text-secondary);
}

[data-theme="dark"] .admin-user-info {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .admin-overlay {
    background: rgba(0,0,0,0.65);
}

[data-theme="dark"] .status-badge.active {
    background: rgba(72,187,120,0.15);
    border-color: rgba(72,187,120,0.3);
}

[data-theme="dark"] .status-badge.unread {
    background: rgba(74,144,217,0.15);
    border-color: rgba(74,144,217,0.3);
}

[data-theme="dark"] .admin-alert-success {
    background: rgba(72,187,120,0.12);
    border-color: rgba(72,187,120,0.3);
}

[data-theme="dark"] .admin-alert-error {
    background: rgba(229,62,62,0.12);
    border-color: rgba(229,62,62,0.3);
}

[data-theme="dark"] .btn-outline {
    border-color: var(--border);
    color: var(--text-secondary);
}

[data-theme="dark"] .btn-danger {
    background: rgba(229,62,62,0.12);
    border-color: rgba(229,62,62,0.3);
}

[data-theme="dark"] .admin-gallery-item {
    border-color: var(--border);
    background: var(--bg-alt);
}

[data-theme="dark"] .logo-preview-box {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .logo-placeholder-box {
    border-color: var(--border);
    background: var(--bg-alt);
}

[data-theme="dark"] .topbar-notif,
[data-theme="dark"] .topbar-theme-btn,
[data-theme="dark"] .admin-menu-toggle {
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text-secondary);
}

[data-theme="dark"] .admin-nav-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .admin-nav-link:hover {
    background: rgba(74,144,217,0.1);
    color: var(--primary);
}

[data-theme="dark"] .admin-nav-link.active {
    background: linear-gradient(135deg,
        rgba(74,144,217,0.18),
        rgba(123,104,238,0.12));
    color: var(--primary);
}

[data-theme="dark"] .admin-sidebar-footer {
    border-top-color: var(--border);
}

[data-theme="dark"] .admin-sidebar-header {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .admin-card > h3 {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .admin-card-header {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .admin-table th {
    background: var(--bg-alt);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* ============================================================
   ADMIN LOGIN PAGE
   ============================================================ */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 50%, #0F1B35 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.admin-login-page::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(74,144,217,0.15) 0%,
        transparent 70%);
    pointer-events: none;
}

.admin-login-page::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(123,104,238,0.12) 0%,
        transparent 70%);
    pointer-events: none;
}

.admin-login-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
    box-shadow: 0 32px 80px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.admin-login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.admin-login-logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #4A90D9, #7B68EE);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 14px;
    box-shadow: 0 8px 24px rgba(74,144,217,0.4);
}

.admin-login-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    font-family: var(--font-display);
}

.admin-login-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.admin-login-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .admin-login-card {
        padding: 28px 20px;
        border-radius: 20px;
    }
}

/* ============================================================
   GALLERY PAGE - gallery.php
   ============================================================ */

/* Page Hero */
.page-hero {
    position: relative;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #0F1B35 0%, #1A2A5E 60%, #0F1B35 100%);
    overflow: hidden;
    text-align: center;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(74,144,217,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(123,104,238,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
    font-family: var(--font-display);
    line-height: 1.2;
}

.page-hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
    padding: 60px 0 80px;
    background: var(--bg);
}

/* ============================================================
   GALLERY TOOLBAR (folder items view)
   ============================================================ */
.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.gallery-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.gallery-back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(74,144,217,0.06);
    transform: translateX(-3px);
}

.gallery-folder-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
}

.gallery-folder-meta > span:first-child {
    font-size: 1.1rem;
}

.gallery-folder-meta strong {
    display: block;
    font-weight: 700;
    color: var(--text);
    font-size: 0.875rem;
    line-height: 1.2;
}

.gallery-folder-meta small {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================================================
   GALLERY GRID (items inside folder)
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.gallery-item-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    text-align: left;
}

/* Photo wrap */
.gallery-photo-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-alt);
}

.gallery-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-photo-wrap img {
    transform: scale(1.06);
}

.gallery-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,27,53,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-photo-overlay {
    opacity: 1;
}

/* Video wrap */
.gallery-video-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #1A2A5E, #0F1B35);
}

.gallery-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
}

.gallery-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}
.gallery-item:hover .gallery-video-overlay {
    background: rgba(0,0,0,0.5);
}

.gallery-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #1A2A5E;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    padding-left: 4px;
}
.gallery-item:hover .gallery-play-btn {
    transform: scale(1.1);
    background: white;
}

/* Caption */
.gallery-item-caption {
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

/* ============================================================
   GALLERY EMPTY
   ============================================================ */
.gallery-empty {
    text-align: center;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.gallery-empty-icon {
    font-size: 4rem;
    opacity: 0.4;
    margin-bottom: 4px;
}

.gallery-empty h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-display);
    margin: 0;
}

.gallery-empty p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   EXPLORER TOOLBAR (folders view)
   ============================================================ */
.explorer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-wrap: wrap;
}

.explorer-path {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.explorer-path svg {
    color: var(--primary);
    flex-shrink: 0;
}

.explorer-view-btns {
    display: flex;
    gap: 4px;
}

.explorer-view-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.explorer-view-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(74,144,217,0.06);
}
.explorer-view-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ============================================================
   EXPLORER SECTION
   ============================================================ */
.explorer-section {
    margin-bottom: 40px;
}

.explorer-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.explorer-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.explorer-icon-photo {
    background: rgba(245,158,11,0.12);
    color: #F59E0B;
}

.explorer-icon-video {
    background: rgba(123,104,238,0.12);
    color: #7B68EE;
}

.explorer-section-head h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    font-family: var(--font-display);
}

.explorer-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 50px;
    margin-left: auto;
}

/* ============================================================
   FOLDERS GRID
   ============================================================ */
.folders-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    transition: all 0.3s ease;
}

/* Folder Card */
.folder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.folder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    border-color: rgba(74,144,217,0.2);
    background: rgba(74,144,217,0.02);
}

.folder-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(74,144,217,0.04),
        transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.folder-card:hover::before { opacity: 1; }

/* Folder icon */
.folder-icon-wrap {
    position: relative;
    width: 80px;
    height: 64px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.folder-card:hover .folder-icon-wrap {
    transform: scale(1.08) translateY(-2px);
}

.folder-svg {
    width: 80px;
    height: 60px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.folder-hover-icon {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74,144,217,0.4);
}
.folder-card:hover .folder-hover-icon {
    opacity: 1;
    transform: scale(1);
}

/* Folder info */
.folder-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    width: 100%;
}

.folder-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.folder-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   FOLDERS LIST VIEW
   ============================================================ */
.folders-list {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}

.folders-list .folder-card {
    flex-direction: row;
    padding: 14px 18px;
    gap: 14px;
    align-items: center;
    border-radius: 12px;
}

.folders-list .folder-icon-wrap {
    width: 48px;
    height: 38px;
    flex-shrink: 0;
}

.folders-list .folder-svg {
    width: 48px;
    height: 36px;
}

.folders-list .folder-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.folders-list .folder-name {
    font-size: 0.9rem;
    -webkit-line-clamp: 1;
}

.folders-list .folder-count {
    font-size: 0.78rem;
    flex-shrink: 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 50px;
}

.folders-list .folder-hover-icon {
    position: static;
    opacity: 0;
    transform: scale(0.8);
    margin-left: auto;
    flex-shrink: 0;
}
.folders-list .folder-card:hover .folder-hover-icon {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox[hidden] { display: none; }

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.lightbox-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

/* Close button */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}
.lightbox-close:hover {
    background: rgba(229,62,62,0.8);
    border-color: transparent;
    transform: rotate(90deg);
}

/* Prev / Next */
.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(74,144,217,0.8);
    border-color: transparent;
    transform: translateY(-50%) scale(1.05);
}

/* Media area */
.lightbox-media {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 75vh;
    overflow: hidden;
}

.lightbox-media img,
.lightbox-media video {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    display: block;
}

/* Footer */
.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 0 4px;
}

.lightbox-info {
    flex: 1;
    min-width: 0;
}

.lightbox-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-info p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}

.lightbox-counter {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ============================================================
   RESPONSIVE GALLERY
   ============================================================ */
@media (max-width: 1200px) {
    .folders-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .folders-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Page hero */
    .page-hero {
        padding: 80px 0 48px;
    }
    .page-hero-title {
        font-size: 1.8rem;
    }
    .page-hero-subtitle {
        font-size: 0.9rem;
    }

    /* Gallery section */
    .gallery-section {
        padding: 40px 0 60px;
    }

    /* Folders grid */
    .folders-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Toolbar */
    .gallery-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .explorer-toolbar {
        padding: 10px 14px;
    }

    /* Lightbox nav */
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }
    .lightbox-wrap {
        padding: 14px;
        gap: 12px;
    }
    .lightbox-media img,
    .lightbox-media video {
        border-radius: 8px;
    }

    /* Folder card */
    .folder-card {
        padding: 16px 10px 12px;
    }
    .folder-icon-wrap {
        width: 64px;
        height: 52px;
    }
    .folder-svg {
        width: 64px;
        height: 48px;
    }
    .folder-name {
        font-size: 0.78rem;
    }
    .folder-count {
        font-size: 0.68rem;
    }

    /* Explorer section */
    .explorer-section {
        margin-bottom: 28px;
    }
    .explorer-section-head h3 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Folders grid */
    .folders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Page hero */
    .page-hero {
        padding: 70px 0 40px;
    }
    .page-hero-title {
        font-size: 1.5rem;
    }

    /* Folder card */
    .folder-card {
        padding: 14px 8px 10px;
        border-radius: 12px;
    }
    .folder-icon-wrap {
        width: 56px;
        height: 44px;
    }
    .folder-svg {
        width: 56px;
        height: 42px;
    }
    .folder-name {
        font-size: 0.75rem;
    }

    /* Gallery item */
    .gallery-item {
        border-radius: 10px;
    }
    .gallery-item-caption {
        font-size: 0.72rem;
        padding: 8px 10px;
    }

    /* Lightbox */
    .lightbox-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 36px;
        height: 36px;
    }
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }

    /* Explorer toolbar */
    .explorer-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .explorer-view-btns {
        align-self: flex-end;
    }

    /* Gallery back btn */
    .gallery-back-btn {
        font-size: 0.82rem;
        padding: 8px 14px;
    }

    /* Gallery folder meta */
    .gallery-folder-meta {
        font-size: 0.82rem;
        padding: 6px 12px;
    }
}

/* ============================================================
   DARK MODE - GALLERY
   ============================================================ */
[data-theme="dark"] .folder-card {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .folder-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    border-color: rgba(74,144,217,0.25);
}

[data-theme="dark"] .gallery-item {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .gallery-item:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

[data-theme="dark"] .gallery-photo-wrap {
    background: var(--bg-alt);
}

[data-theme="dark"] .explorer-toolbar {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .explorer-section-head {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .explorer-count {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .explorer-view-btn {
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text-muted);
}

[data-theme="dark"] .gallery-back-btn {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}
[data-theme="dark"] .gallery-back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .gallery-folder-meta {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .folder-svg {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

[data-theme="dark"] .gallery-item-caption {
    background: var(--bg-card);
    border-top-color: var(--border);
    color: var(--text-secondary);
}

[data-theme="dark"] .folders-list .folder-count {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .lightbox-overlay {
    background: rgba(0,0,0,0.95);
}

/* ============================================================
   CONTACT PAGE - contact.php
   ============================================================ */

/* ============================================================
   CONTACT GRID LAYOUT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 48px;
}

/* ============================================================
   CONTACT INFO (kiri)
   ============================================================ */
.contact-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    position: sticky;
    top: 88px;
}

.contact-info > h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-display);
    margin-bottom: 10px;
}

.contact-info > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Contact Items */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.contact-item:hover {
    border-color: rgba(74,144,217,0.25);
    background: rgba(74,144,217,0.04);
    transform: translateX(4px);
}

.contact-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(74,144,217,0.12),
        rgba(123,104,238,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    border: 1px solid rgba(74,144,217,0.15);
}

.contact-item-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.contact-item-text strong {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
}

.contact-item-text span,
.contact-item-text a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item-text a:hover {
    color: var(--primary);
}

/* Social Media */
.contact-social {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.contact-social h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-link-card:hover {
    border-color: rgba(74,144,217,0.3);
    background: rgba(74,144,217,0.06);
    color: var(--primary);
    transform: translateX(4px);
}

/* ============================================================
   CONTACT FORM (kanan)
   ============================================================ */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Form Label */
.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.required {
    color: var(--danger);
    font-size: 0.9rem;
    line-height: 1;
}

/* Form Input */
.form-input {
    padding: 11px 14px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
}
.form-input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}
.form-input::placeholder {
    color: var(--text-muted);
    font-size: 0.875rem;
}
.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}
.form-input:valid:not(:placeholder-shown) {
    border-color: rgba(72,187,120,0.5);
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
}

/* Select */
.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Checkbox */
.form-check {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid var(--border);
    background: var(--bg-alt);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary);
    transition: all 0.3s ease;
}
.form-checkbox:focus {
    outline: 3px solid rgba(74,144,217,0.2);
    outline-offset: 2px;
}

.form-check-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    cursor: pointer;
    font-weight: 500;
}

/* Submit Button */
.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   ALERT
   ============================================================ */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid transparent;
    line-height: 1.5;
}

.alert-success {
    background: rgba(72,187,120,0.1);
    border-color: rgba(72,187,120,0.3);
    color: #276749;
}
[data-theme="dark"] .alert-success {
    background: rgba(72,187,120,0.12);
    color: #68D391;
}

.alert-error {
    background: rgba(229,62,62,0.1);
    border-color: rgba(229,62,62,0.3);
    color: #C53030;
}
[data-theme="dark"] .alert-error {
    background: rgba(229,62,62,0.12);
    color: #FC8181;
}

.alert svg {
    flex-shrink: 0;
}

/* ============================================================
   MAPS SECTION
   ============================================================ */
.maps-section {
    margin-top: 16px;
}

.maps-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-display);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.maps-title::before {
    content: '📍';
    font-size: 1.2rem;
}

.maps-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--bg-alt);
    position: relative;
}

.maps-wrap iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: none;
    filter: grayscale(10%);
    transition: filter 0.3s ease;
}
.maps-wrap:hover iframe {
    filter: grayscale(0%);
}

/* ============================================================
   BACK TO TOP (contact page)
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(74,144,217,0.4);
    transition: all 0.3s ease;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(74,144,217,0.5);
    color: white;
}

/* ============================================================
   SECTION UTILITY
   ============================================================ */
.section {
    padding: 72px 0;
}

/* ============================================================
   RESPONSIVE CONTACT
   ============================================================ */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1.4fr;
        gap: 24px;
    }
    .contact-info {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Grid jadi 1 kolom */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }

    /* Info card */
    .contact-info {
        padding: 24px 20px;
        border-radius: 16px;
    }
    .contact-info > h2 {
        font-size: 1.2rem;
    }

    /* Form wrap */
    .contact-form-wrap {
        padding: 24px 20px;
        border-radius: 16px;
    }

    /* Form row jadi 1 kolom */
    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Social links jadi 2 kolom */
    .social-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* Maps */
    .maps-wrap iframe {
        height: 320px;
    }
    .maps-title {
        font-size: 1.2rem;
    }

    /* Section */
    .section {
        padding: 48px 0;
    }

    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    /* Info card */
    .contact-info {
        padding: 20px 16px;
    }
    .contact-item {
        padding: 12px;
        gap: 10px;
    }
    .contact-item-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .contact-item-text span,
    .contact-item-text a {
        font-size: 0.85rem;
    }

    /* Form wrap */
    .contact-form-wrap {
        padding: 20px 16px;
    }

    /* Social links jadi 1 kolom */
    .social-links {
        grid-template-columns: 1fr;
    }

    /* Maps */
    .maps-wrap iframe {
        height: 260px;
    }

    /* Section */
    .section {
        padding: 40px 0;
    }

    /* Alert */
    .alert {
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    /* Form input */
    .form-input {
        font-size: 0.875rem;
        padding: 10px 12px;
    }
}

/* ============================================================
   DARK MODE - CONTACT
   ============================================================ */
[data-theme="dark"] .contact-info {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .contact-item {
    background: var(--bg-alt);
    border-color: var(--border);
}
[data-theme="dark"] .contact-item:hover {
    background: rgba(74,144,217,0.06);
    border-color: rgba(74,144,217,0.2);
}

[data-theme="dark"] .contact-item-icon {
    background: linear-gradient(135deg,
        rgba(74,144,217,0.15),
        rgba(123,104,238,0.1));
    border-color: rgba(74,144,217,0.2);
}

[data-theme="dark"] .contact-form-wrap {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

[data-theme="dark"] .form-input {
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .form-input:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74,144,217,0.12);
}

[data-theme="dark"] .social-link-card {
    background: var(--bg-alt);
    border-color: var(--border);
    color: var(--text-secondary);
}
[data-theme="dark"] .social-link-card:hover {
    background: rgba(74,144,217,0.08);
    border-color: rgba(74,144,217,0.25);
    color: var(--primary);
}

[data-theme="dark"] .contact-social {
    border-top-color: var(--border);
}

[data-theme="dark"] .maps-wrap {
    border-color: var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
[data-theme="dark"] .maps-wrap iframe {
    filter: grayscale(20%) invert(5%);
}
[data-theme="dark"] .maps-wrap:hover iframe {
    filter: grayscale(0%) invert(0%);
}

[data-theme="dark"] .form-checkbox {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .form-check-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .back-to-top {
    box-shadow: 0 8px 24px rgba(74,144,217,0.3);
}

/* FIX: Page Hero Text - semua halaman */
.page-hero .page-hero-content,
.page-hero .page-title,
.page-hero .page-subtitle,
.page-hero h1,
.page-hero p {
    color: white !important;
}

.page-hero .page-hero-title {
    color: white !important;
}

.page-hero .page-hero-subtitle {
    color: rgba(255,255,255,0.80) !important;
}

/* ================================================
   HERO RESPONSIVE
   ================================================ */

/* DESKTOP: tampilkan video */
@media (min-width: 769px) {
    .hero-video {
        display: block;
    }
}

/* MOBILE: sembunyikan video, background dari .hero */
@media (max-width: 768px) {

    .hero-video {
        display: none !important;
    }

    .hero {
        background: 
            radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.4) 0%, transparent 60%),
            radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.3) 0%, transparent 55%),
            linear-gradient(135deg, #0F1B35 0%, #1A2A5E 50%, #0F1B35 100%);
        animation: heroBgMobile 8s ease-in-out infinite alternate;
    }

    @keyframes heroBgMobile {
        0% {
            background: 
                radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.4) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.3) 0%, transparent 55%),
                linear-gradient(135deg, #0F1B35 0%, #1A2A5E 50%, #0F1B35 100%);
        }
        50% {
            background: 
                radial-gradient(ellipse at 60% 30%, rgba(59,130,246,0.45) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 70%, rgba(0,119,182,0.35) 0%, transparent 55%),
                linear-gradient(135deg, #0F1B35 0%, #1e3a8a 50%, #1A2A5E 100%);
        }
        100% {
            background: 
                radial-gradient(ellipse at 75% 40%, rgba(59,130,246,0.5) 0%, transparent 60%),
                radial-gradient(ellipse at 25% 75%, rgba(99,102,241,0.35) 0%, transparent 55%),
                linear-gradient(135deg, #1A2A5E 0%, #1e40af 50%, #0F1B35 100%);
        }
    }

    .hero-content {
        padding: 110px 0 80px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .particle:nth-child(5),
    .particle:nth-child(6),
    .particle:nth-child(7),
    .particle:nth-child(8) {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 90px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video       { display: none !important; }
    .hero             { animation: none !important; }
    .particle         { display: none !important; }
    .hero-scroll-icon { animation: none !important; }
}

/* ============================================
   YOUTUBE BACKGROUND - MOBILE PRESISI FIX
   ============================================ */

.hero-youtube-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    overflow: hidden;

    /* Rumus presisi 16:9 cover semua layar */
    width: 100vw;
    height: 56.25vw; /* 16:9 = 100/16*9 */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 = 100/9*16 */
}

.hero-youtube-bg iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* Mobile fix */
@media (max-width: 768px) {
    .hero-youtube-bg {
        width: 300vw;
        height: 168.75vw;
        min-height: 100vh;
        min-width: 177.78vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 480px) {
    .hero-youtube-bg {
        width: 400vw;
        height: 225vw;
    }
}