/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    padding: 150px 20px;
    min-height: 650px;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-section h1{
    font-family:Arial,sans-serif;font-size:48px;
    font-weight:800;
    color:#fff;line-height:1.2;text-shadow:2px 3px 6px rgba(0,0,0,.9);
}

.hero-section p{
    font-family:Arial,sans-serif;
    font-size:20px;
    font-weight:600;color:#fff;
    line-height:1.5;text-shadow:1px 2px 5px rgba(0,0,0,.9);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary {
    background: rgb(255, 254, 254);
    color: #1a6fa8;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #1a6fa8;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
 
.btn-secondary:hover {
    background: #ffd93d;
    color: #0d2b4e;
    border-color: #ffd93d;
}

/* ============================================
   SECTION GENERAL
   ============================================ */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #0d2b4e;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

/* ============================================
   BERITA & AGENDA SECTION
   ============================================ */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* --- Berita --- */
.news-section-title {
    text-align: left;
    margin-bottom: 30px;
}

.news-section-title h2 {
    font-size: 28px;
    color: #0d2b4e;
    margin-bottom: 8px;
}

.news-section-title p {
    color: #666;
    font-size: 15px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.news-placeholder {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.news-content {
    padding: 15px 20px 15px 0;
}

.news-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    color: #0d2b4e;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* --- Agenda --- */
.agenda-section-title {
    text-align: left;
    margin-bottom: 20px;
}

.agenda-section-title h2 {
    font-size: 24px;
    color: #0d2b4e;
    margin-bottom: 5px;
}

.agenda-section-title p {
    font-size: 14px;
    color: #666;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.agenda-item {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.agenda-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.agenda-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.agenda-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.agenda-date {
    font-size: 12px;
    color: #999;
}

.agenda-title {
    font-size: 15px;
    color: #0d2b4e;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.4;
}

.agenda-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

/* --- Flyer --- */
.flyer-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.flyer-container img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* --- Jadwal Sholat --- */
.jadwal-sholat-box {
    background: linear-gradient(135deg, #0d2b4e, #1a6fa8);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.jadwal-sholat-box h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.jadwal-sholat-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jadwal-sholat-box li {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.jadwal-sholat-box li:hover {
    background: rgba(255, 255, 255, 0.08);
}

.jadwal-sholat-box li.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: bold;
    transform: scale(1.02);
    border-left: 4px solid #81c784;
    animation: pulseAdzan 2.5s infinite;
}

@keyframes pulseAdzan {
    0%   { box-shadow: 0 0 0 0 rgba(102, 187, 106, 0.3); }
    70%  { box-shadow: 0 0 0 8px rgba(102, 187, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 187, 106, 0); }
}

/* ============================================
   SOCIAL MEDIA SECTION
   ============================================ */
.social-media-section {
    background: white;
    padding: 40px 0;
}

.social-media-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.social-media-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 14px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    background: #1a6fa8;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-media-link:last-child {
    margin-bottom: 0;
}

.social-media-link:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Platform background colors */
.social-instagram { background: linear-gradient(135deg, #405DE6, #5B51D8, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #FFDC80); }
.social-tiktok    { background: #000000; }
.social-youtube   { background: #FF0000; }
.social-twitter,
.social-x         { background: #000000; }
.social-facebook  { background: #1877F2; }

.social-icon-wrap {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-icon-wrap svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.social-info-flex {
    flex: 1;
    min-width: 0;
}

.social-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.3;
}

.social-handle {
    font-size: 13px;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.social-arrow-icon {
    width: 18px;
    height: 18px;
    fill: white;
    opacity: 0.7;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.social-media-link:hover .social-arrow-icon {
    transform: translateX(3px);
    opacity: 1;
}

/* --- Instagram Feed (Curator.io) --- */
.crt-feed .crt-grid-post:nth-child(n + 3) { display: none !important; }

[data-position="3"],
[data-position="4"],
[data-position="5"],
[data-position="6"],
[data-position="7"],
[data-position="8"],
[data-position="9"],
[data-position="10"] { display: none !important; }

.crt-feed-window { height: auto !important; min-height: auto !important; }
.crt-feed { height: auto !important; }
#curator-feed-default-feed-layout { min-height: auto !important; }

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #cfeaf7 100%);
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.video-header-title h2 {
    font-size: 32px;
    color: #0d2b4e;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.video-header-title p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.video-view-all {
    background: #1a6fa8;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.video-view-all:hover {
    background: #14577f;
}

.video-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* --- Video Main --- */
.video-main {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.video-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 25px solid #1a6fa8;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 6px;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 18px;
    color: #0d2b4e;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.4;
}

.video-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.video-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

/* --- Video List --- */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-item {
    display: flex;
    gap: 12px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.video-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.video-thumb-small {
    position: relative;
    width: 140px;
    height: 90px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
}

.video-thumb-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon-small {
    width: 0;
    height: 0;
    border-left: 12px solid #1a6fa8;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 3px;
}

.video-content-small {
    padding: 10px 10px 10px 0;
    flex: 1;
}

.video-title-small {
    font-size: 14px;
    color: #0d2b4e;
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.3;
}

.video-meta-small {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #999;
}

/* ============================================
   PENGADUAN SECTION
   ============================================ */
.pengaduan-section {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
}

.pengaduan-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.pengaduan-intro {
    font-size: 18px;
    margin-bottom: 35px;
    line-height: 1.8;
    opacity: 0.95;
}

.pengaduan-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.pengaduan-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    padding: 20px;
    overflow-y: auto;
}

.modal-box {
    max-width: 900px;
    margin: 60px auto 20px;
    background: white;
    border-radius: 20px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.85);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 20px 0 0 20px;
}

.modal-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
}

.modal-content {
    padding: 40px;
}

.modal-title {
    font-size: 28px;
    color: #0d2b4e;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.modal-text {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.modal-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f0f4ff;
    border-radius: 12px;
}

.modal-icon {
    font-size: 24px;
}

.modal-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.modal-value {
    font-size: 16px;
    font-weight: 600;
    color: #0d2b4e;
}

.modal-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 25px;
    transition: all 0.3s;
}

.modal-btn:hover {
    transform: scale(1.02);
}

/* --- Video Modal --- */
.video-modal-box {
    max-width: 860px;
    width: 100%;
    margin: 60px auto 20px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.video-modal-close:hover {
    background: rgba(255, 0, 0, 0.7);
    border-color: white;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-info {
    padding: 20px 25px;
    background: white;
    border-radius: 0 0 16px 16px;
}

.video-modal-title {
    font-size: 20px;
    color: #0d2b4e;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-weight: 700;
}

.video-modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    color: #888;
}

.video-modal-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   INFOGRAFIS MODAL
   ============================================ */
.infografis-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}
 
.infografis-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.infografis-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}
 
.infografis-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}
 
.infografis-modal-close-minimal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}
 
.infografis-modal-close-minimal:hover {
    background: rgba(255, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
}
 
.infografis-slider-container {
    position: relative;
    width: 100%;
    height: 80vh;
    max-height: 800px;
    overflow: hidden;
}
 
.infografis-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
 
.infografis-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    position: relative;
}
 
/* Slide yang punya link: klik-able + sisakan strip 70px di bawah
   gambar untuk tombol "Buka Link" */
.infografis-slide[data-link]:not([data-link=""]) {
    cursor: pointer;
    padding-bottom: 70px;
    box-sizing: border-box;
}
 
.infografis-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
 
.infografis-slide img.loaded {
    opacity: 1;
}
 
/* Tombol "Buka Link" - posisi di bawah gambar */
.infografis-link-badge { animation: fadeInDown 0.5s ease-out; }
 
.infografis-link-button {
    animation: fadeInUp 0.5s ease-out;
    bottom: 14px !important;
}
 
/* Dots di atas tengah supaya tidak bertabrakan dengan tombol */
.infografis-dots {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
}
 
.infografis-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
 
.infografis-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}
 
.infografis-dot.active {
    width: 24px;
    border-radius: 4px;
    background: white;
}
 
.infografis-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10;
}
 
.infografis-modal-footer-minimal {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}
 
.infografis-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
}
 
.infografis-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4caf50;
}
 
.infografis-checkbox:hover {
    color: #333;
}

/* ============================================
   LIVE CHAT WIDGET
   ============================================ */

.livechat-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    cursor: pointer;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 111, 168, 0.45), 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    outline: none;
}

