/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Font family sudah benar, pastikan diload di HTML */
    font-family: 'Poppins', sans-serif;
}

/* Body */
body {
    background: linear-gradient(135deg, #f8f9fc, #eef1f7);
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #1f2937;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header .logo h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease-in-out;
}

nav a.active {
    color: #f59e0b;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #f59e0b;
    transition: width 0.3s ease-in-out;
}

nav a:hover {
    color: #f59e0b;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ganti URL gambar hero jika ingin menggunakan gambar lokal */
    background: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 41, 55, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    animation: fadeIn 2s ease-in-out;
}

/* MEMPERBAIKI: Menargetkan h1 di hero-content */
.hero-content h1 { 
    font-size: 3.5rem; /* Ukuran yang sedikit lebih besar */
    font-weight: 700;
    margin-bottom: 15px;
    animation: textPop 1.5s ease-in-out;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px; /* Margin lebih besar */
}

.btn-hero {
    display: inline-block;
    padding: 12px 25px;
    background: #f59e0b;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease; /* Tambah transform */
}

.btn-hero:hover {
    background: #d97706;
    transform: translateY(-2px); /* Efek hover ringan */
}

/* Animasi */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes textPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Section Utama */
main .section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
    animation: fadeIn 1.8s ease;
}

main .section h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 15px;
}

main .section p {
    font-size: 1.1rem;
    color: #555;
}

/* MEMPERBAIKI: Menambahkan Gaya Tombol Kembali */
.back-link-container {
    display: flex;
    justify-content: center;
    margin: 50px 50;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1f2937; /* Warna gelap agar kontras */
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-button:hover {
    background-color: #f59e0b;
    transform: scale(1.1);
}

.back-icon {
    width: 40px;
    height: 40px;
    stroke: #fff; /* Pastikan warna ikon putih */
}

/* Grid Iklan (Gaya ini disarankan dipindahkan ke iklan.css) */
.iklan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.iklan-card {
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 15px;
}

.iklan-card img {
    width: 100%;
    height: 150px; 
    object-fit: cover;
    border-bottom: 2px solid #f1f1f1;
}

.iklan-card h3 {
    font-size: 1.3rem;
    margin: 15px 0 10px;
}

.iklan-card p {
    color: #666;
    font-size: 1rem;
    padding: 0 10px;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f59e0b;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #d97706;
}

.iklan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: #1f2937;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* Responsif */
@media (max-width: 768px) {
    /* MENAMBAH: Margin atas untuk logo agar tidak terlalu mepet */
    header {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }
    nav {
        padding-bottom: 10px;
    }
    nav a {
        display: inline-block;
        margin: 10px 10px; /* Margin lebih merata */
    }
    /* MEMPERBAIKI: Menargetkan h1 di hero-content */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
    }
}