.hr-card {
    background: transparent; /* Background diatur per section */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    transition: 0.3s;
}

/* Header Style */
.hr-card-header {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,.125);
    font-weight: 600;
}

.hr-card-img-container img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.hr-card-body {
    padding: 1.5rem;
}

.hr-card-body .card-title {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.hr-card-body .card-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}


.hr-title-header {
    margin: 5px 0 0 0 !important;
    font-size: 1.4rem !important;
    font-weight: bold;
    line-height: 1.2;
}
.hr-label {
    letter-spacing: 1px;
    opacity: 0.8;
    text-transform: uppercase;
    font-size: 0.75rem;
}
.hr-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
/* Memastikan tombol editor terlihat rapi */
.hr-btn-editor {
    margin-top: 15px;
    padding: 10px;
    border: 1px dashed #ccc;
}

/* Pastikan tombol tidak punya garis bawah saat disentuh */
.hr-card-button {
    text-decoration: none !important;
    box-shadow: none !important; /* Hapus bayangan link standar */
}

.hr-card-button:hover {
    opacity: 0.9;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Hilangkan titik bullet jika list Anda berantakan di frontend */
.hr-card-runtime ul {
    padding-left: 20px;
    margin: 15px 0;
}

/* Bootstrap Classes */
.card-shadow { box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: 1px solid transparent; }
.card-bordered { border: 1px solid #dee2e6; }

/* Animations */
.hr-fade { animation: fadeIn 0.8s ease forwards; }
.hr-slide-up { animation: slideUp 0.6s ease-out forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Editor specific */
.hr-img-btn {
    width: 100%;
    height: 180px;
    background: #f1f1f1;
    border: 2px dashed #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
}



/* Button Styles */

.btn-primary { background-color: #007bff; color: #fff; border: 1px solid #007bff; }
.btn-secondary { background-color: #6c757d; color: #fff; border: 1px solid #6c757d; }
.btn-success { background-color: #28a745; color: #fff; border: 1px solid #28a745; }
.btn-danger { background-color: #dc3545; color: #fff; border: 1px solid #dc3545; }

.btn-sm { padding: .25rem .5rem; font-size: .875rem; }
.btn-lg { padding: .5rem 1rem; font-size: 1.25rem; }

/* Editor only */
.hr-btn-wrapper { border: 1px dashed #ddd; padding: 10px; border-radius: 4px; }

/* Pastikan tombol kustom tidak terganggu border default bootstrap */
/* Gaya Tombol */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    
    /* Menghilangkan garis bawah */
    text-decoration: none !important; 
    border: none !important;
    
    transition: 0.2s;
}

/* Pastikan saat di-hover garis bawah juga tidak muncul */
.btn:hover, 
.btn:focus, 
.btn:active {
    text-decoration: none !important;
    outline: none;
    filter: brightness(90%);
    color: inherit; /* Menjaga warna teks tetap sesuai pilihan */
}
.btn:hover {
    filter: brightness(90%); /* Efek sedikit gelap saat hover */
    color: inherit;
}

.hr-btn-editor {
    margin-top: 15px;
    padding: 10px;
    border: 1px dashed #eee;
    background: #fafafa;
}

/* Gaya Daftar Fitur */
/* Container Utama Daftar */
.hr-feature-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Logika Rataan Daftar */
.hr-feature-list.left { align-items: flex-start; }
.hr-feature-list.center { align-items: center; }
.hr-feature-list.right { align-items: flex-end; }

/* Isi per Baris */
.hr-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: left; /* Teks selalu rata kiri terhadap ikonnya agar rapi */
}

/* Ikon Centang */
.hr-feature-list li:before {
    content: '✔';
    color: var(--hr-icon-color, #28a745);
    font-weight: bold;
    flex-shrink: 0;
}

/* Pengaturan Bayangan (Shadow) */
.hr-shadow-none { box-shadow: none !important; border: 1px solid #eee; }
.hr-shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }
.hr-shadow-md { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.hr-shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }

/* Pastikan border radius juga memotong gambar dan header */
.hr-card {
    overflow: hidden; /* Penting agar gambar tidak keluar dari sudut yang melengkung */
    transition: all 0.3s ease-in-out;
    background: #fff;
    margin-bottom: 30px;
}

/* Memperbaiki jarak antar elemen di dalam card body */
.hr-card-body > * {
    margin-bottom: 15px;
}
.hr-card-body > *:last-child {
    margin-bottom: 0;
}


/* Gaya Blok Profil / Testimonial */
.hr-profile-block {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: 0.3s;
}

.hr-profile-img-wrap img {
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 2px solid rgba(0,0,0,0.05);
}

/* Rataan Teks */
.hr-profile-block.center { text-align: center; }
.hr-profile-block.left { text-align: left; }
.hr-profile-block.left .hr-profile-img-wrap img { margin: 0; }
.hr-profile-block.right { text-align: right; }
.hr-profile-block.right .hr-profile-img-wrap img { margin-left: auto; margin-right: 0; }

.hr-profile-name {
    margin: 10px 0 0 0 !important;
    font-size: 1.2rem !important;
    font-weight: bold;
}

.hr-profile-role {
    display: block;
    font-size: 0.9rem;
    margin-top: 2px;
}

.hr-profile-desc {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Editor Specific */
.hr-profile-img-btn {
    background: #f1f1f1;
    border: 1px dashed #ccc;
    padding: 10px;
    display: inline-block;
    cursor: pointer;
}


/*heading*/

.hr-adv-heading {
    margin-bottom: 0px;
}


.hr-adv-heading h1, .hr-adv-heading h2, .hr-adv-heading h3 {
    margin: 0 0 10px 0 !important;
    font-weight: 700;
}

.hr-separator {
    height: 4px;
    border-radius: 2px;
    margin-bottom: 15px;
}


/* --- CSS FINAL PENGHANCUR JARAK --- */

.hr-adv-heading-runtime {
    gap: 0 !important;
    line-height: 1 !important;
}

.hr-adv-heading-runtime :is(h1, h2, h3, h4, h5, h6) {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important; /* Sangat penting untuk membuang spasi font */
    display: inline-block !important; /* Mencegah margin collapse */
}

/* Memastikan separator tidak memiliki margin otomatis */
.hr-adv-heading-runtime span {
    margin-bottom: 0 !important;
    line-height: 0 !important;
}

.hr-sub-title {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Container Utama */
.hr-adv-heading {
    margin-bottom: 25px;
    width: 100%;
}

/* Rataan Teks */
.hr-adv-heading.left { text-align: left; }
.hr-adv-heading.center { text-align: center; }
.hr-adv-heading.right { text-align: right; }

/* Rataan Separator (Garis) */
.hr-separator {
    height: 4px;
    border-radius: 2px;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Logika agar garis mengikuti alignment container */
.hr-adv-heading.left .hr-separator { margin-left: 0; margin-right: auto; display: block; }
.hr-adv-heading.center .hr-separator { margin-left: auto; margin-right: auto; display: block; }
.hr-adv-heading.right .hr-separator { margin-left: auto; margin-right: 0; display: block; }

.hr-sub-title {
    margin: 0;
    line-height: 1.5;
}


/*icon-box*/
.hr-icon-box {
    padding: 20px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.hr-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px; /* Default padding */
}

.hr-icon-box.center { text-align: center; }
.hr-icon-box.left { text-align: left; }
.hr-icon-box.right { text-align: right; }

.hr-icon-box-title {
    margin: 10px 0 !important;
    font-size: 1.4rem !important;
    font-weight: 600;
}

.hr-icon-box-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Hover Effect sederhana */
.hr-icon-box:hover .hr-icon-wrap {
    transform: translateY(-5px);
}

/*price-table*/
/* Price Table Card */
.hr-price-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    margin-bottom: 20px;
}

.hr-is-featured {
    transform: scale(1.05); /* Sedikit lebih besar */
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hr-price-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.hr-plan-name {
    margin: 0 0 15px 0 !important;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #888;
}

.hr-price-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.hr-currency { font-size: 1.5rem; font-weight: bold; align-self: flex-start; margin-top: 5px; }
.hr-amount { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.hr-period { font-size: 1rem; color: #888; align-self: flex-end; margin-bottom: 10px; }

.hr-price-body {
    border-top: 1px solid #f5f5f5;
    padding-top: 20px;
}


/*accordion*/
/* Container Utama FAQ */
.hr-accordion-container {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

/* Item Accordion (Menggunakan HTML Details) */
.hr-accordion-item {
    border-bottom: 1px solid #dee2e6;
    background: #fff;
}

.hr-accordion-item:last-child {
    border-bottom: none;
}

/* Bagian Judul (Summary) */
.hr-accordion-summary {
    padding: 15px 20px;
    list-style: none; /* Hilangkan panah default browser */
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

/* Menghilangkan panah default di Safari/Chrome */
.hr-accordion-summary::-webkit-details-marker {
    display: none;
}

/* Icon Panah Custom */
.hr-accordion-summary:after {
    content: '\2304'; /* Simbol panah bawah */
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* Animasi Panah saat Terbuka */
.hr-accordion-item[open] .hr-accordion-summary:after {
    transform: rotate(180deg);
}

/* Konten Jawaban */
.hr-accordion-content {
    padding: 20px;
    border-top: 1px solid #eee;
    line-height: 1.6;
    color: #444;
    animation: hrFadeSlide 0.4s ease;
}

@keyframes hrFadeSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style Khusus Editor */
.hr-accordion-item-editor {
    border: 1px solid #ddd;
    margin-bottom: 5px;
}
.hr-acc-header-fake { padding: 10px 15px; font-weight: bold; cursor: default; }
.hr-acc-body-fake { padding: 15px; background: #fff; }


/*container*/
/* Container Utama (Runtime & Editor) */
.hr-container-runtime, 
.hr-container-editor {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

/* Memaksa list internal Gutenberg agar berjajar ke samping */
.hr-container-editor > .block-editor-inner-blocks > .block-editor-block-list__layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: inherit;
}

/* Kolom */
/* --- TAMPILAN DEPAN (FRONTEND) --- */
.hr-container-runtime {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    box-sizing: border-box;
    align-items: stretch;
}

.hr-column-runtime {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-grow: 0;
    flex-shrink: 0;
}

/* --- TAMPILAN EDITOR --- */


/* --- 1. TAMPILAN DEPAN (FRONTEND) --- */
/* --- PERBAIKAN TATA LETAK PRESISI --- */

.hr-container-runtime, 
.hr-container-editor > .block-editor-inner-blocks > .block-editor-block-list__layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: var(--hr-gap, 0px) !important; /* Gunakan variabel gap */
    width: 100% !important;
    box-sizing: border-box;
}

/* Rumus Kalkulasi Lebar Kolom agar Pas (Frontend & Editor) */

/* 1 Kolom */
.hr-container-runtime[data-columns="1"] > .wp-block-hrblock-column,
.hr-container-editor[data-columns="1"] .wp-block[data-type="hrblock/column"] {
    width: 100% !important;
    flex: 0 0 100% !important;
}

/* 2 Kolom: (100% / 2) - (Gap * 1 / 2) */
.hr-container-runtime[data-columns="2"] > .wp-block-hrblock-column,
.hr-container-editor[data-columns="2"] .wp-block[data-type="hrblock/column"] {
    width: calc(50% - (var(--hr-gap, 0px) * 1 / 2)) !important;
    flex: 0 0 calc(50% - (var(--hr-gap, 0px) * 1 / 2)) !important;
}

/* 3 Kolom: (100% / 3) - (Gap * 2 / 3) */
.hr-container-runtime[data-columns="3"] > .wp-block-hrblock-column,
.hr-container-editor[data-columns="3"] .wp-block[data-type="hrblock/column"] {
    width: calc(33.33% - (var(--hr-gap, 0px) * 2 / 3)) !important;
    flex: 0 0 calc(33.33% - (var(--hr-gap, 0px) * 2 / 3)) !important;
}

/* 4 Kolom: (100% / 4) - (Gap * 3 / 4) */
.hr-container-runtime[data-columns="4"] > .wp-block-hrblock-column,
.hr-container-editor[data-columns="4"] .wp-block[data-type="hrblock/column"] {
    width: calc(25% - (var(--hr-gap, 0px) * 3 / 4)) !important;
    flex: 0 0 calc(25% - (var(--hr-gap, 0px) * 3 / 4)) !important;
}

/* Memastikan Card di dalam Column selalu 100% dari lebar column-nya */
.hr-column-runtime, .hr-column-editor {
    width: 100% !important;
    padding: 0 !important; /* Padding diatur oleh Gap di Container */
    display: flex;
    flex-direction: column;
}

.hr-column-editor .wp-block {
    width: 100% !important;
    margin: 0 !important;
}

/* --- FIX TOTAL EDITOR: KOLOM BERJAJAR & FULL WIDTH --- */
/* --- FIX TOTAL: ISI KOLOM LARI KE KANAN (EDITOR) --- */

/* 1. Paksa pembungkus paling luar agar tidak membatasi lebar */
.hr-container-editor {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Targetkan 'GUTENBERG GHOST DIV' (Ini kunci utamanya) */
/* Kita paksa pembungkus internal agar menjadi Flexbox murni */
.hr-container-editor > .block-editor-inner-blocks,
.hr-container-editor > .block-editor-inner-blocks > .block-editor-block-list__layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Jangan biarkan turun/lari */
    justify-content: flex-start !important; /* Pastikan mulai dari kiri */
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: var(--hr-gap, 0px) !important;
}

/* 3. Paksa Wrapper Kolom agar tidak punya margin otomatis */
.hr-container-editor .wp-block[data-type="hrblock/column"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* 4. Kalkulasi Lebar Kolom (Tetap sama, tapi kita perketat selektornya) */
.hr-container-editor[data-columns="1"] .wp-block[data-type="hrblock/column"] { width: 100% !important; flex: 0 0 100% !important; }
.hr-container-editor[data-columns="2"] .wp-block[data-type="hrblock/column"] { width: calc(50% - (var(--hr-gap, 0px) / 2)) !important; flex: 0 0 calc(50% - (var(--hr-gap, 0px) / 2)) !important; }
.hr-container-editor[data-columns="3"] .wp-block[data-type="hrblock/column"] { width: calc(33.33% - (var(--hr-gap, 0px) * 2 / 3)) !important; flex: 0 0 calc(33.33% - (var(--hr-gap, 0px) * 2 / 3)) !important; }
.hr-container-editor[data-columns="4"] .wp-block[data-type="hrblock/column"] { width: calc(25% - (var(--hr-gap, 0px) * 3 / 4)) !important; flex: 0 0 calc(25% - (var(--hr-gap, 0px) * 3 / 4)) !important; }

/* 5. Pastikan area dalam kolom (tempat Anda menaruh Card) bersih */
.hr-column-editor {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px dashed #ccc; /* Tetap beri tanda batas */
}

/* 6. Card di dalam kolom harus nurut 100% lebar kolomnya */
.hr-column-editor .wp-block {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}


.hr-image-runtime, .hr-image-editor {
    width: 100%;
    display: block;
    clear: both;
}

/* Memastikan gambar di dalam masking tidak terikat kontainer luar */
.hr-image-runtime img, .hr-image-editor img {
    max-width: none !important; 
    transition: border-radius 0.3s ease;
}

/* Responsive fix */
@media (max-width: 768px) {
    .hr-image-runtime div[style*="width"] {
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1;
    }
}

/* --- HR SPACER --- */
.hr-spacer-runtime {
    clear: both;
    pointer-events: none; /* Agar tidak mengganggu klik elemen lain */
}

/* Jika horizontal, biarkan elemen mengalir di sampingnya */
.hr-spacer-runtime[style*="display: inline-block"] {
    clear: none;
    vertical-align: middle;
}

/* Visualisasi di Editor */
.hr-spacer-editor {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s ease;
}

/* --- RESPONSIVE SPACER --- */

@media (max-width: 600px) {
    /* Sembunyikan elemen dengan class hr-hide-on-mobile */
    .hr-spacer-runtime.hr-hide-on-mobile {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}



/* --- FIX EDITOR CLAMPING --- */

.hr-adv-heading-editor {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important; /* Agar garis bisa naik keluar batas div-nya */
}

.hr-adv-heading-editor :is(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 0 !important;
    z-index: 2; /* Teks di atas */
    position: relative;
}

.hr-adv-heading-editor span {
    z-index: 1; /* Garis di bawah teks */
    position: relative;
    pointer-events: none; /* Agar tidak mengganggu saat klik teks */
}


/*tab*/
.hr-tabs-runtime { display: flex; gap: 20px; margin: 30px 0; }
.hr-tabs-vertical { flex-direction: row; }
.hr-tabs-horizontal { flex-direction: column; }

.hr-tabs-triggers { display: flex; flex-shrink: 0; }
.hr-tabs-vertical .hr-tabs-triggers { flex-direction: column; width: 220px; }
.hr-tabs-horizontal .hr-tabs-triggers { flex-direction: row; border-bottom: 2px solid #eee; }

.hr-tab-trigger {
    padding: 15px 20px !important;
    text-align: left !important;
    display: block !important;
    transition: 0.3s;
    background: transparent !important;
}

.hr-tab-trigger.is-active { background: rgba(0,0,0,0.02) !important; }

.hr-tabs-contents {
    flex-grow: 1;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    min-height: 200px;
}




.hr-table-runtime.is-striped tr:nth-child(even) td {
    background-color: rgba(0,0,0,0.03) !important;
}

.hr-table-runtime.is-hoverable tr:hover td {
    background-color: rgba(243, 112, 33, 0.05) !important; /* Warna orange tipis */
    transition: background 0.2s ease;
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
    .hr-table-runtime {
        display: block;
        overflow-x: auto;
    }
}