.livechat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(26, 111, 168, 0.55), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.livechat-toggle:active {
    transform: scale(0.95);
}

.livechat-toggle .chat-icon-open,
.livechat-toggle .chat-icon-close {
    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: absolute;
}

.livechat-toggle.is-open .chat-icon-open {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
    display: none !important;
}

.livechat-toggle.is-open .chat-icon-close {
    display: flex !important;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.livechat-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
}

.livechat-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(26, 111, 168, 0.35);
    opacity: 0;
    animation: pulse-ring 2.5s ease-out infinite;
    pointer-events: none;
}

.livechat-toggle:hover .livechat-pulse {
    animation-play-state: paused;
}

.livechat-toggle.is-open .livechat-pulse {
    display: none;
}

.livechat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    height: 480px;
    z-index: 9999;
    display: none;
    animation: slideUpChat 0.3s ease;
}

.livechat-widget.active {
    display: block;
}

.livechat-container {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.livechat-header {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.livechat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.livechat-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.livechat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.livechat-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
    animation: blink 2s infinite;
}

.livechat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.livechat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chat-start-screen {
    flex: 1;
    padding: 30px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-welcome {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.chat-welcome h3 {
    margin: 0 0 10px 0;
    color: #0d2b4e;
    font-size: 24px;
}

.chat-welcome p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.chat-start-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: #1a6fa8;
    box-shadow: 0 0 0 3px rgba(26, 111, 168, 0.1);
}

.btn-start-chat {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-start-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 111, 168, 0.4);
}

.chat-messages-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.livechat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.livechat-messages::-webkit-scrollbar { width: 6px; }
.livechat-messages::-webkit-scrollbar-track { background: transparent; }
.livechat-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.chat-message {
    display: flex;
    gap: 10px;
    animation: messageSlideIn 0.3s ease;
}

.chat-message.visitor-message {
    flex-direction: row-reverse;
    align-items: flex-end;
}

.chat-message.admin-message {
    align-items: flex-start;
}

.message-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: white;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 70%;
}

