/* --- 1. SETUP & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary: #c80000;
    --primary-dark: #990000;
    --dark: #121212;
    --gray: #666;
    --light: #f4f4f4;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #fff;
    color: #333;
    overflow-x: hidden; /* Mencegah geser samping di HP */
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--primary); }

/* --- 2. HEADER AREA --- */
.top-bar {
    background: #000;
    color: #ccc;
    font-size: 12px;
    padding: 8px 0;
}

.main-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.brand-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.5rem; /* Ukuran pas untuk desktop */
    color: var(--primary);
    text-transform: uppercase;
    line-height: 1;
}
.brand-tagline {
    font-size: 11px;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
    margin-top: 5px;
}

/* --- 3. NAVBAR (ANTI PECAH) --- */
.navbar-news {
    background: var(--primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 5px rgba(0,0,0,0.1);
}

.navbar-news .nav-link {
    color: #fff !important;
    font-weight: 700;
    font-size: 13px; /* Ukuran font dikecilkan sedikit agar muat */
    text-transform: uppercase;
    padding: 15px 12px !important;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.navbar-news .nav-link:hover, .navbar-news .nav-link.active {
    background: rgba(0,0,0,0.2);
}

/* Dropdown Hover Logic (Desktop Only) */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        border-radius: 0;
        border: none;
        border-top: 3px solid #000;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}

.dropdown-item { font-size: 13px; padding: 10px 20px; }
.dropdown-item:hover { background: #f8f9fa; color: var(--primary); }

/* --- 4. NEWS TICKER (RAPAT & RAPI) --- */
.ticker-container {
    background: #222;
    color: #fff;
    height: 40px;
    overflow: hidden;
    border-bottom: 4px solid #000;
}
.ticker-title {
    background: #000;
    color: var(--primary);
    font-weight: 900;
    font-size: 12px;
    padding: 0 20px;
    height: 40px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}
.ticker-title::after {
    content: ''; position: absolute; right: -15px; top: 0;
    border-top: 40px solid #000; border-right: 15px solid transparent;
}
.ticker-text {
    line-height: 40px;
    white-space: nowrap;
    animation: ticker-scroll 25s linear infinite;
    padding-left: 100%;
    font-size: 13px;
}
@keyframes ticker-scroll { 100% { transform: translateX(-100%); } }

/* --- 5. COMPONENT: CARDS --- */
.section-header {
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
    position: relative;
}
.section-title {
    background: #000;
    color: #fff;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.main-news-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.main-news-card img { width: 100%; height: 400px; object-fit: cover; }
.main-news-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px; color: #fff;
}
.main-news-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.sub-news-card {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.sub-news-card img {
    width: 100px; height: 75px; object-fit: cover;
    margin-right: 15px;
}
.sub-news-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
}

/* --- 6. FOOTER --- */
footer { background: #111; color: #aaa; padding: 50px 0 20px; margin-top: 40px; }
footer h5 { color: #fff; text-transform: uppercase; font-size: 14px; font-weight: 700; margin-bottom: 20px; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; }
footer a:hover { color: #fff; text-decoration: underline; }

/* --- RESPONSIVE FIXES --- */
@media (max-width: 768px) {
    .brand-logo { font-size: 1.8rem; }
    .main-news-card img { height: 250px; }
    .main-news-title { font-size: 1.4rem; }
    .navbar-news .nav-link { border-bottom: 1px solid rgba(255,255,255,0.1); border-right: none; }
    .ticker-title { font-size: 10px; padding: 0 10px; width: 110px; } 
    /* Sembunyikan Iklan Header di HP agar tidak horizontal scroll */
    .header-ad { display: none !important; }
}