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

/* Import parent theme style.css */
@import url("../Divi/style.css");

/* =========================================
   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: #ffffff;
}

/* 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: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  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;
  }
}

/* =========================================
   Sosial share + icon (Bootstrap Icons)
   ========================================= */
.sk-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.sk-share__label {
  margin-right: 0.5rem;
}

.sk-share__btn {
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Bulatan + icon di dalamnya */
.sk-share__icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--sk-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sk-share__icon i {
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
}

/* Hover kecil */
.sk-share__btn:hover .sk-share__icon {
  transform: translateY(-1px);
}

.sk-share__btn--copy.is-copied .sk-share__icon {
  box-shadow: 0 0 0 2px rgba(255, 44, 89, 0.3);
}

/* =========================================
   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: #f0eefb; /* sedikit lebih gelap, mirip TOC */
}

.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;
  }
}

/* === 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: #f0eefb;          /* beda dengan body */
  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: var(--sk-accent);
}

/* 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;
}


/* =========================================
   Gambar & blockquote
   ========================================= */
.sk-hero {
  margin: 1.5rem 0 1.25rem;
}

.sk-hero__img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.sk-hero__caption {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  opacity: 0.8;
}

/* Gambar di dalam konten */
.sk-article__content figure {
  margin: 1.5rem 0;
  text-align: center;
}

.sk-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.sk-article__content figcaption {
  font-size: 0.8rem;
  margin-top: 0.35rem;
  opacity: 0.75;
}

/* Blockquote (sesuai brief) */
.sk-article__content blockquote {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.2rem 1.6rem;
  border-right: 4px solid #3e1066;
  background: #f8f8fc;
  font-style: italic;
}

.sk-article__content blockquote::before {
  content: "❝";
  position: absolute;
  top: -12px;
  left: 12px;
  font-size: 2.5rem;
  color: #FF2C59;
  opacity: 0.8;
}

.sk-article__content blockquote a {
  color: #3e1066;
}

/* =========================================
   Tags, Author
   ========================================= */
.sk-tags {
  margin: 1.5rem 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.sk-tags__label {
  margin-right: 0.25rem;
}

.sk-tag {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  font-size: 0.85rem;
  background: #ffffff;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Hover Tag – sedikit highlight */
.sk-tag:hover {
  background: #f4ecff;
  border-color: #3e1066;
  color: #3e1066;
}

.sk-author {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 1.5rem;
}

.sk-author__avatar img {
  border-radius: 50%;
}

.sk-author__name {
  font-weight: 600;
  text-decoration: none;
}

.sk-author__bio {
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

/* =========================================
   Related posts (2x2 grid + hover zoom)
   ========================================= */
.sk-related {
  margin: 2rem 0 1.5rem;
}

.sk-related__title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.sk-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sk-related__item {
  border-radius: 16px;
  padding: 0.6rem;
  border: 1px solid #eee;
  background: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sk-related__thumb {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 0.4rem;
  transition: transform 0.18s ease;
}

/* Hover: card naik sedikit & gambar sedikit zoom */
.sk-related__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  border-color: #e2ddff;
}

.sk-related__item:hover .sk-related__thumb {
  transform: scale(1.03);
}

.sk-related__item-title {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.sk-related__item-title a {
  text-decoration: none;
}

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

.sk-related__meta {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* =========================================
   Komentar: submit gradient + captcha
   ========================================= */
#commentform input[type="submit"] {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(to right, #562483, #FF5C16, #FFC94C);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  color: #1A1F2B;
}

#commentform input[type="submit"]:hover {
  color: var(--sk-link-hover);
}

/* Field captcha komentar */
.comment-form-captcha {
  margin-top: 0.75rem;
}

.comment-form-captcha label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.comment-form-captcha input[type="number"] {
  max-width: 120px;
}

/* 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 */
}

/* =========================================
   FIX: Bullets & numbering di konten artikel
   (Override reset Divi yang mematikan list-style)
   ========================================= */
.sk-article__content ul,
.sk-article__content ol {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.35rem;               /* ruang marker */
  list-style-position: outside;
}

.sk-article__content ul {
  list-style: disc !important;         /* override Divi */
}

.sk-article__content ol {
  list-style: decimal !important;      /* override Divi */
}

.sk-article__content li {
  margin: 0.25rem 0;
}

/* Nested list biar rapi */
.sk-article__content ul ul { list-style: circle !important; margin-top: 0.35rem; }
.sk-article__content ul ul ul { list-style: square !important; }

.sk-article__content ol ol { list-style: lower-alpha !important; margin-top: 0.35rem; }
.sk-article__content ol ol ol { list-style: lower-roman !important; }