﻿/* ============================================
   BERPAHALA - SINGLE CSS FILE
   Design System & All Components Combined
   FIXED VERSION
   ============================================ */

/* =============================
   DESIGN TOKENS & VARIABLES
   ============================= */

:root {
    /* ===== COLOR PALETTE ===== */
    /* Primary Colors - Islamic Green Theme */
    --primary-50: #f0f9f4;
    --primary-100: #dcf2e3;
    --primary-200: #bce5ca;
    --primary-300: #8dd2a6;
    --primary-400: #56b87d;
    --primary-500: #1D5434; /* Main Brand Color */
    --primary-600: #16452a;
    --primary-700: #113721;
    --primary-800: #0d2b1a;
    --primary-900: #0a2215;
    /* Accent Colors - Golden Accent */
    --accent-50: #fef9ec;
    --accent-100: #fdefca;
    --accent-200: #fbde96;
    --accent-300: #f8c658;
    --accent-400: #f5ad26;
    --accent-500: #F1A02D; /* Main Accent Color */
    --accent-600: #d58211;
    --accent-700: #b16311;
    --accent-800: #8e4e16;
    --accent-900: #764116;
    /* Neutral Colors */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    /* ===== TYPOGRAPHY ===== */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Font Sizes */
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.5rem; /* 24px */
    --text-3xl: 1.875rem; /* 30px */
    --text-4xl: 2.25rem; /* 36px */
    --text-5xl: 3rem; /* 48px */
    --text-6xl: 3.75rem; /* 60px */
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    /* ===== SPACING SCALE ===== */
    --space-1: 0.25rem; /* 4px */
    --space-2: 0.5rem; /* 8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem; /* 16px */
    --space-5: 1.25rem; /* 20px */
    --space-6: 1.5rem; /* 24px */
    --space-8: 2rem; /* 32px */
    --space-10: 2.5rem; /* 40px */
    --space-12: 3rem; /* 48px */
    --space-16: 4rem; /* 64px */
    --space-20: 5rem; /* 80px */
    --space-24: 6rem; /* 96px */
    /* ===== BORDER RADIUS ===== */
    --radius-sm: 0.25rem; /* 4px */
    --radius-md: 0.5rem; /* 8px */
    --radius-lg: 0.75rem; /* 12px */
    --radius-xl: 1rem; /* 16px */
    --radius-2xl: 1.5rem; /* 24px */
    --radius-full: 9999px;
    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* ===== LAYOUT ===== */
    --header-height: 80px;
    --container-max-width: 1200px;
    --sidebar-width: 280px;
    /* ===== TRANSITIONS ===== */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    /* ===== Z-INDEX ===== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* =============================
   BASE STYLES & RESETS
   ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================
   TYPOGRAPHY SYSTEM
   ============================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--neutral-900);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
}

h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
}

h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
}

h4 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
}

h5 {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
}

h6 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
}

p {
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
    color: var(--neutral-700);
}

/* =============================
   LAYOUT COMPONENTS
   ============================= */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-1) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

.section-lg {
    padding: var(--space-24) 0;
}

/* =============================
   BUTTON COMPONENT SYSTEM
   ============================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

    .btn:focus {
        outline: 2px solid var(--primary-300);
        outline-offset: 2px;
    }

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

    .btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    }

    .btn-primary:active:not(:disabled) {
        transform: translateY(0);
    }

.btn-secondary {
    background: #d0af51;
    color: var(--primary-600);
    border-color: var(--primary-500);
}

    .btn-secondary:hover:not(:disabled) {
        background: var(--primary-500);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.btn-accent {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

    .btn-accent:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-700) 100%);
    }

.btn-outline {
    background: transparent;
    color: var(--neutral-700);
    border-color: var(--neutral-300);
}

    .btn-outline:hover:not(:disabled) {
        background: var(--neutral-100);
        border-color: var(--neutral-400);
        transform: translateY(-1px);
    }

.btn-danger {
    background: var(--error);
    color: white;
    box-shadow: var(--shadow-sm);
}

    .btn-danger:hover:not(:disabled) {
        background: #dc2626;
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: var(--shadow-sm);
}

    .btn-success:hover:not(:disabled) {
        background: #059669;
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

/* Button with loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.button-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =============================
   CARD COMPONENT SYSTEM
   ============================= */

.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
    overflow: hidden;
}

    .card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
    }

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

.card-title {
    margin: 0;
    font-size: var(--text-xl);
    color: var(--neutral-900);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

/* Card Variants */
.card--elevated {
    box-shadow: var(--shadow-lg);
}

.card--interactive {
    cursor: pointer;
}

    .card--interactive:hover {
        box-shadow: var(--shadow-xl);
        transform: translateY(-6px);
    }

/* =============================
   FORM COMPONENT SYSTEM
   ============================= */

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: var(--font-medium);
    color: var(--neutral-700);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

    .form-label.required::after {
        content: " *";
        color: var(--error);
    }

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: inherit;
    font-size: var(--text-base);
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    background: white;
    transition: all var(--transition-fast);
    color: var(--neutral-800);
}

    .form-input:focus {
        outline: none;
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px var(--primary-100);
    }

    .form-input::placeholder {
        color: var(--neutral-400);
    }

    .form-input:disabled {
        background: var(--neutral-100);
        color: var(--neutral-500);
        cursor: not-allowed;
    }

/* Input with icons */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: var(--space-4);
    color: var(--neutral-500);
    pointer-events: none;
}

.input-group .form-input {
    padding-left: calc(var(--space-4) * 2 + 1rem);
}

.input-group .password-toggle {
    position: absolute;
    right: var(--space-4);
    background: none;
    border: none;
    color: var(--neutral-500);
    cursor: pointer;
    padding: var(--space-2);
}

    .input-group .password-toggle:hover {
        color: var(--neutral-700);
    }

/* Form Validation */
.validation-message {
    display: block;
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

.valid-feedback {
    color: var(--success);
}

.invalid-feedback {
    color: var(--error);
}

.form-input.valid {
    border-color: var(--success);
}

.form-input.invalid {
    border-color: var(--error);
}

/* =============================
   LAYOUT STYLES
   ============================= */

.layout-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =============================
   NAVBAR - FLEXIBLE STRUCTURE FIX
   ============================= */

/* Header Container */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 80px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-200, #e2e8f0);
    z-index: var(--z-fixed, 1030);
    transition: all var(--transition-normal, 300ms ease);
}

    .header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
        border-bottom-color: transparent;
    }

    .header .container {
        height: 100%;
        padding: 0 var(--space-6, 1.5rem);
    }

/* Header Content - Flexbox Layout */
.nav-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-6, 1.5rem);
}

