/*
Theme Name: Custom Divi Dashboard Nata
Theme URI: 
Description: A custom Divi child theme for customizing WordPress dashboard
Author: Marga Bagus
Author URI: https://margabagus.com
Template: Divi
Version: 1.2.0
*/

/* =========================================
   Variabel dasar & body single
   ========================================= */
:root {
  --sk-heading-font: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --sk-body-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --sk-heading-color: #1A1F2B;
  --sk-body-color: #292e3b;

  --sk-accent: #FF2C59;       /* sosial share + icon toggle */
  --sk-link-hover: #3e1066;   /* warna hover link & blockquote border */
}

/* Background global untuk single post: putih & clean */
body.single-post {
  background-color: #f9f6ee;
}

/* Link default di dalam artikel */
.sk-article a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sk-article a:hover {
  color: var(--sk-link-hover);
}

/* =========================================
   Layout utama & artikel card
   ========================================= */
.sk-single {
  display: flex;
  justify-content: center;
  padding: 4.5rem 0 3.5rem; /* jarak dari header lebih lega */
}

/* Artikel di tengah, sedikit lebih lebar */
.sk-article {
  max-width: 880px; /* sebelumnya 760, sekarang lebih lega */
  width: 100%;
  margin: 0 auto;
  padding: 2.25rem 2.25rem 3rem;
  background: none;
  border-radius: 18px;
  box-shadow: none;
  font-family: var(--sk-body-font);
  color: var(--sk-body-color);
}

/* Typografi heading & title */
.sk-article__title,
.sk-article h1,
.sk-article h2,
.sk-article h3,
.sk-article h4,
.sk-article h5,
.sk-article h6 {
  font-family: var(--sk-heading-font);
  color: var(--sk-heading-color);
}

.sk-article__title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.sk-article__content {
  font-size: 1.02rem;
  line-height: 1.8;
}

/* Responsif */
@media (max-width: 980px) {
  .sk-single {
    padding: 8rem 0 2.75rem; /* tambah offset buat header sticky di tablet */
  }
}

@media (max-width: 768px) {
  .sk-article {
    max-width: 100%;
    padding: 1.5rem 1.25rem 2.5rem;
    border-radius: 0;
    box-shadow: none;
  }

  .sk-article__title {
    font-size: 1.7rem;
  }
}

/* =========================================
   Heading dalam isi artikel
   ========================================= */

/* H2 di konten artikel */
.sk-article__content h2 {
  font-size: 1.45rem;     /* sedikit lebih kecil dari H1 */
  font-weight: 600;       /* turunin dari 700 biar gak terlalu bold */
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
}

/* H3 di konten artikel */
.sk-article__content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.4;
}

/* Responsif: kecilkan lagi di mobile */
@media (max-width: 768px) {
  .sk-article__content h2 {
    font-size: 1.25rem;
  }

  .sk-article__content h3 {
    font-size: 1.05rem;
  }
}

/* =========================================
   Breadcrumb & meta
   ========================================= */
.sk-breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  opacity: 0.7;
  line-height: 1.3;  
}

.sk-breadcrumb a {
  text-decoration: none;
}

.sk-breadcrumb a:hover {
  color: var(--sk-link-hover);
}

.sk-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  opacity: 0.85;
}

.sk-meta__item {}

/* Update history */
.sk-article__update {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.sk-article__update-note {
  margin: 0.25rem 0 0;
}

/* Versi mobile – sedikit lebih rapat dan kecil */
@media (max-width: 768px) {
  .sk-breadcrumb {
    font-size: 0.8rem;
    line-height: 1.2;
  }
}

/* =========================================
   Quick Summary, TOC, FAQ
   ========================================= */

/* === QUICK SUMMARY === */
.sk-qs {
  border-radius: 14px;
  overflow: hidden; /* head & body nyatu rapi */
  border: 1px solid #ececf7;
  background: #fafafe;
  margin: 2rem 0 1.5rem;
}

/* Head Quick Summary */
.sk-qs__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  background: linear-gradient(116deg, #4a2b0869, rgba(255, 255, 255, 0.98))
}

.sk-qs__title {
  font-size: 1rem;
  margin: 0;
}

/* Body Quick Summary */
.sk-qs__body {
  padding: 0.75rem 1.25rem 1rem;
}

.sk-qs__intro {
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}

/* Kalau Quick Summary disajikan sebagai <ul><li>…</li></ul> */
.sk-qs__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  list-style: disc;
}

