/* Hero Carousel */
.hero-carousel {
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 400px;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
}

/* Footer */
footer a:hover {
    text-decoration: underline;
}
/* Category Header */
.category-header {
    background: #343a40;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.category-header h1 {
    font-size: 2.5rem;
}

.category-header p {
    font-size: 1.2rem;
}

/* Post List */


/* Sidebar */
.sidebar {
    position: sticky;
    top: 80px; /* jarak dari atas saat mulai floating */
    z-index: 10;
    background-color: #d9dcdf;
    padding: 15px;
    border-radius: 8px;
}

.sidebar a {
    color: #343a40;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination .page-link {
    color: #343a40;
}

.pagination .page-item.active .page-link {
    background-color: #343a40;
    border-color: #343a40;
}

/* Static Page */
.static-header {
    background: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.static-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.static-content a {
    color: #007bff;
    text-decoration: none;
}

.static-content a:hover {
    text-decoration: underline;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 500px;
    display: none; /* Default hidden */
}

.cookie-content p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.cookie-content a {
    color: #007bff;
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-content .btn {
    margin-right: 0.5rem;
}

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden; /* Cegah gambar keluar container */
}

.carousel-inner {
    width: 100%;
}

.carousel-item {
    position: relative;
    width: 100%;
}

.carousel-item img {
    width: 100%; /* Lebar full ikut container */
    height: auto; /* Tinggi otomatis proporsional */
    max-height: 400px; /* Batas tinggi maksimum */
    object-fit: cover; /* Potong gambar biar fit, nggak distorsi */
    display: block; /* Hilangin gap bawah */
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); /* Biar teks keliatan */
}

