/*
 * Nama Tema: Elite News Child
 * URI Tema: https://idm.web.id/
 * Deskripsi: Tema anak untuk Elite News.
 * Author: IDM
 * URI Author: https://idm.web.id/
 * Template: elite-news
 * Versi: 1.0.0
 * Text Domain: elite-news-child
 */


/* ==========================================================================
   TATA LETAK HALAMAN STATIS (Disesuaikan dari Single Post)
   ========================================================================== */

/* Gaya untuk elemen article di halaman statis */
body.page .site-main > article {
	padding: 10px; /* Menambahkan padding sebesar 10px */
	box-shadow: var(--shadow); /* Menambahkan bayangan */
	background-color: var(--clr-background); /* Menyamakan warna latar belakang */
	border-radius: var(--border-radius-all); /* Memberikan sudut membulat */
}

/* Gaya untuk div detail postingan di halaman statis */
body.page .site-main > article .mag-post-detail {
	padding: 0; /* Menghilangkan padding */
}

/* Gaya untuk header di halaman statis */
body.page .site-main > article .mag-post-detail header .entry-title {
	margin-bottom: 10px; /* Menambahkan margin bawah */
}

/* Gaya untuk thumbnail postingan di halaman statis */
body.page .site-main > article .post-thumbnail {
	display: block; /* Menampilkan sebagai blok */
	line-height: 0; /* Mengatur tinggi baris menjadi 0 */
}

body.page .site-main > article .post-thumbnail img {
	width: 100%; /* Lebar penuh */
	transition: all 0.3s linear; /* Transisi halus saat ada perubahan */
}

/* Gaya untuk konten di halaman statis */
body.page .site-main > article .entry-content {
	margin-top: 0; /* Menghilangkan margin atas */
}

/* Gaya untuk judul di halaman statis */
body.page .site-main article .entry-header .entry-title {
	font-size: var(--font-size-lg); /* Ukuran font besar */
	font-family: var(--font-main); /* Menggunakan font utama */
	margin-top: 0; /* Menghilangkan margin atas */
	margin-bottom: 1.3rem; /* Menambahkan margin bawah */
}

/* Gaya untuk tautan di judul */
body.page .site-main article .entry-header .entry-title a {
	text-decoration: none; /* Menghilangkan garis bawah */
	color: var(--clr-foreground); /* Warna teks utama */
}

/* Efek hover pada tautan di judul */
body.page .site-main article .entry-header .entry-title a:focus,
body.page .site-main article .entry-header .entry-title a:hover {
	color: var(--theme-color); /* Mengubah warna saat di-hover */
}


.lusi-random-video iframe {
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}


/* Menambahkan jarak (gap) antara konten utama dan sidebar di halaman single post */
@media (min-width: 992px) {
    .right-sidebar .ascendoor-page {
        display: grid !important;
        grid-gap: 30px !important; /* Anda bisa sesuaikan nilai 30px ini */
        grid-template-columns: auto 25% !important; /* Memastikan kolom kembali ke tata letak default */
    }
}

/* Jika sidebar menempel di bagian atas, ini akan memastikan posisinya benar */
@media (min-width: 992px) {
    .right-sidebar .ascendoor-page .widget-area {
        position: sticky !important;
        top: 40px !important;
        align-self: flex-start !important;
    }
}

/* Aturan ini akan memastikan sidebar tambahan memiliki tata letak yang benar */
.right-sidebar .ascendoor-wrapper .ascendoor-page .widget-area #secondary-single {
    margin-top: 20px; 
    padding: 0;
    box-shadow: none; 
}


#secondary .widget-area #secondary-single {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}
.kategori-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px;
}

.kategori-post-item {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.kategori-post-item:hover {
    transform: scale(1.03);
}

.kategori-post-item .post-thumb img,
.kategori-post-item .no-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #333;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.kategori-post-item .post-info {
    padding: 10px;
}

.kategori-post-item .post-title {
    color: #0cf;
    font-weight: bold;
    text-decoration: none;
    display: block;
}

.kategori-post-item .post-title:hover {
    color: #09f;
}








/* ==========================================================================
   WIDGET PENGALIH TEMA (THEME TOGGLE) - GAYA KONTRAS
   ========================================================================== */

.theme-toggle-container{
    text-align: center;
}

