/*
Theme Name: Divi Child - Arthique
Theme URI: https://arthique.com
Description: Custom Divi Child Theme for Arthique
Author: Dwija Arsana
Author URI: https://arthique.com
Template: Divi
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   Custom Styles
   ========================================================================== */

/* ======================================================
   DIVI 5: UL & OL MENJOROK KELUAR HALUS (SOFT OUTDENT)
   ====================================================== */

/* --- Tampilan Desktop & Tablet (Layar > 767px) --- */
@media all and (min-width: 768px) {
  .et_pb_module ul, 
  .et_pb_module ol {
    list-style-position: outside !important;
    padding-left: 1.25rem !important; /* Ruang untuk nomor/bullet */
     /*margin-left: -1.25rem !important; Menarik nomor/bullet sedikit ke luar kontainer */
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    color: inherit;
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* Styling Dasar Item List (Semua Ukuran Layar) */
.et_pb_module ul li, 
.et_pb_module ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.et_pb_module ul li:last-child, 
.et_pb_module ol li:last-child {
  margin-bottom: 0;
}

/* Gaya Bullet & Nomor */
.et_pb_module ul {
  list-style-type: disc;
}

.et_pb_module ol {
  list-style-type: decimal;
}

/* --- Sub-list (List Bertingkat/Nested) --- */
.et_pb_module ul ul, 
.et_pb_module ul ol, 
.et_pb_module ol ul, 
.et_pb_module ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: 0 !important;      /* Reset margin negatif untuk sub-list */
  padding-left: 1.5rem !important; /* Jarak berjenjang ke dalam */
}

.et_pb_module ul ul {
  list-style-type: circle;
}

.et_pb_module ol ol {
  list-style-type: lower-alpha;
}


/* ======================================================
   SUPPORT MOBILE (Layar HP <= 767px)
   ====================================================== */

@media all and (max-width: 767px) {
  .et_pb_module ul, 
  .et_pb_module ol {
    list-style-position: outside !important;
    margin-left: 0 !important;       /* Batalkan penarikan negatif agar tidak terpotong tepi layar */
    padding-left: 1.25rem !important; /* Ruang aman standar untuk HP */
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    color: inherit;
    font-size: 1rem;
    line-height: 1.7;
  }
}

/*=============================================================
 *  mebuat thumbnail hitam putih
 * =============================================================*/
/* ======================================================
   DIVI 5: BLOG CARD BLACK & WHITE TO COLOR ON HOVER
   ====================================================== */

/* 1. Efek Hitam Putih pada Keseluruhan Blog Card / Gambar */
.et_pb_blog_grid .et_pb_post,
.et_pb_posts .et_pb_post {
  transition: all 0.4s ease-in-out !important; /* Efek transisi halus */
}

.et_pb_blog_grid .entry-featured-image-url,
.et_pb_posts .entry-featured-image-url {
  filter: grayscale(100%); /* Mengubah gambar menjadi hitam putih */
  transition: filter 0.4s ease-in-out, transform 0.4s ease-in-out !important;
  overflow: hidden;
}

/* Optional: Membuat teks judul sedikit redup sebelum di-hover */
.et_pb_post .entry-title a {
  transition: color 0.3s ease !important;
}

/* 2. Efek HOVER: Berubah Menjadi Berwarna & Zoom Halus */
.et_pb_blog_grid .et_pb_post:hover .entry-featured-image-url,
.et_pb_posts .et_pb_post:hover .entry-featured-image-url {
  filter: grayscale(0%); /* Kembalikan warna asli */
  transform: scale(1.03); /* Efek sedikit membesar saat hover (opsional) */
}

/* 3. Efek Hover Card (Mengangkat Card & Bayangan) */
.et_pb_blog_grid .et_pb_post:hover,
.et_pb_posts .et_pb_post:hover {
  transform: translateY(-5px); /* Card terangkat sedikit ke atas */
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15) !important; /* Bayangan halus */
}


/* ========================================================
   CUSTOM MODERN BURGER MENU DIVI DEFAULT
   ======================================================== */

/* 1. Sembunyikan ikon font bawaan Divi */
.mobile_menu_bar:before {
    content: "" !important;
    display: none !important;
}

/* 2. Buat kontainer ikon burger kustom */
.mobile_menu_bar {
    position: relative;
    width: 30px;
    height: 22px;
    display: inline-block;
    cursor: pointer;
    padding: 0 !important;
    background: transparent;
}

