/*
Theme Name: Twillspain Final
Author: Leon Light
Version: 2.1 (Stable)
Description: Versi tema yang sudah diperbaiki dengan header yang sempurna.
Text Domain: twillspain
*/

/* ================================================== */
/* 1. GAYA DASAR & TAMPILAN DESKTOP                   */
/* ================================================== */

body {
    font-family: 'Chivo', sans-serif;
    font-weight: 600;
    margin: 0;
    background-color: #FFFEFA;
}

.site-header { background-color: #FFFEFA; border-bottom: 1px solid #e5e5e5; }
.main-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.header-left { display: flex; align-items: center; gap: 1.5rem; }
.site-branding .site-title a { font-size: 2rem; font-weight: bold; color: #000; text-decoration: none; }
.header-search { display: flex; align-items: center; background-color: #D8D8D8; padding: 0.5rem 1rem; border-radius: 20px; }
.header-search input { border: none; background: none; outline: none; margin-left: 0.5rem; }
.main-navigation ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2rem; }
.main-navigation a { text-decoration: none; color: #333; font-weight: 500; }
.main-navigation .current-menu-item a, .main-navigation a:hover { color: #000; font-weight: bold; }
.header-right { display: flex; align-items: center; gap: 1.5rem; }
.dark-mode-toggle i { font-size: 1.2rem; cursor: pointer; }
.user-profile { display: flex; align-items: center; gap: 0.5rem; }
.user-profile img { width: 32px; height: 32px; border-radius: 50%; }
.container { display: flex; max-width: 1200px; margin: 0 auto; padding: 2rem; }
.content-area {
    flex: 3;
    min-width: 0; /* TAMBAHKAN HANYA BARIS INI */
}
.widget-area { flex: 1; padding-left: 2rem; }
.homepage section { margin-bottom: 2rem; border: 1px solid #ffffff; padding: 1rem; }

/* Dropdown Menu Desktop */
.main-navigation li, .secondary-navigation li { position: relative; }
.main-navigation .sub-menu { display: none; position: absolute; top: 100%; left: 0; background-color: #ffffff; border: 1px solid #f0f0f0; box-shadow: 0 4px 8px rgba(0,0,0,0.1); padding: 0.5rem 0; min-width: 200px; z-index: 100; }
.main-navigation li:hover > .sub-menu { display: block; }
.main-navigation .sub-menu li { width: 100%; }
.main-navigation .sub-menu a { padding: 0.75rem 1.5rem; display: block; font-weight: normal; }

/* Navigasi Sekunder (Bar Merah) */
.secondary-header-container {
  background: linear-gradient(to right, #FF6C6D, #F35A21);
}
.secondary-header-container .container { display: flex; justify-content: flex-end; padding: 0 2rem; align-items: center; }
.secondary-navigation a { color: #ffffff; padding: 0.8rem 1rem; text-decoration: none; font-size: 0.9rem; display: block; }
.secondary-navigation a:hover { color: #eeeeee; }
.secondary-navigation .menu-item-has-children > a::after { content: '\\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: 0.5rem; color: #fff; }
.secondary-navigation ul { margin: 0; padding: 0; list-style: none; display: flex; }

/* Tombol & Menu Mobile (Disembunyikan di Desktop) */
.mobile-menu-toggle, .mobile-menu-container, .mobile-logo { display: none; }

/* Pengaturan Ukuran Logo */
.site-branding .custom-logo, .site-branding img { height: 40px; width: auto; vertical-align: middle; }

@media screen and (max-width: 782px) {

  /* --- Header Sticky dengan Gradient --- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #FF6C6D 0%, #F35A21 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* --- Ukuran dan Padding Header --- */
  .main-header-container {
    padding: 0 1rem;
    height: 60px;
  }

  /* --- Sembunyikan Elemen Desktop --- */
  .desktop-navigation-wrapper,
  .secondary-header-container,
  .header-search,
  .header-right,
  .desktop-logo {
    display: none;
  }

  /* --- Tombol Toggle Menu Mobile --- */
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    z-index: 10000;
  }

  /* --- Branding Logo Mobile di Tengah --- */
  .site-branding {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .site-branding img {
    height: 32px;
  }

  .mobile-logo {
    display: inline-block;
  }

  .mobile-logo img {
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
  }

  /* --- Navigasi Menu Mobile --- */
  .mobile-menu-container {
    display: block;
    position: fixed;
    top: 60px;
    left: -100%;
    width: 280px;
    height: calc(100% - 60px);
    background-color: #ff6f61;
    z-index: 9999;
    padding-top: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
  }

  .mobile-menu-container.is-open {
    left: 0;
  }

  .mobile-menu-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-menu-container a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
}


.main-navigation a {
    font-size: 18px; /* Anda bisa ubah angka 18px ini */
    font-weight: 700; /* Membuat tulisan sedikit lebih tebal (bold) */
}

.mobile-menu-toggle {
    background-color: transparent !important; /* Hapus warna latar */
    border: none !important; /* Hapus border */
    padding: 0 !important; /* Hapus jarak internal */
    border-radius: 0 !important; /* Hapus sudut melengkung */
    
    /* Aturan yang sudah ada sebelumnya */
    display: block;
    color: #000000;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Aturan khusus untuk layar mobile */
@media screen and (max-width: 782px) {
    
    /* Kembalikan warna ikon menjadi putih di mobile */
    .site-header .mobile-menu-toggle {
        color: #ffffff !important;
    }
}

@media screen and (max-width: 782px) {

    /* 1. Perkecil tinggi header bar di mobile */
    .main-header-container {
        height: 40px; /* Coba kurangi dari 70px menjadi 60px */
    }

    /* 2. Perkecil ukuran logo di mobile */
    .site-branding img {
        height: 22px; /* Coba kurangi dari 40px menjadi 32px */
    }

    /* 3. Penting! Sesuaikan posisi menu geser dengan tinggi header baru */
    .mobile-menu-container {
        top: 60px; /* Sesuaikan dengan tinggi header baru di atas */
        height: calc(100% - 50px); /* Sesuaikan juga tingginya */
    }

}

/* 1. Jadikan header sebagai acuan posisi */
@media screen and (min-width: 783px) {
  .site-header {
    position: relative;
  }
}

/* 2. Atur posisi ikon hamburger secara absolut */
.mobile-menu-toggle {
    position: absolute;
    left: 2rem; /* Jarak dari tepi paling kiri layar */
    top: 35px; /* Posisikan di tengah secara vertikal (setengah dari tinggi header) */
    transform: translateY(-50%); /* Penyesuaian agar benar-benar di tengah */
    z-index: 10; /* Pastikan ikon di atas elemen lain */
}

/* 3. Beri jarak agar logo tidak tertimpa ikon hamburger */
.main-header-container {
    padding-left: 5rem !important; /* Tambahkan jarak di kiri container utama */
}

@media screen and (max-width: 782px) {

    /* 1. Jadikan header sebagai acuan posisi */
    .main-header-container {
        position: relative;
    }

    /* 2. Atur posisi ikon hamburger secara presisi */
    .mobile-menu-toggle {
        position: absolute;
        left: 1rem; /* Jarak dari tepi kiri */
        top: 50%; /* Posisikan di tengah secara vertikal */
        transform: translateY(-50%); /* Penyesuaian agar benar-benar di tengah */
    }
}
/* Mengubah warna teks saat cursor diarahkan ke item menu */
.main-navigation li:hover > a {
    color: #ff6f61; /* Warna merah jingga, sama seperti bar sekunder */
}
/* ================================================== */
/* KODE FINAL UNTUK HERO SLIDER (SESUAI PERMINTAAN)     */
/* ================================================== */

/* 1. Perbaikan Kunci untuk Kolom Konten Utama */
.content-area {
    flex: 3;
    min-width: 0; /* Baris ini akan memperbaiki masalah celah pada slider */
}

/* 2. Atur Container Utama Slider agar di Tengah dan Tidak Terlalu Lebar */
.hero-slider {
    max-width: 93%; /* Anda bisa ubah persentase ini (misal: 90% atau 100%) */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* 3. Atur Tinggi Gambar di Dalamnya */
.hero-slider .slide img {
    width: 100%;
    height: 370px; /* Anda bisa ubah tinggi ini nanti jika perlu */
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* 4. Atur Elemen Lainnya (Tidak Perlu Diubah) */
.hero-slider .slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.hero-slider .slide {
    min-width: 100%;
    position: relative;
}
.hero-slider .slide a {
    display: block;
    position: relative;
    color: white;
    text-decoration: none;
}
.hero-slider .slide a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.hero-slider .slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    max-width: 90%;
}
.hero-slider .slide-content h3 {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.2;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
.hero-slider .slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.hero-slider .slide-arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
.hero-slider .prev-arrow {
    left: 15px;
}
.hero-slider .next-arrow {
    right: 15px;
}
/* ... kode CSS utama kamu ... */

.hero-slider .slide-arrow:hover {
    background-color: rgba(154, 152, 152, 0.4);
}

/* ==== TAMBAHKAN DI BAWAH SINI ==== */
@media (max-width: 768px) {
    .hero-slider {
        max-width: 95%;
    }

    .hero-slider .slide img {
        height: 200px;
    }

    .hero-slider .slide-content h3 {
        font-size: 1.2rem;
    }

    .hero-slider .slide-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Sembunyikan Instagram di layar kecil (mobile) */
@media (max-width: 768px) {
    .only-desktop {
        display: none !important;
    }
}

/* ========================================= */
/* GAYA BARU UNTUK BAGIAN PENGUMUMAN         */
/* ========================================= */

.pengumuman {
    background-color: #fffffb;
    padding: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 2rem;
}

/* Judul dan garis jingga */
.pengumuman h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.pengumuman h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 800px;
    height: 4px;
    background-color: #ff6f61;
}

@media (max-width: 768px) {
  .pengumuman h2::after {
    width: 250px;
  }
}

/* 2 kolom */
.pengumuman-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Struktur item */
.pengumuman-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

/* Gambar */
.pengumuman-thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}
.pengumuman-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Konten teks */
.pengumuman-content {
    flex-grow: 1;
}

.pengumuman-title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 0.3rem 0;
}

.pengumuman-title a {
    text-decoration: none;
    color: #222;
}

/* Waktu/jam dipindah ke bawah judul */
.pengumuman-meta {
    font-size: 0.8rem;
    color: #888;
}

/* Author dihapus sepenuhnya */
.pengumuman-author {
    display: none;
}

@media (max-width: 872px) {
  .pengumuman {
    padding: 1.5rem;
  }

  .pengumuman h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .pengumuman h2::after {
    width: 250px;
  }

  .pengumuman-list {
    grid-template-columns: 1fr 1fr; /* tetap dua kolom */
    gap: 1.5rem;
  }

  .pengumuman-item {
    gap: 0.8rem;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .pengumuman-thumb {
    width: 100px;
    height: 70px;
  }

  .pengumuman-thumb img {
    border-radius: 6px;
  }

  .pengumuman-title {
    font-size: 0.95rem;
  }

  .pengumuman-meta {
    font-size: 0.75rem;
  }
}


/* Pengaturan Responsif untuk Mobile */
@media screen and (max-width: 782px) {
    /* Ubah menjadi 1 kolom di mobile */
    .pengumuman-list {
        grid-template-columns: 1fr;
    }
}
.widget_recent_highlighted .highlighted-post {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
padding-bottom: 16px;
margin-bottom: 16px;

}

.highlighted-thumb img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.highlighted-content {
  flex: 1;
}

.highlighted-tags {
  margin-bottom: 0.3rem;
}

.highlighted-tags .tag {
  background-color: #ff6f61;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 5px;
}

.highlighted-date {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.4rem;
}

.highlighted-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #222;
  text-decoration: none;
  line-height: 1.3;
  display: block;
}

.highlighted-title:hover {
  color: #ff6f61;
}


/* ========================================= */
/* SEMBUNYIKAN SIDEBAR DI TAMPILAN MOBILE    */
/* ========================================= */

@media screen and (max-width: 782px) {
    .widget-area {
        display: none;
    }
}

.anime-page .anime-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* atau 4, sesuai keinginan */
    gap: 20px;
    align-items: start; /* supaya tinggi card tidak saling dorong */
}


.anime-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.anime-card:hover {
    transform: translateY(-5px);
}

.anime-page .anime-card a {
    text-decoration: none;
}

.anime-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.anime-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain; /* atau remove saja jika gak perlu */
    display: block;
    margin: 0 auto;
}


.anime-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
}

.anime-title {
    font-size: 16px;
    margin: 10px 12px 4px;
    color: #111;
}

.anime-meta {
    font-size: 13px;
    color: #555;
    margin: 0 12px 12px;
}

@media (max-width: 768px) {
  .anime-page .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
}

/* Batasi lebar maksimal agar tidak ikut melebar saat zoom out */
.games-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.games-list .game-card a {
    text-decoration: none;
}

.game-card {
    background-color: #fffefa;
    border-radius: 8px;
    overflow: hidden;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.game-thumb img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.game-content {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-title {
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0 0 0.4rem;
    color: #222;
    line-height: 1.3;
}

/* Hilangkan garis biru dan atur warna judul */
.game-title a {
    color: #222 !important;
    display: inline-block;
}


.game-categories a,
.game-tags a {
    display: inline-block;
    font-size: 10px;
    background-color: #ffe9de;
    color: #ca8c73;
    padding: 2px 6px;
    margin: 2px 4px 0 0;
    border-radius: 4px;
}

.game-author-date {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

/* Mobile: 1 kolom per baris */
@media (max-width: 782px) {
    .games-list {
        grid-template-columns: 1fr;
    }
}

.post-content a {
    color: #ff6f61; /* warna tautan */
    text-decoration: none;
    font-weight: 600;
}

.post-content a:hover {
    text-decoration: none;
}

/* ======== Mobile Search Style (Hamburger Menu) ======== */
.mobile-search-container {
    padding: 1rem 1.5rem 0.5rem;
    background-color: #ff6f61;
}

.mobile-search-container .search-form {
    display: flex;
    background-color: white;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    align-items: center;
}

.mobile-search-container .search-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    border-radius: 20px;
    background: none;
    padding: 0.3rem 0;
}

.mobile-search-container .search-field::placeholder {
    color: #999;
}

.search-page .search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.search-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.search-card:hover {
    transform: translateY(-5px);
}

.search-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.search-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.search-title {
    font-size: 16px;
    margin: 10px 12px 4px;
    color: #111;
}

.search-grid .search-card a {
    text-decoration: none;
}


.search-meta {
    font-size: 13px;
    color: #555;
    margin: 0 12px 12px;
}

@media (max-width: 768px) {
  .search-page .search-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
}

/* Gunakan Nunito Light untuk isi artikel */
/* === Gaya untuk isi artikel === */
.single-post .entry-content,
article.post,
.post-content {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    max-width: 700px;
    padding-left: 28px; /* Geser ke kanan */
    padding-right: 28px; /* Biar kiri-kanan seimbang */
    color: #333;
    text-align: justify;
    /* border-radius dihapus karena tidak berlaku untuk teks langsung */
}
/* Geser judul artikel ke kanan */
.single-post .post-title {
    padding-left: 28px;
    padding-right: 28px;
    text-align: left; /* Tetap rata kiri tapi agak masuk */
}


/* === Gaya untuk gambar di dalam artikel === */
.single-post .entry-content img,
article.post img,
.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 14px;         /* Sudut melengkung */
    padding: 4px;               /* Ruang antara gambar dan border */
}

@media (max-width: 768px) {
  /* === Artikel umum === */
  .single-post .entry-content,
  article.post,
  .post-content {
      font-family: 'Nunito', sans-serif;
      font-weight: 300;
      font-size: 15px;
      line-height: 1.7;
      color: #180e14;
      text-align: justify;
      padding-left: 12px;
      padding-right: 12px;
  }

  /* === Gambar dalam artikel === */
  .single-post .entry-content img,
  article.post img,
  .post-content img {
      display: block;
      max-width: 100%;
      height: auto;
      border-radius: 12px;
      padding: 4px;
  }

  /* === Styling khusus untuk line code / blok kode === */
  .single-post .entry-content pre,
  .single-post .entry-content code,
  article.post pre,
  article.post code,
  .post-content pre,
  .post-content code {
      font-family: 'Courier New', monospace;
      font-size: 14px;
      background-color: #f5f5f5;
      padding: 8px;
      border-radius: 6px;
      overflow-x: auto;
      display: block;
      white-space: pre-wrap;
      word-wrap: break-word;
  }
}

.single-post .entry-content p,
article.post p,
.post-content p {
    text-align: justify;
    hyphens: auto;
    word-spacing: -0.1em; /* Kurangi jarak antar kata */
    letter-spacing: 0.1px; /* Tambah sedikit spasi antar huruf */
    line-height: 1.7;
}

.single-post h1,
.single-post h2,
.single-post h3,
.single-post h4,
.single-post h5,
.single-post h6,
article.post h1,
article.post h2,
article.post h3,
article.post h4,
article.post h5,
article.post h6,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    text-align: left;
    hyphens: auto;
    word-spacing: -0.1em;
    letter-spacing: 0.1px;
    line-height: 1.4;
}

.instagram-media {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ========================================= */
/* GAYA UNTUK BAGIAN POPULER ANIME         */
/* ========================================= */

.populer-anime {
    background-color: #fffffb;
    padding: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.populer-anime h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Container untuk daftar horizontal */
.populer-list {
    display: flex;
    overflow-x: auto; /* Memungkinkan scroll horizontal */
    gap: 1.5rem; /* Jarak antar item */
    padding-bottom: 1rem; /* Jarak untuk scrollbar jika muncul */
    /* Menyembunyikan scrollbar untuk tampilan yang bersih */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}
.populer-list::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* Setiap item/kartu */
.populer-item {
    flex: 0 0 200px; /* Lebar setiap kartu, jangan mengecil */
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.populer-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.populer-thumb img {
    width: 100%;
    height: 100px; /* Atur tinggi gambar */
    object-fit: cover; /* Agar gambar mengisi area tanpa distorsi */
    display: block;
    border-radius: 10px;
}

.populer-title {
    font-size: 0.899rem;
    font-weight: 700;
    padding: 0.8rem;
    margin: 0;
    line-height: 1.3;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pagination li {
    display: inline;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

/* Tombol aktif */
.pagination .current {
    background-color: #ff5724;
    color: white;
}

/* Hover glow untuk tombol lainnya */
.pagination a:hover {
    border-color: #ff5722;
    color: #ff5722;
}


/* Warna highlight kuning saat teks diseleksi */
::selection {
  background: #ff5724; /* warna kuning */
  color: #ffffff;         /* warna teks */
}

/* Untuk browser Safari */
::-moz-selection {
  background: #ffe08a;
  color: #000;
}

.twillspain-footer {
  background: linear-gradient(135deg, #ff4b2b, #ff416c); /* oranye-merah */
  color: #fff;
  padding: 40px 20px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 12px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

.social-links li i {
  margin-right: 8px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

@media (max-width: 720px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr); /* jadi 2 kolom di mobile */
    gap: 20px;
  }

  .footer-col {
    text-align: left;
  }

  .footer-logo {
    max-width: 140px;
  }
}