/* ===== LOGO SECTION (LEFT) ===== */
.logo-section {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-4, 1rem);
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md, 0.5rem);
    overflow: hidden;
    background: linear-gradient(135deg, #1D5434 0%, #16452a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2, 0.5rem);
    flex-shrink: 0;
}

    .logo-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: var(--radius-sm, 0.25rem);
    }

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: var(--text-xl, 1.25rem);
    font-weight: var(--font-bold, 700);
    color: #16452a;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-subtitle {
    font-size: var(--text-xs, 0.75rem);
    color: var(--neutral-600, #475569);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

/* ===== NAV SECTION (CENTER) ===== */
.nav-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-2, 0.5rem);
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    text-decoration: none;
    color: var(--neutral-700, #334155);
    font-weight: var(--font-medium, 500);
    border-radius: var(--radius-md, 0.5rem);
    transition: all var(--transition-fast, 150ms ease);
    white-space: nowrap;
}

    .nav-link:hover {
        background: #f0f9f4;
        color: #16452a;
    }

    .nav-link.active {
        background: #1D5434;
        color: white;
    }

    .nav-link i {
        font-size: var(--text-lg, 1.125rem);
        width: 16px;
        text-align: center;
    }

/* ===== ACTIONS SECTION (RIGHT) ===== */
.actions-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
}

/* Mobile Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    padding: var(--space-2, 0.5rem);
    cursor: pointer;
    gap: 4px;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--neutral-700, #334155);
    transition: all var(--transition-fast, 150ms ease);
    border-radius: 2px;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal, 1040);
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal, 300ms ease);
}

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

.mobile-menu {
    position: fixed;
    top: var(--header-height, 80px);
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: calc(100vh - var(--header-height, 80px));
    background: white;
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgb(0 0 0 / 0.1));
    transform: translateX(100%);
    transition: transform var(--transition-normal, 300ms ease);
    z-index: calc(var(--z-modal, 1040) + 1);
    overflow-y: auto;
}

    .mobile-menu.active {
        transform: translateX(0);
    }

.mobile-nav {
    padding: var(--space-4, 1rem);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2, 0.5rem);
}

.mobile-nav-item {
    margin: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
    padding: var(--space-4, 1rem);
    text-decoration: none;
    color: var(--neutral-700, #334155);
    font-weight: var(--font-medium, 500);
    border-radius: var(--radius-md, 0.5rem);
    transition: all var(--transition-fast, 150ms ease);
    width: 100%;
}

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: #f0f9f4;
        color: #16452a;
    }

    .mobile-nav-link i {
        width: 20px;
        text-align: center;
        font-size: var(--text-lg, 1.125rem);
    }

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .nav-link {
        padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
        font-size: var(--text-sm, 0.875rem);
    }

        .nav-link i {
            font-size: var(--text-base, 1rem);
        }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }

    .header-content {
        gap: var(--space-4, 1rem);
    }

    /* Hide desktop nav */
    .nav-section {
        display: none;
    }

    /* Show mobile toggle */
    .nav-toggle {
        display: flex;
    }

    /* Adjust logo for mobile */
    .logo-title {
        font-size: var(--text-lg, 1.125rem);
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .logo-image {
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    .header {
        height: 65px;
    }

        .header .container {
            padding: 0 var(--space-4, 1rem);
        }

    .header-content {
        gap: var(--space-2, 0.5rem);
    }

    .logo {
        gap: var(--space-2, 0.5rem);
    }

    .logo-image {
        width: 40px;
        height: 40px;
    }

    .logo-title {
        font-size: var(--text-base, 1rem);
    }

    .logo-subtitle {
        font-size: 0.6rem;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-menu {
        width: 280px;
    }
}

/* ===== ACCESSIBILITY ===== */
.nav-link:focus-visible,
.mobile-nav-link:focus-visible,
.nav-toggle:focus-visible {
    outline: 2px solid #1D5434;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .nav-link,
    .mobile-nav-link {
        border: 1px solid transparent;
    }

        .nav-link:hover,
        .nav-link.active,
        .mobile-nav-link:hover,
        .mobile-nav-link.active {
            border-color: currentColor;
        }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .mobile-nav-link,
    .mobile-menu,
    .mobile-menu-overlay,
    .nav-toggle-bar {
        transition: none;
    }
}
/* =============================
   ANIMATIONS
   ============================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =============================
   ACCESSIBILITY IMPROVEMENTS
   ============================= */

/* Focus styles for better accessibility */
.nav-link:focus-visible {
    outline: 2px solid var(--primary-300);
    outline-offset: 2px;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--primary-300);
    outline-offset: 2px;
}

.mobile-nav-link:focus-visible {
    outline: 2px solid var(--primary-300);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link {
        border: 1px solid transparent;
    }

        .nav-link:hover,
        .nav-link.active {
            border-color: currentColor;
        }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .mobile-nav-link {
        transition: none;
    }

    .mobile-menu {
        transition: none;
    }

    .mobile-menu-overlay {
        animation: none;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: var(--header-height); /* Offset untuk fixed header */
    min-height: calc(100vh - var(--header-height));
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
    color: white;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
    padding: var(--space-16) 0;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

    .footer-logo .logo-image {
        width: 40px;
        height: 40px;
    }

.footer-logo-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: white;
    margin: 0;
}

.footer-logo-subtitle {
    font-size: var(--text-xs);
    color: var(--neutral-300);
    margin: 0;
}

.footer-description {
    color: var(--neutral-300);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.footer-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: white;
    margin-bottom: var(--space-4);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--neutral-300);
}

    .contact-item i {
        margin-top: 2px;
        color: var(--accent-400);
        width: 16px;
        flex-shrink: 0;
    }

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-link-item {
    margin: 0;
}

.footer-link {
    color: var(--neutral-300);
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: var(--space-1) 0;
    display: block;
}

    .footer-link:hover {
        color: white;
        transform: translateX(4px);
    }

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

    .social-link:hover {
        background: var(--accent-500);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-6) 0;
    text-align: center;
}

.copyright {
    color: var(--neutral-400);
    margin: 0;
    font-size: var(--text-sm);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 50px;
    height: 50px;
    background: var(--accent-500);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: var(--z-sticky);
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: var(--accent-600);
        transform: translateY(-2px);
        box-shadow: var(--shadow-xl);
    }

/* =============================
   RESPONSIVE DESIGN - LAYOUT
   ============================= */

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    /* Layout Responsive */
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .logo-title {
        font-size: var(--text-lg);
    }

    .logo-subtitle {
        font-size: var(--text-xs);
    }

    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Main Content Adjustment */
    .main-content {
        padding-top: var(--header-height);
    }
}

@media (max-width: 480px) {
    /* Ultra Small Screens */
    .header-content {
        padding: 0 var(--space-2);
    }

    .logo {
        gap: var(--space-2);
    }

    .logo-image {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        max-width: 150px;
    }

    .mobile-menu {
        width: 280px;
    }

    .back-to-top {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 44px;
        height: 44px;
    }
}

/* =============================
   HOME PAGE STYLES
   ============================= */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4ea974 0%, var(--primary-700) 100%) 
    color: white;
    padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-20);
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,1000 1000,0 1000,1000"/></svg>');
        background-size: cover;
    }

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.hero-badge .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    margin: 0;
    color: white;
}

