/* ==========================================================================
   CSS Variables & Design System 
   ========================================================================== */
:root {
    /* Colors */
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Grays */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Backgrounds */
    --bg-body: var(--gray-50);
    --bg-card: #FFFFFF;
    --bg-sidebar: #1E1B4B;
    --bg-sidebar-super: #0F172A;

    /* Text */
    --text-main: var(--gray-800);
    --text-muted: var(--gray-500);

    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

/* ==========================================================================
   Layouts
   ========================================================================== */

/* Admin Layout Container */
.admin-layout {
    display: flex;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease, width 0.3s ease;
}

.sidebar-superadmin {
    background-color: var(--bg-sidebar-super);
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

.sidebar-logo-placeholder {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-brand-name {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.sidebar-brand-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-nav-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    padding: 1rem 1.5rem 0.5rem;
    font-weight: 600;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.sidebar-link:hover, .sidebar-link.active {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

.sidebar-link.active {
    border-left: 4px solid var(--primary-light);
    background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    color: white;
    font-weight: 500;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-user {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.sidebar-user-role {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

.sidebar-logout {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.sidebar-logout:hover {
    color: var(--danger);
}

.sidebar-logout svg {
    width: 20px;
    height: 20px;
}

/* Main Content Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.3s ease;
}

/* Top Header */
.top-header {
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    margin-right: 1.5rem;
    display: flex;
}

.sidebar-toggle:hover {
    color: var(--primary);
}

.sidebar-toggle svg {
    width: 24px;
    height: 24px;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-date {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

/* Content Area */
.main-content {
    padding: 2rem;
    flex: 1;
    animation: fadeIn 0.4s ease-out;
}

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

/* Mobile Sidebar Collapse */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main-wrapper {
        margin-left: 0;
    }
    .admin-layout.sidebar-collapsed .sidebar {
        transform: translateX(0);
    }
}

/* ==========================================================================
   UI Components
   ========================================================================== */

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
    gap: 0.5rem;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-success {
    background-color: var(--success);
    color: white;
}
.btn-success:hover {
    background-color: #059669;
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}
.btn-danger:hover {
    background-color: #DC2626;
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--gray-800);
}
.btn-secondary:hover {
    background-color: var(--gray-300);
    color: var(--gray-800);
}

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

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: #fff;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-light);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-label .text-danger {
    display: inline-block;
    margin-top: 0;
    font-size: inherit;
    margin-left: 2px;
}

.text-danger {
    color: var(--danger);
    font-size: 12px;
    margin-top: 0.25rem;
    display: block;
}



/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
}

.table th {
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    background-color: var(--gray-50);
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.6em;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border-radius: 9999px;
}

.badge-success { background: #D1FAE5; color: #065F46; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-primary { background: #E0E7FF; color: #3730A3; }
.badge-secondary { background: var(--gray-200); color: var(--gray-700); }

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    margin: 1rem 2rem 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    border: 1px solid transparent;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background-color: #ECFDF5;
    color: #065F46;
    border-color: #D1FAE5;
}

.alert-danger {
    background-color: #FEF2F2;
    color: #991B1B;
    border-color: #FEE2E2;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}
.alert-close:hover { opacity: 1; }

/* Dashboard Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}
.stat-icon svg { width: 24px; height: 24px; }

.stat-icon.primary { background: #E0E7FF; color: var(--primary); }
.stat-icon.success { background: #D1FAE5; color: var(--success); }
.stat-icon.danger { background: #FEE2E2; color: var(--danger); }
.stat-icon.warning { background: #FEF3C7; color: var(--warning); }

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Landing Page Styles */
.landing-body {
    background: #FFFFFF;
}

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

.landing-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark);
}
.landing-nav-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.landing-nav-link {
    font-weight: 500;
    color: var(--gray-700);
    margin-left: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.landing-nav-link:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.landing-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 1.5rem 2rem;
}

.landing-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.landing-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.landing-footer-brand {
    color: white;
}

.landing-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.landing-footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-400);
}

.landing-footer-links-col h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.landing-footer-links-col ul {
    list-style: none;
}

.landing-footer-links-col ul li {
    margin-bottom: 0.75rem;
}

.landing-footer-links-col a {
    color: var(--gray-400);
}
.landing-footer-links-col a:hover {
    color: white;
}

.landing-footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 13px;
}

/* Auth Pages (Login/Register) */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-header h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-top: 1rem;
}

/* Siswa Portal Navbar */
.siswa-nav {
    background: var(--primary-dark);
    color: white;
}
.siswa-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.siswa-nav-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}
.siswa-nav-brand:hover {
    color: var(--gray-200);
}
.siswa-nav-links {
    display: flex;
    gap: 1rem;
}
.siswa-nav-links a {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}
.siswa-nav-links a:hover, .siswa-nav-links a.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

@media (max-width: 640px) {
    .siswa-nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 0.75rem;
        align-items: flex-start;
    }
    .siswa-nav-links {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        display: flex;
    }
    .siswa-nav-links a, .siswa-nav-links button {
        padding: 0.4rem 0.6rem;
        font-size: 13px;
        flex-shrink: 0;
    }
}

