/* CSS Variables for easy themeing */
:root {
    --primary-color: #0D47A1; /* Biru Tua Korporat */
    --secondary-color: #1976D2; /* Biru Lebih Terang */
    --accent-color: #42A5F5; /* Biru Muda untuk Aksen */
    --font-family: 'Roboto', sans-serif; /* ✅ Menggunakan font Roboto */
    --shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    --border-radius: 8px;
    --dark-text: #212529;
    --body-text: #495057;
    --border-color: #dee2e6;
    --light-bg: #f8f9fa;
    --white-bg: #ffffff;
}

/* General Styling */
body {
    font-family: var(--font-family);
    margin: 0;
    color: var(--body-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    font-weight: 400; /* ✅ Mengatur ketebalan standar agar tidak terlalu tebal */
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { color: var(--dark-text); font-weight: 700; }
h2 { text-align: center; font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 50px auto; font-size: 1.1rem; }
.section { padding: 80px 0; }
.section-grey { background-color: var(--white-bg); }

/* Header & Navigation */
.header { background: var(--white-bg); box-shadow: 0 2px 5px rgba(0,0,0,0.07); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--dark-text); }
.nav-menu a {
    margin: 0 18px;
    font-weight: 500;
    color: var(--dark-text);
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a:after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; background-color: var(--primary-color); transition: all 0.3s ease-out; }
.nav-menu a:hover:after { width: 100%; left: 0; }
.nav-menu a:hover { color: var(--primary-color); }
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 700; transition: all 0.3s; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.btn:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); transform: translateY(-3px); }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--secondary-color); }
.btn-success { background: var(--success-color); color: #fff; }
.btn-success:hover { background: var(--success-hover); }
.btn-accent { background: var(--accent-color); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }

/* ✅ Tombol dengan warna aksen baru */
.btn-accent { background: var(--accent-color); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); }


/* Hero Section */
.hero { background: var(--dark-text); color: #fff; text-align: center; padding: 120px 0; }
.hero h1 { font-size: 3.8rem; margin-bottom: 20px; color: #fff; line-height: 1.2; }
.hero p { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.8; }
.hero-buttons a { margin: 0 10px; }

/* Services Section */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { background: var(--white-bg); border-radius: 12px; padding: 40px; text-align: center; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid var(--border-color); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.service-card .icon { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; background-color: #e7f1ff; border-radius: 50%; margin-bottom: 25px; }
.service-card .icon svg { width: 32px; height: 32px; color: var(--primary-color); }
.service-card h3 { margin-bottom: 15px; font-size: 1.4rem; }

/* CTA Section Baru */
.cta-section {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--white-bg);
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 {
    color: var(--white-bg);
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Update Kartu Layanan */
.service-card { border: none; background: var(--light-bg); }
.service-card:hover { border: none; }
.service-card .icon { background-color: var(--white-bg); border: 1px solid var(--border-color); }

/* News Section */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { background: var(--white-bg); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.news-content { padding: 25px; }
.news-content h3 { margin: 10px 0; }
.news-content h3 a { color: var(--dark-text); transition: color 0.3s; }
.news-content h3 a:hover { color: var(--primary-color); }
.news-meta { font-size: 0.9rem; color: var(--secondary-color); }

/* Download Section */
.download-list { display: grid; grid-template-columns: 1fr; gap: 15px; }
.download-item { display: flex; align-items: center; background: var(--white-bg); padding: 20px; border-radius: 12px; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.download-item:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.download-item .icon { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background-color: #e8f3ee; border-radius: 10px; margin-right: 20px; flex-shrink: 0; }
.download-item .icon svg { width: 24px; height: 24px; color: var(--success-color); }
.download-info { flex-grow: 1; }
.download-info h4 { margin: 0 0 5px 0; color: var(--dark-text); }
.download-info p { margin: 0; font-size: 0.9rem; color: var(--secondary-color); }
.btn-download-small { background: var(--success-color); color: #fff; padding: 10px 20px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.text-center { text-align: center; margin-top: 40px; }

/* Footer */
.footer { background: var(--dark-text); color: #fff; padding: 50px 0; text-align: center; }
.footer p { margin: 0; opacity: 0.7; }

.home-gallery-item {
    border-radius: 12px;
    overflow: hidden; /* Penting untuk menyembunyikan bagian gambar yang terpotong */
    position: relative;
    height: 250px; /* Memberi tinggi yang pasti pada wadah gambar */
    box-shadow: var(--shadow);
}
/*.home-gallery-item img {*/
    width: 100%;      /* Membuat gambar selebar wadahnya */
    height: 100%;     /* Membuat gambar setinggi wadahnya */
    object-fit: cover;/* Kunci utama: Memaksa gambar mengisi wadah tanpa merusak rasio */
/*    transition: transform 0.4s ease;*/
/*}*/
