/* REVISI METROPOLIS: KONTRAS TINGGI & TEKS JELAS */

:root {
  --m-navy: #880f1e;      /* Latar Gelap */
  --m-blue: #f17921;      /* Warna Utama */
  --m-text-dark: #630e0e; /* Teks di area Putih */
  --m-text-light: #ffffff;/* Teks di area Gelap */
}

/* --- 1. Area Header & Navigasi (Teks Putih agar Terlihat) --- */
.header__bottom {
  background: var(--m-navy) !important;
  border-bottom: 3px solid var(--m-blue);
}

.nav__wrap li a, 
.nav__home .icon, 
.nav__more a, 
.breaking__title span,
.breaking__wrap a {
  color: var(--m-text-light) !important; /* Font Putih di Header */
  opacity: 1;
}

.nav__wrap li a:hover, 
.nav__home .icon:hover {
  color: var(--m-blue) !important; /* Warna biru saat hover */
}

/* --- 2. Area Footer (Teks Putih agar Terlihat) --- */
.footer {
  background: var(--m-navy) !important;
  border-top: 4px solid var(--m-blue);
  color: var(--m-text-light) !important;
}

.footer__link, 
.footer__menu.inline .footer__link {
  color: #cbd5e1 !important; /* Abu-abu terang agar nyaman dibaca */
}

.footer__link:hover {
  color: var(--m-blue) !important;
}

/* --- 3. Area Konten Utama (Teks Gelap agar Terlihat) --- */
body, .p404__content, .read__others a, .network__title, .topic .title, .photos__title, .videos__title {
  color: var(--m-text-dark) !important;
}

/* Link & Subtitle di area Putih */
a:hover, 
.latest__subtitle, 
.latest__author, 
.read__info, 
.editors__subtitle, 
.filter__title,
.widget__salat a {
  color: var(--m-blue) !important;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px; /* Jarak dari bawah */
    right: 20px;   /* Jarak dari kiri */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-decoration: none;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.05);
    color: white;
}

.wa-icon {
    width: 30px !important;  /* Paksa ukuran ke 30 pixel */
    height: 30px !important;
    display: block;          /* Menghilangkan whitespace di bawah gambar */
}

/* Responsif: Sembunyikan teks di layar kecil (opsional) */
@media screen and (max-width: 768px) {
    .whatsapp-float span {
        display: none;
    }
    .whatsapp-float {
        padding: 12px;
        border-radius: 50%;
        left: 15px;
        bottom: 15px;
    }
    .wa-icon {
        margin-right: 0;
    }
}

/* Container Gambar Produk */
.network__img {
    width: 100% !important;
    max-width: 240px !important; /* Sesuaikan dengan atribut HTML Anda */
    aspect-ratio: 1 / 1 !important; /* Memaksa bentuk kotak sempurna */
    overflow: hidden !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 8px !important; /* Menyesuaikan style border radius CSS utama */
}

/* Memaksa Link di dalamnya memenuhi container */
.network__img a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* Mengatur Gambar Produk agar proporsional */
.network__img img {
    width: 100% !important;
    height: 100% !important;
    
    /* Kunci utama: Memotong bagian pinggir agar pas di kotak 1:1 */
    object-fit: cover !important; 
    object-position: center !important;
    
    /* Menimpa atribut width/height manual dari HTML */
    max-width: none !important; 
    display: block !important;
}

/* Mengatur tata letak item agar rapi jika teksnya panjang sebelah */
.network__item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.network__box {
    padding: 10px 0 !important;
}




/* Container Utama dengan Grid */
.yt__grid-container {
    display: grid !important;
    grid-template-columns: 1.8fr 1fr !important; /* Membagi Kiri (Besar) & Kanan (Kecil) */
    gap: 25px !important;
    align-items: start !important;
}

/* Base Thumbnail */
.yt__thumb {
    position: relative !important;
    overflow: hidden !important;
    background-color: #000 !important;
    border-radius: 8px !important;
}

.yt__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Icon Play */
.yt__thumb .icon-play {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #fff !important;
    z-index: 2;
    background: rgba(15, 129, 186, 0.8);
    padding: 10px;
    border-radius: 50%;
}

/* --- VIDEO UTAMA (MAIN) --- */
.yt__item--main .yt__thumb {
    aspect-ratio: 16 / 9 !important;
}

.yt__item--main .yt__title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-top: 15px !important;
    color: #14142B !important;
}

