/* ==========================================================
   MY STORYLAND - LANDING PAGE STYLES
   File    : /style.css
   ========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f8fb;
    color: #333;
}

/* STICKY HEADER RESTRUCTURED */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background:  #000E27;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 12px 20px;
}

header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

header .brand img {
    height: 45px;
    width: auto;
    margin-right: 12px;
}

header .brand span {
    font-weight: bold;
    font-size: 20px;
    color: #2e7d32;
}

header .header-tagline {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    letter-spacing: 1px;
}

/* NAV & DROPDOWN SYSTEM */
.nav-menu {
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

/* Tombol Utama Menu */
.dropdown-btn {
    background: #2e7d32;
    color: white;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-btn:hover {
    background: #FFCE1B;
}

/* Wadah Isi Dropdown (Sembunyi secara default) */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0; /* Rata kanan agar tidak keluar layar */
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.12);
    border-radius: 10px;
    margin-top: 5px;
    overflow: hidden;
    z-index: 1010;
}

/* Link di dalam Dropdown */
.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    transition: background 0.15s ease;
}

/* Efek Hover di dalam Dropdown */
.dropdown-content a:hover {
    background-color: #f1f8e9;
    color: #2e7d32;
}

/* Munculkan Dropdown saat Tombol atau Area di-hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Penyesuaian Mobile */
@media(max-width: 768px) {
    .dropdown-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}
/* ADS PLACEHOLDER CONTAINER */
.ads-container {
    max-width: 1200px;
    margin: 25px auto 10px auto;
    padding: 0 20px;
    text-align: center;
}

/* HERO SECTION */
.hero {
    max-width: 920px;
    margin: 20px auto 30px auto;
    background: #fff;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    text-align: center;
}

.hero h1 {
    font-size: 34px;
    color: #2e7d32;
    margin-bottom: 10px;
}

.tagline {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    max-width: 700px;
    margin: auto;
}

/* STATS */
.stats {
    margin: 35px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 700px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 34px;
    font-weight: bold;
    color: #2e7d32;
}

.stat-label {
    display: block;
    font-size: 15px;
    color: #666;
    margin-top: 5px;
}

/* SECTIONS */
.section {
    max-width: 1100px;
    margin: 45px auto;
    padding: 0 20px;
}

/* DIUBAH KE TENGAH */
.section h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 25px;
    color: #2e7d32;
}

/* LEVEL CARDS */
.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
    margin-top: 25px;
}

.level-card {
    display: block;
    background: white;
    border-radius: 22px;
    padding: 25px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transition: .25s;
}

.level-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 32px rgba(0,0,0,.12);
}

.level-card img {
    width: 170px;
    max-width: 70%;
    display: block;
    margin: auto;
}

.level-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-top: 18px;
    color: #222;
}

.level-desc {
    margin-top: 12px;
    text-align: center;
    line-height: 1.6;
    color: #666;
    min-height: 52px;
}

.level-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.story-count {
    font-weight: bold;
    color: #2e7d32;
}

.read-link {
    font-weight: bold;
    color: #2e7d32;
}

/* RESPONSIVE STYLES */
@media(max-width:768px) {
    header .header-tagline {
        display: none; /* Sembunyikan tagline kecil di mobile agar space aman */
    }

    .hero {
        padding: 25px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .tagline {
        font-size: 18px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .section h2 {
        font-size: 26px;
    }

    .level-card {
        padding: 20px;
    }

    .level-card img {
        width: 150px;
    }

    .level-title {
        font-size: 22px;
    }
}