/* --- Global Reset & Body Styling --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}


/* ------------------------------------------------------------------------------------------- */


/* --- Hero Section Styling --- */
.hero-section {
    /* GANTI URL GAMBAR DI BAWAH INI DENGAN URL GAMBAR ANDA */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2071');
    
    height: 90vh; /* Tinggi section adalah 90% dari tinggi viewport/layar */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* Menengahkan konten di dalamnya secara vertikal dan horizontal */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    color: #fff; /* Warna teks di dalam hero section */
    padding: 0 20px; /* Memberi sedikit padding di sisi kanan-kiri */
}

.hero-content h1 {
    font-size: 3rem; /* Ukuran font judul utama */
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px; /* Agar teks deskripsi tidak terlalu lebar */
    margin: 0 auto 2rem auto; /* Atur jarak otomatis di kanan-kiri agar tetap di tengah */
}

.hero-content .btn {
    display: inline-block;
    background-color: #5E7A9E; /* Ubah dari #007BFF */
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero-content .btn:hover {
    background-color: #4A6588; /* Sedikit lebih gelap dari #5E7A9E */
}

/* Media Query untuk Mobile */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}


/* ------------------------------------------------------------------------------------------- */


/* --- Services Section Styling --- */
.services-section {
    padding: 80px 20px; /* Jarak atas-bawah 80px, kanan-kiri 20px */
    background-color: #f9f9f9; /* Warna latar sedikit abu-abu agar tidak monoton */
}

.container {
    max-width: 1100px; /* Lebar maksimal konten */
    margin: 0 auto; /* Otomatis menengahkan container */
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px; /* Jarak dari judul ke kartu layanan */
    color: #333;
}

.services-grid {
    display: grid;
    /* Membuat kolom-kolom yang responsif:
       - Coba isi sebanyak mungkin kolom dengan lebar minimal 250px.
       - Jika tidak muat, otomatis pindah ke baris baru. */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Jarak antar kartu */
}

.service-card {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px); /* Efek sedikit terangkat saat disentuh mouse */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: #5E7A9E; /* Ubah dari #007BFF */
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.service-card p {
    font-size: 1rem;
    color: #666;
}

/* ------------------------------------------------------------------------------------------- */

/* --- CTA Section Styling --- */
.cta-section {
    background-color: #5E7A9E; /* Ubah dari #007BFF */
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px auto; /* 30px jarak ke tombol di bawah */
}

