body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
}

/* Navbar */
nav {
    background-color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: black;
    margin: 0 10px;
    font-weight: bold;
}

nav a:hover {
    color: #007bff;
}

/* Landing Page */
.landing {
    position: relative;
    background: url('background.jpg') center/cover no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.landing .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 255, 0.6);
}

.landing .content {
    position: relative;
    z-index: 2;
}

.landing h1 {
    font-size: 32px;
    font-weight: bold;
}

.landing .btn {
    display: inline-block;
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

/* Statistik */
.statistik {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    text-align: center;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.stat-card .jumlah {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.stat-card .label {
    font-size: 14px;
}

/* Berita */
.berita {
    padding: 20px;
    text-align: center;
}

.berita-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.berita-card {
    background: white;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.berita-card:hover {
    transform: translateY(-5px);
}

.berita-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.berita-info {
    padding: 10px;
}

.berita-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.berita-info p {
    font-size: 14px;
    color: #555;
}

.berita-info .btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f7fc;
    color: #333;
}

/* Navbar */
.navbar {
    background: #0056b3;
    padding: 15px 0;
    text-align: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 255, 0.7), rgba(0, 0, 255, 0.5)), url('hero-image.jpg') center/cover no-repeat;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 36px;
    font-weight: 600;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
}

/* About Section */
.about {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.about-container {
    display: flex;
    max-width: 1000px;
    align-items: center;
    gap: 30px;
}

.about-image img {
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.about-text {
    max-width: 500px;
}

.about-text h2 {
    font-size: 28px;
    color: #0056b3;
}

.about-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Features Section */
.features {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
}

.features h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.features-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 20px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

.feature-card img {
    width: 60px;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 20px;
    color: #0056b3;
}

.feature-card p {
    font-size: 14px;
    color: #555;
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loader-container {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}

.loader-text {
    font-size: 18px;
    font-weight: bold;
    color: #2d89ff;
    margin-top: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.text-justify {
    text-align: justify;
}

#modal-content {
    text-align: justify;
}

.deskripsi-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

    /* Responsive Mobile */
@media (max-width: 768px) {
    /* Navbar biar menu nggak numpuk */
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav a {
        display: block;
        margin: 5px 0;
    }

    /* Statistik biar nggak berjejer */
    .statistik {
        flex-direction: column;
        gap: 10px;
    }

    /* Berita biar 1 kolom */
    .berita-container {
        flex-direction: column;
        gap: 10px;
    }

    .berita-card {
        width: 100%;
    }

    /* Form biar nggak mepet */
    .form-keperluan-surat input,
    .form-keperluan-surat textarea,
    .form-keperluan-surat select {
        width: 100%;
    }
}