/* Tampilan Tombol di Tema TERANG (Tombol dibuat GELAP) */
.theme-toggle-button {
    background-color: #242526; /* Background gelap */
    color: #e4e6eb;            /* Ikon (bulan) terang */
    border: 1px solid #4a4b4c;
    width: 10mm;
    height: 10mm;
    padding: 2;
    border-radius: 50% !important;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.theme-toggle-button:hover {
    background-color: #3a3b3c; /* Background sedikit lebih terang saat hover */
    transform: scale(1.1); /* Efek zoom kecil saat hover */
}

/* Tampilan Tombol di Tema GELAP (Tombol dibuat TERANG) */
body.dark-theme .theme-toggle-button {
    background-color: #f0f0f0; /* Background terang */
    color: #333;            /* Ikon (matahari) gelap */
    border: none;
}

body.dark-theme .theme-toggle-button:hover {
    background-color: #ffffff; /* Background lebih putih saat hover */
}

/* Aturan untuk menampilkan ikon (tidak perlu diubah) */
.theme-toggle-button .icon-light,
.theme-toggle-button .icon-dark {
    font-size: 15px;
    line-height: 1;
    margin: 0;
}

.theme-toggle-button .icon-light { display: none; }
.theme-toggle-button .icon-dark { display: inline-block; }

body.dark-theme .theme-toggle-button .icon-light { display: inline-block; }
body.dark-theme .theme-toggle-button .icon-dark { display: none; }
/* ==========================================================================
   TATA LETAK HEADER (BAGIAN KANAN)
   ========================================================================== */

/* --- BLOK UTAMA & SATU-SATUNYA UNTUK HEADER BAWAH --- */
header.site-header .bottom-header-part .bottom-header-wrapper .bottom-header-end {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 15px !important;
    white-space: nowrap !important;
}

/* Pengurutan Item Header (satu-satunya referensi) */
.header-search { order: 1; }
.theme-toggle-shortcode-wrapper { order: 2; }
.language-selector-wrapper { order: 3; }
.login-logout-links-wrapper { order: 4; }

/* Ikon Pencarian */
.header-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 30px;
}

/* GTranslate (Bendera Bahasa) */
.language-selector-wrapper .gtranslate_wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

#google_translate_element2 {
    display: none !important;
}

/* Tombol Mode Gelap/Terang */
.theme-toggle-shortcode-wrapper .theme-toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

/* Link Login & Register (satu-satunya referensi) */
.login-logout-links-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-logout-link {
    text-decoration: none;
    color: var(--clr-foreground);
    font-size: 0.9375rem;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login-logout-link:hover,
.login-logout-link:focus {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(var(--clr-foreground-rgb), 0.05);
}

.register-link {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-color: var(--primary-color);
    padding: 8px 12px;
    font-weight: bold;
}

.register-link:hover,
.register-link:focus {
    opacity: 0.9;
    color: var(--white) !important;
    background-color: var(--primary-color);
}

/* ==========================================================================
   GAYA TEMA GELAP (DARK THEME)
   ========================================================================== */

body.dark-theme {
    background-color: #18191a;
    color: #e4e6eb;
}

body.dark-theme a {
    color: #8ab4f8;
}

body.dark-theme a:hover {
    color: #a7caff;
}

body.dark-theme .entry-content,
body.dark-theme .page-content,
body.dark-theme .comments-area {
    color: #e4e6eb;
}

body.dark-theme .site-header,
body.dark-theme .site-footer {
    background-color: #242526;
    color: #e4e6eb;
}

body.dark-theme #secondary {
    background-color: #242526;
    color: #e4e6eb;
}

body.dark-theme .widget-title {
    color: #fff;
    border-bottom: 1px solid #444;
}

body.dark-theme .entry-meta a,
body.dark-theme .cat-links a,
body.dark-theme .tags-links a {
    color: #b0b3b8;
}

body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme input[type="url"],
body.dark-theme input[type="password"],
body.dark-theme input[type="search"],
body.dark-theme textarea {
    background-color: #3a3b3c;
    border-color: #4a4b4c;
    color: #e4e6eb;
}

body.dark-theme input[type="submit"],
body.dark-theme button {
    background-color: #007bff;
    color: #fff;
}



.ticker-wrap {
  display: flex;
  align-items: center;
  background: var(--primary-color);
  color: #fff;
  padding: 0.5rem;
  overflow: hidden;
  position: relative;
  font-family: sans-serif;
 border-radius: 10px;
}

.ticker-icon::before {
  content: "📰";
  font-size: 1.2rem;
  margin-right: 0.75rem;
  animation: shake 1s infinite alternate;
}

