/* * CSS Stylesheet Dasar untuk Versi Desktop 
 * File: desktop-style.css
 */

/* 1. Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif; /* Ganti dengan font pilihan Anda */
}

body {
    background-color: #f4f4f4; /* Latar belakang halaman */
    color: #333;
    line-height: 1.6;
}

/* 2. Header dan Navigasi */
header {
    background-color: #1a1a1a; /* Warna gelap untuk header */
    color: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header .logo img {
    height: 40px; /* Ukuran logo */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #ffcc00; /* Warna hover/aksen */
}

/* Gaya khusus tombol Login/Daftar di Navigasi */
.nav-btn-login {
    background-color: #337ab7;
    border-radius: 4px;
    padding: 8px 15px !important;
}
.nav-btn-daftar {
    background-color: #5cb85c;
    border-radius: 4px;
    padding: 8px 15px !important;
}

/* 3. Main Content Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 4. Tipografi dan Heading */
h1 {
    font-size: 2.5em;
    color: #0056b3; /* Warna utama situs */
    margin-bottom: 15px;
}

h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.5em;
    color: #555;
    margin-bottom: 10px;
}

/* Section Hero/Banner */
.hero-banner {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #e0f7fa, #b3e5fc); /* Latar belakang gradien */
    border-radius: 8px;
}

.hero-banner .tagline {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.cta-group .cta-button {
    text-decoration: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 10px;
    display: inline-block;
    transition: background-color 0.3s;
}

.cta-button.primary {
    background-color: #d9534f; /* Warna tombol utama */
}

.cta-button.secondary {
    background-color: #f0ad4e; /* Warna tombol sekunder */
}

.cta-button:hover {
    opacity: 0.9;
}

/* Section Keunggulan */
.grid-keunggulan {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    text-align: center;
}

.grid-keunggulan article {
    flex: 1;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
}

/* 5. Footer */
footer {
    background-color: #222;
    color: #ccc;
    padding: 30px 5%;
    text-align: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffcc00;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9em;
}

/* 6. Styling Khusus untuk Artikel SEO Footer */
.footer-seo-article {
    margin-top: 30px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    border-top: 1px solid #444;
}

.footer-seo-article h2 {
    color: #ffcc00; /* Aksen warna kuning/emas untuk judul SEO */
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: none;
    text-align: center;
}

.footer-seo-article p {
    font-size: 0.9em; /* Teks lebih kecil, umum di footer */
    color: #bbb;
    margin-bottom: 10px;
    text-align: justify;
}

/* Membuat keyword yang ditebalkan (<strong>) lebih menonjol */
.footer-seo-article p strong {
    color: #fff;
    font-weight: bold;
}

/* --- GLOBAL RESPONSIVE BASE --- */
* {
    /* Ensures padding and border don't increase the element's size */
    box-sizing: border-box; 
}
img {
    max-width: 100%;
    height: auto; /* Ensures images maintain aspect ratio */
}

/* --- MOBILE-FIRST: Default styles for small screens (e.g., phones < 768px) --- */

header {
    display: flex;
    flex-direction: column; /* Stack logo and nav vertically */
    align-items: center;
    padding: 10px;
}

.logo img {
    max-width: 150px; /* Limit logo size on mobile */
    margin-bottom: 10px;
}

/* Hide the main nav on very small screens, or make it a block list */
.main-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allow links to wrap to the next line */
    justify-content: center;
}

.main-nav li {
    margin: 5px;
}

/* Make the primary CTA buttons fill the available width on mobile */
.nav-btn-login, .nav-btn-daftar {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 5px;
}


/* --- DESKTOP BREAKPOINT: Apply styles for screens wider than 768px --- */
@media screen and (min-width: 768px) {
    
    /* Header goes back to horizontal layout */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav ul {
        flex-wrap: nowrap; /* Keep all links on one line */
    }
    
    .nav-btn-login, .nav-btn-daftar {
        /* Revert to inline display for desktop layout */
        display: inline-block; 
        width: auto;
        margin-top: 0;
    }
}

/* --- MOBILE-FIRST: Stack CTA buttons --- */
.hero-banner {
    text-align: center;
    padding: 20px;
}
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
.cta-button {
    width: 100%; /* Buttons take full width on mobile */
    text-align: center;
    padding: 15px;
}

/* --- DESKTOP BREAKPOINT: Put buttons side-by-side --- */
@media screen and (min-width: 600px) {
    .cta-group {
        flex-direction: row;
        justify-content: center;
    }
    .cta-button {
        /* Allow buttons to take only the necessary width */
        width: auto; 
    }
}

/* --- Default untuk Layar Kecil (Ponsel) --- */
.grid-keunggulan {
    display: flex;
    flex-direction: column; /* Mengatur item berurutan ke bawah */
    gap: 20px; /* Jarak antar kolom/item */
    padding: 20px;
}

.grid-keunggulan article {
    width: 100%; /* Setiap item mengambil lebar penuh */
    padding: 15px;
    border: 1px solid #eee; /* Contoh visual border */
}

/* --- Breakpoint untuk Layar Besar (Desktop/Tablet Besar) --- */
@media screen and (min-width: 992px) {
    
    .grid-keunggulan {
        flex-direction: row; /* Mengubah item menjadi berjejer horizontal */
        flex-wrap: wrap; /* Memungkinkan item turun ke baris baru jika ada lebih dari 3 */
        justify-content: space-between; /* Mendistribusikan ruang secara merata */
    }
    
    .grid-keunggulan article {
        /* Menghitung lebar agar 3 kolom muat, termasuk memperhitungkan gap 20px */
        width: calc(33.333% - 14px); 
    }
}