/* ================= ROOT WARNA PROFESIONAL ================= */
:root {
    --primary: #c79b2d;
    --primary-dark: #a67c00;
    --secondary: #2c2c2c;
    --bg-soft: #f4f6f9;
    --text-main: #333;
    --card-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-soft);
    padding-top: 155px;
}

/* ================= HEADER FIXED ================= */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* ================= TOP BAR ================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    border-bottom: 2px solid #eee;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-logo {
    width: 42px;
    margin-right: 10px;
}

.topbar-text strong {
    font-size: 15px;
    color: var(--secondary);
}

.topbar-text span {
    font-size: 12px;
    color: #777;
}

.topbar-right a {
    color: var(--secondary);
    margin-left: 12px;
    font-size: 16px;
    transition: 0.3s;
}

.topbar-right a:hover {
    color: var(--primary);
}

/* ================= NAVBAR ================= */
.navbar {
    background: linear-gradient(to right, #1f1f1f, #2c2c2c);
    display: flex;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar a {
    color: #fff;
    padding: 13px 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.navbar a:hover {
    background: var(--primary);
}

.nav-item {
    position: relative;
}

/* SUBMENU */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    min-width: 260px;
    display: none;
    z-index: 999;
}

.sub-menu a {
    padding: 12px 15px;
    font-size: 13px;
    border-bottom: 1px solid #222;
}

.nav-item-sub {
    position: relative;
}

.sub-menu-right {
    position: absolute;
    top: 0;
    left: 100%;
    background: #111;
    min-width: 260px;
    display: none;
}

.nav-item:hover > .sub-menu {
    display: block;
}

.nav-item-sub:hover > .sub-menu-right {
    display: block;
}

/* ================= BREAKING NEWS ================= */
.breaking-news {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    height: 40px;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.breaking-news .label {
    background: #8a6500;
    padding: 0 16px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.news-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-text {
    position: absolute;
    white-space: nowrap;
    padding-left: 100%;
    animation: scrollNews 18s linear infinite;
}

.news-wrapper:hover .news-text {
    animation-play-state: paused;
}

@keyframes scrollNews {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* ================= MAIN WRAPPER ================= */
.main-grid {
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 60px;
}

/* ================= CONTENT ================= */
.container h1 {
    font-size: 28px;
    color: var(--secondary);
    border-left: 6px solid var(--primary);
    padding-left: 12px;
}

.container h3 {
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-size: 18px;
}

.container p,
.container li {
    line-height: 1.7;
    color: var(--text-main);
}

.container ol,
.container ul {
    background: #fafafa;
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.container img {
    display: block;
    width: 70%;
    max-width: 600px;
    margin: 20px auto;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border: 1px solid #ddd;
}

/* Catatan penting */
.container ul:last-of-type {
    background: #fff8e6;
    border-left: 5px solid var(--primary-dark);
}

/* ================= PRE FOOTER ================= */
.pre-footer {
    background: #f5f5f5;
    border-top: 4px solid var(--primary);
    padding: 40px 20px;
}

.footer-content {
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.footer-content img {
    width: 70px;
    margin-bottom: 15px;
}

.footer-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-content p {
    font-size: 14px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 15px;
}

.footer-content i {
    color: var(--primary);
    margin-right: 6px;
}

.footer-social a {
    margin: 0 8px;
    font-size: 18px;
    color: #000;
    transition: 0.3s;
}

.footer-social a:hover {
    color: var(--primary);
}

/* ================= FOOTER ================= */
.footer {
    background: var(--secondary);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {

    body { padding-top: 220px; }

    .topbar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .container { padding: 25px; }

    .navbar { flex-direction: column; align-items: stretch; }

    .menu-toggle {
        display: block;
        color: #fff;
        font-size: 26px;
        padding: 12px 18px;
        cursor: pointer;
        text-align: right;
        border-bottom: 1px solid #222;
    }

    .navbar > a,
    .navbar > .nav-item {
        display: none;
        width: 100%;
    }

    .navbar.show > a,
    .navbar.show > .nav-item {
        display: block;
    }

    .navbar a {
        padding: 14px 20px;
        border-bottom: 1px solid #222;
    }

    .sub-menu,
    .sub-menu-right {
        position: static;
        display: none;
        width: 100%;
        background: #111;
        padding-left: 15px;
    }

    .nav-item:hover > .sub-menu,
    .nav-item-sub:hover > .sub-menu-right {
        display: block;
    }
}