.hero-subtitle {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    position: relative;
    width: 300px;
    height: 300px;
}

.graphic-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    z-index: 4;
}

.graphic-circle {
    position: absolute;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.graphic-circle-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.graphic-circle-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-color: rgba(255, 255, 255, 0.3);
    animation-delay: -2s;
}

.graphic-circle-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-color: rgba(255, 255, 255, 0.4);
    animation-delay: -4s;
}

.graphic-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--accent-300);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Hero Section dengan Background */
.hero.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.dark-background {
    background: linear-gradient(135deg, #113721 0%, #10b981 100%);
}

/* Alternatif Background Options */
.hero-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.hero-gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Carousel Styles */
#hero-carousel {
    position: relative;
    z-index: 2;
}

.carousel-item {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.carousel-container {
    width: 100%;
    padding: 2rem 0;
}

/* Hero Content dalam Carousel */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-badge .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: rgba(255, 255, 255, 0.2);
        opacity: 1;
    }

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Hero Waves */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
}

    .hero-waves use {
        fill: rgba(255, 255, 255, 0.2);
    }

    .hero-waves .wave1 {
        opacity: 0.7;
        animation: wave-animation-1 5s linear infinite;
    }

    .hero-waves .wave2 {
        opacity: 0.5;
        animation: wave-animation-2 7s linear infinite;
    }

    .hero-waves .wave3 {
        opacity: 0.3;
        animation: wave-animation-3 10s linear infinite;
    }

@keyframes wave-animation-1 {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-25px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes wave-animation-2 {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-15px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes wave-animation-3 {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

/* Stats Section */
.stats-section {
    background: var(--neutral-100);
    padding: var(--space-16) 0;
    margin-top: var(--space-8);
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

    .stat-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-size: var(--text-2xl);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--primary-600);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    font-weight: var(--font-medium);
}

/* News Section */
.news-section {
    background: var(--neutral-50);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-badge {
    margin-bottom: var(--space-4);
}

.badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-full);
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-accent {
    background: var(--accent-100);
    color: var(--accent-700);
}

.badge-warning {
    background: var(--warning);
    color: white;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--neutral-900);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-xl);
    color: var(--neutral-600);
    margin: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.news-card {
    cursor: pointer;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .news-card:hover {
        transform: translateY(-8px);
    }

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.news-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 2;
}

.card-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
    margin: 0;
    line-height: var(--leading-snug);
}

.card-text {
    color: var(--neutral-600);
    line-height: var(--leading-relaxed);
    margin: 0;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--neutral-500);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.status-published {
    color: var(--success);
}

.status-draft {
    color: var(--warning);
}

.section-footer {
    text-align: center;
}

/* About Section */
.about-section {
    background: white;
}

.about-card .card-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
}

.header-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-500);
    color: white;
    border-radius: var(--radius-lg);
    font-size: var(--text-xl);
}

.about-description {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

.feature-highlight {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--accent-50);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-8);
    border-left: 4px solid var(--accent-500);
}

.feature-highlight-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-500);
    color: white;
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
    margin: 0 0 var(--space-2) 0;
}

.feature-text {
    color: var(--neutral-700);
    margin: 0;
    line-height: var(--leading-relaxed);
}

.definition-section {
    margin-top: var(--space-8);
}

.definition-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.definition-grid {
    display: grid;
    gap: var(--space-4);
}

.definition-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-500);
}

.definition-term {
    color: var(--primary-600);
    font-weight: var(--font-semibold);
}

.definition-description {
    color: var(--neutral-700);
    line-height: var(--leading-relaxed);
}

/* Membership & Vision Sections */
.membership-section {
    background: var(--neutral-100);
}

.vision-section {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    text-align: center;
    padding: var(--space-8);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .feature-card:hover {
        transform: translateY(-4px);
    }

.feature-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-2xl);
    margin: 0 auto var(--space-6);
}

.feature-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
    margin-bottom: var(--space-6);
}

.membership-types {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    text-align: left;
}

.membership-type {
    padding: var(--space-4);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--accent-500);
}

.type-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
    margin: 0 0 var(--space-2) 0;
}

.type-description {
    color: var(--neutral-600);
    margin: 0;
    line-height: var(--leading-relaxed);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--neutral-700);
    line-height: var(--leading-relaxed);
}

    .feature-list-item i {
        color: var(--success);
        margin-top: 4px;
        flex-shrink: 0;
    }

.foundation-content {
    text-align: left;
}

.foundation-item {
    margin-bottom: var(--space-6);
    color: var(--neutral-700);
    line-height: var(--leading-relaxed);
}

    .foundation-item strong {
        color: var(--primary-600);
    }

.objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--primary-500);
}

.objective-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-500);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    flex-shrink: 0;
}

.objective-text {
    color: var(--neutral-700);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Loading & Error States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-16);
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--neutral-200);
    border-top: 3px solid var(--primary-500);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--neutral-600);
    font-size: var(--text-lg);
    margin: 0;
}

.error-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-16);
    text-align: center;
}

.error-icon,
.empty-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--error);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-2xl);
}

.empty-icon {
    background: var(--neutral-400);
}

.error-content,
.empty-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.error-title,
.empty-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
    margin: 0;
}

.error-message,
.empty-message {
    color: var(--neutral-600);
    margin: 0;
    font-size: var(--text-lg);
}

/* =============================
   NEWS PAGE STYLES
   ============================= */

.news-page {
    min-height: 100vh;
    background: var(--neutral-50);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: white;
    padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-12);
    position: relative;
    overflow: hidden;
}

    .page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,1000 0,1000"/></svg>');
        background-size: cover;
    }

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-8);
    position: relative;
    z-index: 1;
}

.header-text {
    flex: 1;
}

.page-badge {
    margin-bottom: var(--space-4);
}

    .page-badge .badge {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        font-size: var(--text-sm);
        font-weight: var(--font-medium);
        padding: var(--space-2) var(--space-4);
        border-radius: var(--radius-full);
        backdrop-filter: blur(10px);
    }

.page-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: white;
    margin: 0 0 var(--space-4) 0;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

    .page-title i {
        color: var(--accent-300);
    }

.page-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: var(--leading-relaxed);
    max-width: 600px;
}

.header-actions {
    flex-shrink: 0;
}

.search-box {
    position: relative;
    width: 300px;
}

    .search-box i {
        position: absolute;
        left: var(--space-4);
        top: 50%;
        transform: translateY(-50%);
        color: var(--neutral-500);
        z-index: 1;
    }

    .search-box input {
        width: 100%;
        padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) * 2 + 1rem);
        border: none;
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        font-size: var(--text-base);
        color: var(--neutral-800);
        transition: all var(--transition-fast);
        box-shadow: var(--shadow-md);
    }

        .search-box input:focus {
            outline: none;
            background: white;
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
        }

        .search-box input::placeholder {
            color: var(--neutral-500);
        }