/* Styling untuk tombol khusus di CTA section */
.btn.btn-light {
    display: inline-block;
    background-color: #fff; /* Latar tombol putih */
    color: #5E7A9E; /* Teks tombol biru. Ubah dari #007BFF */
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn.btn-light:hover {
    background-color: #e8e8e8; /* Sedikit lebih gelap saat disentuh mouse */
    color: #5E7A9E; /* Teks tombol biru gelap saat hover. Ubah dari #0056b3 */
}

/* ------------------------------------------------------------------------------------------- */

/* --- Footer Styling --- */
.site-footer {
    background-color: #2c3e50; /* Warna biru sangat gelap */
    color: #bdc3c7; /* Warna teks abu-abu terang */
    padding: 60px 0 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-column h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Membuat garis bawah dekoratif untuk judul kolom */
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 50px;
    background-color: #63A78A; /* Warna hijau aksen dari logo */
}

.footer-column p {
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
}

.social-icons a {
    display: inline-block;
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #34495e;
    color: #fff;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #63A78A; /* Warna hijau aksen saat hover */
}

.footer-bottom {
    background-color: #233140;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.footer-bottom p {
    margin: 0;
}

/* ------------------------------------------------------------------------------------------- */

/* --- Header Styling --- */
.site-header {
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky; /* Membuat header tetap di atas saat scroll */
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px; /* Atur tinggi maksimal logo */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li a {
    display: block;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    padding: 20px 15px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #5E7A9E; /* Warna biru logo */
}

/* Tombol Hamburger (Menu Toggle) */
.menu-toggle {
    display: none; /* Sembunyikan di tampilan desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Media Query untuk Tampilan Mobile (Responsive) --- */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Sembunyikan menu utama */
        position: absolute;
        top: 100%; /* Muncul di bawah header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block; /* Tampilkan menu jika class 'active' ada */
    }

    .main-nav ul {
        flex-direction: column; /* Susun menu ke bawah */
    }

    .main-nav ul li a {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-toggle {
        display: block; /* Tampilkan tombol hamburger */
        margin-right: 20px; /* TAMBAHKAN BARIS INI */
    }

    .logo img {
    max-height: 60px; /* Atur tinggi maksimal logo */
     margin-left: 20px; /* TAMBAHKAN BARIS INI */
    }
}

/* ------------------------------------------------------------------------------------------- */

/* --- Styling untuk Halaman Internal --- */
.page-header {
    background-color: #f8f9fa;
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.page-header h1 {
    font-size: 2.8rem;
    color: #343a40;
}

.page-content {
    padding: 60px 20px;
}

.page-content h2 {
    font-size: 2rem;
    color: #5E7A9E; /* Warna biru logo */
    margin-bottom: 20px;
}

.page-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content ul {
    list-style-position: inside;
    padding-left: 20px;
}

.page-content ul li {
    margin-bottom: 10px;
}

/* ------------------------------------------------------------------------------------------- */

/* --- Styling untuk Formulir Kontak & Pesan Status --- */
.contact-form-container {
    max-width: 700px;
    margin: 40px 0; /* Jarak dari teks di atasnya */
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.contact-form textarea {
    resize: vertical; /* Izinkan user mengubah tinggi textarea */
}

.contact-form .btn {
    border: none;
    cursor: pointer;
     display: inline-block;
    background-color: #5E7A9E; /* Ubah dari #007BFF */
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Pesan Status */
.status-msg {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1rem;
}

.status-msg .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-msg .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ------------------------------------------------------------------------------------------- */


/* --- Styling Halaman Blog (Layout Daftar) --- */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
}

.post-item-list {
    display: flex;
    gap: 30px; /* Jarak antara gambar dan teks */
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.post-item-list:last-child {
    border-bottom: none; /* Hapus border untuk item terakhir */
    margin-bottom: 0;
}

.post-image-list {
    flex: 0 0 300px; /* Lebar kolom gambar (tidak akan membesar/mengecil) */
}

.post-image-list a {
    display: block;
    height: 100%;
}

.post-image-list img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan gambar mengisi area tanpa distorsi */
    border-radius: 5px;
}

.post-content-list {
    flex: 1; /* Kolom teks akan mengisi sisa ruang */
    display: flex;
    flex-direction: column;
}

.post-meta-list {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
    font-weight: 600;
}

.post-title-list {
    font-size: 1.8rem;
    margin: 0 0 15px 0;
}

.post-title-list a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.post-title-list a:hover {
    color: #5E7A9E; /* Warna biru logo */
}

.post-excerpt-list {
    color: #555;
    line-height: 1.8;
    margin: 0;
    flex-grow: 1; /* Mendorong tombol "Selengkapnya" ke bawah */
}

.read-more-btn-list {
    margin-top: 15px;
    text-decoration: none;
    color: #5E7A9E;
    font-weight: bold;
    align-self: flex-start; /* Posisikan di kiri */
}

/* --- Media Query untuk Tampilan Mobile --- */
@media (max-width: 768px) {
    .post-item-list {
        flex-direction: column; /* Susun ke bawah di layar kecil */
    }
    .post-image-list {
        flex-basis: auto; /* Hapus lebar tetap pada gambar */
        height: 200px; /* Beri tinggi tetap */
    }
    .post-title-list {
        font-size: 1.5rem;
    }
}

/* ------------------------------------------------------------------------------------------- */

/* --- Styling Halaman Detail Artikel --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-meta .fa-solid {
    margin-right: 5px;
}

.article-image {
    margin-bottom: 30px;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


/* --- Styling Baru untuk Halaman Detail Artikel --- */
.detail-container {
    display: flex;
    gap: 40px;
}

.main-article {
    flex: 3; /* Mengambil 3/4 bagian dari lebar */
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sidebar-related {
    flex: 1; /* Mengambil 1/4 bagian dari lebar */
}

/* Perbaikan Tampilan Konten Artikel */
.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}
.article-content h2, .article-content h3, .article-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}
.article-content p {
    margin-bottom: 20px;
}
.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 40px;
}

/* Sidebar Artikel Terkait */
.sidebar-related h3 {
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #5E7A9E;
    margin-bottom: 20px;
}
.related-post-item {
    margin-bottom: 20px;
}
.related-post-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
}
.related-post-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}
.related-post-item h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}
.related-post-item a:hover h4 {
    color: #5E7A9E;
}

/* Tombol Share Media Sosial */
.share-buttons {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.share-buttons h4 {
    margin-bottom: 15px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}
.share-btn .fab, .share-btn .fa-solid {
    font-size: 1rem;
}

.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.telegram { background-color: #0088cc; }
.share-btn.copy-link { background-color: #6c757d; }


/* --- Media Query untuk Tampilan Mobile --- */
@media (max-width: 992px) {
    .detail-container {
        flex-direction: column; /* Susun ke bawah di layar kecil */
    }
}