﻿@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';

@theme {
    --font-sans: 'Poppins', 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
}

/* ============================================================
   HATTA AKSARA PROJECT, FOREST SCHOLAR DESIGN SYSTEM
   Style: Warm Editorial & Civic (per design-system/hatta-aksara/MASTER.md)
   Palette: Forest Green #2C3678 · Paper Cream #10162A · Deep Green Ink #0A0E18 · Antique Gold #C9A227
   Typography: Montserrat (display) + Poppins (body) · WCAG AA · 8dp grid
   ============================================================ */

:root {
    /* === PRIMARY BRAND COLORS (Forest Scholar) === */
    --navy-primary:      #0A0E18;  /* forest primary (white text, AA 7.9:1) */
    --navy-hover:        #0F1420;  /* hover state */
    --navy-light:        #121828;  /* brand green (graphics/borders) */
    --navy-subtle:       rgba(227,178,60,0.07);
    --navy-border:       rgba(227,178,60,0.30);

    --gold-primary:      #E3B23C;  /* antique gold (fills / dark bg) */
    --gold-hover:        #C99A2E;
    --gold-bronze:       #E3B23C;  /* gold text on light bg (AA 4.6:1) */
    --gold-light:        rgba(227,178,60,0.14);  /* soft green tint for badges */
    --gold-subtle:       rgba(227,178,60,0.10);
    --gold-border:       rgba(227,178,60,0.35);

    /* === SEMANTIC TOKENS === */
    --color-primary:         var(--navy-primary);
    --color-primary-hover:   var(--navy-hover);
    --color-primary-light:   var(--gold-light);
    --color-primary-border:  var(--navy-border);
    --color-primary-subtle:  var(--navy-subtle);
    --color-primary-glow:    rgba(227,178,60,0.20);
    --color-primary-gradient: linear-gradient(135deg, #1C2438 0%, #141B2C 55%, #0C101C 100%);

    /* Legacy aliases */
    --violet-primary:    #E3B23C;
    --violet-hover:      #C99A2E;
    --violet-light:      var(--gold-primary);
    --violet-dark:       #0F1420;
    --violet-gradient:   var(--color-primary-gradient);
    --violet-subtle:     var(--navy-subtle);
    --violet-border:     var(--navy-border);
    --violet-glow:       var(--color-primary-glow);
    --maroon-primary:    #0A0E18;
    --maroon-deep:       #070A10;
    --maroon-dark:       #0C101C;
    --gold-dark:         var(--gold-hover);

    /* === SURFACE / BACKGROUND (Paper Cream) === */
    --bg-page:           #0A0E18;
    --bg-surface:        #10162A;
    --bg-subdued:        #0E1422;
    --bg-dark:           #070A10;
    --bg-dark-secondary: #0C101C;
    --bg-warm-hero:      linear-gradient(180deg, #0D1220 0%, #0A0E18 100%);

    /* === TYPOGRAPHY (Deep Green Ink) === */
    --text-main:         #F4F6FB;
    --text-body:         #C4CBDC;
    --text-muted:        #8E97AC;
    --text-light:        #6B7488;
    --text-inverse:      #FFFFFF;
    --text-gold:         var(--gold-primary);

    --font-display:      'Montserrat', 'Poppins', system-ui, sans-serif;
    --font-sans:         'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* === BORDER (Sage Stone) === */
    --border-subtle:     rgba(255,255,255,0.07);
    --border-default:    rgba(255,255,255,0.14);
    --border-strong:     rgba(255,255,255,0.28);

    /* === RADIUS (clean, not overly rounded) === */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  16px;
    --radius-pill: 9999px;

    /* === SHADOWS (warm, single-layer, clean) === */
    --shadow-xs:       0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-sm:       0 1px 3px 0 rgba(0,0,0,0.08), 0 1px 2px -1px rgba(0,0,0,0.06);
    --shadow-md:       0 4px 10px -2px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg:       0 10px 16px -4px rgba(0,0,0,0.07), 0 4px 8px -4px rgba(0,0,0,0.04);
    --shadow-xl:       0 16px 28px -6px rgba(0,0,0,0.08), 0 8px 12px -6px rgba(0,0,0,0.04);
    --shadow-subtle:   var(--shadow-sm);
    --shadow-elevated: var(--shadow-lg);
    --shadow-primary:  0 8px 24px -2px rgba(227,178,60,0.28);

    /* === STATE COLORS === */
    --color-success: #15803D;
    --color-success-bg: rgba(21,128,61,0.14);
    --color-warning: #8A6B22;
    --color-warning-bg: rgba(217,119,6,0.14);
    --color-danger:  #DC2626;
    --color-danger-bg: rgba(220,38,38,0.14);
    --color-info:    #0284C7;
    --color-info-bg: #F0F9FF;

    /* === TRANSITION === */
    --transition-fast:   150ms ease-out;
    --transition-base:   200ms ease-out;
    --transition-slow:   300ms ease-out;

    /* === SLATE ALIASES (warm ink scale for dark UI) === */
    --slate-900: #070A10;
    --slate-850: #0C101C;
    --slate-800: #131A2C;
    --slate-700: #2A3350;
    --slate-100: #131A2C;
}

/* ============================================================
   GLOBAL BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-page);
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-main);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   RESPONSIVE MEDIA
   ============================================================ */

/* Responsive media */
img, video, .responsive-media {
    max-width: 100%;
    height: auto;
}

/* Responsive iframe/video containers */
.responsive-iframe, .responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}

.responsive-iframe iframe, 
.responsive-video iframe,
.responsive-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Touch-friendly form elements */
@media (max-width: 768px) {
    .form-control, .form-select, textarea {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Larger tap targets */
    a, button, .nav-link {
        min-height: 44px;
    }
    
    /* Better font scaling */
    html {
        font-size: 100%;
    }
    
    h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    h2 {
        font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.glass-panel {
    background: rgba(16,22,42,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.10);
}

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

.btn-tactile { transition: all var(--transition-fast); }
.btn-tactile:active { transform: scale(0.98); }

.subpage-hero {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 64px 0 48px;
    position: relative; overflow: hidden;
}

.subpage-hero::before { display: none; }

.divider { height: 1px; background: var(--border-subtle); margin: 0; border: none; }
.divider-gold { height: 3px; width: 48px; background: var(--gold-primary); border-radius: 2px; margin: 16px 0; }

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-md);
    font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500;
    cursor: pointer; border: 1px solid transparent;
    transition: all var(--transition-base);
    text-decoration: none; line-height: 1.4; white-space: normal;
}
.btn:focus-visible { outline: 2px solid var(--navy-primary); outline-offset: 2px; }

.btn-primary { background: var(--navy-primary); color: #FFFFFF; border-color: var(--navy-primary); }
.btn-primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-gold { background: var(--gold-primary); color: #0A0E18; border-color: var(--gold-primary); font-weight: 600; }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(227,178,60,0.35); }

.btn-outline { background: transparent; color: var(--navy-primary); border-color: var(--border-default); }
.btn-outline:hover { background: var(--navy-subtle); border-color: var(--navy-primary); }

.btn-outline-white { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn-ghost { background: transparent; color: var(--text-body); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-subdued); color: var(--text-main); }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-gradient { background: var(--navy-primary); color: #FFFFFF; border: none; }
.btn-gradient:hover { background: var(--navy-hover); }

/* ============================================================
   BADGE SYSTEM
   ============================================================ */

.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: var(--radius-pill);
    font-size: 0.72rem; font-weight: 600; font-family: var(--font-sans);
    letter-spacing: 0.03em; text-transform: uppercase;
}
.badge-navy    { background: var(--navy-subtle); color: var(--navy-primary); }
.badge-gold    { background: var(--gold-subtle); color: #6E571E; }
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-danger  { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-muted   { background: var(--bg-subdued); color: var(--text-muted); }

/* ============================================================
   CARD SYSTEM
   ============================================================ */

.card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--border-subtle); background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card-title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--text-main); margin: 0; line-height: 1.35; }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border-subtle); background: #10162A; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.card-elevated { background: var(--bg-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--text-main); }

.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--border-default); border-radius: var(--radius-md);
    font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-main);
    background: var(--bg-surface); outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 3px var(--navy-subtle);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }
