/* Mengimpor Font Poppins dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variabel Warna Utama sesuai permintaan */
:root {
    --dark-red: #560000;
    --bright-red: #E62129;
    --dark-blue: #112542;
    --white: #ffffff;
    --bg-light: #f4f6f9;
    --text-dark: #333333;
    --text-gray: #666666;
}

/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Navigasi */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    object-fit: contain;
}

.logo h1 {
    color: var(--dark-blue);
    font-size: 24px;
    font-weight: 700;
}

.logo h1 span {
    color: var(--bright-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-blue);
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: var(--bright-red);
}

/* Button & RBAC Element */
.btn-primary {
    background-color: var(--bright-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: var(--dark-red);
    color: var(--white);
}

.admin-badge {
    background-color: var(--dark-red);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-blue);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background-color: var(--dark-blue);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 37, 66, 0.6); /* Overlay biru tua */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px 60px 20px; /* Ditambahkan padding-bottom 60px agar teks tidak menabrak bar pencarian */
    color: var(--white);
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    max-width: 600px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 80px; /* Dinaikkan dari 30px ke 80px agar tidak tertutup kotak pencarian */
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--bright-red);
    width: 24px;
    border-radius: 10px;
}

/* Section Container Umum */
.section-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Fix posisi scroll agar tidak tertutup oleh sticky header */
#validasi {
    scroll-margin-top: 100px; 
}

/* Stats / Verification Bar */
.verification-bar {
    background-color: var(--white);
    padding: 35px 40px; /* Padding diperbesar agar lebih lega */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Bayangan diperlembut dan diperluas */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: -60px; /* Overlap dengan slider */
    position: relative;
    z-index: 10;
}

.verification-title h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 600px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.search-box button {
    padding: 15px 30px;
    background-color: var(--bright-red);
    color: var(--white);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.search-box button:hover {
    background-color: var(--dark-red);
}

/* Banner Visi Misi & Kontak */
.dark-banner {
    background-color: var(--dark-blue);
    color: var(--white);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.dark-banner::before {
    content: '';
    position: absolute;
    left: -10%;
    top: -50%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.03);
    transform: rotate(30deg);
}

.dark-banner h2 {
    font-size: 2.5rem;
    flex: 1;
    line-height: 1.3;
}

.dark-banner p {
    flex: 1;
    font-size: 1rem;
    color: #cbd5e1;
}

/* Layanan Kami */
.section-title {
    margin-bottom: 40px;
    text-align: center;
}

.section-title h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-body h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-body p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex: 1;
}

.btn-outline {
    border: 2px solid var(--bright-red);
    color: var(--bright-red);
    background: transparent;
    padding: 8px 20px;
    border-radius: 25px;
    text-align: center;
    font-weight: 500;
    transition: 0.3s;
    align-self: flex-start;
}

.btn-outline:hover {
    background: var(--bright-red);
    color: var(--white);
}

/* Modal Verifikasi */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-gray);
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 2px;
    background-color: var(--bright-red);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--bright-red);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Responsif */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .slide-content h2 { font-size: 2rem; }
    
    .verification-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .dark-banner {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }
}