/* --- LIST VIDEO SAMPING --- */
.yt__side-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.yt__item--sub {
    display: grid !important;
    grid-template-columns: 120px 1fr !important; /* Gambar di kiri, teks di kanan */
    gap: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.yt__item--sub:last-child {
    border-bottom: none !important;
}

.yt__item--sub .yt__thumb {
    height: 75px !important;
}

.yt__item--sub .yt__title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 0 4px 0 !important;
}

.yt__date {
    font-size: 10px !important;
    color: #A0A3BD !important;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
    .yt__grid-container {
        grid-template-columns: 1fr !important; /* Di tablet/HP jadi satu kolom (tumpuk) */
    }
}

/* --- EFEK HOVER YT ITEM --- */

/* 1. Efek Zoom pada Gambar */
.yt__thumb {
    transition: all 0.3s ease-in-out !important;
}

.yt__item:hover .yt__thumb {
    box-shadow: 0 8px 15px rgba(0,0,0,0.2) !important;
}

.yt__thumb img {
    transition: transform 0.5s ease !important;
}

.yt__item:hover .yt__thumb img {
    transform: scale(1.08) !important; /* Gambar membesar sedikit */
}

/* 2. Efek Overlay Gelap saat Hover */
.yt__thumb a::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.yt__item:hover .yt__thumb a::after {
    opacity: 1;
}

/* 3. Efek Warna Judul */
.yt__item:hover .yt__title {
    color: #0f81ba !important; /* Warna biru CMS Anda */
    transition: color 0.3s ease;
}

/* 4. Animasi Ikon Play saat Hover */
.yt__thumb .icon-play {
    transition: all 0.3s ease !important;
}