/* Page Content */
.page-content {
    padding: var(--space-12) 0;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--neutral-200);
}

.results-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.results-count {
    font-weight: var(--font-medium);
    color: var(--neutral-700);
}

.search-query {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.form-select {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--neutral-700);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .form-select:focus {
        outline: none;
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px var(--primary-100);
    }

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.news-card {
    cursor: pointer;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .news-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
    }

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.news-card:hover .card-overlay {
    opacity: 1;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
    background: rgba(29, 84, 52, 0.9);
}

.news-card:hover .image-overlay {
    opacity: 1;
}

.read-more {
    color: white;
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transform: translateY(10px);
    transition: transform var(--transition-normal);
}

.news-card:hover .read-more {
    transform: translateY(0);
}

.news-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 2;
}

.card-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background: white;
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
    margin: 0;
    line-height: var(--leading-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    color: var(--neutral-600);
    line-height: var(--leading-relaxed);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--neutral-500);
    padding-top: var(--space-4);
    border-top: 1px solid var(--neutral-200);
}

.meta-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.meta-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.status-published {
    color: var(--success);
}

.status-draft {
    color: var(--warning);
}

.read-time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    background: var(--neutral-100);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    color: var(--neutral-600);
}

/* No Results State */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-16);
    text-align: center;
    grid-column: 1 / -1;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-200);
    color: var(--neutral-600);
    border-radius: var(--radius-full);
    font-size: var(--text-2xl);
}

.no-results-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.no-results-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
    margin: 0;
}

.no-results-message {
    color: var(--neutral-600);
    margin: 0;
    font-size: var(--text-lg);
    max-width: 400px;
}

    .no-results-message strong {
        color: var(--primary-600);
        font-weight: var(--font-semibold);
    }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-12);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--neutral-300);
    background: white;
    color: var(--neutral-700);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .pagination-btn:hover:not(:disabled) {
        border-color: var(--primary-500);
        color: var(--primary-600);
        transform: translateY(-1px);
    }

    .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.pagination-pages {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--neutral-300);
    background: white;
    color: var(--neutral-700);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .pagination-page:hover {
        border-color: var(--primary-500);
        color: var(--primary-600);
    }

    .pagination-page.active {
        background: var(--primary-500);
        border-color: var(--primary-500);
        color: white;
    }

.pagination-dots {
    color: var(--neutral-400);
    font-weight: var(--font-medium);
}

/* =============================
   ADMIN LOGIN STYLES
   ============================= */

.admin-login-page {
    min-height: 100vh;
    background: var(--neutral-50);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left Side - Brand & Features */
.login-left {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: white;
    padding: var(--space-12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
}

    .login-left::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,0 1000,1000 0,1000"/></svg>');
        background-size: cover;
    }

.brand-section {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

    .brand-logo .logo-icon {
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        font-size: var(--text-2xl);
        color: var(--accent-300);
    }

    .brand-logo .brand-text {
        display: flex;
        flex-direction: column;
    }

    .brand-logo .brand-title {
        font-size: var(--text-2xl);
        font-weight: var(--font-bold);
        color: white;
        margin: 0;
        line-height: 1.2;
    }

    .brand-logo .brand-subtitle {
        font-size: var(--text-sm);
        color: rgba(255, 255, 255, 0.8);
        margin: 0;
        line-height: 1.2;
    }

.features-section {
    position: relative;
    z-index: 1;
}

.feature-main {
    text-align: center;
    margin-bottom: var(--space-12);
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-500);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-3xl);
    margin: 0 auto var(--space-4);
}

.feature-main .feature-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: white;
    margin: 0 0 var(--space-2) 0;
}

.feature-main .feature-description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: var(--leading-relaxed);
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    align-items: center;
}

    .feature-card:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(8px);
    }

.login-left .feature-card .feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-500);
    color: white;
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    flex-shrink: 0;
    margin-top: var(--space-1);
}

.feature-card .feature-content {
    flex: 1;
}

.feature-card .feature-name {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: white;
    margin: 0 0 var(--space-1) 0;
}

.feature-card .feature-detail {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: var(--leading-relaxed);
}

/* Right Side - Login Form */
.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    background: white;
}

.login-form-container {
    width: 100%;
    max-width: 440px;
}

.mobile-header {
    display: none;
    margin-bottom: var(--space-8);
    text-align: center;
}

.mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

    .mobile-logo .logo-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-xl);
    }

    .mobile-logo .brand-title {
        font-size: var(--text-xl);
        color: var(--primary-600);
    }

    .mobile-logo .brand-subtitle {
        font-size: var(--text-xs);
        color: var(--neutral-600);
    }

.form-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.form-header {
    text-align: center;
}

    .form-header .form-title {
        font-size: var(--text-3xl);
        font-weight: var(--font-bold);
        color: var(--neutral-900);
        margin: 0 0 var(--space-2) 0;
    }

    .form-header .form-subtitle {
        font-size: var(--text-lg);
        color: var(--neutral-600);
        margin: 0;
        line-height: var(--leading-relaxed);
    }

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    color: var(--neutral-700);
}

.checkbox-input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--neutral-400);
    border-radius: var(--radius-sm);
    background: white;
    transition: all var(--transition-fast);
    position: relative;
}

.checkbox-input:checked + .checkmark {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

    .checkbox-input:checked + .checkmark::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: var(--text-xs);
        font-weight: var(--font-bold);
    }

.checkbox-text {
    font-weight: var(--font-medium);
}

.forgot-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: color var(--transition-fast);
}

    .forgot-link:hover {
        color: var(--primary-700);
        text-decoration: underline;
    }

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

    .login-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    }

    .login-button:active:not(:disabled) {
        transform: translateY(0);
    }

    .login-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

    .login-button.loading {
        pointer-events: none;
    }

/* Alert Messages */
.alert-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    animation: slideInDown 0.3s ease;
}

    .alert-message.success {
        background: var(--success);
        color: white;
        border-color: var(--success);
    }

    .alert-message.error {
        background: var(--error);
        color: white;
        border-color: var(--error);
    }

    .alert-message .alert-icon {
        flex-shrink: 0;
        margin-top: 2px;
        font-size: var(--text-lg);
    }

    .alert-message .alert-content {
        flex: 1;
    }

    .alert-message .alert-text {
        margin: 0;
        font-weight: var(--font-medium);
        line-height: var(--leading-relaxed);
    }

    .alert-message .alert-close {
        background: none;
        border: none;
        color: inherit;
        cursor: pointer;
        padding: var(--space-1);
        border-radius: var(--radius-sm);
        transition: background var(--transition-fast);
        flex-shrink: 0;
    }

        .alert-message .alert-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

/* Form Footer */
.form-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--neutral-200);
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    color: var(--neutral-600);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: color var(--transition-fast);
}

    .back-link:hover {
        color: var(--primary-600);
    }

