* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background:  #d8892b;;
    padding-top: 155px;
}

/* ================= HEADER FIXED ================= */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
}

/* ================= TOP BAR MEDSOS ================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-logo {
    width: 42px;
    margin-right: 10px;
}

.topbar-text strong {
    font-size: 15px;
}

.topbar-text span {
    font-size: 12px;
    color: #555;
}

.topbar-right a {
    color: #000;
    margin-left: 12px;
    font-size: 16px;
    transition: 0.3s;
}

.topbar-right a:hover {
    color: #d8892b;
}

/* ================= NAVBAR ================= */
.navbar {
    background: #000;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 100;
}

.navbar a {
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

.navbar a:hover,
.navbar a.active {
    background: #d8892b;
}

.nav-item {
    position: relative;
}

/* SUB MENU */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    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: #000;
    min-width: 260px;
    display: none;
}

.nav-item:hover > .sub-menu {
    display: block;
}

.nav-item-sub:hover > .sub-menu-right {
    display: block;
}

.highlight {
    background: linear-gradient(90deg, #d8892b, #c79b2d);
}

/* ================= BREAKING NEWS (CSS ANIMATION) ================= */
.breaking-news {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #c79b2d, #e3b84d);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    height: 40px;
    overflow: hidden;
}

.breaking-news .label {
    background: #a67c00;
    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%); }
}


/* ============================= */
/* GRID UTAMA HERO + CONTENT */
/* ============================= */

.main-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    

    /* padding lebih pendek dari header/footer */
   

    max-width: 1300px;
    margin: auto;

    background: #fff;        /* ✅ PUTIH */
    border-radius: 0px;      /* opsional: biar halus */
    overflow: hidden;
}

.container{
    display: grid;
    grid-template-columns: 2fr 1fr; /* berita | sidebar */
    gap: 25px;
    padding: 0px 60px;
}
.sidebar-wrapper{
    display: flex;
    flex-direction: column;
    gap: 25px;
}


/* ================= HERO ================= */
.hero {
    background: url("assets/gedungkemenhajsmg.jpg") center/cover no-repeat;
    min-height: 420px;
    position: relative;
    width: 100%;
    margin: 0;
}

.hero-overlay {
    background: rgba(255,255,255,0.6);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 30px;
}

.hero-left {
    text-align: center;
    margin-right: 30px;
    position: relative;
}

.hero-left img {
    width: 280px;
    margin-bottom: -20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-left .nama {
    position: absolute;
    bottom: 0;
    left: 70%;
    transform: translateX(-50%);

    background: #d8892b;
    color: #fff;

    padding: 10px 15px;
    min-width: 340px;
    text-align: center;

    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    border-radius: 4px;
}
.hero-left .rozikin {
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}





.hero-text {
    text-align: center;
    flex: 1;
}

.hero-logo {
    width: 60px;
}

.hero-text h2 {
    font-size: 32px;
    margin-top: 10px;
}

.hero-text h3 {
    color: #d8892b;
    font-size: 18px;
}

/* ================= CONTENT ================= */
.container {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.berita {
    flex: 3;
}

.berita h2 {
    border-bottom: 2px solid #d8892b;
    margin-bottom: 20px;
}

.berita-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.berita-item img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    margin-left: 15px;
}

.berita-item h3 {
    font-size: 16px;
    color: #d8892b;
}

.berita-item span {
    font-size: 12px;
    color: #777;
}

/* ================= SIDEBAR ================= */
.sidebar {
    flex: 1;
}

.sidebar h2 {
    background: #000;
    color: #fff;
    padding: 10px;
}

.populer-item {
    background: #d8892b;
    padding: 15px;
    color: #fff;
}

.populer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.populer-grid div {
    background: #c79b2d;
    padding: 10px;
    border: 1px solid #fff;
    color: #fff;
    font-size: 13px;
}
/* ================= POPULER NEWS SIDEBAR ================= */
.populer-box {
    background: #d8892b;
    padding-bottom: 10px;
}

.populer-header {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ITEM BESAR */
.populer-main {
    display: flex;
    padding: 10px;
    gap: 10px;
    background: #d8892b;
}

.populer-main img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border: 3px solid #fff;
    background: #fff;
}

.populer-main-text h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.populer-main-text p {
    font-size: 12px;
    color: #fff;
}

/* ITEM KECIL GRID */
.populer-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #c79b2d;
}

.populer-small {
    padding: 8px;
    border: 1px solid #fff;
    text-align: center;
}

.populer-small img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    margin-bottom: 5px;
    border: 2px solid #fff;
}

.populer-small p {
    font-size: 12px;
    color: #fff;
}


/* ================= PRE FOOTER ================= */
.pre-footer {
    background: #f5f5f5;
    border-top: 4px solid #c79b2d;
    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;
    color: #000;
}

.footer-content p {
    font-size: 14px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 15px;
    line-height: 1.6;
}

.footer-content i {
    color: #d8892b;
    margin-right: 6px;
}

.footer-social a {
    display: inline-block;
    margin: 0 8px;
    font-size: 18px;
    color: #000;
    transition: 0.3s;
}

.footer-social a:hover {
    color: #d8892b;
}

/* ================= FOOTER ================= */
.footer {
    background: linear-gradient(to right, #d8892b, #c79b2d);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 13px;
}



/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  
    .main-grid{
        padding: 15px 20px;
    }

    .container{
        grid-template-columns: 1fr;
    }
  
    .topbar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .topbar-right a {
        margin: 0 6px;
    }

    body {
        padding-top: 220px;
    }

    .container {
        flex-direction: column;
    }

    .hero {
        height: auto;
    }

    .hero-overlay {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        margin-bottom: 20px;
    }

    .hero-left img {
        width: 200px;
    }

    .hero-left .nama {
        position: relative;
        padding: 10px 20px;
        margin-top: -10px;
    }

    .berita-item {
        flex-direction: column;
    }

    .berita-item img {
        width: 100%;
        height: auto;
        margin: 10px 0 0;
    }

    .breaking-news {
        font-size: 12px;
        height: 36px;
    }

    .news-text {
        animation-duration: 22s;
    }
    
    .footer-content p {
        font-size: 13px;
    }

    .footer-content h3 {
        font-size: 16px;
    }

     /* ================= HAMBURGER MENU ================= */
.menu-toggle {
    display: none;
    color: #fff;
    font-size: 26px;
    padding: 12px 18px;
    cursor: pointer;
}

/* ================= MODE HP ================= */
@media (max-width: 900px) {

    .navbar {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-toggle {
        display: block;
        text-align: right;
        width: 100%;
        border-bottom: 1px solid #222;
    }

    /* sembunyikan menu dulu */
    .navbar > a,
    .navbar > .nav-item {
        display: none;
        width: 100%;
    }

    /* tampil saat klik hamburger */
    .navbar.show > a,
    .navbar.show > .nav-item {
        display: block;
    }

    .navbar a {
        padding: 14px 20px;
        border-bottom: 1px solid #222;
        text-align: left;
    }

    /* ===== SUBMENU TURUN KE BAWAH & RATA KIRI ===== */
    .sub-menu,
    .sub-menu-right {
        position: static;
        display: none;
        width: 100%;
        background: #111;
        padding-left: 15px; /* geser ke kiri (indent) */
    }

    .sub-menu a,
    .sub-menu-right a {
        padding: 12px 20px;
        font-size: 13px;
    }

    /* buka submenu saat hover / tap */
    .nav-item:hover > .sub-menu,
    .nav-item-sub:hover > .sub-menu-right {
        display: block;
    }

}


}
