/*
Theme Name: Sulsel Update
Theme URI: https://example.com
Author: Nama Kamu
Author URI: https://example.com
Description: Tema portal berita Sulsel berbasis Bootstrap
Version: 1.0
*/

 /* Styling Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo img {
    height: 30px; /* Sesuaikan dengan logo asli */
    display: block;
}

/* Tombol Hamburger Menu */
.menu-icon {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* Spacer agar konten di bawahnya tidak "balapan" ke atas */
.header-spacer {
    height: 60px;
}


    /* Styling Navbar Geser */
.nav-container {
  background: #000;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.nav-scroll {
  display: flex;
  overflow-x: auto; /* Mengaktifkan scroll horizontal */
  white-space: nowrap;
  padding-left: 15px;
  -webkit-overflow-scrolling: touch; /* Scroll halus di iOS */
}

/* Sembunyikan scrollbar agar rapi */
.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-item {
  color: white;
  text-decoration: none;
  margin-right: 20px;
  font-weight: bold;
  font-size: 14px;
}

/* Styling Headline Slider */
.headline-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.headline-wrapper {
  display: flex;
  /* Jika ingin otomatis geser via CSS, bisa pakai animation */
}

.headline-item {
  min-width: 100%;
  position: relative;
  height: 250px;
}

.headline-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Efek Gradient Hitam di Bawah */
.headline-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 15px 15px;
  /* Gradient dari transparan ke hitam */
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.headline-overlay h3 {
  color: white;
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

/* Styling Tag Populer (Gaya tombol putih) */
.tag-container {
  padding: 10px 0;
  background: #fff;
}

.tag-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 0 15px;
}

.tag-scroll::-webkit-scrollbar { display: none; }

.tag-item {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px 12px;
  font-size: 13px;
  white-space: nowrap;
  color: #333;
}

/* Section Title dengan garis merah di samping */
.section-title {
  font-size: 18px;
  margin: 20px 15px 15px;
  padding-left: 10px;
  border-left: 4px solid #b30000; /* Garis merah khas Antara */
  display: flex;
  align-items: center;
}

/* Grid Berita */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Membuat 2 kolom */
  gap: 15px;
  padding: 0 15px;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-thumb {
  width: 100%;
  aspect-ratio: 3/2; /* Menjaga ukuran gambar tetap konsisten */
  overflow: hidden;
  border-radius: 8px;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-info p {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.3;
  color: #222;
  /* Membuat teks terpotong jika terlalu panjang (Optional) */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Container Utama Terkini */
.terkini {
  padding: 10px 0;
  background-color: #fff;
}

.news-list {
  display: flex;
  flex-direction: column;
}

/* Row Berita */
.news-item {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0; /* Garis pemisah antar berita */
  gap: 12px;
}

/* Thumbnail Kotak Kecil */
.news-item-thumb {
  flex: 0 0 110px; /* Lebar tetap untuk gambar */
  height: 110px;
}

.news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Area Teks */
.news-item-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Menjaga meta tetap di bawah */
}

.category {
  color: #d32f2f; /* Warna merah untuk label 'Video' */
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 2px;
}

.news-item-title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta Informasi (Kategori & Waktu) */
.meta {
  margin-top: 8px;
  font-size: 11px;
}

.meta-tag {
  color: #d32f2f;
  margin-right: 8px;
}

.meta-time {
  color: #888;
}

.slider-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory; /* Mengunci geseran per halaman */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.slider-wrapper::-webkit-scrollbar {
  display: none; /* Hilangkan scrollbar manual */
}

/* Setiap halaman mengambil 100% lebar layar */
.slide-page {
  min-width: 100%;
  scroll-snap-align: start; /* Titik berhenti magnetik */
  padding: 0 15px;
  box-sizing: border-box;
}

/* Grid 2x2 untuk menampung 4 artikel */
.popular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 kolom */
  grid-template-rows: auto auto;    /* 2 baris */
  gap: 15px;
}

.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}