.support-text {
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.support-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: var(--font-medium);
}

    .support-link:hover {
        text-decoration: underline;
    }

/* =============================
   ADMIN DASHBOARD STYLES
   ============================= */

.admin-dashboard {
    min-height: 100vh;
    background: var(--neutral-50);
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: white;
    padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-8);
    position: relative;
    overflow: hidden;
}

    .dashboard-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,0 1000,1000 0,1000"/></svg>');
        background-size: cover;
    }

    .dashboard-header .header-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: var(--space-8);
        position: relative;
        z-index: 1;
    }

    .dashboard-header .header-text {
        flex: 1;
    }

.dashboard-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: white;
    margin: 0 0 var(--space-2) 0;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

    .dashboard-title i {
        color: var(--accent-300);
    }

.dashboard-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: var(--leading-relaxed);
}

.dashboard-header .header-actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* Stats Section */
.dashboard-stats-section {
    padding: var(--space-8) 0;
    margin-top: var(--space-8);
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.stat-card {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--primary-500);
    }

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
    }

    .stat-card .stat-content {
        display: flex;
        align-items: center;
        gap: var(--space-4);
    }

    .stat-card .stat-icon {
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-lg);
        font-size: var(--text-2xl);
        color: white;
        flex-shrink: 0;
    }

        .stat-card .stat-icon.total {
            background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
        }

        .stat-card .stat-icon.published {
            background: linear-gradient(135deg, var(--success) 0%, #10b981 100%);
        }

        .stat-card .stat-icon.draft {
            background: linear-gradient(135deg, var(--warning) 0%, #f59e0b 100%);
        }

        .stat-card .stat-icon.views {
            background: linear-gradient(135deg, var(--info) 0%, #3b82f6 100%);
        }

    .stat-card .stat-info {
        flex: 1;
    }

    .stat-card .stat-number {
        font-size: var(--text-3xl);
        font-weight: var(--font-bold);
        color: var(--neutral-900);
        line-height: 1;
        margin: 0 0 var(--space-1) 0;
    }

    .stat-card .stat-label {
        font-size: var(--text-sm);
        color: var(--neutral-600);
        font-weight: var(--font-medium);
        margin: 0;
    }

.stat-trend {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    padding: var(--space-2) var(--space-3);
    background: var(--neutral-100);
    border-radius: var(--radius-full);
    align-self: flex-start;
}

    .stat-trend.positive {
        background: var(--success);
        color: white;
    }

    .stat-trend.warning {
        background: var(--warning);
        color: white;
    }

    .stat-trend i {
        font-size: var(--text-xs);
    }

/* Quick Actions Section */
.actions-section {
    padding: var(--space-12) 0;
}

    .actions-section .section-title {
        font-size: var(--text-2xl);
        font-weight: var(--font-bold);
        color: var(--neutral-900);
        margin: 0 0 var(--space-8) 0;
        text-align: center;
    }

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.action-card {
    background: white;
    padding: var(--space-6);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

    .action-card:hover {
        transform: translateY(-4px);
        border-color: var(--primary-500);
        box-shadow: var(--shadow-lg);
    }

    .action-card .action-icon {
        width: 70px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-full);
        font-size: var(--text-2xl);
        color: white;
    }

        .action-card .action-icon.primary {
            background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
        }

        .action-card .action-icon.success {
            background: linear-gradient(135deg, var(--success) 0%, #10b981 100%);
        }

        .action-card .action-icon.warning {
            background: linear-gradient(135deg, var(--warning) 0%, #f59e0b 100%);
        }

        .action-card .action-icon.info {
            background: linear-gradient(135deg, var(--info) 0%, #3b82f6 100%);
        }

    .action-card .action-content {
        flex: 1;
    }

    .action-card .action-title {
        font-size: var(--text-lg);
        font-weight: var(--font-semibold);
        color: var(--neutral-900);
        margin: 0 0 var(--space-2) 0;
    }

    .action-card .action-description {
        font-size: var(--text-sm);
        color: var(--neutral-600);
        margin: 0;
        line-height: var(--leading-relaxed);
    }

/* Content Section */
.content-section {
    padding: var(--space-12) 0;
    background: var(--neutral-50);
}

    .content-section .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-8);
        gap: var(--space-6);
    }

        .content-section .section-header .section-title {
            margin: 0;
            text-align: left;
            display: flex;
            align-items: center;
            gap: var(--space-3);
        }

.section-actions {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.content-section .search-box {
    position: relative;
    width: 250px;
}

    .content-section .search-box i {
        position: absolute;
        left: var(--space-4);
        top: 50%;
        transform: translateY(-50%);
        color: var(--neutral-500);
        z-index: 1;
    }

    .content-section .search-box input {
        width: 100%;
        padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) * 2 + 1rem);
        border: 1px solid var(--neutral-300);
        border-radius: var(--radius-md);
        background: white;
        font-size: var(--text-sm);
        color: var(--neutral-800);
        transition: all var(--transition-fast);
    }

        .content-section .search-box input:focus {
            outline: none;
            border-color: var(--primary-500);
            box-shadow: 0 0 0 3px var(--primary-100);
        }

.filter-controls {
    display: flex;
    gap: var(--space-3);
}

.content-section .form-select {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--neutral-700);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 150px;
}

    .content-section .form-select:focus {
        outline: none;
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px var(--primary-100);
    }

/* Content Card */
.content-card {
    background: white;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

    .content-card .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-6);
        border-bottom: 1px solid var(--neutral-200);
        background: var(--neutral-50);
    }

.card-title-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.content-card .card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
    margin: 0;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.content-card .card-actions {
    display: flex;
    gap: var(--space-2);
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.table-header {
    background: var(--neutral-50);
    border-bottom: 2px solid var(--neutral-200);
}

    .table-header th {
        padding: var(--space-4) var(--space-4);
        text-align: left;
        font-weight: var(--font-semibold);
        color: var(--neutral-700);
        font-size: var(--text-sm);
        white-space: nowrap;
    }

.table-body {
    background: white;
}

.table-row {
    border-bottom: 1px solid var(--neutral-200);
    transition: background var(--transition-fast);
}

    .table-row:hover {
        background: var(--neutral-50);
    }

.table-cell {
    padding: var(--space-4);
    vertical-align: top;
}

/* Title Column */
.title-col {
    width: 45%;
    min-width: 300px;
}

.date-col {
    width: 15%;
    min-width: 120px;
}

.status-col {
    width: 15%;
    min-width: 100px;
}

.actions-col {
    width: 25%;
    min-width: 150px;
}

.news-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.news-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.data-table .news-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
    margin: 0;
    line-height: var(--leading-snug);
    flex: 1;
}

.news-has-image {
    color: var(--primary-500);
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.data-table .news-summary {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    margin: 0;
    line-height: var(--leading-relaxed);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.data-table .news-meta {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.data-table .meta-tag {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--neutral-500);
    background: var(--neutral-100);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
}

    .data-table .meta-tag i {
        font-size: var(--text-xs);
    }

/* Date Column */
.date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.date-day {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary-600);
    line-height: 1;
}

.date-month {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--neutral-700);
    text-transform: uppercase;
}

.date-year {
    font-size: var(--text-xs);
    color: var(--neutral-500);
}

/* Status Column */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

    .status-badge.published {
        background: var(--success);
        color: white;
    }

    .status-badge.draft {
        background: var(--warning);
        color: white;
    }

    .status-badge i {
        font-size: var(--text-xs);
    }

/* Actions Column */
.action-buttons {
    display: flex;
    gap: var(--space-2);
    justify-content: flex-start;
}

    .action-buttons .btn {
        padding: var(--space-2);
        min-width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

.footer-info {
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.footer-actions {
    display: flex;
    gap: var(--space-3);
}

/* =============================
   CHANGE PASSWORD STYLES
   ============================= */

.change-password-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--neutral-100) 100%);
    padding: var(--space-8) 0;
    display: flex;
    align-items: center;
}

