* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --tp-pink: #ff0050;
    --tp-dark-bg: #1a1a1a;
    --tp-body-bg: #ffffff;
    --tp-text: #333333;
    --tp-border: #eeeeee;
    --primary-cyan: #00bcd4;
    --text-dark: #333;
    --text-muted: #777;
    --bg-card: #ffffff;
    --border-soft: #f0f0f0;
    --border-color: #333333;
}

body.dark-mode {
    --tp-body-bg: #000000;
    --tp-text: #ffffff;
    --tp-border: #333333;
}

/* PERBAIKAN UTAMA: Agar sticky jalan, overflow harus di html, bukan body */
html {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    background-color: var(--tp-body-bg);
    color: var(--tp-text);
    transition: 0.3s;
    /* JANGAN tambahkan overflow di sini */
}

/* Main Content Area - Diubah ke block agar jalur sticky terbuka */
.main-content {
    margin-left: 360px;
    flex: 1;
    padding: 20px 40px;
    position: relative;
    display: block;
}

.container-wrapper {
    width: 700px;
    position: relative;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 5. Iklan Melayang Presisi */
.ads-sticky {
    position: absolute;
    top: 60px;
    width: 140px;
    height: 100%;
}

.ads-left {
    left: -150px;
}

.ads-right {
    right: -150px;
}

.ads-sticky img {
    width: 150px;
    height: 500px;
    object-fit: cover;
    position: sticky;
    top: 20px;
    border-radius: 4px;
}

.ads-label {
    font-size: 9px;
    text-align: center;
    color: #aaa;
    margin-top: 5px;
}

/* Sidebar Left */
.sidebar {
    width: 360px;
    height: 100vh;
    background: var(--tp-body-bg);
    border-right: 1px solid var(--tp-border);
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.logo span {
    color: var(--tp-pink);
}

.mode-toggle {
    cursor: pointer;
    padding: 5px;
    border: 1px solid var(--tp-border);
    border-radius: 4px;
}

/* Container Utama */
.search-box-container {
    border: 1px solid #ced4da;
    border-radius: 8px; /* Tambahkan radius agar sudutnya halus */
    overflow: hidden;
    height: 50px;
}

/* Kotak Ikon Kaca Pembesar */
.search-icon-box {
    background-color: transparent !important;
    border: none !important;
    border-right: 1px solid #ced4da !important;
    padding-left: 25px !important;
    padding-right: 20px !important;
    color: #666;
}

/* Kolom Ketik */
.search-input-field {
    background-color: transparent !important; /* INI YANG DITAMBAHKAN */
    border: none !important;
    padding-left: 25px !important;
    height: 100%;
    box-shadow: none !important;
    font-size: 16px;
    color: #333; /* Warna teks saat mengetik */
}

/* Contoh jika ingin mode gelap */
[data-theme="dark"] .search-box-container {
    background-color: #1a1a1a;
    border-color: #444;
}



.side-nav a {
    display: block;
    padding: 12px 0;
    color: var(--tp-text);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--tp-border);
}

.side-nav a.active {
    color: var(--tp-pink);
}

.side-nav i {
    width: 25px;
}

.f-right {
    float: right;
    margin-top: 5px;
    font-size: 12px;
}

.submenu {
    padding-left: 20px;
    font-size: 14px;
}

.app-btn {
    background: var(--tp-pink);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    margin-top: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Sosial Media (Ikuti Kami) */
.social-follow {
    margin-top: 30px;
    padding-bottom: 50px;
}

.social-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-title i {
    color: var(--tp-pink);
}

.social-list {
    list-style: none;
    padding: 0;
}

.social-list li {
    margin-bottom: 15px;
}

.social-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--tp-text);
    font-size: 16px;
    font-weight: 500;
}

.social-list a i {
    width: 35px;
    height: 35px;
    background: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 14px;
}

/* Iklan Fixed (Kiri & Kanan) */
.fixed-ads-left,
.fixed-ads-right {
    position: fixed;
    top: 15px;
    width: 160px;
    z-index: 10;
}

.fixed-ads-left {
    right: calc(50% + 420px);
}

.fixed-ads-right {
    left: calc(50% + 420px);
}