/* Responsivitas */
@media (max-width: 991px) {
    .category-header {
        padding: 2rem 0;
    }

    .category-header h1 {
        font-size: 2rem;
    }

    .category-header p {
        font-size: 1rem;
    }

    .static-header {
        padding: 2rem 0;
    }

    .static-header h1 {
        font-size: 1.8rem;
    }

    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

/* Post Header */
.post-header {
    background: linear-gradient(90deg, #3967bd, #ffffff);
    min-height: 180px;
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
}

.post-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
}

.post-header p {
    font-size: 1.1rem;
    color: #ffffff;
}

/* Post Content */
.post-content .article-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content img, .post-content video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Related Posts */
.related-posts .card {
    transition: transform 0.3s ease;
}

.related-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.related-posts .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Share Buttons */
.share-buttons .btn-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.share-buttons .btn-share:hover {
    filter: brightness(1.1);
}

.share-buttons .btn-share i {
    font-size: 1.2rem;
}

.share-buttons .btn-share[data-platform="twitter"] {
    background-color: #1da1f2;
    border-color: #1da1f2;
}

.share-buttons .btn-share[data-platform="facebook"] {
    background-color: #3b5998;
    border-color: #3b5998;
}

.share-buttons .btn-share[data-platform="whatsapp"] {
    background-color: #25d366;
    border-color: #25d366;
}

/* Category Separator */
.category-separator {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
}

.category-separator h2 {
    font-size: 1.8rem;
    margin: 0;
}

.category-separator i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

/* Unik per kategori */
.category-separator.teknologi {
    border-color: #007bff; /* Biru buat tech */
    color: #007bff;
}

.category-separator.ai {
    border-color: #28a745; /* Hijau buat AI */
    color: #28a745;
}

.category-separator.gaming {
    border-color: #dc3545; /* Merah buat gaming */
    color: #dc3545;
}

.category-separator.esports {
    border-color: #ffc107; /* Kuning buat e-sports */
    color: #ffc107;
}

.category-separator.sepakbola {
    border-color: #17a2b8; /* Cyan buat sepakbola */
    color: #17a2b8;
}

.post-content {
    max-width: 100%;
}

.article-body h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.article-body {
    padding: 1rem 0;
}

.toc li:nth-child(n+2) {
    padding-left: 0; /* Fix: jangan pakai indentasi berdasarkan urutan */
}

.toc-list ul {
    padding-left: 0; /* Tidak perlu indentasi kalau semuanya h2 */
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list li.toc-sub {
    padding-left: 1.5rem; /* indent untuk h3 */
    font-size: 0.95em;
}

.toc-list li a {
    color: #000;
    text-decoration: none;
}

.toc-list li a:hover {
    text-decoration: underline;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}


/* Umumkan tinggi tetap untuk gambar */
.content .card-img-top,
.post-list .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Samakan tinggi keseluruhan card */
.content .card,
.post-list .card {
    height: 100%; /* biar flex container bisa bekerja */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.content .card:hover,
.post-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
 
/* Kontainer (misal dalam grid) */
.card-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Pastikan tinggi antar card konsisten jika di dalam grid */
.card-wrapper .card {
    width: 100%;
    max-width: 100%;
}

/* Pastikan tinggi konsisten */
.card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Card-body harus fleksibel & isi diatur vertikal */
.card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Thumbnail penulis */
.card-detail img {
    object-fit: cover;
    border-radius: 50%;
}

/* Teks tanggal agar tidak pecah ke bawah */
.card-detail .text-muted {
    white-space: nowrap;
}

/* Opsional: jika font terlalu besar, kecilkan */
.card-detail {
    font-size: 0.85rem;
}

.link-clean {
    color: #000;             /* warna hitam */
    text-decoration: none;   /* hilangkan garis bawah */
}

.link-clean:hover {
    text-decoration: none; /* opsional: underline saat hover */
}

.info-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    /*font-size: 14px;*/
  }
  
  .info-table td {
    padding: 8px 10px;
    vertical-align: top;
  }
  
  .info-table tr:nth-child(even) {
    background-color: #f9f9f9; /* zebra strip */
  }
  
  .info-table tr:nth-child(odd) {
    background-color: #ffffff;
  }
  
  

@media (max-width: 768px) {
    .sidebar {
        position: static;
        margin-top: 2rem;
    }

    /*.post-list .card {
        margin-bottom: 1.5rem;
    }
    */

    /* Ubah layout card jadi vertikal */
    .post-list .card {
        flex-direction: column !important;
    }

    /* Thumbnail jadi seperti card-img-top */
    .post-list .card img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover;
        border-radius: 0.25rem 0.25rem 0 0;
    }

    /* Body tetap rapi */
    .post-list .card-body {
        padding: 1rem;
    }

    .post-header {
        padding: 2rem 0;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-content .article-body {
        font-size: 1rem;
    }

    .category-separator h2 {
        font-size: 1.5rem;
    }

    .category-separator i {
        font-size: 1.2rem;
    }

    .carousel-item img {
        max-height: 300px; /* Kecilkan di mobile */
    }
    .carousel-caption h1 {
        font-size: 1.5rem; /* Sesuain teks */
    }
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

h1 {
    font-size: 1.5rem; /* defaultnya besar, ini dikecilkan */
    font-weight: 600;
    margin-bottom: 0.75rem;
  }
  
  h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  #cookieConsent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: #222;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 1000;
    font-size: 14px;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#cookieConsent a {
    color: #f0ad4e;
    text-decoration: underline;
}
#cookieConsent button {
    background-color: #f0ad4e;
    color: #000;
    border: none;
    padding: 6px 12px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Warna dasar body */
body.dark-mode {
    background-color: #181a1b; /* bukan #121212, biar gak terlalu gelap */
    color: #e0e0e0;
  }

  /* Semua card */
  .dark-mode .card {
    background-color: #242526;
    color: #ddd;
    border-color: #2c2f33;
  }

  /* Sidebar (jika ada class khusus) */
  .dark-mode .controls,
  .dark-mode .chord,
  .dark-mode .lyric-row,
  .dark-mode .post-header,
  .dark-mode .sidebar,
  .dark-mode .widget,
  .dark-mode .card.sidebar-card {
    background-color: #242526;
    color: #fff;
  }

  /* Link normal */
  .dark-mode a {
    color: #91c4ff;
  }

  .dark-mode a:hover {
    color: #add8ff;
  }

  /* Tombol Outline */
  .dark-mode .btn-outline-primary {
    border-color: #91c4ff;
    color: #91c4ff;
  }

  .dark-mode .btn-outline-primary:hover {
    background-color: #91c4ff;
    color: #000;
  }

  /* Judul atau teks besar biar tidak terlalu terang */
  .dark-mode h1, .dark-mode h2, .dark-mode h3 {
    color: #f1f1f1;
  }

  /* Teks sekunder */
  .dark-mode .text-muted,
  .dark-mode small {
    color: #aaa !important;
  }

  /* Background loading atau elemen minor lainnya */
  .dark-mode .bg-light,
  .dark-mode .bg-white {
    background-color: #2a2b2d !important;
  }

  body.dark-mode .breadcrumb {
    background-color: #1e1e1e; /* atau transparent */
}

body.dark-mode .breadcrumb-item,
body.dark-mode .breadcrumb-item a {
    color: #ccc;
}

body.dark-mode .toc {
    background-color: #1e1e1e;
    color: #ddd;
    border: 1px solid #444;
    padding: 1rem;
    border-radius: 8px;
}

body.dark-mode .toc a {
    color: #80b3ff;
}

body.dark-mode .toc a:hover {
    text-decoration: underline;
}

.parallax-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 12px;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Ini yang bikin gambar diem saat scroll */
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: white;
    text-align: center;
}

.parallax-text {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.top-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.top-tags ._title {
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-tags ._content {
    overflow-x: auto;
    white-space: nowrap;
    flex-grow: 1;
}

.top-tags ._content a {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 8px;
    background-color: #ffffff;
    color: #333;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.top-tags ._content a:hover {
    background-color: #ffffff;
}

.tag-scroll::-webkit-scrollbar {
    height: 6px;
}
.tag-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.swiper {
    padding-bottom: 30px;
  }
.swiper-button-next,
.swiper-button-prev {
color: #333;
background: rgba(255,255,255,0.9);
padding: 8px;
border-radius: 50%;
box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Atur ketinggian maksimum sidebar & overflow auto saat hover */
.sidebar-scroll-sticky {
    position: sticky;
    top: 80px; /* Jarak dari atas saat sticky */
    max-height: calc(100vh - 100px); /* Tinggi maksimum agar tidak keluar layar */
    overflow-y: auto;
    padding-right: 8px; /* Spasi agar scroll tidak nabrak konten */
  }
  
  .sidebar-scroll-sticky::-webkit-scrollbar {
    width: 6px;
  }
  .sidebar-scroll-sticky::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 3px;
  }

  .embed-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}
.embed-responsive iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

blockquote {
    border-left: 4px solid rgb(123, 8, 223);
    padding: 10px 20px;
    font-style: italic;
    color: rgb(85, 85, 85);
    background-color: #f9f9f9;
    margin: 1em 0;
}

@font-face {
    font-family: "bootstrap-icons";
    src: url("/onmytheme/assets/css/fonts/bootstrap-icons.woff2") format("woff2"),
         url("/onmytheme/assets/css/fonts/bootstrap-icons.woff") format("woff");
    font-display: swap;
  }

  @font-face {
    font-family: "Font Awesome 6 Brands";
    src: url("/onmytheme/assets/webfonts/fa-brands-400.woff2") format("woff2"),
         url("/onmytheme/assets/webfonts/fa-brands-400.ttf") format("truetype");
    font-display: swap;
  }
  
  


@media (max-width: 576px) {
    .carousel-item img {
        max-height: 200px;
    }
    .carousel-caption h1 {
        font-size: 1.2rem;
    }
    .carousel-caption p {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .toc-mobile button {
        font-weight: bold;
    }
    .toc-mobile #tocContent {
        background-color: #f8f9fa;
        padding: 10px;
        border-radius: 0.5rem;
    }
}