.sk-qs__list li {
  margin: 0.2rem 0;
}

/* Fallback: kalau ternyata isinya masih berupa paragraf tanpa <ul>,
   setiap paragraf setelah intro diberi bullet. */
.sk-qs__body p + p {
  position: relative;
  padding-left: 1rem;
  margin: 0.2rem 0;
}

.sk-qs__body p + p::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.45em;
  font-size: 0.7rem;
}

/* Deskripsi kecil di bawah header Quick Summary */
.sk-qs__note {
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem 0.4rem; /* sejajar dengan body */
  margin: 0;
  margin-bottom: 10px;
  line-height: 1.2em;
  color: #555c6a;
}

/* Di mobile sedikit lebih kompak */
@media (max-width: 768px) {
  .sk-qs__note {
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem 0.35rem;
  }
  .sk-qs-title.sk-qs__title{
    font-size: 1rem!important;
  }
}

/* === TOC / DAFTAR ISI === */
.sk-toc {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid #ececf7;
  background: #fafafe;
}

/* Head TOC */
.sk-toc__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: #f0eefb;
}

.sk-toc__title {
  font-size: 1rem;
  margin: 0;
}

/* Body TOC */
.sk-toc__body {
  padding: 0.75rem 1.25rem 1rem;
}

/* List TOC: pakai nomor */
.sk-toc__list {
  list-style: decimal;
  padding-left: 1.3rem;
  margin: 0;
}

.sk-toc__item {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}

/* H3 sebagai child: tanpa nomor, pakai dash */
.sk-toc__item--child {
  list-style: none;
  padding-left: 1rem;
  opacity: 0.85;
  position: relative;
}

.sk-toc__item--child::before {
  content: "–";
  position: absolute;
  left: 0;
}

/* === FAQ BLOCK (fix header) === */
.sk-faq {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ececf7;
  background: #fafafe;          /* body FAQ */
  margin: 2.5rem 0 1.5rem;      /* jarak dari paragraf terakhir */
}

/* HEADER FAQ SEBENARNYA: <header class="sk-faq__header"> */
.sk-faq__header {
  background: linear-gradient(116deg, #4a2b0869, rgba(255, 255, 255, 0.98));
  padding: 1rem 1.4rem 0.95rem; /* supaya gak mepet border */
  border-bottom: 1px solid #ececf7;
}

/* Judul di dalam header */
.sk-faq__header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

/* List FAQ */
.sk-faq__list {
  list-style: none;
  margin: 0;
  padding: 0.7rem 1.4rem 0.9rem;
  counter-reset: skFaq;
  background: #fafafe;
}

.sk-faq__item {
  border-bottom: 1px solid #e1e1ef;
  padding: 0.45rem 0;
  counter-increment: skFaq;
}

/* Pertanyaan */
.sk-faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 0.75rem;
  padding: 0.35rem 0 0.35rem 2.1rem; /* ruang kiri untuk nomor */
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

/* Nomor 1., 2., 3., ... */
.sk-faq__question::before {
  content: counter(skFaq) ".";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Jawaban */
.sk-faq__answer {
  font-size: 0.9rem;
  margin: 0.35rem 0 0.6rem;
  padding-left: 2.1rem;   /* sejajar dengan teks pertanyaan */
  color: #555c6a;
}

.sk-faq__answer.is-collapsed {
  display: none;
}

/* Mobile tweak */
@media (max-width: 768px) {
  .sk-faq__header {
    padding: 0.85rem 1.1rem;
  }

  .sk-faq__header h2 {
    font-size: 1.02rem;
  }

  .sk-faq__list {
    padding: 0.6rem 1.1rem 0.85rem;
  }

  .sk-faq__question {
    font-size: 0.9rem;
    padding-left: 1.9rem;
  }

  .sk-faq__answer {
    font-size: 0.88rem;
    padding-left: 1.9rem;
  }
}

/* ==== TOC: head + body (sesuai permintaan) ==== */
.sk-toc {
  border-radius: 14px;
  overflow: hidden;            /* supaya head & body nyatu */
  margin-bottom: 1.25rem;
  border: 1px solid #ececf7;
  background: #fafafe;
}

/* Head: sedikit lebih gelap */
.sk-toc__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: #f0eefb;         /* lebih gelap dari body */
}

.sk-toc__title {
  font-size: 1rem;
  margin: 0;
}

/* Body: daftar isi */
.sk-toc__body {
  padding: 0.75rem 1.25rem 1rem;
}

/* Toggle (dipakai Quick Summary, TOC, FAQ) */
.sk-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.sk-toggle__icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #3f1a13;
}