.form-error { font-size: 0.8rem; color: var(--color-danger); margin-top: 4px; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   ALERTS / FLASH
   ============================================================ */

.flash-container {
    position: fixed; top: 80px; right: 20px;
    z-index: 9999; display: flex; flex-direction: column;
    gap: 10px; max-width: 380px;
}

.alert {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 16px; border-radius: var(--radius-md);
    font-size: 0.875rem; font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.25s ease-out;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
.alert-success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid #86EFAC; }
.alert-error   { background: var(--color-danger-bg);  color: var(--color-danger);  border: 1px solid #FCA5A5; }
.alert-warning { background: var(--color-warning-bg); color: var(--color-warning); border: 1px solid #FCD34D; }
.alert-info    { background: var(--color-info-bg);    color: var(--color-info);    border: 1px solid #7DD3FC; }
.alert-close {
    background: none; border: none; font-size: 1.1rem; cursor: pointer;
    opacity: 0.5; padding: 0; line-height: 1; color: inherit;
    transition: opacity var(--transition-fast);
}
.alert-close:hover { opacity: 1; }

/* ============================================================
   NAVBAR (PUBLIC)
   ============================================================ */

.navbar {
    background: rgba(10,14,24,0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky; top: 0; z-index: 100;
}
.navbar-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 32px; height: 64px;
}
.navbar-brand { display: flex; flex-direction: column; gap: 0; text-decoration: none; flex-shrink: 0; }
.navbar-brand-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--navy-primary); line-height: 1.1; letter-spacing: -0.02em; }
.navbar-brand-sub  { font-family: var(--font-sans); font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

.navbar-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; }
.navbar-nav a { display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500; color: var(--text-body); transition: all var(--transition-fast); text-decoration: none; }
.navbar-nav a:hover { background: var(--bg-subdued); color: var(--navy-primary); }
.navbar-nav a.active { background: var(--navy-subtle); color: var(--navy-primary); font-weight: 600; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 8px; z-index: 200; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-md); font-size: 0.85rem; color: var(--text-body); transition: all var(--transition-fast); }
.nav-dropdown-menu a:hover { background: var(--bg-subdued); color: var(--navy-primary); }
.nav-dropdown-divider { height: 1px; background: var(--border-subtle); margin: 6px 0; }

.navbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.navbar-mobile-btn { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--text-main); border-radius: var(--radius-md); }
.navbar-mobile-btn:hover { background: var(--bg-subdued); }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */

.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; opacity: 0; pointer-events: none; transition: opacity var(--transition-base); }
.mobile-overlay.active { opacity: 1; pointer-events: all; }
.mobile-drawer { position: fixed; top: 0; right: -100%; width: min(340px, 90vw); height: 100vh; background: var(--bg-surface); z-index: 201; overflow-y: auto; transition: right var(--transition-slow); display: flex; flex-direction: column; }
.mobile-drawer.active { right: 0; }