.card h4 {
  font-size: 13px;
  margin: 8px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Potong teks jika lebih dari 3 baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card span {
  font-size: 11px;
  color: #888;
}

.dots {
  text-align: center;
  margin-top: 15px;
}

.dot {
  height: 7px;
  width: 7px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  margin: 0 3px;
}

.dot.active {
  background-color: #333;
}

/* Container pembungkus utama */
.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Magnet scroll */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.slider-wrapper::-webkit-scrollbar {
    display: none; /* Sembunyikan scrollbar */
}

/* Setiap halaman slide (berisi 4 artikel) */
.slide-page {
    min-width: 100%; /* Menempati lebar penuh layar */
    scroll-snap-align: start;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Layout Grid 2x2 seperti Pilihan Editor */
.popular-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolom */
    gap: 15px;
}

/* Style Kartu (Sama dengan Pilihan Editor) */
.grid-card {
    display: flex;
    flex-direction: column;
}

.grid-card img {
    width: 100%;
    aspect-ratio: 3/2; /* Mengikuti rasio foto pilihan editor */
    object-fit: cover;
    border-radius: 8px;
}

.grid-card h4 {
    font-size: 14px;
    margin-top: 8px;
    font-weight: 600;
    line-height: 1.3;
    /* Potong teks jika kepanjangan */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-time {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Indikator Titik */
.dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 8px;
    width: 8px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #333; /* Warna titik aktif */
}

/* Container pembungkus utama */
.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Magnet scroll */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.slider-wrapper::-webkit-scrollbar {
    display: none; /* Sembunyikan scrollbar */
}

/* Setiap halaman slide (berisi 4 artikel) */
.slide-page {
    min-width: 100%; /* Menempati lebar penuh layar */
    scroll-snap-align: start;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Layout Grid 2x2 seperti Pilihan Editor */
.popular-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolom */
    gap: 15px;
}

/* Style Kartu (Sama dengan Pilihan Editor) */
.grid-card {
    display: flex;
    flex-direction: column;
}

.grid-card img {
    width: 100%;
    aspect-ratio: 3/2; /* Mengikuti rasio foto pilihan editor */
    object-fit: cover;
    border-radius: 8px;
}

.grid-card h4 {
    font-size: 14px;
    margin-top: 8px;
    font-weight: 600;
    line-height: 1.3;
    /* Potong teks jika kepanjangan */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-time {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Indikator Titik */
.dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 8px;
    width: 8px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #333; /* Warna titik aktif */
}



        /* Container Utama Slider */
        .slider-wrapper {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory; /* Membuat slide mengunci saat digeser */
            scroll-behavior: smooth;
            background: #fff;
        }

        .slider-wrapper::-webkit-scrollbar {
            display: none; /* Sembunyikan scrollbar */
        }

        /* Setiap Halaman (Menampung 4 Artikel) */
        .slide-page {
            min-width: 100%;
            scroll-snap-align: start;
            padding: 0 15px 15px 15px;
            box-sizing: border-box;
        }

        /* Grid 2x2 seperti Pilihan Editor */
        .popular-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        /* Gaya Kartu Berita */
        .grid-card {
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: #333;
        }

        .grid-card img {
            width: 100%;
            aspect-ratio: 3/2; /* Rasio gambar seragam */
            object-fit: cover;
            border-radius: 8px;
            background-color: #eee;
        }

        .grid-card h4 {
            font-size: 14px;
            margin-top: 8px;
            line-height: 1.3;
            font-weight: 600;
            /* Potong teks jika lebih dari 3 baris */
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .meta-time {
            font-size: 11px;
            color: #888;
            margin-top: 5px;
        }

        /* Navigasi Titik (Dots) */
        .dots-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            background: #fff;
            padding-bottom: 20px;
        }

        .dot {
            width: 8px;
            height: 8px;
            background-color: #ccc;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .dot.active {
            background-color: #333;
            transform: scale(1.2);
            width: 20px; /* Membuat titik aktif sedikit lonjong */
            border-radius: 10px;
        }

        /* Container Utama untuk Section Spesial */
.special-section {
    background-color: #ebf5fb; /* Warna background sedikit berbeda (biru muda halus) */
    padding-bottom: 25px;
    margin-top: 20px;
}

/* Styling Poster */
.poster-container {
    width: 100%;
    margin-bottom: 15px;
}

.poster-img {
    width: 100%;
    display: block;
    /* Poster biasanya memiliki aspek rasio yang lebih bebas atau lebar */
    object-fit: cover;
}

/* Grid Berita 2x2 */
.special-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 15px;
}

/* Gunakan kembali style grid-card yang sudah ada, 
   namun kita pastikan teks tetap terbaca di atas background berwarna */
.special-grid .grid-card h4 {
    color: #222;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 600;
}

.special-grid .grid-card img {
    border: 1px solid rgba(0,0,0,0.05); /* Border tipis agar gambar terlihat rapi */
}

/* Container Iklan */
.ad-container {
    width: 100%;
    padding: 15px; /* Memberikan ruang di sisi kiri, kanan, atas, bawah */
    background-color: #fff; /* Warna latar belakang kontainer */
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

/* Styling Gambar GIF */
.ad-gif {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Membuat sudut iklan sedikit membulat agar modern */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Memberikan bayangan halus */
    display: block;
}

/* Efek saat ditekan (Mobile Feedback) */
.ad-container a:active {
    opacity: 0.8;
}

.infografik-section {
    background-color: #fff;
    padding: 10px 0 20px 0;
}

/* Grid untuk 2 kolom pas */
.infografik-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Membagi 2 kolom sama besar */
    gap: 12px;
    padding: 0 15px;
}

.infografik-card {
    display: flex;
    flex-direction: column;
}

/* Container Gambar dengan Rasio 4:5 */
.infografik-card .img-container {
    width: 100%;
    aspect-ratio: 4 / 5; /* Mengunci perbandingan lebar 4 dan tinggi 5 */
    overflow: hidden;
    border-radius: 8px;
    background-color: #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.infografik-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Agar gambar memenuhi area tanpa gepeng */
    display: block;
}

/* Label Teks di Bawah */
.infografik-info p {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    /* Membatasi teks maksimal 2 baris */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Container Utama Video */
.video-section {
    background-color: #fff;
    padding-bottom: 25px;
    margin-top: 10px;
}

/* Video Utama */
.video-main {
    padding: 0 15px;
    margin-bottom: 20px;
}

.video-thumb {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
}

.video-thumb img {
    width: 100%;
    display: block;
    opacity: 0.9; /* Sedikit gelap agar ikon play menonjol */
}

/* Ikon Play Besar */
.play-icon-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.play-icon-large::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #d32f2f;
}

/* Grid Video Kecil */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 15px;
}

.video-item .video-info h4 {
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ikon Play Kecil */
.play-icon-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.play-icon-small::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 11px;
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent #d32f2f;
}

.video-info h4 {
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.4;
}

.video-info .meta-time {
    font-size: 11px;
    color: #888;
    display: block;
    margin-top: 4px;
}

/* Container Utama */
.foto-section {
    background-color: #f4f4f4;
    padding-bottom: 30px;
}

/* Judul dengan garis samping hijau sesuai gambar */
.foto-section .section-title {
    border-left: 5px solid #6ab04c; /* Warna hijau untuk section Foto */
}

/* Grid 2 Kolom */
.foto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 15px;
}

