/* =====================================================
   CNN Media - Clean Style (CNN Indonesia inspired)
   ===================================================== */
:root {
    --red: #cc0000;
    --dark: #111;
    --text: #1a1a1a;
    --muted: #666;
    --border: #e5e5e5;
    --light: #f5f5f5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.cnn-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== BREAKING ========== */
.cnn-breaking {
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
}
.cnn-breaking .cnn-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}
.cnn-breaking-label {
    background: #fff;
    color: var(--red);
    font-weight: 800;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 2px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}
.cnn-breaking a {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== LOGO BAR ========== */
.cnn-logo-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.cnn-logo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cnn-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cnn-logo-badge {
    background: var(--red);
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    padding: 6px 8px;
    border-radius: 3px;
    letter-spacing: -0.5px;
    line-height: 1;
}
.cnn-logo-name {
    font-weight: 800;
    font-size: 18px;
    color: var(--dark);
    letter-spacing: -0.4px;
    line-height: 1.2;
}
.cnn-logo-name small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.cnn-search-icon {
    font-size: 20px;
    color: var(--dark);
    padding: 4px;
}

/* ========== MENU (Horizontal + No Scrollbar) ========== */
.cnn-nav {
    background: var(--dark);
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cnn-menu-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cnn-menu-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.cnn-menu-item {
    display: block;
    flex-shrink: 0;
    color: #ccc;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 14px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.cnn-menu-item:hover,
.cnn-menu-item.is-active {
    color: #fff;
    border-bottom-color: var(--red);
    background: rgba(255,255,255,0.05);
}

/* ========== MAIN ========== */
.cnn-main {
    padding: 20px 0 30px;
}

/* ========== HERO ========== */
.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
}
.hero-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.88));
    padding: 30px 20px 16px;
    color: #fff;
}
.hero-overlay .badge {
    background: var(--red);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
}
.hero-overlay h2 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin: 8px 0 4px;
}

/* ========== CARDS ========== */
.card-news {
    border: none;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card-news:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.card-news img {
    height: 170px;
    object-fit: cover;
    width: 100%;
}
.card-news .card-body { padding: 12px 14px; }
.card-news .category {
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.card-news .card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 4px 0;
}
.card-news .card-title a:hover { color: var(--red); }
.card-news .meta { font-size: 12px; color: var(--muted); }

/* ========== LIST ========== */
.list-news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.list-news-item img {
    width: 100px;
    height: 68px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 3px;
}
.list-news-item h6 {
    font-size: 14px;
    font-weight: 650;
    margin: 0 0 3px;
    line-height: 1.35;
}
.list-news-item h6 a:hover { color: var(--red); }
.list-news-item .meta { font-size: 12px; color: var(--muted); }
.list-news-item .category {
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ========== SECTION ========== */
.section-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-left: 4px solid var(--red);
    padding-left: 10px;
    margin-bottom: 16px;
}

/* ========== SIDEBAR ========== */
.sidebar-box {
    background: var(--light);
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 4px;
}
.live-tv-box {
    background: var(--dark);
    color: #fff;
    padding: 14px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.badge-live {
    background: var(--red);
    animation: pulse 1.5s infinite;
    font-size: 10px;
    font-weight: 700;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ========== AD ========== */
.ad-slot {
    text-align: center;
    margin: 12px auto;
    max-width: 100%;
    overflow: hidden;
}
.ad-slot img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.ad-slot:empty { display: none; }

/* ========== ARTICLE ========== */
.article-content { font-size: 17px; line-height: 1.8; }
.article-content p { margin-bottom: 1.2rem; }
.article-content img { border-radius: 3px; margin: 1.2rem 0; }
.article-content h2, .article-content h3 { font-weight: 700; margin: 1.4rem 0 0.8rem; }
.article-content blockquote {
    border-left: 4px solid var(--red);
    padding: 10px 16px;
    margin: 1.2rem 0;
    background: #f9f9f9;
    font-style: italic;
}

/* ========== BUTTONS ========== */
.btn-cnn {
    background: var(--red);
    color: #fff !important;
    border: none;
    font-weight: 600;
    border-radius: 3px;
}
.btn-cnn:hover { background: #a00; color: #fff !important; }

/* ========== SHARE ========== */
.share-buttons a {
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff !important;
    font-size: 14px;
    margin-right: 4px;
}
.share-buttons .facebook { background: #1877f2; }
.share-buttons .twitter { background: #000; }
.share-buttons .whatsapp { background: #25d366; }
.share-buttons .telegram { background: #0088cc; }

/* ========== NEWSLETTER ========== */
.newsletter-section {
    background: linear-gradient(135deg, #111, #2a0000);
    color: #fff;
    padding: 36px 0;
}
.newsletter-section .form-control {
    border: none;
    border-radius: 3px 0 0 3px;
    padding: 10px 14px;
}
.newsletter-section .btn {
    border-radius: 0 3px 3px 0;
    padding: 10px 18px;
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark);
    color: #aaa;
    padding: 40px 0 20px;
}
footer a { color: #ccc; }
footer a:hover { color: #fff; }
footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
}
footer .footer-logo {
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}
footer .footer-logo span { color: var(--red); }
footer .social-icons a {
    display: inline-flex;
    width: 34px; height: 34px;
    align-items: center;
    justify-content: center;
    background: #222;
    border-radius: 50%;
    margin-right: 5px;
}
footer .social-icons a:hover { background: var(--red); color: #fff; }

/* ========== UTIL ========== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 12px;
    font-size: 13px;
}
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item a:hover { color: var(--red); }
.pagination .page-item.active .page-link {
    background: var(--red);
    border-color: var(--red);
}
.search-hero {
    background: var(--dark);
    color: #fff;
    padding: 28px 0;
    margin-bottom: 20px;
}
.search-hero .form-control {
    border: none;
    padding: 12px 16px;
    border-radius: 40px 0 0 40px;
}
.search-hero .btn {
    border-radius: 0 40px 40px 0;
    padding: 12px 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero-card img { height: 260px; }
    .hero-overlay h2 { font-size: 18px; }
}
@media (max-width: 767px) {
    .hero-card img { height: 210px; }
    .hero-overlay { padding: 20px 14px 12px; }
    .hero-overlay h2 { font-size: 16px; }
    .cnn-logo-name { font-size: 16px; }
    .cnn-menu-item { padding: 11px 12px; font-size: 12px; }
    .card-news img { height: 150px; }
    .list-news-item img { width: 90px; height: 60px; }
    .cnn-main { padding: 14px 0 24px; }
}
