* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== HEADER ===== */
.header {
    width: 100%;
    border-bottom: 2px solid #eee;
}

/* Kolom 1 */
.header-top {
    background: #d40000;
    color: #fff;
    padding: 6px 15px;
    font-size: 14px;
}

/* Kolom 2 */
.header-logo {
    text-align: center;
    padding: 15px;
}

.header-logo img {
    max-height: 250px;
}


.header-logo a img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-logo a:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}








/* Kolom 3 */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #d40000;
    padding: 10px 15px;
    position: relative;
}

/* Navbar */
.header-nav nav {
    display: flex;
    gap: 20px;
}

.header-nav nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.header-nav nav a:hover {
    color: gold;
}

/* ===== BURGER ICON ===== */
.burger {
    display: none;
    width: 28px;
    height: 22px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
}

.burger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    left: 0;
    transition: all 0.35s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }

/* Burger aktif → X */
.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Search Icon */
.search-icon {
    background: none;
    border: none;
    cursor: pointer;
}

.search-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .header-nav nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #b30000;
        flex-direction: column;
        z-index: 888;

        /* Animasi menu */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .header-nav nav.show {
        max-height: 700px;
    }

    .header-nav nav a {
        padding: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }


    .header-nav nav a:hover {
        color: gold;
    }
}

/* ===== SEARCH MODAL ===== */
.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.search-modal.active {
    display: flex;
}

.search-box-modal {
    background: #fff;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 5px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
}

/* ===== CONTENT ===== */
main {
    padding-top: 7px;
}











/* ===== BREAKING NEWS ===== */
.breaking-news {
    display: flex;
    width: 100%;
    background: #111;
    color: #fff;
    overflow: hidden;
}

/* LABEL */
.breaking-label {
    background: #d40000;
    padding: 10px 10px;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 13px;
}

/* MARQUEE AREA */
.breaking-marquee {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* TRACK */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

/* ITEM (KLIKABLE) */
.news-item {
    display: flex;
    align-items: center;
    min-width: 300px;
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.news-item:hover {
    background: rgba(255,255,255,0.1);
}

/* NOMOR */
.news-number {
    background: #d40000;
    color: #fff;
    width: 24px;
    height: 24px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

/* JUDUL */
.news-title2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    font-size: 13px;
}

/* ANIMASI LOOP */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* PAUSE HOVER */
.breaking-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .news-item {
        min-width: 250px;
    }
}