:root {
    --kemenag-green: #005a2b;
    --kemenag-green-dark: #003d1c;
    --kemenag-green-light: #007a3a;
    --kemenag-gold: #c8a951;
    --kemenag-gold-light: #e8d48b;
    --kemenag-gold-dark: #a08530;
    --surface-primary: #ffffff;
    --surface-secondary: #f7f9f8;
    --surface-tertiary: #eef3f0;
    --text-primary: #1a2e23;
    --text-secondary: #4a6355;
    --text-muted: #7a9488;
    --border-color: #d4e0d9;
    --shadow-sm: 0 1px 3px rgba(0, 90, 43, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 90, 43, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 90, 43, 0.10);
    --shadow-xl: 0 16px 48px rgba(0, 90, 43, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--surface-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-secondary); }
::-webkit-scrollbar-thumb { background: var(--kemenag-green); border-radius: 3px; }

/* ── Top Bar ── */
.top-bar {
    background: linear-gradient(135deg, var(--kemenag-green-dark), var(--kemenag-green));
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    padding: 6px 0;
    border-bottom: 2px solid var(--kemenag-gold);
}
.top-bar a { color: var(--kemenag-gold-light); text-decoration: none; }
.top-bar a:hover { color: #fff; }

/* ── Navbar ── */
.navbar-spmb {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    transition: all 0.3s ease;
    z-index: 1050;
}
.navbar-spmb.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}
.navbar-brand-logo {
    width: 44px; height: 44px;
    background: var(--kemenag-green);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--kemenag-gold);
    font-weight: 800; font-size: 1.1rem;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(0, 90, 43, 0.2);
}
.navbar-brand-text .brand-title {
    font-weight: 700; font-size: 1.05rem; color: var(--kemenag-green);
    line-height: 1.2;
}
.navbar-brand-text .brand-subtitle {
    font-size: 0.72rem; color: var(--text-muted);
    letter-spacing: 0.5px; text-transform: uppercase;
}
.navbar-spmb .nav-link {
    color: var(--text-secondary);
    font-weight: 500; font-size: 0.9rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.navbar-spmb .nav-link:hover,
.navbar-spmb .nav-link.active {
    color: var(--kemenag-green);
    background: var(--surface-tertiary);
}

/* ── Buttons ── */
.btn-kemenag {
    background: linear-gradient(135deg, var(--kemenag-green), var(--kemenag-green-light));
    color: #fff; border: none;
    font-weight: 600; font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 90, 43, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-kemenag:hover {
    background: linear-gradient(135deg, var(--kemenag-green-dark), var(--kemenag-green));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 90, 43, 0.30);
}
.btn-kemenag-outline {
    background: transparent;
    color: var(--kemenag-green);
    border: 2px solid var(--kemenag-green);
    font-weight: 600; font-size: 0.9rem;
    padding: 10px 28px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-kemenag-outline:hover {
    background: var(--kemenag-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 90, 43, 0.25);
}
.btn-gold {
    background: linear-gradient(135deg, var(--kemenag-gold), var(--kemenag-gold-dark));
    color: var(--kemenag-green-dark); border: none;
    font-weight: 700; font-size: 0.95rem;
    padding: 14px 36px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(200, 169, 81, 0.35);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--kemenag-gold-light), var(--kemenag-gold));
    color: var(--kemenag-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200, 169, 81, 0.45);
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    background: linear-gradient(160deg, var(--kemenag-green-dark) 0%, var(--kemenag-green) 50%, var(--kemenag-green-light) 100%);
    min-height: 580px;
    display: flex; align-items: center;
    overflow: hidden;
    padding: 80px 0 60px;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 1;
}
.hero-section::after {
    content: '';
    position: absolute; right: -200px; top: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(200, 169, 81, 0.15);
    border: 1px solid rgba(200, 169, 81, 0.3);
    color: var(--kemenag-gold-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem; font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.hero-badge .dot {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
    font-size: 2.8rem; font-weight: 800; color: #fff;
    line-height: 1.15; margin-bottom: 20px;
}
.hero-title span { color: var(--kemenag-gold-light); }
.hero-desc {
    font-size: 1.05rem; color: rgba(255, 255, 255, 0.85);
    line-height: 1.6; margin-bottom: 32px; max-width: 540px;
}
.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative; z-index: 2;
}
.hero-card-title {
    font-weight: 700; font-size: 1.1rem; color: var(--kemenag-green);
    margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.hero-info-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.hero-info-item:last-child { border-bottom: none; }
.hero-info-icon {
    width: 40px; height: 40px;
    background: var(--surface-tertiary);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--kemenag-green); font-size: 1.1rem;
}
.hero-info-label { font-size: 0.78rem; color: var(--text-muted); }
.hero-info-value { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }

/* ── Section Commons ── */
.section-spmb { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-label {
    display: inline-block;
    font-size: 0.8rem; font-weight: 700;
    color: var(--kemenag-green);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 8px;
    background: var(--surface-tertiary);
    padding: 4px 14px; border-radius: 50px;
}
.section-title {
    font-weight: 800; font-size: 2.1rem;
    color: var(--text-primary); margin-bottom: 12px;
}
.section-subtitle {
    color: var(--text-secondary);
    max-width: 580px; margin: 0 auto;
    font-size: 0.95rem; line-height: 1.5;
}

/* ── Feature Cards ── */
.feature-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--kemenag-green-light);
}
.feature-icon-wrapper {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
}
.feature-icon-green { background: #e8f5e9; color: var(--kemenag-green); }
.feature-icon-gold { background: #fff8e1; color: var(--kemenag-gold-dark); }
.feature-icon-blue { background: #e3f2fd; color: #1565c0; }
.feature-card h5 { font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }

/* ── Jalur Pendaftaran ── */
.jalur-card {
    background: var(--surface-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex; flex-direction: column;
}
.jalur-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.jalur-header {
    padding: 24px;
    color: #fff;
    position: relative;
}
.jalur-header.reguler { background: linear-gradient(135deg, #005a2b, #007a3a); }
.jalur-header.prestasi { background: linear-gradient(135deg, #a08530, #c8a951); color: #1a2e23; }
.jalur-header.tahfidz { background: linear-gradient(135deg, #312e81, #4f46e5); }
.jalur-header.afirmasi { background: linear-gradient(135deg, #0369a1, #0ea5e9); }
.jalur-badge {
    position: absolute; right: 20px; top: 20px;
    padding: 4px 12px; border-radius: 50px;
    font-size: 0.72rem; font-weight: 700;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}
.jalur-icon { font-size: 2rem; margin-bottom: 12px; display: inline-block; }
.jalur-header h4 { font-weight: 800; font-size: 1.3rem; margin-bottom: 4px; }
.jalur-header p { font-size: 0.82rem; opacity: 0.9; margin: 0; }
.jalur-body { padding: 24px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.jalur-requirements { list-style: none; padding: 0; margin-bottom: 24px; }
.jalur-requirements li {
    font-size: 0.85rem; color: var(--text-secondary);
    padding: 8px 0; border-bottom: 1px solid var(--surface-secondary);
    display: flex; align-items: flex-start; gap: 10px;
}
.jalur-requirements li i { color: var(--kemenag-green); font-size: 0.9rem; margin-top: 2px; }

/* ── Timeline / Alur ── */
.timeline-item {
    display: flex; gap: 20px;
    position: relative; padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:not(:last-child)::after {
    content: ''; position: absolute;
    left: 20px; top: 40px; bottom: 0;
    width: 2px; background: var(--border-color);
}
.timeline-marker {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--kemenag-green);
    color: var(--kemenag-gold);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 90, 43, 0.25);
}
.timeline-content { padding-top: 6px; }
.timeline-date {
    font-size: 0.75rem; font-weight: 700;
    color: var(--kemenag-green);
    background: var(--surface-tertiary);
    padding: 2px 10px; border-radius: 50px;
    display: inline-block; margin-bottom: 4px;
}
.timeline-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.timeline-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }

/* ── Counter / Stats ── */
.stats-section {
    background: linear-gradient(135deg, var(--kemenag-green-dark), var(--kemenag-green));
    color: #fff; padding: 60px 0;
    position: relative; overflow: hidden;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 2.8rem; font-weight: 800;
    color: var(--kemenag-gold-light);
    line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 0.88rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 1px; }

/* ── Lookup Card (Cek Status) ── */
.lookup-card {
    background: linear-gradient(135deg, var(--surface-secondary), var(--surface-tertiary));
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
}
.lookup-input-group {
    position: relative;
}
.lookup-input {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    font-size: 1.05rem;
    padding-right: 140px;
    box-shadow: var(--shadow-sm);
}
.lookup-input:focus {
    border-color: var(--kemenag-green);
    box-shadow: 0 0 0 4px rgba(0, 90, 43, 0.1);
}
.lookup-btn {
    position: absolute; right: 6px; top: 6px; bottom: 6px;
    border-radius: var(--radius-sm);
}

/* ── Pengumuman Cards ── */
.news-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.news-card-body { padding: 24px; }
.news-date {
    font-size: 0.75rem; color: var(--text-muted);
    display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.news-title {
    font-weight: 700; font-size: 1.1rem;
    color: var(--text-primary); margin-bottom: 10px;
    line-height: 1.35;
}
.news-excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }

/* ── Footer ── */
.footer-spmb {
    background: var(--kemenag-green-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 24px;
    border-top: 3px solid var(--kemenag-gold);
}
.footer-title {
    color: #fff; font-weight: 700; font-size: 1rem;
    margin-bottom: 20px; position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 32px; height: 2px; background: var(--kemenag-gold);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255, 255, 255, 0.7); text-decoration: none;
    font-size: 0.85rem; transition: all 0.2s;
}
.footer-links a:hover { color: var(--kemenag-gold-light); padding-left: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--kemenag-gold-light); text-decoration: none;
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--kemenag-gold); color: var(--kemenag-green-dark); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px; margin-top: 50px;
    font-size: 0.8rem; color: rgba(255, 255, 255, 0.5);
}

/* ── Multi-Step Form (Pendaftaran) ── */
.stepper-spmb {
    display: flex; justify-content: space-between;
    margin-bottom: 36px; position: relative;
}
.stepper-spmb::before {
    content: ''; position: absolute;
    top: 20px; left: 30px; right: 30px; height: 2px;
    background: var(--border-color); z-index: 1;
}
.step-item {
    position: relative; z-index: 2;
    text-align: center; cursor: default;
}
.step-circle {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--surface-primary);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 700; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}
.step-item.active .step-circle {
    background: var(--kemenag-green);
    border-color: var(--kemenag-green);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(0, 90, 43, 0.15);
}
.step-item.completed .step-circle {
    background: var(--kemenag-green-light);
    border-color: var(--kemenag-green-light);
    color: #fff;
}
.step-label {
    font-size: 0.78rem; font-weight: 600;
    color: var(--text-muted);
}
.step-item.active .step-label { color: var(--kemenag-green); font-weight: 700; }
.step-item.completed .step-label { color: var(--text-primary); }

.emis-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.72rem; font-weight: 700;
    background: #dcfce7; color: #166534;
    padding: 2px 8px; border-radius: 50px;
}
.form-control.emis-verified,
.form-select.emis-verified {
    background-color: #f0fdf4 !important;
    border-color: #86efac !important;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px; text-align: center;
    background: var(--surface-secondary);
    cursor: pointer; transition: all 0.2s;
}
.upload-zone:hover {
    border-color: var(--kemenag-green);
    background: var(--surface-tertiary);
}
