/* Blog CTA Button Spacing Fix - Mobile & Desktop */

/* ===== DESKTOP FIXES ===== */
@media (min-width: 769px) {
    /* Target section CTA yang berisi tombol hubungi kami - Desktop */
    .blog-detail-page section:nth-of-type(2) {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Container dalam section CTA - Desktop */
    .blog-detail-page section:nth-of-type(2) .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Row dalam section CTA - Desktop */
    .blog-detail-page section:nth-of-type(2) .row {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Column dalam section CTA - Desktop */
    .blog-detail-page section:nth-of-type(2) .col-sm-12 {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Tombol hubungi kami sekarang - Desktop */
    .blog-detail-page .btn-success {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 14px 32px !important;
        font-size: 16px !important;
        text-transform: capitalize !important;
        display: inline-block !important;
    }
    
    /* Fallback selectors untuk desktop */
    section.blog-detail-page.section-big-py-space.ratio2_3:nth-of-type(2),
    .blog-detail-page section.section-big-py-space:nth-of-type(2) {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
        margin: 0 !important;
    }
    
    /* Target langsung pada link WhatsApp - Desktop */
    a[href*="wa.me"].btn.btn-success {
        margin: 0 !important;
        padding: 14px 32px !important;
        font-size: 16px !important;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .blog-detail-page section:nth-of-type(2) {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .blog-detail-page .btn-success {
        padding: 16px 36px !important;
        font-size: 17px !important;
    }
    
    a[href*="wa.me"].btn.btn-success {
        padding: 16px 36px !important;
        font-size: 17px !important;
    }
}

/* ===== HUBUNGI KAMI SEKARANG BUTTON SPACING FIX - MOBILE ===== */
@media (max-width: 768px) {
    /* Target section CTA yang berisi tombol hubungi kami */
    .blog-detail-page section:nth-of-type(2) {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Container dalam section CTA */
    .blog-detail-page section:nth-of-type(2) .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Row dalam section CTA */
    .blog-detail-page section:nth-of-type(2) .row {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Column dalam section CTA */
    .blog-detail-page section:nth-of-type(2) .col-sm-12 {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Tombol hubungi kami sekarang - hapus semua margin dan padding berlebih */
    .blog-detail-page .btn-success {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
        text-transform: capitalize !important;
        display: inline-block !important;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    /* Section CTA lebih compact */
    .blog-detail-page section:nth-of-type(2) {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    /* Tombol lebih kecil di layar sangat kecil */
    .blog-detail-page .btn-success {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

/* Tablet portrait */
@media (min-width: 481px) and (max-width: 768px) {
    .blog-detail-page section:nth-of-type(2) {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }
    
    .blog-detail-page .btn-success {
        padding: 14px 28px !important;
        font-size: 15px !important;
    }
}

/* Fallback - jika selector di atas tidak bekerja, gunakan class yang lebih spesifik */
@media (max-width: 768px) {
    /* Target berdasarkan struktur HTML yang ada */
    section.blog-detail-page.section-big-py-space.ratio2_3:nth-of-type(2),
    .blog-detail-page section.section-big-py-space:nth-of-type(2) {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        margin: 0 !important;
    }
    
    /* Jika ada class section-big-pb-space */
    .blog-detail-page .section-big-pb-space {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Target langsung pada link WhatsApp */
    a[href*="wa.me"].btn.btn-success {
        margin: 0 !important;
        padding: 12px 24px !important;
    }
}

@media (max-width: 480px) {
    section.blog-detail-page.section-big-py-space.ratio2_3:nth-of-type(2),
    .blog-detail-page section.section-big-py-space:nth-of-type(2) {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    a[href*="wa.me"].btn.btn-success {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}