/* <!-- check --> */
html { scroll-behavior: smooth; }

body {
    background-color: #F8FAFC;
    color: #1E293B;
    -webkit-font-smoothing: antialiased;
}

#nav-container {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Swiper Customization */
.swiper-button-next, .swiper-button-prev {
    color: white !important;
    background: rgba(27, 73, 101, 0.7); 
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.swiper-button-next:after, .swiper-button-prev:after { font-size: 18px !important; font-weight: bold; }
.swiper-button-next:hover, .swiper-button-prev:hover { background: #F59E0B; transform: scale(1.05); }
.swiper-pagination-bullet { background: white !important; opacity: 0.6; width: 10px; height: 10px; }
.swiper-pagination-bullet-active { background: #62B6CB !important; opacity: 1; transform: scale(1.2); }

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-gradient-overlay {
    background: linear-gradient(to top, rgba(15, 41, 62, 0.9) 0%, #0000007d 70%);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Top Bar Professional Style */
#top-bar {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}

.top-bar-link {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Hover Kuning untuk Teks dan Ikon */
.top-bar-link:hover {
    color: #FBBF24;
}
.top-bar-link:hover i {
    color: #FBBF24;
}

/* Nav States Logic */
.nav-transparent {
    background-color: transparent;
    border-color: rgba(255,255,255,0.1);
}
.nav-white {
    background-color: white;
    border-color: #E2E8F0;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Mobile Sidebar Animation */
#mobile-sidebar {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}
#mobile-sidebar.open {
    transform: translateX(0);
}
#sidebar-overlay {
    transition: opacity 0.4s ease;
    pointer-events: none;
    opacity: 0;
}
#sidebar-overlay.open {
    pointer-events: auto;
    opacity: 1;
}

/* Accordion Logic */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.accordion-content.open {
    max-height: 500px;
}

/* Banner Style Adjustment for Dark Background */
.banner-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 110px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.banner-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}

.banner-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 41, 62, 0.85) 0%, transparent 100%);
    z-index: 1;
}

/* Banner Overlay */
.page-banner-overlay {
    background: linear-gradient(to top, rgba(15, 41, 62, 0.9) 0%, rgba(15, 41, 62, 0.4) 100%);
}

/* Image Overlays for Text Readability */
.news-overlay {
    background: linear-gradient(to top, rgba(15, 41, 62, 0.95) 0%, rgba(15, 41, 62, 0.4) 50%, transparent 100%);
}

 
/* Modern Glassmorphism Card */
.service-card {
    /* background: rgba(255, 255, 255, 0.8); */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 1);
    border-color: #E2E8F0;
    border-radius: 1rem;
    box-shadow: var(--tw-shadow-hover-card);
}

/* Image Hover Effect */
.service-card .img-container {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover .img-container {
    transform: scale(0.9) translateY(-10px);
}

/* Text Hover Effect (Slide Up & Opacity) */
.service-card .service-title {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(10px);
    opacity: 0.7;
}

.service-card:hover .service-title {
    transform: translateY(0);
    opacity: 1;
    color: #1b4965; /* brandPrimary */
}

/* content news */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modern Pulse Animation for Pin */
@keyframes pin-pulse {
    0% { transform: scale(0.8); opacity: 0.8; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1.1); opacity: 0; box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.8); opacity: 0; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.modern-pin-pulse {
    animation: pin-pulse 2.5s infinite;
}


/* Article Content Styling */
.article-content p { margin-bottom: 1.5rem; color: #475569; line-height: 1.8; }
.article-content h2 { font-size: 1.875rem; font-weight: 800; color: #1B4965; margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content h3 { font-size: 1.5rem; font-weight: 700; color: #1E293B; margin-top: 2rem; margin-bottom: 1rem; }
.article-content ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; color: #475569; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote {
    border-left: 4px solid #F59E0B;
    background: #F8FAFC;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: #1E293B;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}
.article-content img { border-radius: 12px; margin: 2rem 0; width: 100%; height: auto; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

/* profile css */
.polsek-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.polsek-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Highlight untuk Markas Pusat */
.hq-highlight {
    border: 2px solid #fbbf24;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.2);
    transform: scale(1.02);
    z-index: 10;
}

.hq-badge {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.icon-container {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.icon-container-hq {
    background: linear-gradient(135deg, #4338ca 0%, #1e1b4b 100%);
}


/* srtucture */

.member-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 3/4;
}

.member-card img {
    transition: all 0.5s ease;
    filter: grayscale(20%);
}

.member-card:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Overlay Info di Bagian Bawah */
.info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 41, 62, 0.95) 0%, rgba(15, 41, 62, 0.7) 60%, transparent 100%);
    padding: 24px 16px 16px;
    color: white;
    transition: all 0.3s ease;
}

.member-card:hover .info-overlay {
    padding-bottom: 24px;
    background: linear-gradient(to top, #1B4965 0%, rgba(27, 73, 101, 0.8) 70%, transparent 100%);
}

.name-label {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.position-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #F59E0B; /* brandAccent */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}


/* gallery page */

.gallery-page-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.gallery-page-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-page-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 73, 101, 0.95) 0%, rgba(27, 73, 101, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(10px);
}

.gallery-page-item:hover img {
    transform: scale(1.1);
}

.gallery-page-item:hover .gallery-page-overlay {
    opacity: 1;
    transform: translateY(0);
}

.filter-btn-gallery-page {
    transition: all 0.3s ease;
}

.filter-btn-gallery-page.active {
    background-color: #1B4965;
    color: white;
    box-shadow: 0 4px 12px rgba(27, 73, 101, 0.2);
    border-color: #1B4965;
}

#lightbox-gallery-page {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 41, 62, 0.98);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}


/* pengaduan page */

.channel-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #E2E8F0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.channel-card:hover {
    transform: translateY(-8px);
    border-color: #1B4965;
    box-shadow: 0 20px 40px -10px rgba(27, 73, 101, 0.15);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.channel-card:hover .icon-box {
    transform: scale(1.1) rotate(-5deg);
}

.btn-action {
    margin-top: auto;
    padding: 0.875rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-align: center;
}

/* Pelayanan Detail */

.app-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.app-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Modal State Transitions */
.service-modal-overlay {
    transition: opacity 0.4s ease;
}
.service-modal-content-wrap {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}
.service-modal-active .service-modal-content-wrap {
    transform: scale(1);
    opacity: 1;
}
.service-modal-inactive .service-modal-content-wrap {
    transform: scale(0.9);
    opacity: 0;
}

/* Hide scroll when modal open */
.service-modal-open {
    overflow: hidden;
}

/* Container Styles */
.service-pdf-container, .image-container {
    width: 100%;
    height: calc(100vh - 120px);
    background: #f1f5f9;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.service-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* PDF Embed Container */
.pdf-embed-container {
    width: 100%;
    height: 800px;
    background: #f1f5f9;
    border-radius: 0 0 1.5rem 1.5rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #E2E8F0;
    border-top: none;
}

@media (max-width: 768px) {
    .pdf-embed-container {
        height: 500px;
    }
}

.pdf-toolbar {
    background: #f8fafc;
    border: 1px solid #E2E8F0;
    border-bottom: 1px solid #cbd5e1;
    border-radius: 1.5rem 1.5rem 0 0;
}