.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid var(--border-subtle); }
.drawer-header-brand { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy-primary); }
.drawer-close { background: none; border: none; padding: 8px; cursor: pointer; color: var(--text-muted); border-radius: var(--radius-md); font-size: 1.1rem; }
.drawer-close:hover { background: var(--bg-subdued); color: var(--text-main); }

.drawer-nav { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.drawer-nav-section { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); padding: 12px 12px 6px; }
.drawer-nav-item a, .drawer-nav-item button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 500; color: var(--text-body); text-decoration: none; background: none; border: none; width: 100%; text-align: left; cursor: pointer; transition: all var(--transition-fast); }
.drawer-nav-item a:hover, .drawer-nav-item button:hover { background: var(--bg-subdued); color: var(--navy-primary); }
.drawer-submenu { display: none; flex-direction: column; gap: 2px; padding-left: 20px; }
.drawer-submenu.open { display: flex; }
.drawer-submenu a { font-size: 0.85rem; padding: 8px 12px; }
.drawer-footer { padding: 16px; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 8px; }

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
    background: var(--bg-surface); padding: 88px 0 80px;
    border-bottom: 1px solid var(--border-subtle);
    position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 600px; height: 100%;
    background: radial-gradient(ellipse at right top, rgba(227,178,60,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; background: var(--gold-subtle); border: 1px solid var(--gold-border); border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; color: #6E571E; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 24px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; color: var(--navy-primary); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero-title .text-gold { color: var(--gold-bronze); }
.hero-lead { font-size: 1.05rem; color: var(--text-body); line-height: 1.7; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   METRICS BAR
   ============================================================ */

.metrics-bar { background: var(--navy-primary); padding: 32px 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.metric-item { padding: 24px 32px; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.metric-item:last-child { border-right: none; }
.metric-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: #FFFFFF; line-height: 1; margin-bottom: 6px; }
.metric-label { font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }
.metric-gold .metric-number { color: var(--gold-bronze); }

/* ============================================================
   SECTIONS
   ============================================================ */

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }
.section-bg { background: var(--bg-page); }
.section-white { background: var(--bg-surface); }
.section-dark { background: var(--navy-primary); }

.section-header { margin-bottom: 48px; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-bronze); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--text-main); line-height: 1.2; margin-bottom: 12px; }
.section-title-white { color: #FFFFFF; }
.section-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 560px; line-height: 1.6; }

/* ============================================================
   POST / NEWS CARDS
   ============================================================ */

.post-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base); }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-default); }
.post-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-subdued); }
.post-card-body { padding: 20px; }
.post-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.post-card-category { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-bronze); }
.post-card-date { font-size: 0.78rem; color: var(--text-muted); }
.post-card-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text-main); line-height: 1.35; margin-bottom: 10px; transition: color var(--transition-fast); }
.post-card-title:hover { color: var(--navy-primary); }
.post-card-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-horizontal { display: grid; grid-template-columns: 280px 1fr; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--transition-base), box-shadow var(--transition-base); }
.post-card-horizontal:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header { background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); padding: 48px 0 40px; }
.page-header-dark { background: var(--navy-primary); border-bottom: none; padding: 64px 0 56px; }
.page-header-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-bronze); margin-bottom: 12px; }
.page-header-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; color: var(--text-main); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }
.page-header-title-white { color: #FFFFFF; }
.page-header-desc { font-size: 1rem; color: var(--text-muted); max-width: 600px; line-height: 1.6; }
.page-header-desc-white { color: rgba(255,255,255,0.65); }

/* ============================================================
   FOOTER (PUBLIC)
   ============================================================ */

.footer { background: var(--navy-primary); color: rgba(255,255,255,0.8); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 64px 24px 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #FFFFFF; margin-bottom: 12px; letter-spacing: -0.02em; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 20px; }
.footer-social-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); text-decoration: none; transition: all var(--transition-fast); font-size: 0.9rem; }
.footer-social-btn:hover { background: rgba(255,255,255,0.15); color: #FFFFFF; }
.footer-title { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #E7CE7A; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--transition-fast); }
.footer-links a:hover { color: #FFFFFF; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-contact-item i { color: #E7CE7A; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom-container { max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { font-size: 0.8rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color var(--transition-fast); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content { min-height: calc(100vh - 64px - 380px); }

/* ============================================================
   TABLE SYSTEM
   ============================================================ */

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); background: var(--bg-surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { padding: 12px 16px; background: var(--bg-subdued); color: var(--text-muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; text-align: left; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.table td { padding: 14px 16px; color: var(--text-body); border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg-subdued); }

/* ============================================================
   STATUS BADGES
   ============================================================ */

.status-draft        { background: rgba(255,255,255,0.06); color: #AEB6C8; }
.status-pending      { background: rgba(217,119,6,0.16); color: #F5A524; }
.status-published    { background: rgba(22,163,74,0.16); color: #4ADE80; }
.status-rejected     { background: rgba(220,38,38,0.16); color: #F87171; }
.status-revision     { background: rgba(37,99,235,0.16); color: #7CA6F5; }
.status-submitted    { background: rgba(2,132,199,0.16); color: #67C7F0; }
.status-screening    { background: rgba(2,132,199,0.16); color: #67C7F0; }
.status-interview    { background: rgba(217,119,6,0.16); color: #F5A524; }
.status-passed       { background: rgba(22,163,74,0.16); color: #4ADE80; }
.status-approved     { background: rgba(22,163,74,0.16); color: #4ADE80; }
.status-pending_review { background: rgba(217,119,6,0.16); color: #F5A524; }

/* ============================================================
   SIDEBAR (ADMIN / ALUMNI)
   ============================================================ */

.sidebar { width: 260px; min-height: 100vh; background: var(--bg-surface); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; position: sticky; top: 0; flex-shrink: 0; }
.sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--border-subtle); }
.sidebar-brand { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--navy-primary); }
.sidebar-sub { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.sidebar-nav { flex: 1; padding: 12px; overflow-y: auto; }
.sidebar-section-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); padding: 10px 10px 6px; }
.sidebar-nav-item a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500; color: var(--text-body); text-decoration: none; transition: all var(--transition-fast); }
.sidebar-nav-item a:hover { background: var(--bg-subdued); color: var(--navy-primary); }
.sidebar-nav-item a.active { background: var(--navy-subtle); color: var(--navy-primary); font-weight: 600; }
.sidebar-nav-item a i { width: 18px; text-align: center; color: var(--text-muted); font-size: 0.875rem; }
.sidebar-nav-item a.active i { color: var(--navy-primary); }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border-subtle); }

/* ============================================================
   PORTAL LAYOUT (ADMIN / ALUMNI)
   ============================================================ */

.portal-layout { display: flex; min-height: 100vh; background: var(--bg-page); }
.portal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.portal-topbar { background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 50; }
.portal-topbar-title { font-size: 0.9rem; font-weight: 600; color: var(--text-main); }
.portal-content { padding: 32px 24px; flex: 1; }

.stat-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; }
.stat-card-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; }
.stat-card-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text-main); line-height: 1; margin-bottom: 4px; }
.stat-card-sub { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .navbar-nav { display: none; }
    .navbar-mobile-btn { display: flex; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .post-card-horizontal { grid-template-columns: 1fr; }
    .sidebar { width: 220px; }
}

@media (max-width: 768px) {
    .navbar-container { height: 56px; }
    .hero-section { padding: 56px 0 48px; }
    .section { padding: 48px 0; }
    .footer-container { grid-template-columns: 1fr; padding: 40px 20px 32px; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-layout { flex-direction: column; }
    .sidebar { width: 100%; min-height: auto; position: static; }
    .portal-content { padding: 20px 16px; }
}

@media (max-width: 480px) {
    .metric-item { padding: 20px 16px; }
    .metric-number { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}


/* ============================================================
   TOPBAR (public informational strip)
   ============================================================ */

.topbar {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.topbar-badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: rgba(255, 255, 255, 0.75); }
.topbar-badge i { color: var(--gold-primary); }
.topbar a { color: var(--gold-primary); font-weight: 600; transition: color var(--transition-fast); }
.topbar a:hover { color: #FFFFFF; }

/* ============================================================
   FORM FIELDS (shared: .form-control, .form-label)
   ============================================================ */

.form-control {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--border-default); border-radius: var(--radius-md);
    font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-main);
    background: var(--bg-surface); outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 3px var(--navy-subtle);
}
/* Keyboard focus indicator (R-32): visible ring on all interactive elements */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.nav-link:focus-visible,
.subcat-pill:focus-visible,
.filter-tab:focus-visible,
.search-input:focus-visible {
    outline: 2px solid var(--navy-primary);
    outline-offset: 2px;
}
.form-control::placeholder { color: var(--text-light); }
select.form-control { appearance: auto; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
input[type="checkbox"].form-control { width: auto; }

/* ============================================================
   MOTION SYSTEM (scroll reveal + ambient float)
   Progressive: hanya aktif saat <html class="motion"> dipasang
   oleh script di layouts/app.blade.php. Tanpa JS = statis.
   ============================================================ */

@keyframes ha-float-y {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(0, -28px, 0) scale(1.07); }
}
@keyframes ha-gradient-pan {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes ha-pulse-glow {
    0%, 100% { box-shadow: 0 6px 18px -4px rgba(227,178,60,0.35); }
    50%      { box-shadow: 0 10px 32px -4px rgba(227,178,60,0.55); }
}

/* Reveal satu elemen (variant: default=up, fade, zoom) */
html.motion [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
html.motion [data-reveal="fade"] { transform: none; }
html.motion [data-reveal="zoom"] { transform: scale(0.94); }
html.motion [data-reveal].is-visible { opacity: 1; transform: none; }

/* Reveal grup: anak-anak grid muncul berurutan (stagger) */
html.motion [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
html.motion [data-reveal-group].is-visible > * { opacity: 1; transform: none; }
html.motion [data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0ms; }
html.motion [data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 100ms; }
html.motion [data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 200ms; }
html.motion [data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 300ms; }
html.motion [data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 400ms; }
html.motion [data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 500ms; }
html.motion [data-reveal-group].is-visible > *:nth-child(7) { transition-delay: 600ms; }
html.motion [data-reveal-group].is-visible > *:nth-child(8) { transition-delay: 700ms; }

/* Ornamen mengambang (blob radial blur) untuk hero/CTA */
.float-orb {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    filter: blur(46px);
    opacity: 0.55;
    animation: ha-float-y 12s ease-in-out infinite alternate;
}

/* Pulse halus untuk CTA utama */
.btn-glow { animation: ha-pulse-glow 2.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    /* Elemen reveal harus selalu tampil walau transisi dimatikan */
    html.motion [data-reveal],
    html.motion [data-reveal-group] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


@media print {
    .navbar, .footer, .flash-container, .sidebar { display: none; }
    body { background: white; color: black; }
}

/* Dark scrollbar (cinematic theme) */
html { scrollbar-color: #2A3350 #0A0E18; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0A0E18; }
::-webkit-scrollbar-thumb { background: #2A3350; border-radius: 6px; border: 2px solid #0A0E18; }
::-webkit-scrollbar-thumb:hover { background: #3A466B; }
