/* ============================
   GLOBAL
   ============================ */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
}

.top-bar {
  background-color: #f8f9fa;
  font-size: 0.85rem;
}

        /* --- STYLE BARU: Form Pencarian di Top Bar --- */
        .top-bar .form-search {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 50px;
            padding: 2px;
        }

        .top-bar .form-search .form-control {
            border: none;
            box-shadow: none;
            background: transparent;
            height: 30px;
            font-size: 0.85rem;
        }

        .top-bar .form-search .btn {
            height: 30px;
            width: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

.navbar-brand {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -1px;
}

.main-nav {
  border-bottom: 1px solid #dee2e6;
}

/* ============================
   FEATURED GRID
   ============================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 1rem;
}
.featured-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  text-decoration: none;
}
.featured-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.featured-item:hover img { transform: scale(1.05); }
.featured-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent 60%);
  z-index: 1;
}
.featured-content { position: relative; z-index: 2; }
.featured-item-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.featured-item-2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.featured-item-3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.featured-item-4 { grid-column: 3 / 5; grid-row: 2 / 3; }

/* ============================
   SECTIONS & CARDS
   ============================ */
.section-title {
  font-weight: 700;
  font-size: 1.5rem;
  border-bottom: 2px solid #dc3545;
  padding-bottom: .5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.post-card {
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
  transition: box-shadow .3s ease-in-out;
}
.post-card:hover { box-shadow: 0 8px 25px rgba(13,110,253,.15); }
.sidebar-widget {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: .5rem;
}

/* ============================
   FOOTER
   ============================ */
.footer { background-color: #212529; color: #adb5bd; }
.footer a { color: #adb5bd; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

/* ============================
   NAVBAR / DROPDOWN (DESKTOP)
   ============================ */
.navbar-nav .nav-item .nav-link {
  transition: color .2s ease;
  font-weight: 500;
}
.navbar-nav .nav-item:hover > .nav-link { color: #dc3545; }

.dropdown-menu {
  border: none;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}
.dropdown-item:hover { background-color: #f8f9fa; color: #dc3545; }

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; }
  .dropdown-submenu { position: relative; }
  .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: .1rem;
    margin-right: 0;
  }
  .dropdown-menu .dropdown:hover > .dropdown-menu { display: block; }
}

/* ============================
   NAVBAR — STYLISH DESKTOP
   ============================ */
.main-nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* NAV LINKS */
.navbar-nav .nav-item .nav-link {
  padding: 1rem;
  font-weight: 500;
  font-size: 1rem;
  color: #212529;
  position: relative;
  transition: color .3s ease;
}

.navbar-nav .nav-item .nav-link::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg,#dc3545,#ff758c);
  transition: transform .3s ease;
  border-radius: 2px;
}

.navbar-nav .nav-item:hover .nav-link {
  color: #dc3545;
}
.navbar-nav .nav-item:hover .nav-link::before {
  transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-item.active .nav-link {
  color: #dc3545;
  font-weight: 600;
}
.navbar-nav .nav-item.active .nav-link::before {
  transform: translateX(-50%) scaleX(1);
}

/* DROPDOWN */
.dropdown-menu {
  border: none;
  border-radius: .75rem;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  padding: .75rem;
  background: #fff;
  animation: dropdownFade .25s ease;
}
.dropdown-item {
  border-radius: .5rem;
  padding: .65rem 1rem;
  font-weight: 500;
  transition: background-color .2s ease, color .2s ease;
}
.dropdown-item:hover {
  background: rgba(220,53,69,.08);
  color: #dc3545;
}

/* Animasi dropdown muncul */
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================
   NAV: Offcanvas (MOBILE)
   ============================ */
.offcanvas-start {
  --bs-offcanvas-width: 250px;
  background-color: rgba(255,255,255,.90);
  backdrop-filter: blur(4px);
}

@media (max-width: 991.98px) {
  /* reset list */
  .offcanvas .navbar-nav,
  .offcanvas .dropdown-menu { list-style: none; margin: 0; padding: 0; }

  /* semua item seragam sebagai dropdown-item */
  .offcanvas .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* teks kiri – caret kanan */
    gap: .5rem;
    padding: .65rem .75rem;
    font-size: .98rem;
    line-height: 1.25rem;
    border-radius: .4rem;
    color: inherit;
  }

  /* pemisah level-0 */
  .offcanvas .navbar-nav > .nav-item > .dropdown-item {
    border-bottom: 1px solid rgba(0,0,0,.06);
  }

  /* hilangkan hover-behavior desktop */
  .navbar .dropdown:hover > .dropdown-menu { display: none !important; }

  /* submenu tampil vertikal */
  .offcanvas .dropdown-menu {
    position: static !important;
    float: none;
    display: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    margin: 0;
  }
  .offcanvas .dropdown.show > .dropdown-menu { display: block; }

  /* indent per level (padding pada LINK) */
  .offcanvas .dropdown > .dropdown-menu > .nav-item > .dropdown-item { padding-left: 1.25rem; }
  .offcanvas .dropdown-submenu > .dropdown-menu > .nav-item > .dropdown-item { padding-left: 2rem; }
  .offcanvas .dropdown-submenu .dropdown-submenu > .dropdown-menu > .nav-item > .dropdown-item { padding-left: 2.75rem; }

  /* caret pakai bootstrap-icons */
  .offcanvas .dropdown-toggle::after {
    content: "\f285";
    font-family: "bootstrap-icons";
    font-size: 1rem;
    margin-left: .25rem;
    border: none;
    transform: rotate(0deg);
    transition: transform .2s ease;
  }
  .offcanvas .dropdown.show > .dropdown-toggle::after { transform: rotate(180deg); }

  /* highlight aktif/terbuka */
  .offcanvas .dropdown.show > .dropdown-item,
  .offcanvas .dropdown-item.active,
  .offcanvas .dropdown-item:active {
    background: rgba(220,53,69,.08);
    color: #dc3545;
  }

  .offcanvas .offcanvas-body { padding-top: .25rem; }
}

/* ============================
   NEWS TICKER
   ============================ */
.news-ticker {
  display: flex;
  align-items: center;
  background-color: #212529;
  color: #fff;
  padding: .5rem 0;
  overflow: hidden;
}
.news-ticker-title {
  background-color: #dc3545;
  padding: .5rem 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}
.news-ticker-content {
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-scroll 30s linear infinite;
}
.news-ticker:hover .news-ticker-content { animation-play-state: paused; }
.news-ticker-content a { color: #fff; text-decoration: none; padding: 0 1.5rem; }
.news-ticker-content a:hover { text-decoration: underline; }
.news-ticker-content i { color: #6c757d; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================
   ALBUM
   ============================ */
.album-thumbnails {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .75rem;
}
.album-thumbnails .thumb-item {
  flex-basis: 32%;
  width: 32%;
  aspect-ratio: 4 / 3;
  opacity: .6;
  transition: opacity .2s ease;
  cursor: pointer;
}
.album-thumbnails .thumb-item.active { opacity: 1; }
.album-thumbnails .thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: .25rem;
}

/* ============================
   BACK TO TOP
   ============================ */
a.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  background: #dc3545 !important;
  color: #fff !important;
  transition: all .4s;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}
a.back-to-top:hover { background: #c21d2e !important; color: #fff !important; }
a.back-to-top.active { display: flex; opacity: 1; visibility: visible; }

/* ============================
   KATEGORI & ARTIKEL
   ============================ */
.category-header {
  background-color: #f8f9fa;
  padding: 2rem 0;
  text-align: center;
  border-bottom: 1px solid #dee2e6;
}
.category-header h1 { font-weight: 700; font-size: 2.5rem; }

.post-card-category {
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.post-card-category:hover { box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.post-card-category .card-img-top { aspect-ratio: 16 / 9; object-fit: cover; }

.article-header h1 { font-weight: 700; font-size: 2.5rem; }
.article-meta { font-size: .9rem; color: #6c757d; }
.article-meta img { width: 40px; height: 40px; object-fit: cover; }
.article-body { font-size: 1.1rem; line-height: 1.8; }
.article-body p { margin-bottom: 1.5rem; }
.article-body h3 { font-weight: 700; margin: 2.5rem 0 1rem; }
.share-buttons a { font-size: 1.5rem; color: #6c757d; transition: color .2s; }
.share-buttons a:hover { color: #212529; }

/* Komentar */
.comments-section {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: .5rem;
}
.comment-avatar { width: 50px; height: 50px; object-fit: cover; }

/* ============================
   WIDGET TAG
   ============================ */
.widget-tags .tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.widget-tags .tag-item {
  display: inline-block;
  padding: .35rem .75rem;
  background-color: #e9ecef;
  color: #495057;
  border-radius: .25rem;
  text-decoration: none;
  font-size: .85rem;
  transition: background-color .2s, color .2s;
}
.widget-tags .tag-item:hover { background-color: #dc3545; color: #fff; }

/* ============================
   FEATURED GRID — RESPONSIVE
   ============================ */
@media (max-width: 991.98px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
  }
  .featured-item-1 { grid-column: 1 / 3; grid-row: 1 / 2; }
  .featured-item-4 { grid-column: 1 / 3; grid-row: 2 / 3; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
  }
  .featured-item-1 { grid-column: 1 / 3; grid-row: 1 / 2; }
  .featured-item-2 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .featured-item-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .featured-item-4 { grid-column: 1 / 3; grid-row: 3 / 4; }
}
@media (min-width: 768px) and (max-width: 990.98px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
  }
  .featured-item-1 { grid-column: 1 / 3; grid-row: 1 / 2; }
  .featured-item-2 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .featured-item-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .featured-item-4 { grid-column: 1 / 3; grid-row: 3 / 4; }
}
@media (max-width: 575.98px) {
  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 200px);
  }
  .featured-item-1, .featured-item-2, .featured-item-3, .featured-item-4 {
    grid-column: auto; grid-row: auto;
  }
}

/* Offcanvas: rapikan margin/padding elemen list */
@media (max-width: 991.98px) {
  .offcanvas .navbar-nav > .nav-item,
  .offcanvas .dropdown-menu > .nav-item {
    margin: 0;
  }

  /* Kasih padding vertikal tipis di container submenu biar tidak nempel */
  .offcanvas .dropdown-menu { padding: .15rem 0; }

  /* Hilangkan efek fokus biru yang kadang bikin offset */
  .offcanvas .dropdown-item:focus { box-shadow: none; }
}

/* OFFCANVAS—paksa indent level-1 agar sejajar */
@media (max-width: 991.98px) {
  /* Semua direct child dari submenu level-1 */
  #mainNavOffcanvas .dropdown > .dropdown-menu > li > .dropdown-item {
    padding-left: 1.25rem !important;   /* samakan indent */
  }

  /* Jika item anak juga punya submenu (dropdown-submenu), tetap sama */
  #mainNavOffcanvas .dropdown > .dropdown-menu > li.dropdown-submenu > .dropdown-item {
    padding-left: 1.25rem !important;
  }

  /* Beri jarak tipis di atas kontainer submenu agar tidak terlihat "menyatu" dengan induk */
  #mainNavOffcanvas .dropdown > .dropdown-menu {
    padding-top: .25rem;
  }

  /* Rapikan jarak antar anak submenu */
  #mainNavOffcanvas .dropdown > .dropdown-menu > li {
    margin: 0;
  }
}

/* OFFCANVAS: indent anak level-2+ (contoh: Profile > Karir > {Daftar, Login}) */
@media (max-width: 991.98px) {
  /* Pola umum: .dropdown (level-1) > .dropdown-menu > .dropdown (level-2) > .dropdown-menu > li > a */
  #mainNavOffcanvas .dropdown > .dropdown-menu > .dropdown > .dropdown-menu > li > .dropdown-item {
    padding-left: 2rem !important;   /* lebih menjorok dari level-1 (1.25rem) */
  }

  /* Jika markup pakai .dropdown-submenu */
  #mainNavOffcanvas .dropdown-submenu > .dropdown-menu > .dropdown-submenu > .dropdown-menu > li > .dropdown-item {
    padding-left: 2rem !important;
  }

  /* Versi yang lebih longgar untuk berjaga-jaga di variasi DOM */
  #mainNavOffcanvas .dropdown .dropdown-menu .dropdown .dropdown-menu > li > .dropdown-item {
    padding-left: 2rem !important;
  }
}

        .popular-posts-widget ol {
            list-style: none;
            padding-left: 0;
            counter-reset: popular-posts-counter;
        }

        .popular-posts-widget li {
            counter-increment: popular-posts-counter;
        }
        
        .popular-posts-widget li a::before {
            content: counter(popular-posts-counter);
            font-weight: 700;
            font-size: 1.5rem;
            color: #dee2e6;
            min-width: 20px;
            margin-right: 1rem;
        }

        .popular-posts-widget .post-title {
            font-weight: 500;
            color: #212529;
            text-decoration: none;
            line-height: 1.4;
        }

        .popular-posts-widget .post-title:hover {
            color: #dc3545;
        }
		
