/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    line-height: 1.6;
}

/* GLOBAL LINKS */
a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: inherit;
}

.page {
    max-width: 1100px;
    margin: auto;
    padding: 90px 16px 40px;
}

/* ========================= */
/* HEADER BARU RESOPA        */
/* ========================= */

.header {
    background: #0a0a0e;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.header-inner {
    max-width: 1100px;
    margin: auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================= */
/* NAVIGATION RESOPA PREMIUM     */
/* ============================= */

/* TOGGLE BUTTON */
.nav-toggle {
    background: #1e6fff;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}

/* DEFAULT: TERSEMBUNYI (HP) */
.nav-panel {
    display: none;
    position: absolute;
    right: 16px;
    top: 60px;
    background: #0a0a0e;
    width: 170px;            /* FIX LEBAR SEMPIIT */
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    z-index: 9999;
}

.nav-panel.open {
    display: block !important;
}

/* STYLE LINK */
.nav-panel ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-panel ul li a {
    color: #e5e7eb;
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 6px;
    display: block;
}

.nav-panel ul li a:hover {
    background: rgba(255,255,255,0.12);
}

/* ============================= */
/* DESKTOP MODE (LEBAR > 768px) */
/* ============================= */
@media (min-width: 769px) {

    .nav-toggle {
        display: none;
    }

    .nav-panel {
        display: block !important;
        position: static;
        background: none;
        width: auto;
        box-shadow: none;
        padding: 0;
    }

    .nav-panel ul {
        flex-direction: row;
        gap: 20px;
    }
}

/* BRAND */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 8px;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.brand-sub {
    font-size: 12px;
    color: #9ca3af;
}





/* HERO */
.hero {
    margin-top: 10px;
}

.hero-inner {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 18px;
    box-shadow: 0 8px 30px rgba(15,23,42,0.08);
}

.hero-title {
    font-size: 22px;
    margin-bottom: 8px;
    color: #111827;
}

.hero-subtitle {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 16px;
}

.hero-search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-search input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.hero-search button {
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: #1e90ff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.hero-search button:hover {
    background: #1873c7;
}

.hero-inner img {
    max-width: 100%;
    display: block;
    margin: 20px auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    padding: 8px;
}

/* SECTION TITLE */
.section-title {
    margin: 24px 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

/* CATEGORY GRID */
.category-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.cat-box {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 12px;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 4px 18px rgba(15,23,42,0.06);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.cat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15,23,42,0.12);
}

.cat-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.cat-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.cat-desc {
    font-size: 13px;
    color: #6b7280;
}

/* ARTICLE GRID */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.article-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 12px;
    box-shadow: 0 4px 18px rgba(15,23,42,0.06);
}

.article-card:hover {
    transform: translateY(-2px);
}

/* ABOUT STRIP */
.about-strip {
    margin-top: 26px;
}

.about-inner {
    background: #0b1625;
    color: #e5e7eb;
    padding: 18px 16px;
    border-radius: 18px;
}

.about-inner p {
    font-size: 13px;
}

/* ============ FOOTER PREMIUM ============ */

.site-footer {
    background: #020617;
    color: #e5e7eb;
    padding: 30px 16px 20px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Tetap 2 kolom di HP */
@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.footer-menu {
    width: 100%;
}

.footer-subtitle {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
}

.footer-menu ul li {
    margin-bottom: 6px;
}

.footer-menu ul li a {
    color: #cbd5e1;
    font-size: 13px;
}

.footer-menu ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    margin-top: 22px;
    color: #64748b;
}