.siswa-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Responsive & Modern Design Additions
   ========================================================================= */

/* Mobile Sidebar Backdrop Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.admin-layout.sidebar-collapsed-active .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main-wrapper {
        margin-left: 0;
    }
    .admin-layout.sidebar-collapsed-active .sidebar {
        transform: translateX(0);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    }
    .top-header {
        padding: 0 1.25rem;
    }
    .main-content {
        padding: 1.25rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Glassmorphism Cards & Modern UI Details */
.glass-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04) !important;
}

/* Buttons Micro-interactions */
.btn {
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active {
    transform: scale(0.97);
}
.btn-primary {
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}
.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
}

/* Responsive Tables Adjustments */
.table-responsive {
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: var(--bg-card);
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
    .table th, .table td {
        padding: 0.6rem 0.75rem;
        font-size: 13px;
    }
}

/* ==========================================================================
   Landing Pages Custom Modern Layouts
   ========================================================================== */

/* Hero Sections */
.landing-hero, .instansi-hero {
    position: relative;
    padding: 10rem 1.5rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(253, 224, 71, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 40%);
}

.landing-hero-bg, .instansi-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.landing-hero-gradient, .instansi-hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, #FFFFFF 100%);
}

.instansi-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.85));
}

.instansi-hero-bg-image {
    background-size: cover;
    background-position: center;
    position: absolute;
    inset: 0;
}

.landing-hero-pattern, .instansi-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 24px 24px;
}

.landing-hero-content, .instansi-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(217, 119, 6, 0.1);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.landing-hero-title, .instansi-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.instansi-hero-title {
    color: white;
}

.landing-hero-title-highlight {
    background: linear-gradient(120deg, var(--primary) 0%, var(--success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero-subtitle, .instansi-hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.instansi-hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.landing-hero-actions, .instansi-hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

@media (max-width: 640px) {
    .landing-hero-title, .instansi-hero-title {
        font-size: 2.25rem;
    }
    .landing-hero-actions, .instansi-hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .landing-hero-actions a, .instansi-hero-actions a {
        width: 100%;
    }
}

.btn-landing-primary, .btn-landing-secondary, .btn-landing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 2rem;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-landing-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}
.btn-landing-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.btn-landing-secondary {
    background: white;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.btn-landing-secondary:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    border-color: var(--gray-300);
}

.instansi-hero-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: white;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.instansi-hero-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Stats */
.landing-hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 1.5rem 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-100);
}

.landing-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-hero-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.landing-hero-stat-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.landing-hero-stat-divider {
    width: 1px;
    height: 30px;
    background: var(--gray-200);
}

@media (max-width: 640px) {
    .landing-hero-stats {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        width: 100%;
    }
    .landing-hero-stat-divider {
        width: 100%;
        height: 1px;
    }
}

/* Sections Global Layout */
.landing-features, .landing-schools, .instansi-info {
    padding: 6rem 1.5rem;
    background: #FFFFFF;
}

.landing-schools, .instansi-info {
    background: var(--gray-50);
}

.landing-section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.landing-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.landing-section-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(217, 119, 6, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 1rem;
}

.landing-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.landing-section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Features Grid */
.landing-features-grid, .instansi-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.landing-feature-card, .instansi-info-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.landing-feature-card:hover, .instansi-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(217, 119, 6, 0.2);
}

.landing-feature-icon, .instansi-info-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--icon-bg);
    color: var(--icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.landing-feature-title, .instansi-info-card-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.instansi-info-card-label {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.instansi-info-card-value {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1.1rem;
}

.landing-feature-desc {
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.landing-feature-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

/* Schools Grid */
.landing-schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.landing-school-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.landing-school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(217, 119, 6, 0.2);
}

.landing-school-card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-50);
}

.landing-school-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.landing-school-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.landing-school-logo-placeholder {
    color: var(--gray-400);
}

.landing-school-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
}

.landing-school-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.landing-school-card-body {
    padding: 1.5rem;
    flex: 1;
}

.landing-school-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.landing-school-address {
    font-size: 13px;
    color: var(--gray-500);
    display: flex;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.4;
}

.landing-school-address svg {
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--gray-400);
}

.landing-school-card-footer {
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
}

.landing-school-link-text {
    font-size: 14px;
}

/* Call to Action Section */
.landing-cta {
    position: relative;
    padding: 8rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1E1B4B 100%);
    color: white;
    overflow: hidden;
}

.landing-cta-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
    background-size: 20px 20px;
}

.landing-cta-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
}

.landing-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.landing-cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-landing-cta {
    background: #FFFFFF;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-landing-cta:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.landing-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-400);
}
.landing-empty-state svg {
    margin: 0 auto 1rem;
    color: var(--gray-300);
}
.landing-empty-state h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}
.landing-empty-state p {
    font-size: 14px;
}