.ticker {
  overflow: hidden;
  flex: 1;
}

.ticker-items {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
}

.ticker-items a {
  display: inline-block;
  margin-right: 2rem;
  color: #0ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ticker-items a:hover {
  color: #f0f;
  text-decoration: underline;
}

@keyframes scroll-left {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}



@keyframes shake {
  0% { transform: translateX(0); }
  100% { transform: translateX(3px); }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .ticker-items {
    animation-duration: 40s; /* agak lambat di mobile */
  }
  .ticker-items a {
    font-size: 0.9rem;
  }
}











/* ==========================================================================
   WIDGET DAFTAR POSTINGAN (DISPLAY POSTS LISTING)
   ========================================================================== */

.display-posts-listing .listing-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.display-posts-listing .listing-item:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.display-posts-listing .listing-item .image {
    flex-shrink: 0 !important;
    width: 50px !important;
    height: 50px !important;
    overflow: hidden !important;
    border-radius: var(--border-radius-all, 10px) !important;
    margin-right: 0 !important;
    text-align: left !important;
}

.display-posts-listing .listing-item .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: var(--border-radius-all, 10px) !important;
}

.display-posts-listing .listing-item .title {
    flex-grow: 1 !important;
    text-align: left !important;
    line-height: 1.3 !important;
    font-size: var(--font-size-sm, 0.8rem) !important;
    font-weight: 600 !important;
    color: var(--clr-foreground, #202124) !important;
    text-decoration: none !important;
}

.display-posts-listing .listing-item .title:hover,
.display-posts-listing .listing-item .title:focus {
    color: var(--theme-color, #165ee0) !important;
}

.widget_block p:empty {
    display: none !important;
}

.widget:not(.ascendoor-widget) ol li,
.widget:not(.ascendoor-widget) ul li {
    padding-bottom: 5px !important;
    margin-bottom: 5px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.widget_block ul.display-posts-listing li {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

/* ==========================================================================
   AREA BANNER
   ========================================================================== */

.banner-section-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.banner-posts {
    flex: 2;
    min-width: 300px;
}

.banner-adver-widget-area {
    flex: 1;
    min-width: 280px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: var(--clr-background) !important;
    box-shadow: var(--shadow) !important;
    border-radius: var(--border-radius-all) !important;
}

.banner-adver-widget-area .widget {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.banner-adver-widget-area .widget-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    text-align: center;
}

.banner-adver-widget-area .widget img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.banner-adver-widget-area .textwidget,
.banner-adver-widget-area .custom-html-widget {
    font-size: 0.95em;
    line-height: 1.5;
    color: #666;
}

.custom-banner-posts-wrapper {
    flex: 1;
    min-width: 280px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.custom-banner-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-post-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.custom-post-item:hover .custom-post-title {
    color: #007bff;
}

.custom-post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 3px;
}

.custom-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-post-title {
    font-size: 1em;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #333;
}



/* ==========================================================================
   HEADER TENGAH (LINK BLOG)
   ========================================================================== */

.middle-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    transition: background-color 0.3s ease;
}

.middle-header-wrapper a {
    color: var(--text-color-normal) !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 1.5em !important;
    font-family: "Open Sans", sans-serif !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    text-align: center;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    background-color: var(--primary-color);
    padding: 5px 15px !important;
    border-radius: 15px;
    transition: all 0.3s ease-out;
    line-height: 1.2;
}

.middle-header-wrapper a:hover,
.middle-header-wrapper a:focus {
    color: var(--white) !important;
    background-color: #165ee0;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
    transform: translateY(2px);
}

.middle-header-wrapper .bgheader-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}

.middle-header-wrapper .site-branding,
.middle-header-wrapper .mag-adver-part {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   IKON SOSIAL DI HEADER
   ========================================================================== */

.wp-block-social-links, .wp-block-social-links.has-normal-icon-size {
    font-size: 12px;
    padding-top: 8px;
    margin-top: 8px;
}

.top-header-right ul.social-links a {
    width: 5px !important;
    height: 5px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 5px !important;
}

.top-header-right ul.social-links a::before {
    font-size: 1rem !important;
}

.top-header-right ul.social-links {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ==========================================================================
   ATURAN RESPONSIVE (MEDIA QUERIES) YANG SUDAH DISATUKAN DAN DISEMPURNAKAN
   ========================================================================== */


@media (max-width: 767px) {
  /* Aturan dari max-width: 992px */
  .banner-section-wrapper {
    flex-direction: column;
  }
  .banner-posts,
  .banner-adver-widget-area,
  .custom-banner-posts-wrapper,
  .banner-editor-picks-section {
    flex: auto !important;
    width: 100% !important;
    margin: 0;
  }
  .banner-adver-widget-area {
    order: -1;
  }

 

  .middle-header-wrapper {
    width: 70%;
    height: 70%;
  }
  .bottom-header-end {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    width: 120% !important;
    margin-top: 5px !important;
    justify-content: center !important;
  }
  
  .bottom-header-end .login-logout-links-wrapper,
  .bottom-header-end .header-custom-button {
    order: unset !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }

.bottom-header-wrapper {
  gap: 20px !important;
}



  header.site-header .bottom-header-part .bottom-header-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    justify-content: space-between !important;
  }

  header.site-header .bottom-header-part .bottom-header-wrapper .bottom-header-end {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    width: 70% !important;
    margin-top: 0 !important;
  }
  header.site-header .bottom-header-part .bottom-header-wrapper .bottom-header-end > div {
    display: inline-flex !important;
    vertical-align: middle !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  
  header.site-header .bottom-header-part .bottom-header-wrapper .bottom-header-end .login-logout-links-wrapper {
    display: none !important;
  }

  



/* ==========================================================================
   KUSTOMISASI EFEK GAMBAR BERDASARKAN LOKASI
   ========================================================================== */











/* Solusi terakhir dan terkuat untuk memaksa gambar di Editor Picks menjadi bulat sempurna */
.banner-section.style-3 .editor-picks-wrapper.slick-initialized .mag-post-single.has-image.list-design .mag-post-img img {
    border-radius: 50% !important;
    aspect-ratio: 1/1 !important; /* Memastikan gambar berbentuk persegi */
    object-fit: cover !important; /* Agar gambar tidak terdistorsi */
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
}

/* Pastikan wadahnya juga bulat agar tidak ada sudut yang terlihat */
.banner-section.style-3 .editor-picks-wrapper.slick-initialized .mag-post-single.has-image.list-design .mag-post-img {
    border-radius: 50% !important;
    overflow: hidden !important;
}





/* Menargetkan Judul di dalam area arsip */
.magazine-inside-wrap .magazine-archive-layout .mag-post-title {
	/* Hapus properti ini, kita akan atur tinggi secara fleksibel dengan Flexbox */
	/* min-height: 50px!important; */
	overflow: hidden!important;
}

/* Menargetkan Cuplikan (Excerpt) di dalam area arsip */
.magazine-inside-wrap .magazine-archive-layout .mag-post-excerpt {
	/* Hapus properti ini */
	/* min-height: 70px!important; */
	/* overflow: hidden!important; */
}

/* Tambahkan aturan Flexbox untuk meratakan tinggi setiap kotak postingan */
.magazine-archive-layout.grid-layout article.mag-post-single {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.magazine-archive-layout.grid-layout .mag-post-detail {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Konten akan mengisi ruang yang tersedia */
}

.magazine-archive-layout.grid-layout .mag-post-excerpt {
    flex-grow: 1; /* Excerpt akan mengisi ruang yang tersedia */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Mendorong tombol "Baca Selengkapnya" ke bawah */
}

.magazine-archive-layout.grid-layout .mag-post-excerpt p {
    flex-grow: 1;
}

body.single-post .entry-content img,
body.single-post .entry-content picture img,
body.single-post .entry-content .lazyloaded,
body.single-post .entry-content .ls-lazy {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 20px !important;
  display: block !important;
  transition: transform .9s ease !important;
}

@media (min-width: 481px) {
  body.single-post .entry-content img:hover,
  body.single-post .entry-content picture img:hover,
  body.single-post .entry-content .lazyloaded:hover,
  body.single-post .entry-content .ls-lazy:hover {
    transform: scale(1.15) !important;
  }
}



/* ==========================================================================
   Jetpack Related Posts Final Styling (Pembaruan Paling Akurat)
   ========================================================================== */

/* Aturan untuk memaksa Related Posts agar tampil dan berfungsi sebagai grid */
#jp-relatedposts { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    padding-top: 1em !important; 
    margin: 1em 0 !important;
}

/* Kotak utama setiap postingan */
#jp-relatedposts .jp-relatedposts-post {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-color: var(--clr-background) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important; /* Pastikan margin default hilang */
    padding: 0 !important; /* Pastikan padding default hilang */
}

/* Bungkus anchor dibikin rounded dan kliping gambar di dalamnya */
#jp-relatedposts .jp-relatedposts-post-a { 
    display: block !important; 
    border-radius: 12px !important; 
    overflow: hidden !important; 
    line-height: 0 !important;
}

/* Gambar ikut mewarisi radius dan tampil rapi full lebar */
#jp-relatedposts .jp-relatedposts-post-img { 
    display: block !important; 
    width: 100% !important; 
    height: auto !important; 
    border-radius: inherit !important;
    object-fit: cover !important;
    aspect-ratio: 1/0.7 !important;
    transition: transform 0.5s ease !important;
}

/* (Opsional) Efek hover halus pada gambar */
#jp-relatedposts .jp-relatedposts-post-a:hover .jp-relatedposts-post-img { 
    transform: scale(1.1) !important; 
}

/* Konten teks di bawah gambar */
#jp-relatedposts .jp-relatedposts-post-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding: 15px !important;
}