.password-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* Header Section */
.password-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.password-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

    .password-logo .logo-icon {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
        color: white;
        border-radius: var(--radius-lg);
        font-size: var(--text-xl);
    }

    .password-logo h2 {
        font-size: var(--text-2xl);
        font-weight: var(--font-bold);
        color: var(--primary-600);
        margin: 0;
    }

    .password-logo p {
        font-size: var(--text-sm);
        color: var(--neutral-600);
        margin: 0;
    }

.password-title-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.title-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-500);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-2xl);
    margin: 0 auto;
}

.password-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--neutral-900);
    margin: 0;
}

.password-subtitle {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    margin: 0;
    line-height: var(--leading-relaxed);
}

/* Password Card */
.password-card {
    padding: var(--space-8);
    background: white;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Password Strength Meter */
.password-strength {
    margin-top: var(--space-2);
}

.strength-meter {
    width: 100%;
    height: 6px;
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.strength-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    width: 0%;
}

    .strength-bar.empty {
        width: 0%;
        background: var(--neutral-300);
    }

    .strength-bar.weak {
        width: 25%;
        background: var(--error);
    }

    .strength-bar.medium {
        width: 50%;
        background: var(--warning);
    }

    .strength-bar.strong {
        width: 100%;
        background: var(--success);
    }

.strength-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
}

.strength-text {
    color: var(--neutral-600);
}

.strength-value {
    font-weight: var(--font-semibold);
}

    .strength-value.empty {
        color: var(--neutral-500);
    }

    .strength-value.weak {
        color: var(--error);
    }

    .strength-value.medium {
        color: var(--warning);
    }

    .strength-value.strong {
        color: var(--success);
    }

/* Password Requirements */
.password-requirements {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-500);
}

.requirements-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--neutral-700);
    margin: 0 0 var(--space-3) 0;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--neutral-600);
    transition: color var(--transition-fast);
}

    .requirement-item.met {
        color: var(--success);
    }

    .requirement-item i {
        font-size: var(--text-xs);
        width: 16px;
    }

    .requirement-item.met i {
        color: var(--success);
    }

    .requirement-item:not(.met) i {
        color: var(--neutral-400);
    }

/* Submit Button */
.password-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4);
    margin-top: var(--space-4);
    font-weight: var(--font-semibold);
    transition: all var(--transition-normal);
}

    .password-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .password-btn:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

/* Footer Section */
.password-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

    .footer-info i {
        color: var(--primary-500);
    }

/* =============================
   UTILITY CLASSES
   ============================= */

/* Text Colors */
.text-primary {
    color: var(--primary-600);
}

