/*
Theme Name: Medley Child - Mabur v16 (Byline Admin)
Theme URI: https://wowthemes.net/themes/medley-wordpress/
Description: Child theme for Medley (Mabur). v16 adds an admin-only byline selector (Penulis + Editor) to control the author card on single posts.
Author: Custom
Template: medley
Version: 1.6.1
Text Domain: medley-child-mabur-v16-byline
*/

/* sebelum scroll: tetap hidden */	
.sticky-header .sticky-brand{ display:none; }

/* setelah scroll */
.sticky-header.scrolled-down .sticky-brand{
  display:flex;
  align-items:center;
  margin-right:14px;
}

/* paksa img-nya tampil & ukurannya rapih */
.sticky-header.scrolled-down .sticky-brand img{
  display:block;
  height:50px;
  width:auto;
}

.sticky-header.scrolled-down .navbar-nav > li {
  padding-top: 10px;
}

/* =========================
   FOOTER: pemisah (border) + spacing
   ========================= */
.site-footer{
  margin-top: 48px;              /* biar ada “jarak” dari konten/pagination */
  padding-top: 36px;
}

/* Border di atas area widget/footer columns */
.site-footer .container.mt-4.mb-4{
  border-top: 1px solid rgba(0,0,0,.10);
  padding-top: 28px;
}

/* Kalau footer kamu background biru/teal, border di atas bisa lebih halus */
.site-footer .container.mt-4.mb-4{
  border-top-color: rgba(255,255,255,.18); /* aman kalau bg gelap/teal */
}

/* =========================
   FOOTER: hilangkan bullet/dot khusus di footer
   ========================= */
.site-footer ul,
.site-footer ol{
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.site-footer li{
  margin: 0 0 6px 0;
}

/* Kalau ada marker bawaan block editor */
.site-footer li::marker{
  content: "" !important;
}

/* =========================
   FOOTER: kecilin typography menu/list biar “Kompas-like”
   ========================= */
.site-footer,
.site-footer a{
  font-size: 13px;
  line-height: 1.7;
}

.site-footer .footer-widget-title,
.site-footer h2,
.site-footer h3{
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Link di footer lebih clean */
.site-footer a{
  opacity: .92;
  text-decoration: none;
}

.site-footer a:hover{
  opacity: 1;
  text-decoration: underline;
}

/* =========================
   OPTIONAL: bikin footer “kerasa footer” tapi tetap clean
   (kalau kamu mau background nya beda dari body)
   ========================= */
.site-footer{
  background: #7fb6c0;
  color: rgba(0,0,0,.78);
}

.site-footer a{
  color: rgba(0,0,0,.85);
}

/* ===== CONTACT FORM MABUR ===== */

/* Container form: TENGAH + MELEBAR */
.mabur-contact form {
  width: 100%;
  max-width: 640px; /* Lebih ramping dari 960px */
  margin: 0 auto;
  padding: 24px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Text judul & deskripsi ke tengah */
.mabur-contact {
  text-align: center;
  margin-bottom: 32px;
}

.mabur-contact h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.mabur-contact p.deskripsi {
  font-size: 16px;
  color: #555;
  margin-bottom: 24px;
}

/* Field tetap rapi (tidak center) */
.mabur-contact input,
.mabur-contact textarea {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
}

/* Spasi antar field */
.mabur-contact p {
  margin-bottom: 20px;
}

/* Tombol kirim elegan */
.mabur-contact input[type="submit"] {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover */
.mabur-contact input[type="submit"]:hover {
  background-color: #333;
}

/* =========================
   HOME INTRO: kolom kanan 2 berita (stack 2 baris)
   - kolom kiri tetap heading + subtitle + chip kategori
   - kolom kanan 2 card landscape (atas & bawah), tinggi konsisten
   ========================= */

.mabur-intro-latest-stack{
  /* scoped variable: easy to tweak heights per breakpoint */
  --mabur-intro-card-h: 250px;
  display:flex;
  flex-direction:column;
  gap:24px;
}

.mabur-intro-latest-stack .intro-latest-post{
  margin-bottom:0;
}

/* Height rules (based on your working CSS) */
.mabur-intro-latest-stack .intro-latest-post__media{
  height: var(--mabur-intro-card-h) !important;
  min-height: var(--mabur-intro-card-h) !important;
  overflow: hidden;
}

.mabur-intro-latest-stack .intro-latest-post__image-link,
.mabur-intro-latest-stack .intro-latest-post__image-link img{
  height: var(--mabur-intro-card-h) !important;
}

.mabur-intro-latest-stack .intro-latest-post__image-link img{
  width: 100% !important;
  object-fit: cover;
  display: block;
}

.mabur-intro-latest-stack .intro-latest-post__overlay{
  height: var(--mabur-intro-card-h) !important;
}

/* Title size as requested */
.mabur-intro-latest-stack .intro-latest-post__title{
  font-size: 18px !important;
  line-height: 1.25;
}

/* Desktop/tablet alignment */
@media (min-width: 768px){
  .mabur-intro-latest-stack{
    max-width: 560px;
    margin-left: auto;
  }
}

/* Large desktop */
@media (min-width: 1200px){
  .mabur-intro-latest-stack{
    max-width: 600px;
    --mabur-intro-card-h: 270px;
  }
}

/* Tablet */
@media (max-width: 991.98px){
  .mabur-intro-latest-stack{
    --mabur-intro-card-h: 240px;
  }
}

/* Mobile: stack full width, height slightly smaller */
@media (max-width: 767.98px){
  .mabur-intro-latest-stack{
    max-width: 100%;
    margin-left: 0;
    gap: 16px;
    --mabur-intro-card-h: 230px;
  }
}

@media (max-width: 575.98px){
  .mabur-intro-latest-stack{ --mabur-intro-card-h: 220px; }
}

/* =========================
   SINGLE POST: Sumber + Author Box (Penulis & Editor)
   ========================= */

.wows-post-meta-source{
  /* inherit theme typography; keep it subtle */
  opacity: .95;
}

.mabur-author-box{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 18px;
  background: rgba(255,255,255,.55);
}

.mabur-author-avatar{
  display:block;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.mabur-author-role{
  letter-spacing: .06em;
}

.mabur-author-name a{
  text-decoration: none;
}

.mabur-author-name a:hover{
  text-decoration: underline;
}

.mabur-author-social-link{
  opacity: .9;
  text-decoration: none;
}

.mabur-author-social-link:hover{
  opacity: 1;
  text-decoration: none;
}

/* Responsif: avatar & layout tetap rapi di mobile */
@media (max-width: 575.98px){
  .mabur-author-box{
    padding: 16px;
  }
  .mabur-author-avatar{
    width: 64px;
    height: 64px;
  }
}

/* ===== Featured image caption (Featured Image) ===== */
/* Ikuti struktur Gutenberg: <figure> + <figcaption class="wp-element-caption"> */
/* Tidak memaksa style caption—biar ikut style theme untuk .wp-element-caption. */
.mabur-featured.wp-block-image{
  width: 100%;
  max-width: 100%;
}

.mabur-featured.wp-block-image img{
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
}

/* ===== Single post meta wrap spacing (Categories/Tags) ===== */
.wows-post-meta-categories{
  line-height: 1.7;
}

.wows-post-meta-source{
  line-height: 1.6;
}

.wows-post-meta-tags{
  line-height: 1.8;
}

.wows-post-meta-tags a{
  display: inline-block;
  margin-bottom: 10px;
  line-height: 1.2;
}