@media (min-width: 1024px) {
/* body:not(.jasa-sidebar-closed) main#gallery, */
    /* body:not(.jasa-sidebar-closed) header, */
    /* body:not(.jasa-sidebar-closed) #event-marquee-section,  */
    /* body:not(.jasa-sidebar-closed) #grid-container {
        padding-right: 140px;
    }

body.jasa-sidebar-closed main#gallery,
    body.jasa-sidebar-closed header,
    body.jasa-sidebar-closed #event-marquee-section {
        padding-right: 1rem;
    } */

    /* 1. Beri ruang 140px HANYA JIKA #jasa-sidebar ADA dan TIDAK memiliki class .hidden */
    body:has(#jasa-sidebar:not(.hidden)) #grid-container,
    /* body:has(#jasa-sidebar:not(.hidden)) header, */
    body:has(#jasa-sidebar:not(.hidden)) main#gallery {
        padding-right: 75px;
        transition: padding-right 0.3s ease; /* Tambahkan transisi agar mulus */
    }

    /* 2. Jika #jasa-sidebar disembunyikan (.hidden), padding otomatis kembali penuh ke kanan */
    body:has(#jasa-sidebar.hidden) #grid-container,
    body:has(#jasa-sidebar.hidden) header,
    body:has(#jasa-sidebar.hidden) main#gallery {
        padding-right: 1rem; 
        transition: padding-right 0.3s ease;
    }

/* GANTI dengan: */
    #jasa-sidebar {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 40;
        width: 120px;
        pointer-events: auto;
        transition: opacity 0.3s ease, transform 0.3s ease;
        opacity: 0;
        transform: translateX(8px);
    }

#jasa-sidebar.jasa-visible {
        opacity: 1;
        transform: translateX(0);
    }

#jasa-sidebar.jasa-sticky {
        position: fixed;
        top: 93px;
        right: 16px;
    }

#jasa-sidebar.jasa-sidebar-hidden {
        transform: translateX(120%);
        opacity: 0;
        visibility: visible;
    }
}

@media (min-width: 1024px) {
#jasa-sidebar {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 40;
        width: 120px;
        max-width: calc(100% - 2rem);
        pointer-events: auto;
        transition: opacity 0.3s ease, transform 0.3s ease;
        opacity: 0;
        transform: translateX(8px);
    }

#jasa-sidebar.jasa-visible {
        opacity: 1;
        transform: translateX(0);
    }

/* #jasa-sidebar.jasa-sticky {
position: fixed;
top: 93px;
right: 16px;
} */
}

/* ===== JASA SIDEBAR AND OVERLAY STYLES ===== */
#jasa-list-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    transform: translateY(100%);
    opacity: 0;
}

[data-theme="dark"] #jasa-list-overlay {
    background: #0f172a;
}

#jasa-list-overlay.active {
    transform: translateY(0);
    opacity: 1;
}

#jasa-list-overlay-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

[data-theme="dark"] #jasa-list-overlay-header {
    background: #1e293b;
    border-color: #334155;
}

#jasa-section {
    padding: 2rem 1rem 4rem 1rem;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 50%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
    flex: 1;
    overflow-y: auto;
}

[data-theme="dark"] #jasa-section {
    background: linear-gradient(135deg, #0f172a 0%, #1a1f3a 50%, #0f1f2e 100%);
}

#jasa-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    pointer-events: none;
}

#jasa-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%);
    pointer-events: none;
}

.jasa-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

[data-theme="dark"] .jasa-section-title {
    color: #e2e8f0;
}

.jasa-section-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

[data-theme="dark"] .jasa-section-subtitle {
    color: #94a3b8;
}

.jasa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.jasa-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    position: relative;
}

[data-theme="dark"] .jasa-card {
    background: #1e293b;
    border-color: #334155;
}

.jasa-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.18);
    border-color: #a5b4fc;
}

[data-theme="dark"] .jasa-card:hover {
    border-color: #6366f1;
}

.jasa-card-featured {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15), 0 8px 20px -4px rgba(99, 102, 241, 0.2);
}

.jasa-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.jasa-card-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff, #f0f9ff);
    position: relative;
}

[data-theme="dark"] .jasa-card-img-wrap {
    background: #0f172a;
}

.jasa-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.jasa-card:hover .jasa-card-img-wrap img {
    transform: scale(1.05);
}

.jasa-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #a5b4fc;
}

.jasa-card-body {
    padding: 1.25rem;
}