.text-accent {
    color: var(--accent-600);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-error {
    color: var(--error);
}

.text-muted {
    color: var(--neutral-500);
}

/* Background Colors */
.bg-primary {
    background-color: var(--primary-500);
}

.bg-accent {
    background-color: var(--accent-500);
}

.bg-success {
    background-color: var(--success);
}

.bg-warning {
    background-color: var(--warning);
}

.bg-error {
    background-color: var(--error);
}

/* Spacing Utilities */
.mt-1 {
    margin-top: var(--space-1);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mb-1 {
    margin-bottom: var(--space-1);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.p-1 {
    padding: var(--space-1);
}

.p-2 {
    padding: var(--space-2);
}

.p-4 {
    padding: var(--space-4);
}

/* Display Utilities */
.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-inline {
    display: inline;
}

.d-inline-block {
    display: inline-block;
}

/* Flex Utilities */
.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

/* Grid Utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

/* =============================
   RESPONSIVE DESIGN
   ============================= */

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* General Responsive */
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
        --text-2xl: 1.5rem;
        --text-xl: 1.25rem;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .section {
        padding: var(--space-12) 0;
    }

    .section-lg {
        padding: var(--space-16) 0;
    }

    /* Layout Responsive */
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .logo-title {
        font-size: var(--text-lg);
    }

    .logo-subtitle {
        font-size: var(--text-xs);
    }

    /* Home Page Responsive */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-actions {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-highlight {
        flex-direction: column;
        text-align: center;
    }

    .definition-item {
        text-align: center;
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    /* Performance optimizations for mobile */
    .card:hover {
        transform: none;
    }

    .news-card:hover {
        transform: none;
    }

    .feature-card:hover {
        transform: none;
    }

    /* News Page Responsive */
    .page-header {
        padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-8);
    }

    .page-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-6);
        text-align: center;
    }

    .search-box {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .page-title {
        font-size: var(--text-3xl);
        justify-content: center;
    }

    .content-header {
        flex-direction: column;
        gap: var(--space-4);
        align-items: stretch;
        text-align: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-pages {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    /* Admin Login Responsive */
    .login-container {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .login-left {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .login-right {
        padding: var(--space-6);
        align-items: flex-start;
        padding-top: var(--space-12);
    }

    .login-form-container {
        max-width: 100%;
    }

    /* Admin Dashboard Responsive */
    .dashboard-header {
        padding: calc(var(--header-height) + var(--space-6)) 0 var(--space-6);
    }

        .dashboard-header .header-content {
            flex-direction: column;
            align-items: stretch;
            gap: var(--space-6);
            text-align: center;
        }

    .dashboard-title {
        font-size: var(--text-3xl);
        justify-content: center;
    }

    .dashboard-header .header-actions {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        gap: var(--space-4);
        align-items: stretch;
    }

    .section-actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .search-box {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .table-responsive {
        font-size: var(--text-sm);
    }

    .news-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }

    .action-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .card-footer {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }

    /* Change Password Responsive */
    .change-password-page {
        padding: var(--space-4);
    }

    .password-container {
        gap: var(--space-6);
    }

    .password-card {
        padding: var(--space-6);
    }

    .password-title {
        font-size: var(--text-2xl);
    }

    .password-subtitle {
        font-size: var(--text-base);
    }

    .title-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
    }
}

@media (max-width: 480px) {
    /* Ultra Small Screens */
    .header-content {
        padding: 0 var(--space-2);
    }

    .logo {
        gap: var(--space-2);
    }

    .logo-image {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        max-width: 150px;
    }

    .back-to-top {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 44px;
        height: 44px;
    }

    /* Home Page */
    .hero-graphic {
        width: 200px;
        height: 200px;
    }

    .graphic-icon {
        font-size: 3rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
    }

    /* News Page */
    .page-title {
        font-size: var(--text-2xl);
    }

    .card-meta {
        flex-direction: column;
        gap: var(--space-3);
        align-items: flex-start;
    }

    .meta-left {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .pagination-page {
        width: 36px;
        height: 36px;
        font-size: var(--text-xs);
    }

    .pagination-btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    /* Admin Login */
    .login-right {
        padding: var(--space-4);
    }

    .form-options {
        flex-direction: column;
        gap: var(--space-3);
        align-items: flex-start;
    }

    .form-title {
        font-size: var(--text-2xl);
    }

    .form-subtitle {
        font-size: var(--text-base);
    }

    .login-button {
        padding: var(--space-3) var(--space-4);
    }

    /* Admin Dashboard */
    .dashboard-title {
        font-size: var(--text-2xl);
    }

    .stat-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    .action-card {
        padding: var(--space-4);
    }

    .action-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-xl);
    }

    .table-cell {
        padding: var(--space-3) var(--space-2);
    }

    .action-buttons .btn {
        min-width: 32px;
        height: 32px;
        padding: var(--space-1);
    }

    /* Change Password */
    .password-container {
        gap: var(--space-4);
    }

    .password-card {
        padding: var(--space-4);
    }

    .password-logo {
        flex-direction: column;
        gap: var(--space-2);
    }

        .password-logo h2 {
            font-size: var(--text-xl);
        }

    .password-form {
        gap: var(--space-4);
    }

    .password-requirements {
        padding: var(--space-3);
    }

    .requirements-list {
        gap: var(--space-1);
    }
}

/* =============================
   ACCESSIBILITY
   ============================= */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.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;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --neutral-200: #000000;
        --neutral-300: #000000;
        --neutral-400: #333333;
        --neutral-500: #666666;
        --neutral-700: #000000;
        --neutral-900: #000000;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .card {
        border: 2px solid var(--neutral-700);
    }
}

/* Enhanced focus states for accessibility */
.btn:focus-visible {
    outline: 3px solid var(--primary-300);
    outline-offset: 2px;
}

.form-input:focus-visible {
    outline: 3px solid var(--primary-100);
    outline-offset: 1px;
}

/* =============================
   NEWS DETAIL STYLES
   ============================= */

.news-detail-page {
    min-height: 100vh;
    background: var(--neutral-50);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    padding: var(--space-4) 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--space-2);
    font-size: var(--text-sm);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.breadcrumb-link {
    color: var(--neutral-600);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

    .breadcrumb-link:hover {
        color: var(--primary-600);
    }

.breadcrumb-separator {
    color: var(--neutral-400);
    margin: 0 var(--space-1);
}

.breadcrumb-current {
    color: var(--primary-600);
    font-weight: var(--font-medium);
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: white;
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

    .article-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,0 1000,1000 0,1000"/></svg>');
        background-size: cover;
    }

.article-meta-top .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-excerpt p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.article-date {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
}

.article-status {
    font-size: var(--text-sm);
}

/* Article Meta Top - Horizontal */
.article-meta-top {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: 0;
    flex-wrap: wrap;
    max-width: 100%;
    order: 1;
}

/* Article Title - Tengah */
.article-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: white;
    margin: 0;
    line-height: var(--leading-tight);
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    order: 2;
    text-align: center;
}

/* Article Excerpt - Bawah Title */
.article-excerpt {
    margin: 0;
    max-width: 100%;
    order: 3;
    text-align: center;
}

    .article-excerpt p {
        font-size: var(--text-xl);
        color: rgba(255, 255, 255, 0.9);
        line-height: var(--leading-relaxed);
        margin: 0;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

/* Article Meta Bottom - Horizontal di Bawah */
.article-meta-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-top: 0;
    flex-wrap: wrap;
    max-width: 100%;
    order: 4;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: #475569;
    font-size: var(--text-sm);
    background: #eee;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

    .meta-item i {
        color: var(--accent-300);
    }

/* Featured Image */
.featured-image-section {
    padding: var(--space-12) 0;
    background: white;
}

.image-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

    .featured-image:hover {
        transform: scale(1.02);
    }

/* Article Content */
.article-content-section {
    padding: var(--space-12) 0;
    background: var(--neutral-50);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.article-body {
    background: white;
    padding: var(--space-12);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-8);
}

.article-text {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--neutral-700);
}

    .article-text p {
        margin-bottom: var(--space-6);
    }

        .article-text p:last-child {
            margin-bottom: 0;
        }

/* Article Tags */
.article-tags {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-8);
}

.tags-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--neutral-800);
    margin: 0 0 var(--space-4) 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

    .tags-title i {
        color: var(--primary-500);
    }

.tags-list {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

    .tag:hover {
        background: var(--primary-500);
        color: white;
        transform: translateY(-1px);
    }

/* Share Section */
.share-section {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-8);
}

.share-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--neutral-800);
    margin: 0 0 var(--space-4) 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

    .share-title i {
        color: var(--primary-500);
    }

.share-buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

    .share-btn:hover {
        transform: translateY(-2px) scale(1.1);
        box-shadow: var(--shadow-lg);
    }

.share-facebook {
    background: #1877F2;
}

.share-twitter {
    background: #1DA1F2;
}

.share-linkedin {
    background: #0A66C2;
}

.share-whatsapp {
    background: #25D366;
}

.share-copy {
    background: var(--primary-500);
}

/* Article Navigation */
.article-navigation {
    padding: var(--space-8) 0;
    background: white;
    border-top: 1px solid var(--neutral-200);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: var(--space-4);
    text-align: center;
}

@media (max-width: 768px) {
    .article-header {
        padding: var(--space-12) 0;
    }
   
    .article-title {
        font-size: var(--text-3xl);
        word-wrap: break-word;
        word-break: break-word;
        line-height: 1.2;
        text-align: center;
    }

    .article-excerpt p {
        font-size: var(--text-lg);
        word-wrap: break-word;
        word-break: break-word;
        line-height: 1.4;
        text-align: center;
    }

    .article-meta-bottom {
        gap: var(--space-3);
        justify-content: center;
    }

    .meta-item {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-2);
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: var(--space-8) 0;
    }

    .article-title {
        font-size: var(--text-2xl);
        word-break: break-word;
        hyphens: auto;
        line-height: 1.3;
    }

    .article-excerpt p {
        font-size: var(--text-base);
        word-break: break-word;
        hyphens: auto;
        line-height: 1.5;
    }

    .article-meta-top {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
    }

    .article-meta-bottom {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
    }

    .meta-item {
        justify-content: center;
        width: fit-content;
    }
}