.yt__item:hover .icon-play {
    background: #02699c !important; /* Warna biru lebih gelap saat hover */
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* --- FIX ICON PLAY DI LATEST ITEM --- */

.latest__img {
    position: relative;
    display: block;
    background: #000; /* Dasar hitam agar gambar terlihat solid */
}

.latest__img .icon-play {
    /* Menimpa warna hitam dari CSS utama */
    color: #ffffff !important; 
    
    /* Membuat lingkaran background agar icon terlihat jelas */
    background: rgba(15, 129, 186, 0.8) !important; 
    
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    
    /* Ukuran Icon */
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    
    font-size: 18px !important;
    z-index: 5;
    transition: all 0.3s ease;
}

/* Efek Hover di Section Video Lainnya */
.latest__item:hover .latest__img .icon-play {
    background: #02699c !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.latest__item:hover .latest__img img {
    opacity: 0.8;
    transition: 0.3s;
}

/* --- MEMAKSA LATEST IMAGE FULL KE KONTINER --- */

.latest__item {
    display: flex !important;
    gap: 20px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    align-items: flex-start !important;
}

.latest__img {
    width: 280px !important; /* Perbesar ukuran default pembungkusnya */
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    aspect-ratio: 16 / 9 !important; /* Paksa rasio agar seragam */
}

.latest__img img {
    width: 100% !important; /* Paksa gambar isi 100% dari 280px */
    height: 100% !important;
    object-fit: cover !important; /* Agar gambar tidak gepeng */
    display: block !important;
}

.latest__right {
    flex-grow: 1 !important; /* Biar teks mengambil sisa ruang */
}

/* Responsif untuk HP agar gambar jadi full satu layar */
@media (max-width: 480px) {
    .latest__item {
        flex-direction: column !important; /* Gambar di atas, teks di bawah */
    }
    .latest__img {
        width: 100% !important; /* Gambar full lebar layar HP */
    }
}

/* Styling Deskripsi Video */
.latest__desc {
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin-top: 8px !important;
    
    /* Batasi maksimal 2 baris (Efek titik-titik) */
    display: -webkit-box !important;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Memperbaiki jarak teks agar tidak menempel */
.latest__right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.latest__title {
    margin-bottom: 5px !important;
    font-size: 16px !important; /* Sesuaikan ukuran font jika perlu */
    line-height: 1.3 !important; /* Memberi ruang antar baris yang pas */
    
    /* --- BATASI MAKSIMAL 2 BARIS --- */
    display: -webkit-box !important;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.6em; /* Opsional: Mengunci tinggi (line-height 1.3 x 2 baris) */
}

.latest__link {
    display: inline; /* Memastikan titik-titik muncul di akhir teks link */
}

.latest__date {
    font-size: 11px !important;
    color: #999 !important;
}

/* --- MENYAMAKAN ARTICLE DENGAN LATEST ITEM --- */

.article__item {
    display: flex !important;
    gap: 20px !important;
    width: 100% !important;
    margin-bottom: 25px !important;
    align-items: flex-start !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article__item:last-child {
    border-bottom: none;
}

/* Kotak Gambar Artikel */
.article__img {
    width: 280px !important; /* Sama dengan ukuran video tadi */
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    aspect-ratio: 16 / 9 !important;
    background: #f0f0f0;
}

.article__img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s ease;
}

/* Sisi Kanan (Teks) */
.article__right {
    flex-grow: 1 !important;
    display: flex;
    flex-direction: column;
}

.article__title {
    margin: 0 0 8px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.article__title a {
    color: #14142B !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Deskripsi Artikel (Efek Titik-titik 2 baris) */
.article__description {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article__date {
    font-size: 11px !important;
    color: #999 !important;
    text-transform: uppercase;
}

/* EFEK HOVER */
.article__item:hover .article__img img {
    transform: scale(1.08) !important;
}

.article__item:hover .article__title a {
    color: #0f81ba !important; /* Samakan dengan warna hover video */
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .article__item {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .article__img {
        width: 100% !important;
    }
    .article__title {
        font-size: 10px !important;
    }
}

/* --- FIX SOSMED HEADER BULAT & BESAR --- */

/* 1. Reset Container agar sejajar */
.social--header {
    display: flex !important;
    gap: 12px !important; /* Jarak antar ikon */
    align-items: center !important;
    float: right !important; /* Mengikuti style-v.01 Anda yang text-right */
}

/* 2. Custom Class untuk Link (Bulat & Pas) */
.social__link--round {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Ukuran Lingkaran diperbesar */
    width: 42px !important; 
    height: 42px !important; 
    
    background-color: #ffffff !important; 
    border-radius: 50% !important; /* Bulat Sempurna */
    border: 1px solid #dee2e6 !important;
    
    /* Menghapus style bawaan CMS */
    padding: 0 !important; 
    line-height: 0 !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* 3. Ukuran Gambar Ikon di Dalam */
.social__link--round img {
    width: 22px !important; /* Ukuran gambar di dalam lingkaran */
    height: 22px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important; /* Reset margin bawaan */
}

/* 4. Efek Hover Cantik */
.social__link--round:hover {
    background-color: #0f81ba !important; /* Warna biru CMS Anda */
    border-color: #0f81ba !important;
    transform: translateY(-3px); /* Efek melompat sedikit */
    box-shadow: 0 5px 15px rgba(15, 129, 186, 0.4) !important;
}

/* Mengubah Ikon jadi Putih saat Hover */
.social__link--round:hover img {
    filter: brightness(0) invert(1) !important;
}

/* Mematikan float bawaan social__item agar tidak berantakan */
.social__item {
    float: none !important;
    display: inline-block !important;
    margin: 0 !important;
}
/* 4. Efek Hover Cantik (Solusi Anti-Blok Kotak) */
.social__link--round:hover {
    /* Gunakan warna terang saat hover agar ikon asli tetap terlihat jelas */
    background-color: #f0f0f0 !important; 
    border-color: #0f81ba !important; /* Garis tepi tetap biru brand Anda */
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Hilangkan filter yang merusak gambar */
.social__link--round:hover img {
    filter: none !important;
    -webkit-filter: none !important;
    transform: scale(1.1) !important; /* Berikan efek zoom sedikit saja */
    opacity: 1 !important;
}
/* Hilangkan garis bawaan CMS */
.title:after { display: none !important; }

.title {
    border-bottom: 2px solid #f1f1f1;
    margin-bottom: 0px;
}

.title span {
    position: relative;
    padding: 5px 0;
    color: #14142b;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to right, #0f81ba, #02699c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Teks jadi berwarna gradasi */
}

.title span:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px; /* Garis pendek yang elegan */
    height: 5px;
    background: linear-gradient(90deg, #0f81ba, #00d4ff);
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(15, 129, 186, 0.4); /* Efek cahaya biru */
}

/* --- SENTUHAN HEADLINE MENARIK (HL BIG & SMALL) --- */

/* 1. Efek pada Headline Utama (HL BIG) */
.hl__big {
    position: relative;
    border-radius: 12px !important; /* Membuat sudut lebih halus */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    transition: transform 0.3s ease;
}

/* Membuat gradasi gelap di bawah teks agar teks putih mudah dibaca */
.hl__big:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%; /* Ditingkatkan dari 70% ke 80% agar gradasi lebih naik */
    background: linear-gradient(to top, 
                rgba(0,0,0,0.95) 0%, 
                rgba(0,0,0,0.4) 40%, 
                transparent 100%) !important;
    z-index: 1;
}

/* Animasi Zoom Gambar saat di-hover */
.hl__big img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.hl__big:hover img {
    transform: scale(1.08);
}

/* Memastikan konten teks berada di atas gradasi */
.hl__b-box {
    z-index: 5 !important;
    bottom: 10px !important;
}

.hl__b-title {
    color: #ffffff !important;
    /* 1. Pertebal font */
    font-weight: 800 !important; 
    font-size: 28px !important; /* Ukuran ideal untuk HL utama */
    line-height: 1.2 !important;
    
    /* 2. Double Layer Text Shadow: Membuat teks "keluar" dari gambar */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 
                 0px 0px 10px rgba(0,0,0,0.5) !important;
    
    /* 3. Memberi sedikit ruang antar huruf agar lebih tegas */
    letter-spacing: -0.5px !important;
    display: block !important;
}

.hl__big:hover .hl__b-title {
    color: var(--m-blue, #f17921) !important; /* Menggunakan warna aksen orange Anda */
}

/* --- MEMPERTEGAS TANGGAL PADA HEADLINE BIG --- */

.hl__b-date {
    color: #eeeeee !important; /* Warna abu terang agar tidak terlalu kontras tajam tapi tetap jelas */
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important; /* Membuat teks kapital agar lebih formal */
    letter-spacing: 1px !important; /* Memberi jarak antar huruf agar mudah dibaca */
    
    /* 1. Memberikan bayangan teks agar menonjol dari gambar latar */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
    
    /* 2. Opsional: Memberikan background gelap tipis (efek badge) */
    background: rgba(0, 0, 0, 0.4) !important; 
    padding: 3px 8px !important;
    border-radius: 4px !important;
    
    /* 3. Posisi */
    display: inline-block !important;
    margin-bottom: 8px !important;
    z-index: 5 !important;
    position: relative !important;
}

/* Menambahkan icon kalender kecil di depan tanggal (jika diinginkan) */
.hl__b-date:before {
    content: "📅"; /* Atau gunakan icon font-awesome jika Anda memakainya */
    margin-right: 5px;
    font-size: 10px;
    filter: brightness(1.5);
}

/* 2. Efek pada Headline Samping (HL SMALL ITEM) */
.hl__s-item {
    margin-bottom: 15px !important;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease !important;
    border: 1px solid #eee;
    padding: 5px;
}

.hl__s-item:hover {
    background: #fdfdfd;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: var(--m-blue, #f17921);
}

.hl__s-img {
    border-radius: 6px;
    overflow: hidden;
}

.hl__s-img img {
    transition: transform 0.4s ease !important;
}

.hl__s-item:hover .hl__s-img img {
    transform: scale(1.1);
}

/* 3. Penyesuaian Teks Headline Kecil */
/* 3. Penyesuaian Teks Headline Kecil (DIKECILKAN) */
/* 3. Penyesuaian Teks Headline Kecil (Dikecilkan & Batas 3 Baris) */
/* --- FIX FINAL: PEMOTONGAN 3 BARIS & TITIK-TITIK (...) --- */

.hl__s-title, .hl__s-title a {
    /* Pastikan jadi block agar bisa dipotong */
    display: -webkit-box !important;
    display: -moz-box !important;
    display: box !important;
    
    /* Pengaturan Baris */
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    
    /* Ukuran & Font */
    font-size: 12px !important;
    line-height: 1.4 !important; /* Sedikit lebih lega agar titik-titik tidak terpotong */
    font-weight: 700 !important;
    
    /* Sembunyikan sisa teks */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    
    /* Kunci tinggi maksimal agar kotak sejajar (1.4 x 3 = 4.2) */

    
    /* Tambahan pembersih */
    word-break: break-word !important;
    white-space: normal !important;
}

/* Hilangkan dekorasi jika itu link */
.hl__s-title a {
    text-decoration: none !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hl__s-item:hover .hl__s-title {
    color: var(--m-navy, #880f1e) !important;
}

/* 4. Aksen Garis Kecil (Opsional) */
.hl__s-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 3px;
    background: var(--m-blue, #f17921);
    transition: height 0.3s ease;
}

.hl__s-item:hover:before {
    height: 100%;
}