.jasa-card-category {
    font-size: 0.65rem;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.jasa-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

[data-theme="dark"] .jasa-card-title {
    color: #e2e8f0;
}

.jasa-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .jasa-card-desc {
    color: #94a3b8;
}

.jasa-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

[data-theme="dark"] .jasa-card-footer {
    border-top-color: #334155;
}

.jasa-price-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

.jasa-price-value {
    font-size: 1rem;
    font-weight: 800;
    color: #4f46e5;
}

.jasa-duration-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #64748b;
}

[data-theme="dark"] .jasa-duration-badge {
    color: #94a3b8;
}

.jasa-packages-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.jasa-pkg-chip {
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
}

[data-theme="dark"] .jasa-pkg-chip {
    background: #1e293b;
    color: #818cf8;
    border-color: #334155;
}

.jasa-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #4f46e5;
    transition: all 0.2s;
}

.jasa-cta-btn i {
    transition: transform 0.2s;
}

.jasa-card:hover .jasa-cta-btn i {
    transform: translateX(3px);
}

/* Jasa loading skeleton */
.jasa-skeleton {
    background: #e2e8f0;
    border-radius: 0.75rem;
    animation: jasa-pulse 1.5s ease-in-out infinite;
}

[data-theme="dark"] .jasa-skeleton {
    background: #334155;
}

@keyframes jasa-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Jasa Detail Overlay */
#jasa-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    transform: translateY(0);
    opacity: 1;
}

[data-theme="dark"] #jasa-overlay {
    background: #0f172a;
}

#jasa-overlay.hidden {
    transform: translateY(100%);
    opacity: 0;
    display: flex !important;
}

#jasa-overlay-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: white;
}

[data-theme="dark"] #jasa-overlay-header {
    background: #1e293b;
    border-color: #334155;
}

#jasa-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8fafc;
}

[data-theme="dark"] #jasa-overlay-body {
    background: #0f172a;
}

.jasa-detail-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.jasa-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .jasa-detail-title {
    color: #e2e8f0;
}

.jasa-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    color: #64748b;
}

[data-theme="dark"] .jasa-detail-meta {
    color: #94a3b8;
}

.jasa-detail-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
}

[data-theme="dark"] .jasa-detail-desc {
    color: #94a3b8;
}

.jasa-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.jasa-pkg-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .jasa-pkg-card {
    background: #1e293b;
    border-color: #334155;
}

.jasa-pkg-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
}

.jasa-pkg-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

[data-theme="dark"] .jasa-pkg-name {
    color: #e2e8f0;
}

.jasa-pkg-price {
    font-size: 1rem;
    font-weight: 900;
    color: #4f46e5;
    margin-bottom: 0.75rem;
}

.jasa-pkg-features {
    background-color: #fbfbfb;
    list-style: none;
    padding: 0;
    margin: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jasa-pkg-features li {
    font-size: 0.8rem;
    color: #64748b;
    background-color: #dfe1e7;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

[data-theme="dark"] .jasa-pkg-features li {
    color: #94a3b8;
}

.jasa-pkg-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
}

.jasa-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.jasa-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

/* Empty jasa state */
.jasa-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.jasa-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

/* Mobile Jasa FAB */
#jasa-mobile-fab {
    display: none;
    /* Ubah bottom menjadi padding-bottom agar background putih tetap mentok bawah, 
       tapi tombol aman dari home indicator iPhone */
    padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px));
    
}
.jasa-mobile-fab{
    background-color: #e4e4e4;
}
@media (max-width: 1023px) {
    #jasa-mobile-fab {
        display: flex;
    }
}

.jasa-fab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    
    /* Efek Glassmorphism */
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.85) 0%, rgb(92 154 246 / 80%) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    color: white;
    
    /* Border dan Glow */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    box-shadow: 
        0 8px 32px 0 rgba(79, 70, 229, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.jasa-fab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 36px 0 rgba(79, 70, 229, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95) 0%, rgba(139, 92, 246, 0.9) 100%);
}

.jasa-fab-btn:active {
    transform: translateY(1px);
}

.jasa-fab-btn i {
    font-size: 18px;
}

/* Sembunyikan FAB saat detail overlay / blog overlay terbuka */
body.modal-open #jasa-mobile-fab {
    display: none !important;
}

/* Tambahkan efek transisi pada teks */
#jasa-mobile-fab .jasa-fab-btn span {
    transition: all 0.3s ease;
    display: inline-block;
}

/* Jika ingin efek fade */
.jasa-fab-btn.show-text span {
    animation: fadeIn 0.3s ease;
}

/* Sembunyikan sidebar dan FAB saat tidak ada data */
.no-jasa-data #jasa-sidebar,
.no-jasa-data #jasa-mobile-fab {
    display: none !important;
}

/* Mencegah FOUC pada halaman spesifik */
.is-jasa-page #jasa-mobile-fab {
    display: none !important;
}