/* Thumbnail dengan Ikon */
.foto-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
}

.foto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ikon Kamera di Kiri Atas */
.camera-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.3); /* Overlay hitam transparan */
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
}

/* Judul Teks */
.foto-info h4 {
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.3;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Khusus Judul Merah (contoh item 1) */
.judul-merah {
    color: #d32f2f !important;
}

.foto-info .meta-time {
    font-size: 11px;
    color: #888;
    display: block;
    margin-top: 5px;
}

/* Container Utama */
.doeloe-container {
    background-color: #d8cfb8; /* Warna krem kertas tua */
    margin-top: 20px;
    padding-bottom: 30px;
    font-family: 'Georgia', serif; /* Font klasik */
}

/* Header Poster Besar */
.doeloe-hero {
    position: relative;
    width: 100%;
}

.hero-img {
    width: 100%;
    display: block;
    filter: sepia(0.3) contrast(1.1);
}

.hero-content {
    position: absolute;
    top: 30px;
    left: 20px;
}

.hero-tagline {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    border-top: 2px solid #222;
    border-bottom: 2px solid #222;
    display: inline-block;
    letter-spacing: 2px;
    margin-top: 10px;
}

/* Layout Artikel Besar */
.doeloe-feed {
    padding: 20px 15px;
}

.feed-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

/* Ukuran Thumbnail Artikel diperbesar */
.feed-thumb {
    flex: 0 0 110px; /* Lebar tetap 110px */
    height: 110px;
}

.feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: sepia(0.4);
}

/* Styling Teks Artikel */
.feed-category {
    color: #b32d2d;
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.feed-title {
    font-size: 17px; /* Ukuran judul lebih besar */
    line-height: 1.4;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
    /* Limit 3 baris */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-date {
    font-size: 12px;
    color: #555;
    font-style: italic;
}

/* Styling Dasar Footer */
.main-footer {
    background-color: #1a1a1a; /* Warna hitam gelap sesuai gambar */
    color: #ffffff;
    padding: 20px 0;
    font-family: Arial, sans-serif;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 15px 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 20px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.language-switch img {
    width: 22px;
    border-radius: 2px;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #333;
    margin: 0;
}

/* Link Kategori */
.footer-links-container {
    padding: 20px 15px;
}

.footer-heading {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.links-grid, .footer-legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Membagi menjadi 2 kolom sesuai gambar */
    gap: 10px;
}

.link-column {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-column li {
    margin-bottom: 12px;
}

.link-column li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

/* Legal Section */
.footer-legal-grid {
    padding: 20px 15px;
}

/* Logo di paling bawah */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.footer-logo img {
    filter: brightness(0) invert(1); /* Membuat logo jadi putih */
    height: 35px;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.btn-scroll-top, .btn-whatsapp {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
}

.btn-scroll-top { background-color: #555; }
.btn-whatsapp { background-color: #25D366; }

</style>