:root {
    --primary: #003366;
    --primary-hover: #002244;
    --secondary: #00509E;
    --accent: #E6EEF6;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --white: #FFFFFF;

    --bs-nav-pills-link-active-bg: #003366 !important;
    --bs-nav-pills-link-active-color: #FFFFFF !important;

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
}

.border-primary {
    border-color: var(--secondary) !important;
}

.text-secondary {
    color: var(--primary) !important;
}

.btn-outline-primary {
    border-color: var(--secondary) !important;
    color: var(--secondary) !important;
    border: 3px solid var(--secondary) !important;
}

.btn-web {
    border-color: var(--secondary) !important;
    background-color: var(--secondary) !important;
    color: var(--white) !important;
}

.btn:hover {
    background-color: var(--primary-hover) !important;
    color: var(--white) !important;
    border: 0px solid var(--primary-hover) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

/* Override Nav Pills */
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

.form-check-input {
    width: 0.5em;
    height: 0.5em;
    margin-top: 0.25em;
    padding: 0.6em !important;
    margin-right: 0.5em !important;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.form-check-input[type=checkbox] {
    border-radius: var(--radius);
}

.nav-link {
    color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
    /* Force primary color */
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    margin-top: 0;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

/* Components */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--accent);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}



.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--primary);
}

.logo-text span {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.main-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    border-radius: var(--radius);
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background-color: var(--accent);
    color: var(--primary);
}

/* Hero Section */
/* Hero Section */
.hero-section {
    background-color: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 31, 63, 0.9) 100%);
    /* Fallback */
    color: white;
    padding: 8rem 0 10rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    /* Behind everything */
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Blue gradient overlay with transparency */
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.904) 0%, rgba(0, 31, 63, 0.942) 100%), url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    z-index: -1;
    /* Above video, below content */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px !important;
    /* Constraint width for better readability */
}

.hero-title {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-align: left;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
    font-weight: 300;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-spacer {
    margin-right: 0.5rem;
}

/* Enhanced Buttons for Hero */
.hero-actions .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* DIP Category Section */
.dip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dip-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.dip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.dip-card:hover::before {
    transform: scaleX(1);
}

.dip-icon {
    color: var(--primary);
    margin-bottom: 1rem;
    background: var(--accent);
    padding: 1rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.dip-card:hover .dip-icon {
    background: var(--primary);
    color: white;
}

.dip-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.dip-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.dip-arrow {
    margin-top: auto;
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.dip-card:hover .dip-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Stats Section */
.stats-section {
    margin-top: -4rem;
    position: relative;
    z-index: 10;
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* New Row-Card Style matching user image */
.stat-row-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s;
    border: 1px solid transparent;
}

.stat-row-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.stat-icon-circle {
    width: 64px;
    height: 64px;
    background: #e0f2fe;
    /* Light blue */
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

/* Sections */
.section-padding {
    padding: 3rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.column-title {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    transition: transform 0.2s;
    border: 1px solid var(--border);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.info-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.info-title {
    font-size: 1.1rem;
    margin: 0;
}

.info-title a {
    color: var(--text-dark);
}

.info-title a:hover {
    color: var(--primary);
}

.badge-outline {
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-pending {
    background: #fff7ed;
    color: #c2410c;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-selesai {
    background: #d1fae5;
    color: #065f46;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-ditolak {
    background: #fef2f2;
    color: #991b1b;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-diproses {
    background: #d1fae5;
    color: #065f46;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-popular {
    background: #fff7ed;
    color: #c2410c;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Chart Visualization */
.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    padding-top: 2rem;
    border-bottom: 1px solid var(--border);
}

.chart-bar {
    width: 15%;
    background: var(--accent);
    border-radius: 8px 8px 0 0;
    position: relative;
    text-align: center;
    transition: height 1s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bar-fill {
    background: var(--secondary);
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.bar-label {
    margin-top: 1rem;
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: absolute;
    bottom: -30px;
    width: 150%;
    left: -25%;
}

/* Social Media */
.social-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.social-item {
    aspect-ratio: 1/1;
    background: #ddd;
    border-radius: var(--radius);
}

.bg-gray {
    background-color: #e2e8f0;
    color: var(--text-muted);
}

/* Footer */
.main-footer {
    background: var(--primary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Media Queries */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-section {
        padding: 4rem 0 6rem;
    }
}

/* Common */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: var(--bg-light);
    font-weight: 600;
}

/* Floating FAQ */
.floating-faq {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-floating {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-faq {
    background: var(--secondary);
}

.btn-up {
    background: var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.btn-up.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Process Timeline */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.process-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 2.5rem;
}

.process-item:last-child {
    margin-bottom: 0;
}

.process-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.25rem;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.process-item:hover .process-marker {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.process-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.process-item:hover .process-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.process-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}