/* ==========================================================
   pnbyw-themify-override.css  — v2
   Override CSS Themify Builder + tabel profil hakim.
   Dimuat priority 99 via functions.php.
   ========================================================== */

/* ----------------------------------------------------------
   JUDUL HALAMAN — kurangi jarak atas
   ---------------------------------------------------------- */

/* Kurangi padding atas wrapper Themify Builder */
.themify_builder_content,
.themify_builder_content-wrap,
.themify-builder-module-content,
.themify_builder_content .row,
.themify_builder_content .col {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* h2 judul pertama di konten Themify */
.page .entry-content > h2:first-child,
.page .entry-content > h1:first-child,
.page .entry-content .themify_builder_content h2:first-child,
.page .entry-content .themify_builder_content h1:first-child,
.page-template-default .entry-content h2:first-of-type,
.page .entry-content [data-type="Html"] h2,
.page .entry-content [data-name="_rb_resume_shortcode"],
/* Themify static output — h2 langsung di dalam wrapper static */
.themify_builder_content > h2,
.themify_builder_content > h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Kurangi padding entry-content halaman itu sendiri */
.page .entry-content {
    padding-top: 0 !important;
}

/* Kurangi margin post/article wrapper */
.page article.hentry,
.page .post-inner,
.page .content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ----------------------------------------------------------
   BACKGROUND MERAH — override dengan selector sepesifik
   mungkin yang digunakan tema:
   article th, .entry-content th, .page-content th, dst.
   Gunakan semua kemungkinan selector agar pasti menang.
   ---------------------------------------------------------- */

/* Level 1 — selector umum */
th { background-color: transparent; }

/* Level 2 — scoped ke konten */
.entry-content th,
.entry-content tr,
.page-content th,
.page-content tr,
article th,
article tr,
.post-content th,
.post-content tr {
    background: transparent !important;
    background-color: transparent !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Level 3 — scoped ke Themify */
.themify_builder_content th,
.themify_builder_content tr,
.themify_builder_content td,
.themify_builder_content-wrap th,
.themify_builder_content-wrap tr,
.themify_builder_content-wrap td,
.module-content th,
.module-content tr,
.module-content td {
    background: transparent !important;
    background-color: transparent !important;
    min-height: 0 !important;
    height: auto !important;
    border: none !important;
}

/* Level 4 — selector paling spesifik mungkin */
body.page .entry-content table th,
body.page .entry-content table tr,
body.page .entry-content table td,
body.single .entry-content table th,
body.single .entry-content table tr,
body.single .entry-content table td {
    background: transparent !important;
    background-color: transparent !important;
    min-height: 0 !important;
    height: auto !important;
    border: none !important;
    vertical-align: middle !important;
}

/* ----------------------------------------------------------
   FOTO PROFIL — reset background pada th yang berisi foto
   (th[rowspan] adalah sel foto di tabel Themify)
   ---------------------------------------------------------- */
body .entry-content table th[rowspan],
body .entry-content table th[scope="row"],
body .themify_builder_content table th[rowspan],
body .themify_builder_content table th[scope="row"] {
    background: transparent !important;
    background-color: transparent !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 12px 8px 0 !important;
    border: none !important;
    vertical-align: top !important;
}

body .entry-content table th img,
body .entry-content table td img,
body .themify_builder_content table th img,
body .themify_builder_content table td img {
    background: transparent !important;
    background-color: transparent !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    vertical-align: top !important;
}

/* ----------------------------------------------------------
   ZEBRA STRIPE — paksa transparent di semua nth-child
   ---------------------------------------------------------- */
body .entry-content table tr:nth-child(odd),
body .entry-content table tr:nth-child(even),
body .themify_builder_content table tr:nth-child(odd),
body .themify_builder_content table tr:nth-child(even) {
    background: transparent !important;
    background-color: transparent !important;
}

/* ----------------------------------------------------------
   PADDING TD — agar tabel profil tidak terlalu rapat
   ---------------------------------------------------------- */
body .entry-content table td {
    padding: 4px 8px !important;
    vertical-align: middle !important;
    border: none !important;
}