/* Label "Tampilkan / Sembunyikan" */
.sk-toggle__label--show,
.sk-toggle__label--hide {
  display: inline;
}

.sk-toggle[aria-expanded="true"] .sk-toggle__label--show {
  display: none;
}

.sk-toggle[aria-expanded="false"] .sk-toggle__label--hide {
  display: none;
}

/* Target collapse (Quick Summary body, TOC body, FAQ answer) */
.sk-toggle-target {
  margin-top: 0.75rem;
}

.sk-toggle-target.is-collapsed {
  display: none;
}

/* TOC list: pakai nomor */
.sk-toc__list {
  list-style: decimal;        /* tampilkan 1., 2., 3. */
  padding-left: 1.3rem;       /* ruang untuk nomor */
  margin: 0;
}

.sk-toc__item {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}

/* Child item (H3) – tanpa nomor, pakai dash kecil + indent */
.sk-toc__item--child {
  list-style: none;
  padding-left: 1rem;
  opacity: 0.85;
  position: relative;
}

.sk-toc__item--child::before {
  content: "–";
  position: absolute;
  left: 0;
}

.sk-toc__item--child {
  padding-left: 1rem;
  opacity: 0.85;
}

/* Layout Archive Grid */
.sk-archive-layout {
    padding: 50px 0;
}

.sk-archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.sk-archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Grid System */
.sk-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Card Style */
.sk-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.sk-card__thumbnail-link {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.sk-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sk-card:hover .sk-card__img {
    transform: scale(1.05);
}

.sk-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sk-card__cat {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #2980b9; /* Ganti sesuai warna brand sosiakita */
    margin-bottom: 10px;
    text-decoration: none;
}

.sk-card__title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 15px;
    margin-top: 0;
}

.sk-card__title a {
    color: #333;
    text-decoration: none;
}

.sk-card__excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1; /* Supaya footer card rata bawah */
}

.sk-meta__date {
    font-size: 0.85rem;
    color: #999;
}