/* Judul */
#jp-relatedposts .jp-relatedposts-post-title {
    margin: 0 0 10px 0 !important;
}

#jp-relatedposts .jp-relatedposts-post-title a {
    text-decoration: none !important;
    font-size: 1em !important;
    font-weight: bold !important;
    color: var(--clr-foreground) !important;
}

#jp-relatedposts .jp-relatedposts-post-title a:hover {
    color: var(--theme-color) !important;
}

/* Excerpt */
#jp-relatedposts .jp-relatedposts-post-excerpt {
    flex-grow: 1 !important;
    color: var(--clr-foreground-alt) !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
}

/* Tanggal dan Konteks */
#jp-relatedposts .jp-relatedposts-post-date,
#jp-relatedposts .jp-relatedposts-post-context {
    font-size: 0.8em !important;
    color: #999 !important;
}

/* Media Queries untuk responsif */
@media (max-width: 480px) {
    #jp-relatedposts {
        grid-template-columns: 1fr;
    }
}
/* 3. Aturan untuk gambar di sidebar dan home grid (tetap kotak dengan sudut melengkung) */

/* ==========================================================================
   TATA LETAK ARCHIVE MAGAZINE
   ========================================================================== */

/* Aturan ini akan menimpa aturan umum yang salah sebelumnya */
.magazine-archive-layout.grid-layout .mag-post-img img,
.mag-post-single.list-design .mag-post-img img {
	border-radius: 10px !important;
	aspect-ratio: 1/0.7 !important; /* Mengembalikan rasio aspek default tema */
	object-fit: cover !important;
	transition: transform 0.5s ease;
}