.fixed-ads-left img,
.fixed-ads-right img {
    width: 160px;
    height: 670px;
    object-fit: cover;
    opacity: 0.9;
    display: block;
    border: 1px solid var(--tp-border);
    border-radius: 4px;
}

.ads-label {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #888;
    text-transform: uppercase;
    text-align: center;
}

/* Main Content Area Container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* TOP NAVBAR STICKY - PERBAIKAN */
.top-navbar {
    background: #1a1a1a;
    border-top: 4px solid var(--tp-pink);
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.top-links a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    margin-right: 18px;
}

.breaking-news {
    display: flex;
    align-items: center;
    background: var(--tp-body-bg);
    border: 1px solid var(--tp-border);
    margin-top: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.bn-thumb img {
    display: block;
    padding: 5px;
    border-radius: 50%;
}

.bn-title {
    flex: 1;
    padding: 0 15px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bn-label {
    background: var(--tp-pink);
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
}

.trending-tags {
    margin: 20px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.trending-label {
    font-weight: bold;
    font-size: 14px;
    border-bottom: 2px solid var(--tp-pink);
}

.tags-list a {
    text-decoration: none;
    color: #666;
    border: 1px solid var(--tp-border);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
}

.hero-banner,
.main-image {
    margin-top: 15px;
    width: 100%;
    overflow: hidden;
}

.hero-banner img,
.main-image img {
    width: 100%;
    display: block;
}

/* home */

/* carousel */

/* --- Style untuk Main Image (Carousel) --- */
.main-image {
    margin-top: 20px;
    background: var(--tp-body-bg); /* Mengikuti tema */
    border: 1px solid var(--tp-border); /* Sama dengan border trending tags */
    border-radius: 4px; /* Sama dengan radius top-navbar & tags */
    overflow: hidden; /* Memastikan gambar tidak keluar dari radius */
}

/* Mengatur tinggi gambar agar seragam */
.carousel-item img {
    height: 450px;
    object-fit: cover; /* Gambar tidak penyet meski di-resize */
}

/* Custom Caption agar teks terbaca jelas */
.carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 40px 20px 20px;
    text-align: left; /* Rata kiri agar rapi */
}

.carousel-caption h5 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

/* Style Meta Data (Tanggal, User, Eye) */
.post-meta {
    font-size: 13px;
    display: flex;
    gap: 15px;
    color: #ddd;
}

.post-meta i {
    color: var(--tp-pink); /* Menggunakan warna pink brand */
    margin-right: 5px;
}

/* Indikator Bulat Carousel */
.carousel-indicators [button] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* pilihan editor */

.main-editor {
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 10px;
}

/* Header */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.editor-title {
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-title i {
    color: #ff4081; /* Warna pink icon */
}

/* Navigasi Bulat */
.nav-btn {
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 5px;
}


/* Slider logic */
.slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.slider-content {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-group {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Membagi 2 kolom */
    gap: 20px;
    min-width: 100%;
    box-sizing: border-box;
}

/* Kartu */
.editor-card {
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    overflow: hidden;
    transition: 0.3s;
}

.editor-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Gambar & Badge */
.card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-list {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.badge-item {
    font-size: 10px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

/* topik terhangat */

/* Header & Kategori */
.header-section {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-header); /* Menggunakan variabel */
    padding-bottom: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    transition: border-color 0.3s ease; /* Transisi halus saat ganti tema */
}

/* Tambahkan ini agar judul "Topik Terhangat" juga berubah warnanya */
.header-section .title {
    color: var(--text-main);
    transition: color 0.3s ease;
}

.title {
    font-size: 24px;
    margin-right: 20px;
    color: #333;
}

/* Container kartu */
.news-card {
    display: flex !important;
    flex-direction: row !important; /* Paksa ke samping */
    gap: 20px !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #eee !important;
    align-items: flex-start !important;
    position: relative !important;
}

/* Pembungkus gambar */
.news-image {
    flex: 0 0 280px !important; /* Lebar area gambar tetap */
    width: 280px !important;
    height: auto !important; /* Jangan dipaksa tinggi tertentu */
    overflow: visible !important; /* Biar kalau ada sisa tidak kepotong */
}

/* Gambar asli */
.news-image img {
    width: 100% !important;
    height: auto !important; /* Ini kunci biar proporsional dan tidak terpotong */
    object-fit: contain !important; /* Seluruh gambar harus masuk kotak */
    display: block !important;
    border-radius: 8px !important;
}

/* Konten teks */
.news-content {
    flex: 1 !important;
    min-width: 0 !important; /* Mencegah teks meluap */
}

/* Link transparan biar teks "Klik Disini" gak berantakan */
.news-link {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    opacity: 0 !important; /* Cara paling aman biar teks link tidak kelihatan tapi tetap bisa diklik */
}

.trending-container {
    max-width: 800px;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
}

/* Mengatur Harga agar turun ke bawah */
.price-section {
    display: flex;
    flex-direction: column; /* Membuat harga lama di bawah harga baru */
    gap: 2px;
}

.price-now {
    display: block; /* Memastikan mengambil satu baris sendiri */
    color: #ff4d4d;
    font-weight: bold;
    font-size: 22px;
}

.price-old {
    display: block; /* Memastikan turun ke bawah harga utama */
    color: #999;
    text-decoration: line-through;
    font-size: 15px;
}

.news-footer {
    display: flex;
    flex-direction: column; /* Membuat elemen menyusun ke bawah */
    align-items: flex-start; /* Mengatur harga dan tombol rata kiri */
    gap: 15px; /* Memberi jarak antara harga dan tombol */
    margin-top: 15px;
}

.price-section {
    display: flex;
    flex-direction: column; /* Harga lama di bawah harga baru */
    gap: 5px;
}

.btn-circle {
    background: #27283d;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start; /* Pastikan tombol tetap di kiri bawah */
}
/* Responsif untuk Mobile */
@media screen and (max-width: 768px) {
    .news-card {
        flex-direction: column !important; /* Gambar pindah ke atas teks */
        gap: 15px;
        padding: 15px;
    }

    .news-image {
        flex: 0 0 auto !important; /* Melepas kunci lebar 280px */
        width: 100% !important;
        max-width: 100% !important;
    }

    .news-image img {
        width: 100% !important;
        height: auto !important; /* Tetap utuh tanpa terpotong di HP */
    }

    .news-content {
        width: 100%;
    }

    .news-title {
        font-size: 1.2rem; /* Mengecilkan sedikit judul di HP */
        margin-top: 5px;
    }

    .price-now {
        font-size: 20px; /* Menyesuaikan ukuran harga di layar kecil */
    }

    .news-footer {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #f0f0f0; /* Garis pemisah opsional di mobile */
    }
}

/* Header Terpopuler */
.title-popular {
    color: var(--text-title);
    font-size: 20px;
    border-bottom: 2px solid var(--border-line);
    margin-top:10px ;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

/* Responsif untuk Mobile (Terpopuler) */
@media screen and (max-width: 600px) {
    .popular-card {
        flex-direction: column !important; /* Susun ke bawah di HP */
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 15px 0 !important;
    }

    .thumb-wrapper {
        flex: 0 0 auto !important; /* Melepas lebar tetap 160px */
        width: 100% !important;
    }

    .thumb-wrapper img {
        width: 100% !important;
        height: auto !important; /* Gambar tampil utuh, tidak terpotong */
        object-fit: contain !important;
        border-radius: 8px !important;
    }

    .popular-title {
        font-size: 15px !important;
        padding-right: 0 !important; /* Melepas ruang nomor jika menghalangi */
        line-height: 1.3 !important;
    }

    .category-link {
        font-size: 11px !important;
    }
}

/* Meta Data (Tanggal, User, View) */
.popular-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

/* Nomor Urut (Ranking) */
.rank-number {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-color); /* Efek outline nomor */
    opacity: 0.8;
}

/* Badge Durasi/Play (Optional) */
.duration-tag {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
}

.latest-articles {
    max-width: 850px;
    margin: 20px auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 20px;
}

/* Header Bagian */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color); /* Menggunakan variabel */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease; /* Opsional: agar transisi warna halus */
}

.icon-check {
    color: #ff0055; /* Warna pink ikon centang */
    font-size: 18px;
}

.view-all {
    text-decoration: none;
    color: var(--link-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

/* Pengaturan Card Berita */
.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: flex-start;
}

/* Bagian Teks (Kiri) */
.news-content {
    flex: 1; /* Mengambil sisa ruang */
}

.category {
    font-size: 12px;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.category.war { color: #00bcd4; } /* Warna Cyan */
.category.reviews { color: #00bcd4; }

.news-title {
    font-size: 18px;
    color: var(--news-color); /* Mengacu pada variabel di atas */
    line-height: 1.3;
    margin: 0 0 10px 0;
    font-weight: 600;
    transition: color 0.3s ease; /* Menghaluskan perubahan warna */
}
.news-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--news-excerpt); /* Dinamis mengikuti tema */
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

/* Bagian Gambar (Kanan) */
.news-image {
    flex: 0 0 280px; /* Lebar tetap untuk gambar */
}

.news-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

/* Responsif untuk HP */
@media (max-width: 600px) {
    .news-item {
        flex-direction: column-reverse; /* Gambar jadi di atas pada layar kecil */
    }
    .news-image {
        flex: 1;
        width: 100%;
    }
}

/* artikel rekomendasi */
.video-section {
    max-width: 900px;
    margin: 20px auto;
    font-family: sans-serif;
}

/* Header Setup */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-section); /* Akan mengambil #333 atau #fff tergantung tema */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease; /* Opsional: agar perubahan warna mulus */
}

.play-icon {
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Tombol Navigasi Kanan */
.nav-btn {
    border: 1px solid var(--accent-red);
    background: transparent;
    color: var(--accent-red);
    padding: 2px 8px;
    cursor: pointer;
    margin-left: 5px;
}

/* Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Membagi dua kolom */
    gap: 20px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Thumbnail & Overlay */
.thumbnail-container {
    position: relative;
    aspect-ratio: 16 / 9;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
}

/* Info Text */
.video-info {
    padding: 15px;
}

.video-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-title {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
}

/* foto terbaru */

.photo-section {
    max-width: 1000px;
    margin: 20px auto;
    font-family: 'Segoe UI', sans-serif;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Judul dengan variabel warna yang kamu minta sebelumnya */
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-icon {
    color: var(--accent-pink);
    font-size: 22px;
}

/* Navigasi Button */
.nav-btn {
    border: 1px solid var(--accent-pink);
    background: transparent;
    color: var(--accent-pink);
    padding: 2px 10px;
    cursor: pointer;
    font-weight: bold;
}

/* Grid & Slider Logic */
.photo-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.333% - 14px); /* Tampilkan 3 kartu sekaligus */
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 15px;
}

.photo-grid::-webkit-scrollbar { display: none; }

.photo-card {
    background: var(--bg-card);
    border-radius: 4px;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Image & Indicator */
.image-container {
    position: relative;
    aspect-ratio: 1 / 1; /* Foto biasanya persegi di galeri ini */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-count {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.photo-info {
    padding: 15px;
}

.photo-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-title {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 16px;
    margin: 10px 0;
    color: var(--tp-text);
}

.breadcrumb a {
    text-decoration: none;
    color: var(--tp-text);
    transition: 0.2s;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--tp-pink);
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 5px;
    color: var(--tp-text);
    opacity: 0.7;
}

/* Filter & Search */
.filter-search-container {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    align-items: center;
}

.category-dropdown {
    flex: 1;
}

.form-select-custom {
    width: 100%;
    padding: 10px 15px;
    background-color: var(--tp-body-bg);
    color: var(--tp-text);
    border: 1px solid var(--tp-border);
    cursor: pointer;
    font-size: 17px;
}

.btn-search-pink {
    background-color: var(--tp-pink);
    color: white;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* Floating Misc */
.floating-settings {
    position: fixed;
    right: 0;
    top: 200px;
    background: #444;
    color: white;
    padding: 10px;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    z-index: 1001;
}

.news-index {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Post Card */
.post-card {
    background-color: var(--tp-body-bg);
    border: 1px solid var(--tp-border);
    border-radius: 8px;
    padding: 20px;
    transition: 0.3s;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .post-card {
    background-color: #111111;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.post-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.post-details {
    flex: 1.5;
}

.post-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.post-title a {
    text-decoration: none;
    color: var(--tp-text);
    font-weight: 700;
}

.post-title a:hover {
    color: var(--tp-pink);
}

.post-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--tp-text);
    opacity: 0.9;
}

.post-img-wrapper {
    flex: 1;
}

.post-img-wrapper img {
    width: 100%;
    border-radius: 5px;
    display: block;
    object-fit: cover;
}

/* PARALLAX ADS */
.parallax-ads-container {
    display: block !important;
    position: relative !important;
    width: 90% !important;
    max-width: 600px !important;
    height: 500px !important;
    margin: 40px auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    clear: both !important;
}

.parallax-bg,
.parallax-bg a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.parallax-bg a {
    background-image: url('https://tikpress.oketheme.com/wp-content/uploads/2025/10/tikpress-ads-300x600-v2.webp') !important;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

/* PAGINATION */
.custom-pagination .page-item.active .page-link {
    color: #e91e63 !important;
    background-color: transparent !important;
    border-color: var(--tp-border-color) !important;
    font-weight: bold !important;
}

.custom-pagination .page-link {
    color: var(--tp-text-pagi) !important;
    background-color: var(--tp-bg-informasi) !important;
    border-color: var(--tp-border-color) !important;
}

/* KOTAK INFORMASI */
.card-informasi-custom {
    background-color: var(--tp-bg-informasi) !important;
    color: var(--tp-text) !important;
    border: 1px solid rgba(0, 188, 212, 0.3) !important;
    border-radius: 8px !important;
    padding: 20px;
    margin-top: 30px;
    transition: all 0.3s ease-in-out;
}

.card-informasi-custom:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.2) !important;
    border-color: #00bcd4 !important;
}

.label-informasi {
    color: #00bcd4;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 2px dashed #00bcd4;
    margin-right: 8px;
    display: inline-block;
}

.informasi-text {
    line-height: 1.6;
    font-size: 14px;
    display: inline;
}

/*WhatsApp Floating Button  */
.float-wa {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.float-wa:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

.my-float {
  width: 35px;
  height: 35px;
}

/* Penyesuaian khusus layar HP (maksimal 768px) */
@media screen and (max-width: 768px) {
  .float-wa {
    width: 50px;       /* Sedikit diperkecil agar tidak makan tempat */
    height: 50px;
    bottom: 20px;      /* Lebih dekat ke pojok bawah */
    right: 20px;       /* Lebih dekat ke pojok kanan */
    z-index: 99999;    /* Pastikan paling depan */
  }
}

/* FOOTER */
.footer-compact {
    max-width: 800px;
    margin: 20px auto 0;
    background: #111;
    padding: 20px;
    border-top: 2px solid #ff0050;
}

.widget-row-small {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.widget-small {
    flex: 1;
}

.widget-title-small {
    color: #ff0050;
    font-size: 16px;
    margin-bottom: 10px;
}

.text-small {
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}

.footer-bottom-compact {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 15px;
}

.footer-links-small {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-links-small a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
}

.brand-small {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.banner-ads-container {
    position: relative !important;
    z-index: 1 !important;
}

   .main-container {
  max-width: 775px; /* Sesuaikan dengan lebar tema Anda */
    margin: 0 auto; 
}

/* Pengaturan Iklan agar sejajar dengan gambar bawah */
.ad-banner {
width: 100%;
    margin: 25px 0; /* Memberi jarak atas & bawah agar tidak mepet teks */
    padding: 0;     /* Pastikan tidak ada padding yang mengganjal */
    display: block;
}

.ad-banner img {
   width: 100%;    /* INI KUNCINYA: Memaksa gambar mentok ke kanan dan kiri */
    height: auto;   /* Tinggi otomatis agar tidak gepeng */
    display: block;
}
/* RESPONSIVE */
@media (max-width: 900px) {
    /* 1. Paksa Body & Container Utama agar lebarnya 100% layar */
    body, .container, .wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden; /* Mencegah halaman bisa digeser ke kanan-kiri (menghilangkan whitespace) */
        padding: 0;
        margin: 0;
    }

    .sidebar {
        display: none;
    }

    /* 2. Pastikan Main Content memakan seluruh lebar sisa */
    .main-content {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 15px; /* Beri sedikit ruang di pinggir agar teks tidak nempel layar */
        box-sizing: border-box; /* Sangat penting: agar padding tidak menambah lebar elemen */
    }

    /* 3. Buat Gambar & Video jadi otomatis mengecil */
    img, iframe, video {
        max-width: 100%;
        height: auto;
    }
}