/* Pagination Style */
.sk-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.sk-pagination .page-numbers {
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.sk-pagination .page-numbers.current,
.sk-pagination .page-numbers:hover {
    background: var(--sk-accent);
    color: #fff;
    border-color: var(--sk-accent);
}

/* 404 Styling */
.sk-404-container {
    padding: 80px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sk-404-content {
    max-width: 600px;
    margin: 0 auto;
}

.sk-404-title {
    font-size: 3rem;
    margin: 20px 0;
}

.sk-404-search {
    margin: 30px 0;
}

.sk-btn-primary {
    background: #2980b9;
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ========================
   404 Page Styles Update
   ======================== */

/* 1. Styling Tombol "Kembali ke Beranda" */
.sk-btn-home-gradient {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px; /* Membuat tombol bulat */
    
    /* Warna Text Hitam */
    color: #000 !important; 
    
    /* Background Putih & Border Gradient Trick */
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(to right, #562483, #FF5C16, #FFC94C) border-box;
    border: 2px solid transparent; /* Border transparan agar gradient di belakangnya muncul */
    
    /* Transisi untuk efek hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect: Zoom Scale */
.sk-btn-home-gradient:hover {
    transform: scale(1.05); /* Zoom in 5% */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-decoration: none;
}

/* 2. Styling Tombol Search (Submit) */
.sk-404-search form {
    display: flex;
    justify-content: center;
    gap: 10px; /* Jarak antara input dan tombol */
}

/* Target input text pencarian agar rapi */
.sk-404-search input[type="search"],
.sk-404-search input[type="text"] {
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 10px 20px;
    min-width: 250px;
}

/* Target tombol submit search */
.sk-404-search input[type="submit"],
.sk-404-search button[type="submit"],
.sk-404-search .search-submit {
    /* Background Hitam, Tulisan Putih */
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
    font-weight: 600;
    cursor: pointer;
    
    /* Transisi Zoom */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover Effect Search: Zoom Scale */
.sk-404-search input[type="submit"]:hover,
.sk-404-search button[type="submit"]:hover,
.sk-404-search .search-submit:hover {
    transform: scale(1.1); /* Zoom in 10% */
    background-color: #333 !important; /* Sedikit lebih terang saat hover */
}
/* ============================
   Archive / Category / Tag
   ============================ */
.nw-archive {
  max-width: 1040px;
  margin: 0 auto 4rem;
  padding: 2.5rem 1.5rem 0;
}

@media (min-width: 1024px) {
  .nw-archive {
    padding: 3rem 0 0;
  }
}

.nw-archive__header {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.75rem 1.75rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.04);
}

.nw-archive__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a37543;
  margin-bottom: 0.25rem;
}

.nw-archive__title {
  font-size: 1.7rem;
  line-height: 1.2;
  color: #341c01;
  margin: 0 0 0.5rem;
}

.nw-archive__description {
  font-size: 0.95rem;
  color: #4b5563;
  margin-top: 0.5rem;
}

.nw-archive__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #2a100b;
  color: #fdf7ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* Grid daftar artikel */
.nw-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.nw-archive-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.nw-archive-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: #111827;
}

.nw-archive-card__thumb img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.nw-archive-card__body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.nw-archive-card__meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.nw-archive-card__cat {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.nw-archive-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0.1rem 0 0.35rem;
}

.nw-archive-card__excerpt {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0;
}

.nw-archive-card__inner:hover .nw-archive-card__title {
  color: #341c01;
}

/* Pagination */
.nw-archive__pagination {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.nw-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  margin: 0 4px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #374151;
  border: 1px solid transparent;
}

.nw-archive__pagination .page-numbers.current {
  background: #2a100b;
  color: #fdf7ea;
}

.nw-archive__pagination .page-numbers:hover:not(.current) {
  border-color: #e5e7eb;
  color: #111827;
}

/* Empty state */
.nw-archive__empty {
  font-size: 0.95rem;
  color: #4b5563;
}

/* ============================
   404 Page
   ============================ */
.nw-404 {
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 3rem 1.5rem;
  text-align: left;
}

.nw-404__badge {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #2a100b;
  color: #fdf7ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 1rem;
}

.nw-404__title {
  font-size: 2rem;
  color: #341c01;
  margin: 0 0 0.5rem;
}

.nw-404__lead {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.nw-404__search {
  margin-bottom: 2rem;
}

.nw-404__search .search-form {
  display: flex;
  gap: 0.5rem;
}

.nw-404__search input[type="search"] {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
}

.nw-404__search input[type="submit"] {
  border-radius: 999px;
  border: none;
  background: #2a100b;
  color: #fdf7ea;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.nw-404__search input[type="submit"]:hover {
  background: #341c01;
}

.nw-404__section-title {
  font-size: 0.9rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.nw-404__recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nw-404__recent-list li {
  margin-bottom: 0.4rem;
}

.nw-404__recent-list a {
  text-decoration: none;
  color: #111827;
}

.nw-404__recent-list a:hover {
  color: #341c01;
}