@media (min-width: 481px) {
	.magazine-archive-layout.grid-layout .mag-post-single:hover img,
	.mag-post-single.list-design:hover img {
		transform: scale(1.1) !important;
	}
}

/* KODE YANG DIPERBAIKI */
/* Menggabungkan semua aturan untuk tata letak grid-column-2 */
/* Aturan dasar untuk semua tata letak grid majalah */
.magazine-archive-layout.grid-layout {
	display: grid !important;
	grid-gap: 30px !important; /* Nilai gap yang akan digunakan secara umum */
}

.magazine-archive-layout.grid-layout article {
	margin-bottom: 0 !important;
	width: auto !important;
}

/* --- Aturan Khusus untuk Setiap Kolom --- */

/* Aturan untuk grid 2 kolom */
.magazine-archive-layout.grid-layout.grid-column-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* Aturan untuk grid 3 kolom */
.magazine-archive-layout.grid-layout.grid-column-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Aturan untuk grid 4 kolom */
.magazine-archive-layout.grid-layout.grid-column-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Media Queries untuk tampilan mobile */
@media (max-width: 480px) {
	.magazine-archive-layout.grid-layout.grid-column-2,
	.magazine-archive-layout.grid-layout.grid-column-3,
	.magazine-archive-layout.grid-layout.grid-column-4 {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}
/* ==========================================================================
   TATA LETAK POSTING TUNGGAL (SINGLE POST LAYOUT)
   ========================================================================== */

body.single .site-main > article .mag-post-detail header .entry-meta {
	padding-bottom: 0;
	margin-bottom: 10px;
}

body.single .site-main > article .mag-post-detail header .entry-title {
	margin-bottom: 10px;
}