/* 3. Garis Atas dan Bawah menggunakan Pseudo-elements */
.mobile_menu_bar:before,
.mobile_menu_bar:after {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px; /* Ketebalan garis */
    background-color: #333333; /* Warna garis (Sesuaikan dengan desain Anda) */
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile_menu_bar:before {
    top: 5px;
}

.mobile_menu_bar:after {
    bottom: 5px;
}

/* 4. Garis Tengah (menggunakan trik background shadow) */
.mobile_menu_bar {
    border-top: 2px solid #333333; /* Garis Paling Atas */
    border-bottom: 2px solid #333333; /* Garis Paling Bawah */
}

/* Efek Hover: Garis memanjang / sedikit bergeser */
.mobile_menu_bar:hover:before {
    transform: translateY(-2px);
}
.mobile_menu_bar:hover:after {
    transform: translateY(2px);
}

/* 5. Tampilan Saat Menu Dibuka (Animasi Silang "X") */
.mobile_nav.opened .mobile_menu_bar {
    border-color: transparent !important; /* Sembunyikan garis luar */
}

.mobile_nav.opened .mobile_menu_bar:before {
    top: 10px;
    transform: rotate(45deg);
}

.mobile_nav.opened .mobile_menu_bar:after {
    bottom: 10px;
    transform: rotate(-45deg);
} /* ======================================================
   DIVI 5: UL &amp; OL MENJOROK KELUAR HALUS (SOFT OUTDENT)
   ====================================================== */

/* --- Tampilan Desktop &amp; Tablet (Layar &gt; 767px) --- */
@media all and (min-width: 768px) {
  .et_pb_module ul, 
  .et_pb_module ol {
    list-style-position: outside !important;
    padding-left: 1.25rem !important; /* Ruang untuk nomor/bullet */
     /*margin-left: -1.25rem !important; Menarik nomor/bullet sedikit ke luar kontainer */
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    color: inherit;
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* Styling Dasar Item List (Semua Ukuran Layar) */
.et_pb_module ul li, 
.et_pb_module ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.et_pb_module ul li:last-child, 
.et_pb_module ol li:last-child {
  margin-bottom: 0;
}

/* Gaya Bullet &amp; Nomor */
.et_pb_module ul {
  list-style-type: disc;
}

.et_pb_module ol {
  list-style-type: decimal;
}

/* --- Sub-list (List Bertingkat/Nested) --- */
.et_pb_module ul ul, 
.et_pb_module ul ol, 
.et_pb_module ol ul, 
.et_pb_module ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: 0 !important;      /* Reset margin negatif untuk sub-list */
  padding-left: 1.5rem !important; /* Jarak berjenjang ke dalam */
}

.et_pb_module ul ul {
  list-style-type: circle;
}

.et_pb_module ol ol {
  list-style-type: lower-alpha;
}


/* ======================================================
   SUPPORT MOBILE (Layar HP &lt;= 767px)
   ====================================================== */

@media all and (max-width: 767px) {
  .et_pb_module ul, 
  .et_pb_module ol {
    list-style-position: outside !important;
    margin-left: 0 !important;       /* Batalkan penarikan negatif agar tidak terpotong tepi layar */
    padding-left: 1.25rem !important; /* Ruang aman standar untuk HP */
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    color: inherit;
    font-size: 1rem;
    line-height: 1.7;
  }
}

/*=============================================================
 *  mebuat thumbnail hitam putih
 * =============================================================*/
/* ======================================================
   DIVI 5: BLOG CARD BLACK &amp; WHITE TO COLOR ON HOVER
   ====================================================== */

/* 1. Efek Hitam Putih pada Keseluruhan Blog Card / Gambar */
.et_pb_blog_grid .et_pb_post,
.et_pb_posts .et_pb_post {
  transition: all 0.4s ease-in-out !important; /* Efek transisi halus */
}

.et_pb_blog_grid .entry-featured-image-url,
.et_pb_posts .entry-featured-image-url {
  filter: grayscale(100%); /* Mengubah gambar menjadi hitam putih */
  transition: filter 0.4s ease-in-out, transform 0.4s ease-in-out !important;
  overflow: hidden;
}

/* Optional: Membuat teks judul sedikit redup sebelum di-hover */
.et_pb_post .entry-title a {
  transition: color 0.3s ease !important;
}

/* 2. Efek HOVER: Berubah Menjadi Berwarna &amp; Zoom Halus */
.et_pb_blog_grid .et_pb_post:hover .entry-featured-image-url,
.et_pb_posts .et_pb_post:hover .entry-featured-image-url {
  filter: grayscale(0%); /* Kembalikan warna asli */
  transform: scale(1.03); /* Efek sedikit membesar saat hover (opsional) */
}

/* 3. Efek Hover Card (Mengangkat Card &amp; Bayangan) */
.et_pb_blog_grid .et_pb_post:hover,
.et_pb_posts .et_pb_post:hover {
  transform: translateY(-5px); /* Card terangkat sedikit ke atas */
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15) !important; /* Bayangan halus */
}


/* ========================================================
   CUSTOM MODERN BURGER MENU DIVI DEFAULT
   ======================================================== */

/* 1. Sembunyikan ikon font bawaan Divi */
.mobile_menu_bar:before {
    content: &quot;&quot; !important;
    display: none !important;
}

/* 2. Buat kontainer ikon burger kustom */
.mobile_menu_bar {
    position: relative;
    width: 30px;
    height: 22px;
    display: inline-block;
    cursor: pointer;
    padding: 0 !important;
    background: transparent;
}

/* 3. Garis Atas dan Bawah menggunakan Pseudo-elements */
.mobile_menu_bar:before,
.mobile_menu_bar:after {
    content: &quot;&quot; !important;
    display: block !important;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px; /* Ketebalan garis */
    background-color: #333333; /* Warna garis (Sesuaikan dengan desain Anda) */
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile_menu_bar:before {
    top: 5px;
}

.mobile_menu_bar:after {
    bottom: 5px;
}

/* 4. Garis Tengah (menggunakan trik background shadow) */
.mobile_menu_bar {
    border-top: 2px solid #333333; /* Garis Paling Atas */
    border-bottom: 2px solid #333333; /* Garis Paling Bawah */
}

/* Efek Hover: Garis memanjang / sedikit bergeser */
.mobile_menu_bar:hover:before {
    transform: translateY(-2px);
}
.mobile_menu_bar:hover:after {
    transform: translateY(2px);
}

/* 5. Tampilan Saat Menu Dibuka (Animasi Silang &quot;X&quot;) */
.mobile_nav.opened .mobile_menu_bar {
    border-color: transparent !important; /* Sembunyikan garis luar */
}

.mobile_nav.opened .mobile_menu_bar:before {
    top: 10px;
    transform: rotate(45deg);
}

.mobile_nav.opened .mobile_menu_bar:after {
    bottom: 10px;
    transform: rotate(-45deg);
} 