/* =============================
   MODAL STYLES - FIXED VERSION
   ============================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--space-6);
    overflow-y: auto;
}

    .modal-overlay.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

.modal-dialog {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 800px;
    max-height: 90vh; /* Batasi tinggi maksimal */
    overflow: hidden; /* Hide overflow dari dialog */
    animation: slideInUp 0.3s ease;
    display: flex;
    flex-direction: column; /* Penting untuk layout flex */
}

.modal-lg {
    max-width: 900px;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%; /* Pastikan mengambil tinggi penuh */
    max-height: 100%; /* Batasi tinggi konten */
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-50);
    flex-shrink: 0; /* Header tidak mengecil */
}

.modal-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.modal-close {
    background: none;
    border: none;
    padding: var(--space-2);
    color: var(--neutral-500);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

    .modal-close:hover {
        background: var(--neutral-200);
        color: var(--neutral-700);
    }

.modal-body {
    flex: 1; /* Ambil sisa space yang available */
    padding: var(--space-6);
    overflow-y: auto; /* Enable scroll vertical */
    max-height: calc(90vh - 140px); /* Hitung tinggi berdasarkan viewport dikurangi header & footer */
}

.modal-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-50);
    flex-shrink: 0; /* Footer tidak mengecil */
}

/* Form Styles */
.news-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    min-height: 100%; /* Pastikan form mengambil tinggi minimal */
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
}

.section-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--neutral-800);
    margin: 0;
    align-items: center;
    gap: var(--space-3);
}

/* Content Textarea khusus untuk konten berita */
.content-textarea {
    min-height: 200px; /* Tinggi minimal untuk textarea konten */
    resize: vertical; /* Biarkan user resize vertical */
}

/* File Upload */
.file-upload-area {
    margin-top: var(--space-2);
}

.file-upload-label {
    display: block;
    cursor: pointer;
}

.file-input {
    display: none;
}

.upload-content {
    border: 2px dashed var(--neutral-300);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-fast);
}

    .upload-content.has-file {
        border-color: var(--primary-500);
        background: var(--primary-50);
    }

    .upload-content:hover {
        border-color: var(--primary-500);
    }

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: var(--neutral-500);
}

    .upload-placeholder i {
        font-size: var(--text-3xl);
    }

.upload-text h5 {
    margin: 0 0 var(--space-1) 0;
    color: var(--neutral-700);
}

.upload-text p {
    margin: 0;
    font-size: var(--text-sm);
}

.file-preview {
    position: relative;
    max-width: 300px;
    margin: 0 auto var(--space-3);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 200px; /* Batasi tinggi preview gambar */
    object-fit: contain; /* Pastikan gambar tidak terdistorsi */
}

.file-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.file-preview:hover .file-overlay {
    opacity: 1;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

/* Toggle Group */
.toggle-group {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.toggle-option {
    flex: 1;
    min-width: 150px;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .toggle-option.active {
        border-color: var(--primary-500);
        background: var(--primary-50);
    }

    .toggle-option input {
        display: none;
    }

.toggle-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.toggle-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

    .toggle-text span {
        font-weight: var(--font-semibold);
        color: var(--neutral-800);
    }

    .toggle-text small {
        font-size: var(--text-xs);
        color: var(--neutral-600);
    }

/* Form Actions */
.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.action-group {
    display: flex;
    gap: var(--space-3);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--neutral-500);
    margin-top: var(--space-2);
}

.form-actions {
    margin-top: var(--space-3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-overlay {
        padding: var(--space-4);
        align-items: flex-start; /* Align ke atas di mobile */
    }

    .modal-dialog {
        max-height: 95vh;
        margin-top: var(--space-8); /* Beri jarak dari atas */
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--space-4);
    }

    .modal-body {
        max-height: calc(95vh - 120px); /* Adjust untuk mobile */
    }

    .toggle-group {
        flex-direction: column;
    }

    .footer-actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .action-group {
        width: 100%;
    }

        .action-group .btn {
            flex: 1;
        }

    .content-textarea {
        min-height: 150px; /* Kurangi tinggi minimal di mobile */
    }
}

/* Scrollbar Styling untuk Modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: var(--radius-full);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: var(--radius-full);
}

    .modal-body::-webkit-scrollbar-thumb:hover {
        background: var(--neutral-500);
    }
/* FIX NAVBAR LAYOUT */
.header .container {
    max-width: var(--container-max-width) !important;
    margin: 0 auto !important;
    padding: 0 var(--space-6) !important;
    width: 100% !important;
}

.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* UTAMAKAN INI */
    width: 100% !important;
    gap: var(--space-4) !important;
    flex-direction: column;
}

/* Logo section - tetap kiri */
.logo-section {
    flex-shrink: 0 !important;
    min-width: 200px !important;
}

/* Nav section - center dengan width terbatas */
.nav-section {
    flex: 1 !important;
    display: flex !important;
    justify-content: right !important;
    max-width: 800px !important; /* BATASI LEBAR */
    margin: 0 auto !important;
}

/* Actions section - tetap kanan */
.actions-section {
    flex-shrink: 0 !important;
    min-width: 60px !important;
}

/* Pastikan nav-list tidak melebar */
.nav-list {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
}

.nav-link {
    white-space: nowrap !important;
    padding: var(--space-3) var(--space-3) !important;
}

/* =============================
   NEWS CAROUSEL STYLES
   ============================= */

.news-carousel {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
}

.carousel-container {
    overflow: hidden;
    border-radius: var(--radius-xl);
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform var(--transition-normal);
    gap: var(--space-6);
    padding: var(--space-4) 0;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - var(--space-4));
    min-width: 0;
    transition: all var(--transition-normal);
}

@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc(50% - var(--space-3));
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 calc(100% - var(--space-2));
    }
}

.carousel-news-card {
    cursor: pointer;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 var(--space-2);
}

    .carousel-news-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.carousel-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.carousel-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.carousel-news-card:hover .carousel-news-image {
    transform: scale(1.05);
}

.carousel-card-content {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.carousel-card-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
    margin: 0;
    line-height: var(--leading-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-card-text {
    color: var(--neutral-600);
    line-height: var(--leading-relaxed);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--text-sm);
}

.carousel-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    color: var(--neutral-500);
    padding-top: var(--space-3);
    border-top: 1px solid var(--neutral-200);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--neutral-300);
    background: white;
    color: var(--neutral-700);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--text-lg);
}

    .carousel-btn:hover:not(:disabled) {
        border-color: var(--primary-500);
        color: var(--primary-600);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .carousel-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.carousel-indicators {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--neutral-300);
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .carousel-indicator.active {
        background: var(--primary-500);
        width: 20px;
    }

/* Loading state untuk carousel */
.carousel-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    gap: var(--space-4);
}

/* Empty state untuk carousel */
.carousel-empty {
    text-align: center;
    padding: var(--space-8);
    color: var(--neutral-500);
}