.logo-img {
  max-height: 100px;
  width: 100%;
  height: auto;
  max-width: 450px; /* atau sesuai batas maksimal yang kamu inginkan */
}

/* ==============================================
   SIMPLE EDITOR STYLES (Paste di style.css website)
   ============================================== */

/* 1. Perataan Teks (Alignment) */
.se-left { text-align: left !important; }
.se-center { text-align: center !important; }
.se-right { text-align: right !important; }
.se-justify { text-align: justify !important; }

/* 2. Perataan Gambar (Figure) */
figure.se-figure {
    display: table; /* Agar caption ikut lebar gambar */
    max-width: 100%;
    margin-bottom: 1rem;
}
figure.se-figure img {
    display: block;
    max-width: 100%;
    height: auto;
}
figure.se-figure figcaption {
    display: table-caption;
    caption-side: bottom;
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

/* Posisi Gambar */
figure.se-left {
    float: left;
    margin: 5px 15px 5px 0;
}
figure.se-right {
    float: right;
    margin: 5px 0 5px 15px;
}
figure.se-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Untuk caption */
}

/* Utility tambahan */
.se-rounded img { border-radius: 12px; }
.se-shadow img { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

/* ==============================================
   SIMPLE EDITOR STYLES (Paste di style.css website)
   ============================================== */