.message-content strong {
    font-size: 12px;
    color: #1a6fa8;
    margin-bottom: 2px;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.admin-message .message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.visitor-message .message-bubble {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.message-time {
    font-size: 11px;
    color: #999;
    padding: 0 8px;
}

.visitor-message .message-time {
    text-align: right;
}

.livechat-input {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.livechat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.livechat-input input:focus {
    border-color: #1a6fa8;
}

.livechat-input button {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.livechat-input button:hover {
    transform: scale(1.1);
}

#newChatBtn button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(26, 111, 168, 0.4);
}

#newChatBtn button:active {
    transform: translateY(0) !important;
}

.livechat-footer {
    background: #f0f2f5;
    padding: 10px;
    text-align: center;
    flex-shrink: 0;
}

.livechat-footer small {
    color: #999;
    font-size: 11px;
}

/* ============================================
   PENGUMUMAN TICKER
   ============================================ */
.pengumuman-ticker-section {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    padding: 0;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    min-height: 60px;
}

.ticker-title {
    background: rgba(0, 0, 0, 0.2);
    padding: 18px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.ticker-icon {
    font-size: 24px;
    animation: shake 2s ease-in-out infinite;
}

.ticker-label {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticker-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    overflow: hidden;
}

.ticker-content {
    flex: 1;
    position: relative;
    height: 60px;
    overflow: hidden;
}

.ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.ticker-item.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 1;
}

.ticker-item.exit {
    opacity: 0;
    transform: translateY(-20px);
}

.ticker-item a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s;
    display: block;
    width: 100%;
}

.ticker-item a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.ticker-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ticker-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.ticker-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ticker-btn:active {
    transform: scale(0.95);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section-modern {
    background: linear-gradient(180deg, #14577f 0%, #1a6fa8 50%, #0d2b4e 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.services-section-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 217, 61, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.services-modern-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.services-modern-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.services-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.service-modern-card {
    background: linear-gradient(135deg, rgba(13, 43, 78, 0.85) 0%, rgba(26, 111, 168, 0.85) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 35px 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-height: 240px;
}

.service-modern-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 217, 61, 0.4);
    background: linear-gradient(135deg, rgba(26, 111, 168, 0.95) 0%, rgba(20, 87, 127, 0.95) 100%);
}

.service-modern-card:hover::before {
    opacity: 1;
}

.service-modern-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.service-modern-card:hover .service-modern-icon {
    background: rgba(255, 217, 61, 0.25);
    border-color: rgba(255, 217, 61, 0.4);
    transform: scale(1.08) rotate(3deg);
}

.service-modern-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.service-modern-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.service-modern-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.service-modern-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s ease;
    align-self: flex-start;
    margin-top: auto;
}

.service-modern-card:hover .service-modern-arrow {
    background: rgba(255, 217, 61, 0.22);
    transform: translateX(5px);
}

.service-modern-arrow svg {
    width: 20px;
    height: 20px;
}

.services-modern-footer {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.btn-modern-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    background: #ffd93d;
    color: #0d2b4e;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: #ffe066;
}

.btn-modern-primary svg {
    transition: transform 0.3s ease;
}

.btn-modern-primary:hover svg {
    transform: translateX(5px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes slideUpChat {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: 0.7; }
    80%  { transform: scale(1.7); opacity: 0;   }
    100% { transform: scale(1.7); opacity: 0;   }
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75%      { opacity: 0.3; }
}

@keyframes shake {
    0%, 100%                         { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90%          { transform: rotate(-10deg); }
    20%, 40%, 60%, 80%               { transform: rotate(10deg); }
}

/* ============================================
   MISC - dari inline style yang dipindahkan
   ============================================ */
.hero-section-bg {
    background: linear-gradient(rgba(13, 43, 78, 0.85), rgba(26, 111, 168, 0.85));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.no-content-text {
    color: #999;
    text-align: center;
    padding: 40px;
}

.social-section-white {
    background: white;
    padding: 50px 0;
}

.social-section-title {
    text-align: left;
    margin-bottom: 30px;
}

.social-section-title h2 {
    font-size: 28px;
    color: #0d2b4e;
    border-bottom: 3px solid #0d2b4e;
    padding-bottom: 10px;
    display: inline-block;
    margin: 0;
}

.social-instagram-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.social-instagram-empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.social-instagram-empty h3 {
    color: #0d2b4e;
    margin-bottom: 10px;
    font-size: 20px;
}

.social-instagram-empty p {
    color: #999;
    font-size: 14px;
}

.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

.pengaduan-section-title-white h2,
.pengaduan-section-title-white p {
    color: white;
}

.pengaduan-section-title-white p {
    opacity: 0.9;
}

.pengaduan-btn-primary {
    background: white;
    color: #1a6fa8;
    padding: 15px 40px;
    font-size: 16px;
}

.pengaduan-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    padding: 15px 40px;
    font-size: 16px;
}

.chat-required { color: red; }

.chat-textarea-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    resize: none;
    max-height: 100px;
    overflow-y: auto;
}

.chat-icon-close-hidden { display: none; }

.chat-messages-screen-hidden { display: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .content-grid,
    .video-grid,
    .modal-grid { grid-template-columns: 1fr !important; }

    .news-item { grid-template-columns: 1fr !important; }
    .news-image { height: 200px !important; }

    .social-media-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    .modal-image { border-radius: 20px 20px 0 0 !important; }
}

@media (max-width: 768px) {
    .hero-section { padding: 100px 20px; min-height: 500px; }
    .hero-section h1 { font-size: 32px; }
    .hero-section p { font-size: 16px; }

    .section-title h2 { font-size: 28px; }
    .video-header-title h2 { font-size: 24px; }
    .video-thumb-small { width: 120px; height: 80px; }

    .modal-content { padding: 25px; }
    .modal-title { font-size: 22px; }
    .modal { padding: 10px; }
    .modal-box,
    .video-modal-box {
        margin: 55px auto 10px;
        border-radius: 12px;
    }
    .video-modal-close {
        top: -44px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .video-modal-info { padding: 15px; }
    .video-modal-title { font-size: 16px; }
    .video-modal-meta { flex-direction: column; gap: 6px; }

    .social-media-link { padding: 15px; }
    .social-icon-box { width: 45px; height: 45px; font-size: 20px; }
    .ticker-wrapper { flex-direction: column; min-height: auto; }
    .ticker-title {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        padding: 15px 20px;
        justify-content: center;
    }
    .ticker-content-wrapper { padding: 15px 20px; width: 100%; }
    .ticker-item a { font-size: 14px; }
    .ticker-btn { width: 32px; height: 32px; }

    .infografis-modal-content { width: 95%; max-height: 85vh; }
    .infografis-slider-container { height: 70vh; }
    .infografis-modal-close-minimal { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 20px; }
    .infografis-counter { top: 10px; left: 10px; padding: 4px 10px; font-size: 12px; }
    .infografis-dots { bottom: 15px; padding: 6px 12px; }
    .infografis-dot { width: 6px; height: 6px; }
    .infografis-dot.active { width: 18px; }

    .services-section-modern { padding: 60px 0; }
    .services-modern-header { margin-bottom: 35px; }
    .services-modern-header h2 { font-size: 24px; }
    .services-modern-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .service-modern-card { min-height: 200px; }
}

@media (max-width: 480px) {
    .btn { padding: 12px 25px; font-size: 14px; }
    .service-icon { font-size: 36px; }
    .stat-number { font-size: 28px; }

    .livechat-widget { width: calc(100% - 20px); height: calc(100% - 100px); bottom: 10px; right: 10px; }
    .livechat-toggle { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    .message-content { max-width: 80%; }

    .infografis-link-button { bottom: 65px; }
    .infografis-link-button button { padding: 10px 20px; font-size: 13px; }

    .services-modern-grid { grid-template-columns: 1fr; }
    .service-modern-card { padding: 25px 20px; gap: 15px; min-height: 200px; }
    .service-modern-icon { width: 60px; height: 60px; font-size: 30px; border-radius: 16px; }
    .service-modern-content h3 { font-size: 16px; }
    .service-modern-content p { font-size: 13px; }
    .service-modern-arrow { width: 36px; height: 36px; }
    .service-modern-arrow svg { width: 18px; height: 18px; }
    .btn-modern-primary { padding: 14px 28px; font-size: 15px; }
}