/* ===============================================
   IMPORT FONT DARI GOOGLE
=============================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* ===============================================
   GAYA GLOBAL & BODY
=============================================== */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
}
a { text-decoration: none; color: #1a1a1a; }
a:hover { color: #c00; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; }

/* ===============================================
   HEADER & LOGO
=============================================== */
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #fff; border-bottom: 1px solid #ddd; max-width: 1200px; margin: 0 auto; }
.logo-container img { height: 60px; display: block; }
/* PERUBAHAN ADA DI SINI */
.search-container { display: flex; width: 100%; max-width: 400px; /* Batasi lebar maksimal */ }
.search-container input { border: 1px solid #ccc; padding: 8px; border-right: none; width: 100%; }
.search-container button { border: 1px solid #ccc; background-color: #eee; padding: 8px 12px; cursor: pointer; }

/* ===============================================
   TOMBOL HAMBURGER
=============================================== */
.hamburger-btn { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
.hamburger-btn span { width: 30px; height: 3px; background-color: #333; border-radius: 5px; transition: all 0.3s linear; }
.hamburger-btn.is-active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ===============================================
   NAVIGASI UTAMA
=============================================== */
.main-nav { background-color: #1a1a1a; width: 100%; border-bottom: 3px solid #c00; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; max-width: 1200px; margin: 0 auto; }
.main-nav ul li a { color: white; padding: 14px 10px; display: block; font-weight: bold; font-size: 14px; text-transform: uppercase; }
.main-nav ul li a:hover { background-color: #c00; color: white; }
.mobile-search { display: none; } /* Sembunyikan form mobile di desktop */

/* ===============================================
   GAYA NEWS TICKER (BARU)
=============================================== */
.news-ticker-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #baeff3;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid #eee;
}

.ticker-label {
    background-color: #c00;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ticker-wrap {
    flex-grow: 1;
    overflow: hidden;
    margin-left: 15px;
}

.ticker-move {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}

.ticker-item {
    padding: 10px 15px;
    border-right: 1px solid #eee;
}

.ticker-item a {
    color: #333;
    text-decoration: none;
}

.ticker-wrap:hover .ticker-move {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===============================================
   LAYOUT UTAMA & KONTEN
=============================================== */
.main-content { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; padding: 25px 20px; max-width: 1200px; margin: 0 auto; }
.content-area { display: flex; flex-direction: column; gap: 25px; }
.sidebar-area { display: flex; flex-direction: column; gap: 25px; }

/* ... (Sisa kode CSS Anda dari sini ke bawah tetap sama) ... */
.headline-slideshow { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background-color: #eee; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.slides-container { width: 100%; height: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.6s ease-in-out; z-index: 1; }
.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .headline-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: white; padding: 25px; z-index: 3; }
.slide .headline-caption h2 { margin: 5px 0 0 0; font-size: 28px; line-height: 1.25; }
.slide .headline-caption .category { background-color: #c00; padding: 5px 10px; font-size: 12px; font-weight: bold; color: white; border-radius: 3px; text-transform: uppercase; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.25); color: white; border: none; font-size: 24px; cursor: pointer; z-index: 4; transition: opacity 0.3s ease-in-out; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; opacity: 0; }
.headline-slideshow:hover .slide-nav { opacity: 1; }
.slide-nav:hover { background-color: rgba(0, 0, 0, 0.5); }
.slide-nav.prev { left: 15px; }
.slide-nav.next { right: 15px; }
.dots-container { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; background-color: rgba(255, 255, 255, 0.6); border-radius: 50%; cursor: pointer; transition: background-color 0.3s; }
.dot:hover, .dot.active { background-color: white; }
.latest-news h3 { border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 20px; }
.latest-news-list .news-item { display: flex; gap: 15px; margin-bottom: 20px; }
.latest-news-list .news-item img { width: 160px; height: 110px; object-fit: cover; border-radius: 5px; }
.latest-news-list .news-item-text h4 { margin: 0 0 8px 0; font-size: 18px; line-height: 1.3; }
.latest-news-list .news-item-text .category { color: #c00; font-weight: bold; font-size: 12px; margin-bottom: 5px; display: block; text-transform: uppercase; }
.latest-news-list .news-item-text small { font-size: 12px; color: #777; }
.popular-posts, .iklan-box { background-color: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.popular-posts h3 { border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 20px; }
.popular-posts ul { list-style: none; padding: 0; margin: 0; }
.popular-posts li { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; }
.popular-posts img { width: 80px; height: 60px; object-fit: cover; border-radius: 5px; }
.popular-posts a { font-weight: bold; font-size: 14px; }
.popular-posts small { font-size: 11px; color: #777; display: block; margin-top: 4px; }
.iklan-box { border-radius: 5px; overflow: hidden; line-height: 0; }
.iklan-box img { width: 100%; height: auto; display: block; }
.iklan-box-placeholder { height: 250px; background-color: #333; color: white; display: flex; justify-content: center; align-items: center; font-size: 24px; font-weight: bold; border-radius: 5px; }
.main-footer { padding: 25px; margin-top: 20px; background-color: #1a1a1a; color: #aaa; font-size: 14px; }
.footer-content { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-nav { margin-bottom: 20px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: #ddd; text-decoration: none; font-weight: bold; transition: color 0.3s; }
.footer-nav a:hover { color: white; }
.footer-socials { margin-bottom: 20px; display: flex; justify-content: center; gap: 15px; }
.footer-socials a { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; background-color: #333; border-radius: 50%; transition: background-color 0.3s; }
.footer-socials a:hover { background-color: #c00; }
.footer-socials svg { width: 18px; height: 18px; fill: white; }
.category-showcase-title { font-size: 20px; font-weight: bold; border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 20px; position: relative; padding-left: 15px; }
.category-showcase-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 20px; width: 5px; background-color: #c00; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { display: block; background-color: #fff; border-radius: 5px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.category-card:hover { transform: translateY(-5px); transition: transform 0.2s ease-in-out; }
.card-image-container { position: relative; }
.card-image-container img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-category-tag { position: absolute; top: 10px; left: 10px; background-color: rgba(28, 150, 73, 0.9); color: white; padding: 4px 8px; font-size: 11px; font-weight: bold; border-radius: 3px; text-transform: uppercase; }
.card-content { padding: 15px; }
.card-content h4 { margin: 0; font-size: 16px; line-height: 1.4; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; }
.pagination a { color: #333; padding: 8px 14px; border: 1px solid #ddd; border-radius: 5px; background-color: #fff; transition: background-color 0.3s, color 0.3s; }
.pagination a:hover { background-color: #eee; }
.pagination a.active { background-color: #c00; color: white; border-color: #c00; font-weight: bold; }
.sidebar-opini { background-color: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.sidebar-opini h3 { border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 20px; }
.sidebar-opini ul { list-style: none; padding: 0; margin: 0; }
.sidebar-opini li { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; }
.sidebar-opini img { width: 65px; height: 65px; border-radius: 5px; object-fit: cover; }
.sidebar-opini a { font-weight: bold; font-size: 14px; }
.category-page-title { font-size: 24px; font-weight: bold; border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 0; }
.category-featured-post { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.category-featured-post img { width: 100%; height: auto; display: block; }
.category-featured-post .featured-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); color: white; padding: 20px; }
.category-featured-post .featured-caption h2 { margin: 5px 0 0 0; font-size: 28px; line-height: 1.2; }

/* ===============================================
   ATURAN RESPONSIVE (Untuk HP) (DIPERBARUI)
=============================================== */
/* ===============================================
   BANNER BAWAH (BARU)
=============================================== */
.bottom-banner-container {
    max-width: 970px; /* Lebar umum untuk banner */
    margin: 25px auto; /* Memberi jarak atas/bawah dan membuatnya di tengah */
    text-align: center;
    line-height: 0;
}
.bottom-banner-container img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .main-content { grid-template-columns: 1fr; }
    .main-header { flex-direction: row; justify-content: space-between; }
    .desktop-search { display: none; }
    .hamburger-btn { display: flex; }

    .main-nav { position: fixed; top: 0; left: -100%; width: 80%; height: 100vh; background-color: #1a1a1a; z-index: 1000; transition: left 0.3s ease-in-out; padding-top: 0; }
    .main-nav.mobile-active { left: 0; }
    
    /* Tampilkan form pencarian mobile */
    .mobile-search {
        display: flex;
        padding: 15px;
        border-bottom: 1px solid #444;
    }

    .main-nav ul { flex-direction: column; align-items: flex-start; padding: 20px; }
    .main-nav ul li a { padding: 15px 20px; width: 100%; border-bottom: 1px solid #444; }
    
    .slide .headline-caption h2 { font-size: 20px; }
    .category-featured-post .featured-caption h2 { font-size: 20px; }
    .category-grid { display: flex; overflow-x: auto; padding-bottom: 15px; gap: 15px; }
    .category-grid .category-card { flex: 0 0 80%; max-width: 300px; }
    .footer-nav { flex-direction: column; gap: 15px; }
}
/* ===============================================
   GAYA BARU UNTUK HEADER KANAN & AUTH
=============================================== */
.header-kanan {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-auth {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.user-auth span {
    font-weight: bold;
}

.user-auth .auth-link {
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.user-auth .auth-link.logout {
    background-color: #555;
    color: white;
}
.user-auth .auth-link.logout:hover {
    background-color: #333;
}

.user-auth .auth-link.register {
    background-color: #c00;
    color: white;
}
.user-auth .auth-link.register:hover {
    background-color: #a00;
}

/* Penyesuaian untuk mobile */
@media (max-width: 768px) {
    .header-kanan {
        display: none; /* Sembunyikan di header mobile, karena sudah ada di menu hamburger */
    }
    /* Anda bisa menambahkan gaya untuk login/daftar di dalam menu hamburger jika perlu */
}

/* ===============================================
   GAYA TOMBOL LOAD MORE (BARU)
=============================================== */
.load-more-container {
    text-align: center;
    margin: 20px 0;
}
#load-more-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
#load-more-btn:hover {
    background-color: #c00;
}
#load-more-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ===============================================
   BAGIAN SIDEBAR (WANITA)
=============================================== */
.sidebar-wanita {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sidebar-wanita h3 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.sidebar-wanita ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-wanita li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}
.sidebar-wanita img {
    width: 65px;
    height: 65px;
    border-radius: 50%; /* Membuat gambar menjadi bulat */
    object-fit: cover;
}
.sidebar-wanita a {
    font-weight: bold;
    font-size: 14px;
}

/* ===============================================
   GAYA BLOK VIDEO (BARU)
=============================================== */
.video-showcase-wrapper {
    background-color: #1a1a1a;
    padding: 25px;
    margin-left: -25px;
    margin-right: -25px;
}
.video-showcase {
    max-width: 1200px;
    margin: 0 auto;
}
.video-showcase-title {
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #c00;
    padding: 8px 15px;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.video-card {
    display: block;
    color: white;
}
.video-thumbnail-container {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}
.video-thumbnail-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}
.video-card:hover img {
    transform: scale(1.1);
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    background-color: rgba(0,0,0,0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 60px;
    transition: background-color 0.3s;
}
.video-card:hover .play-icon {
    background-color: rgba(204, 0, 0, 0.8);
}
.video-content {
    padding-top: 15px;
}
.video-category-tag {
    color: #c00;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}
.video-content h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: white;
}

/* Responsive untuk blok video */
@media (max-width: 768px) {
    .video-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 15px;
        gap: 15px;
    }
    .video-grid .video-card {
        flex: 0 0 80%;
        max-width: 300px;
    }
    .video-showcase-wrapper {
        margin-left: -20px;
        margin-right: -20px;
        padding: 20px;
    }
}


