.home-section {
    margin-top: 30px !important;
}

.section-main-box {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.custom-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.custom-section-header.with-action {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.custom-section-header .header-left { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.header-icon-box { 
    width: 36px; 
    height: 36px; 
    border-radius: 8px; 
    background: rgba(0, 0, 0, 0.05); 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.05rem; 
    flex-shrink: 0; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); 
}
.header-text-box .section-title-custom { 
    font-size: 1.25rem; 
    font-weight: 800; 
    color: var(--primary); 
    margin: 0; 
    line-height: 1.2; 
}
.header-text-box .section-subtitle-custom { 
    font-size: 0.8rem; 
    color: #475569;
    margin: 2px 0 0 0; 
}

.hero-slider-container { 
    position: relative; 
    border-radius: 14px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    height: 360px; 
    background: #0f172a; 
}
.hero-slider-track { 
    display: flex; 
    height: 100%; 
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1); 
}
.hero-slide-item { 
    position: relative; 
    min-width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #0f172a; 
}
.hero-slide-bg { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    background: #0f172a; 
}

.hero-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.hero-arrow-btn:hover { background: #ffffff; color: var(--primary); transform: translateY(-50%) scale(1.08); }
.hero-arrow-btn.prev { left: 14px; }
.hero-arrow-btn.next { right: 14px; }

.hero-slider-dots { 
    position: absolute; 
    top: 14px; 
    right: 14px; 
    z-index: 10; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(4px); 
    padding: 6px 12px; 
    border-radius: 30px; 
}
.hero-slider-dots .slider-dot { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    background: rgba(255, 255, 255, 0.6); 
    border: none; 
    cursor: pointer; 
    padding: 0; 
    transition: all 0.3s ease; 
}
.hero-slider-dots .slider-dot.active { background: #ffffff; width: 24px; border-radius: 12px; }
.hero-slide-overlay { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    padding: 24px 28px; 
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(15, 23, 42, 0.95) 100%); 
    color: #ffffff; 
}
.hero-badge-pill { background: #ffffff; color: var(--primary); font-size: 0.75rem; font-weight: 800; padding: 2px 10px; border-radius: 20px; width: fit-content; margin-bottom: 8px; }
.hero-slide-title { font-size: 1.55rem; font-weight: 800; color: #ffffff; line-height: 1.3; margin: 0 0 6px 0; max-width: 800px; }
.hero-slide-desc { font-size: 0.88rem; color: rgba(255, 255, 255, 0.95); line-height: 1.5; margin: 0; max-width: 700px; }

.news-carousel-track, 
.sarana-carousel-track, 
.program-carousel-track, 
.gallery-carousel-track,
.guru-carousel-track {
    display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 4px 2px 12px; -webkit-overflow-scrolling: touch;
}
.news-carousel-track::-webkit-scrollbar, 
.sarana-carousel-track::-webkit-scrollbar, 
.program-carousel-track::-webkit-scrollbar, 
.gallery-carousel-track::-webkit-scrollbar,
.guru-carousel-track::-webkit-scrollbar { display: none; }

.news-card-slide { flex: 0 0 220px; background: #ffffff; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.news-card-slide:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06); border-color: var(--primary); }
.news-card-img-wrap { position: relative; width: 100%; height: 140px; overflow: hidden; background: #f8fafc; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: center; }
.news-card-img-wrap img { width: 100%; height: 100%; object-fit: contain; background: #ffffff; padding: 2px; }
.news-card-badge-pill { position: absolute; top: 6px; right: 6px; background: #ffffff; color: var(--primary); font-size: 0.65rem; font-weight: 800; padding: 2px 8px; border-radius: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.news-card-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.news-card-title { font-size: 0.95rem; font-weight: 700; color: var(--primary); line-height: 1.35; margin: 0 0 4px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-desc { font-size: 0.8rem; color: #475569; line-height: 1.4; margin: 0 0 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f5f9; padding-top: 8px; font-size: 0.72rem; color: #64748b; font-weight: 700; }

.layanan-wrapper-card { background: #ffffff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); border: 1px solid #e2e8f0; }
.layanan-header { margin-bottom: 14px; }
.layanan-header h2 { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin: 0 0 2px 0; }
.layanan-header p { font-size: 0.8rem; color: #475569; margin: 0; }
.layanan-grid-new { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.layanan-item-new { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; color: var(--primary); text-decoration: none; transition: all 0.2s ease; min-height: 44px; }
.layanan-item-new:hover { background: #ffffff; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06); }
.layanan-item-new i { font-size: 1.4rem; color: var(--primary); }
.layanan-item-new span { font-size: 0.82rem; font-weight: 700; color: var(--primary); }

.slider-arrow-group { display: flex; align-items: center; gap: 8px; }
.btn-arrow-slider { width: 44px; height: 44px; border-radius: 50%; background: #ffffff; border: 1px solid #cbd5e1; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); }
.btn-arrow-slider:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); transform: scale(1.05); }

.btn-detail-sarana, a.btn-detail-sarana { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; padding: 8px 16px !important; min-height: 44px; border-radius: 10px !important; border: 1.5px solid var(--primary) !important; background: #ffffff !important; color: var(--primary) !important; font-size: 0.85rem !important; font-weight: 700 !important; transition: all 0.2s ease !important; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important; text-decoration: none !important; }
.btn-detail-sarana:hover, a.btn-detail-sarana:hover { background: var(--primary) !important; color: #ffffff !important; border-color: var(--primary) !important; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important; }

.sarana-card-exact { flex: 0 0 250px; background: #ffffff; border-radius: 14px; border: 1px solid #e2e8f0; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); transition: transform 0.2s ease, border-color 0.2s ease; box-sizing: border-box; }
.sarana-card-exact:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); border-color: var(--primary); }
.sarana-img-box { width: 100%; height: 160px; position: relative; overflow: hidden; background: #0f172a; display: flex; align-items: center; justify-content: center; }
.sarana-img-box img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; transition: transform 0.4s ease; }
.sarana-card-exact:hover .sarana-img-box img { transform: scale(1.05); }
.sarana-img-placeholder { width: 100%; height: 100%; background: #f8fafc; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--primary); }
.sarana-info-box { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.sarana-cat-pill { background: rgba(0, 0, 0, 0.05); color: var(--primary); font-size: 0.65rem; font-weight: 800; padding: 2px 8px; border-radius: 20px; width: fit-content; margin-bottom: 6px; text-transform: uppercase; border: 1px solid var(--primary); }
.sarana-title { font-size: 0.95rem; font-weight: 800; color: var(--primary); margin: 0 0 8px 0; line-height: 1.3; }
.sarana-spec-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.75rem; color: #475569; font-weight: 600; border-top: 1px solid #f1f5f9; padding-top: 8px; }

.sambutan-grid-exact { 
    display: grid !important; 
    grid-template-columns: 1fr 280px !important; 
    gap: 24px !important; 
    align-items: stretch !important; 
    width: 100% !important;
    box-sizing: border-box !important; 
}
.sambutan-card-left { 
    background: #ffffff !important; 
    border: 1.5px solid #e2e8f0 !important; 
    border-radius: 16px !important; 
    padding: 26px 30px !important; 
    position: relative !important; 
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: space-between !important; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important; 
    box-sizing: border-box !important; 
}
.quote-watermark { 
    position: absolute !important; 
    top: 18px !important; 
    right: 22px !important; 
    font-size: 2.2rem !important; 
    color: var(--primary) !important; 
    opacity: 0.2 !important; 
    pointer-events: none !important; 
}
.kepsek-name-title { 
    font-size: 1.25rem !important; 
    font-weight: 800 !important; 
    color: var(--primary) !important; 
    margin: 0 0 2px 0 !important; 
    line-height: 1.3 !important; 
}
.kepsek-role-tag { 
    font-size: 0.85rem !important; 
    font-weight: 700 !important; 
    color: var(--primary) !important; 
    margin-bottom: 14px !important; 
    display: block !important; 
}
.kepsek-message-text { 
    font-size: 0.95rem !important; 
    color: #334155 !important; 
    line-height: 1.7 !important; 
    margin-bottom: 20px !important; 
    text-align: left !important; 
}
.btn-selengkapnya { 
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 8px !important; 
    background: var(--primary) !important; 
    color: #ffffff !important; 
    padding: 10px 22px !important; 
    border-radius: 50px !important; 
    font-size: 0.85rem !important; 
    font-weight: 800 !important; 
    border: none !important; 
    cursor: pointer !important; 
    transition: all 0.25s ease !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; 
    width: fit-content !important; 
    min-height: 44px;
}
.btn-selengkapnya:hover { 
    filter: brightness(0.88) !important; 
    transform: translateX(3px) !important; 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important; 
}

.sambutan-card-right { 
    background: #ffffff !important; 
    border: 1.5px solid #e2e8f0 !important; 
    border-radius: 16px !important; 
    padding: 16px !important; 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    text-align: center !important; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important; 
    box-sizing: border-box !important; 
}
.kepsek-photo-box { 
    width: 100% !important; 
    height: 250px !important; 
    border-radius: 12px !important; 
    overflow: hidden !important; 
    background: #f8fafc !important; 
    border: 1px solid #cbd5e1 !important; 
    margin-bottom: 12px !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    box-sizing: border-box !important; 
}
.kepsek-photo-box img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    object-position: top center !important; 
    display: block !important; 
}
.kepsek-placeholder-icon { 
    width: 100% !important; 
    height: 100% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    color: var(--primary) !important; 
    font-size: 3.5rem !important; 
    background: #f1f5f9 !important; 
}
.kepsek-info-bottom { 
    width: 100% !important; 
    text-align: center !important; 
    padding: 4px 0 !important; 
}
.kepsek-info-bottom h4 { 
    font-size: 0.95rem !important; 
    font-weight: 800 !important; 
    color: var(--primary) !important; 
    margin: 0 0 2px !important; 
    line-height: 1.3 !important; 
}
.kepsek-info-bottom span { 
    font-size: 0.8rem !important; 
    color: var(--primary) !important; 
    font-weight: 700 !important; 
    display: block !important; 
}

.modal-sambutan-overlay { 
    display: none; 
    position: fixed !important; 
    inset: 0 !important; 
    background: rgba(0, 0, 0, 0.75) !important; 
    backdrop-filter: blur(6px) !important; 
    -webkit-backdrop-filter: blur(6px) !important; 
    z-index: 999999 !important; 
    align-items: center !important; 
    justify-content: center !important; 
    padding: 20px !important; 
    box-sizing: border-box !important; 
}
.modal-sambutan-card-new { 
    background: #ffffff !important; 
    border-radius: 20px !important; 
    max-width: 520px !important; 
    width: 100% !important; 
    max-height: 85vh !important; 
    display: flex !important; 
    flex-direction: column !important; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important; 
    position: relative !important; 
    overflow: hidden !important; 
    animation: modalPopUpSambutan 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important; 
    box-sizing: border-box !important; 
}
@keyframes modalPopUpSambutan { 
    from { opacity: 0; transform: scale(0.95) translateY(10px); } 
    to { opacity: 1; transform: scale(1) translateY(0); } 
}
.btn-close-sambutan-new { 
    position: absolute !important; 
    top: 14px !important; 
    right: 14px !important; 
    width: 44px !important; 
    height: 44px !important; 
    border-radius: 50% !important; 
    background: #f1f5f9 !important; 
    border: 1px solid #e2e8f0 !important; 
    color: #475569 !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    cursor: pointer !important; 
    font-size: 1rem !important; 
    z-index: 10 !important; 
    transition: all 0.2s !important; 
}
.btn-close-sambutan-new:hover { 
    background: #ef4444 !important; 
    color: #ffffff !important; 
    border-color: #ef4444 !important; 
    transform: rotate(90deg) !important; 
}
.modal-sambutan-header-new { 
    padding: 16px 20px 12px !important; 
    border-bottom: 1px solid #f1f5f9 !important; 
    text-align: center !important; 
}
.modal-sambutan-header-new h2 { 
    font-size: 1.15rem !important; 
    font-weight: 800 !important; 
    color: var(--primary) !important; 
    margin: 0 !important; 
}
.modal-kepsek-profile { 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    text-align: center !important; 
    padding: 14px 20px 10px !important; 
    background: #f8fafc !important; 
    border-bottom: 1px solid #f1f5f9 !important; 
}
.modal-kepsek-profile img { 
    width: 80px !important; 
    height: 80px !important; 
    border-radius: 50% !important; 
    object-fit: cover !important; 
    object-position: top center !important; 
    border: 3px solid #ffffff !important; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important; 
    margin-bottom: 6px !important; 
}
.modal-sambutan-body-new { 
    padding: 16px 20px 22px !important; 
    font-size: 0.9rem !important; 
    color: #334155 !important; 
    line-height: 1.7 !important; 
    text-align: left !important; 
    white-space: pre-line !important; 
    overflow-y: auto !important; 
    -webkit-overflow-scrolling: touch !important; 
}

.gallery-lightbox-overlay { 
    display: none !important; 
    position: fixed !important; 
    inset: 0 !important; 
    background: rgba(0, 0, 0, 0.85) !important; 
    backdrop-filter: blur(8px) !important; 
    z-index: 999999 !important; 
    align-items: center !important; 
    justify-content: center !important; 
    padding: 16px !important; 
    box-sizing: border-box !important; 
}
.gallery-lightbox-container { 
    position: relative !important; 
    max-width: 800px !important; 
    width: 100% !important; 
    max-height: 90vh !important; 
    background: #0f172a !important; 
    border: 1px solid var(--primary) !important; 
    border-radius: 16px !important; 
    overflow: hidden !important; 
    display: flex !important; 
    flex-direction: column !important; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important; 
    box-sizing: border-box !important; 
}
.btn-close-lightbox { 
    position: absolute !important; 
    top: 12px !important; 
    right: 12px !important; 
    width: 44px !important; 
    height: 44px !important; 
    border-radius: 50% !important; 
    background: rgba(0, 0, 0, 0.5) !important; 
    border: 1px solid rgba(255, 255, 255, 0.2) !important; 
    color: #ffffff !important; 
    font-size: 1.1rem !important; 
    cursor: pointer !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    z-index: 20 !important; 
    transition: background 0.2s; 
}
.btn-close-lightbox:hover { 
    background: #ef4444 !important; 
    border-color: #ef4444 !important; 
}
.gallery-lightbox-img-box { 
    width: 100% !important; 
    max-height: 65vh !important; 
    background: #020617 !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    overflow: hidden !important; 
}
.gallery-lightbox-img-box img { 
    max-width: 100% !important; 
    max-height: 65vh !important; 
    object-fit: contain !important; 
    display: block !important; 
}
.gallery-lightbox-caption { 
    padding: 16px 20px !important; 
    background: #0f172a !important; 
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important; 
    box-sizing: border-box !important; 
}
.lightbox-badge { 
    display: inline-block !important; 
    background: var(--primary) !important; 
    color: #ffffff !important; 
    font-size: 0.72rem !important; 
    font-weight: 800 !important; 
    padding: 2px 10px !important; 
    border-radius: 20px !important; 
    margin-bottom: 4px !important; 
    text-transform: uppercase !important; 
}
.gallery-lightbox-caption h3 { 
    margin: 0 !important; 
    font-size: 1.1rem !important; 
    font-weight: 700 !important; 
    color: #ffffff !important; 
    line-height: 1.3 !important; 
}

.program-card-exact { flex: 0 0 calc(33.333% - 10px); min-width: 260px; background: #ffffff; border-radius: 16px; border: 1px solid #e2e8f0; padding: 26px 20px; text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03); transition: transform 0.2s ease, border-color 0.2s ease; display: flex; flex-direction: column; align-items: center; box-sizing: border-box; }
.program-card-exact:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); border-color: var(--primary); }
.program-icon-circle { width: 50px; height: 50px; background: rgba(0, 0, 0, 0.05); color: var(--primary); border: 1px solid var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 12px; }
.program-card-title { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin: 0 0 8px 0; line-height: 1.3; }
.program-card-desc { font-size: 0.85rem; color: #475569; line-height: 1.55; margin: 0; text-align: center; }

.gallery-carousel-track .gallery-home-card { flex: 0 0 260px; height: 180px; position: relative; border-radius: 14px; overflow: hidden; background: #0f172a; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04); transition: transform 0.2s ease, border-color 0.2s ease; display: flex; box-sizing: border-box; cursor: pointer; }
.gallery-carousel-track .gallery-home-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1); border-color: var(--primary); }
.gallery-home-img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; transition: transform 0.4s ease; }
.gallery-home-card:hover .gallery-home-img { transform: scale(1.05); }
.gallery-home-placeholder { width: 100%; height: 100%; background: #f8fafc; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--primary); }
.gallery-home-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.3) 60%, rgba(15, 23, 42, 0.9) 100%); padding: 12px 14px 10px; color: white; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.gallery-home-tag { background: #ffffff; color: var(--primary); font-size: 0.65rem; font-weight: 800; padding: 2px 8px; border-radius: 20px; width: fit-content; margin-bottom: 4px; text-transform: uppercase; }
.gallery-home-title { color: #ffffff; font-size: 0.85rem; font-weight: 700; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.video-gallery-grid { display: grid !important; grid-template-columns: 1.6fr 1fr !important; gap: 20px !important; align-items: start !important; width: 100% !important; }
.video-main-column { display: flex; flex-direction: column; min-width: 0; }

.video-main { 
    background: #0f172a; 
    border-radius: var(--radius); 
    overflow: hidden; 
    box-shadow: var(--shadow-sm); 
    position: relative; 
    padding-top: 56.25%; 
    height: 0;
    border: 1px solid var(--primary); 
    transition: opacity 0.3s ease, transform 0.3s ease, padding-top 0.4s ease, height 0.4s ease;
    opacity: 1;
    transform: scale(1);
}
.video-main iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: none; 
    display: block;
}

.video-main.is-tiktok {
    padding-top: 0 !important;
    height: 600px !important;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-color: var(--primary) !important;
}
.video-main.is-tiktok .video-facade-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.video-main.is-tiktok iframe {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 340px !important; /* Standar proporsi mobile TikTok */
    height: 100% !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden !important;
}

.video-main-info { background: #ffffff; padding: 16px 20px; border-radius: var(--radius); border: 1px solid #e2e8f0; margin-top: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02); }
.video-playlist-column { background: #ffffff; border: 1px solid var(--primary); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02); }
.video-playlist-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
.video-playlist-header h3 { margin: 0; font-size: 0.95rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.video-playlist-header span { font-size: 0.75rem; font-weight: 700; color: var(--primary); background: rgba(0, 0, 0, 0.05); padding: 2px 8px; border-radius: 10px; }
.video-list-scroll-box { display: flex !important; flex-direction: column !important; gap: 8px !important; max-height: 560px !important; overflow-y: auto !important; overflow-x: hidden !important; padding: 10px !important; box-sizing: border-box !important; -webkit-overflow-scrolling: touch; }
.video-list-scroll-box::-webkit-scrollbar { width: 4px; }
.video-list-scroll-box::-webkit-scrollbar-track { background: #f8fafc; border-radius: 10px; }
.video-list-scroll-box::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.video-card { display: flex !important; gap: 10px !important; padding: 8px 10px !important; border-radius: 10px !important; background: #ffffff !important; border: 1px solid #e2e8f0 !important; cursor: pointer !important; transition: all 0.2s ease !important; box-sizing: border-box !important; align-items: center !important; text-decoration: none !important; min-height: 60px; }
.video-card:hover { background: #f8fafc !important; border-color: var(--primary) !important; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); }
.video-card.active { background: #f8fafc !important; border-color: var(--primary) !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; }
.vid-thumb-wrapper { width: 95px !important; height: 60px !important; flex-shrink: 0 !important; border-radius: 6px !important; overflow: hidden !important; position: relative !important; background: #0f172a !important; }
.video-card .vid-thumb { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.video-card .vid-thumb.placeholder { display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; }
.vid-thumb-wrapper .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; background: rgba(0, 0, 0, 0.6); color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; transition: all 0.2s ease; }
.video-card:hover .play-icon, .video-card.active .play-icon { background: var(--primary); transform: translate(-50%, -50%) scale(1.1); }
.video-card .vid-info { display: flex !important; flex-direction: column !important; justify-content: center !important; flex: 1 !important; min-width: 0 !important; }

.vid-meta-row { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.vid-cat-badge { font-size: 0.65rem !important; font-weight: 800; color: var(--primary) !important; background: rgba(0, 0, 0, 0.05) !important; padding: 2px 6px !important; border-radius: 4px !important; width: fit-content !important; text-transform: uppercase !important; border: 1px solid var(--primary); }
.vid-platform-tag { font-size: 0.65rem !important; font-weight: 800; padding: 2px 6px !important; border-radius: 4px !important; width: fit-content !important; display: inline-flex; align-items: center; gap: 3px; }
.vid-platform-yt { background: #fee2e2; color: #dc2626; }
.vid-platform-tt { background: #f1f5f9; color: #0f172a; border: 1px solid #cbd5e1; }

.video-card .vid-info h4 { font-size: 0.85rem !important; font-weight: 800 !important; color: var(--primary) !important; line-height: 1.3 !important; margin: 2px 0 !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
.video-card .vid-info p { font-size: 0.75rem !important; color: #475569 !important; display: -webkit-box !important; -webkit-line-clamp: 1 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; margin: 0 !important; }

.warga-sekolah-container {
    background: #f8fafc;
    border: 1.5px solid var(--border-light);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}
.warga-header-title h2 {
    font-family: 'Lora', serif !important;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 2px 0;
    line-height: 1.2;
}
.warga-header-title p {
    font-size: 0.85rem;
    color: #475569;
    margin: 0 0 14px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.warga-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.warga-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.warga-stat-card .label { font-size: 0.75rem; color: #475569; font-weight: 700; margin-bottom: 2px; }
.warga-stat-card .value-row { display: flex; align-items: baseline; gap: 4px; }
.warga-stat-card .value-row strong { font-size: 1.3rem; font-weight: 900; color: var(--primary); line-height: 1; }
.warga-stat-card .value-row span { font-size: 0.75rem; color: var(--primary); font-weight: 700; }

.warga-split-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.warga-col-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.warga-col-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.warga-col-top h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.link-lihat-lengkap { color: var(--primary); font-size: 0.8rem; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: transform 0.2s ease; min-height: 24px;}
.link-lihat-lengkap:hover { transform: translateX(3px); filter: brightness(0.85); }

.warga-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}
.warga-person-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    width: 100%;
    overflow: hidden;
    padding: 0 4px;
    box-sizing: border-box;
}
.guru-thumb-frame {
    width: 54px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid #cbd5e1;
    background: #f8fafc; display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.guru-thumb-frame img { width: 100%; height: 100%; object-fit: cover; }
.siswa-squircle-avatar {
    width: 50px; height: 50px; border-radius: 12px; background: var(--primary); color: #ffffff;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800;
    margin-bottom: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); overflow: hidden;
}
.siswa-squircle-avatar img { width: 100%; height: 100%; object-fit: cover; }

.person-name-txt { 
    font-size: 0.8rem; 
    font-weight: 800; 
    color: #0f172a; 
    margin: 0 !important; 
    padding: 0 !important; 
    line-height: 1.1 !important; 
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis;
    width: 100%;
}
.person-role-txt { 
    font-size: 0.7rem; 
    color: #475569;
    margin: 2px 0 0 0 !important; 
    padding: 0 !important; 
    line-height: 1.1 !important; 
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis;
    width: 100%;
}

.mading-section {
    background: #ffffff !important;
    border: 1px solid var(--primary) !important;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}
.mading-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 16px; 
    flex-wrap: wrap; 
    gap: 12px; 
}
.mading-header-text .mading-badge-tag {
    color: var(--primary); 
    font-weight: 800; 
    font-size: 0.75rem; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    margin-bottom: 4px; 
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--primary);
}
.mading-header-text h2 { 
    font-size: 1.35rem; 
    font-weight: 800; 
    color: var(--primary); 
    margin: 0; 
    line-height: 1.2; 
}
.mading-header-text p { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    margin: 2px 0 0; 
    font-weight: 500; 
}
.mading-box { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: var(--radius); 
    padding: 16px 20px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 16px; 
    width: 100%; 
    box-sizing: border-box;
}
.mading-info { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
}
.mading-icon { 
    width: 46px; 
    height: 46px; 
    background: rgba(0, 0, 0, 0.05); 
    color: var(--primary); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.4rem; 
    flex-shrink: 0; 
    border: 1px solid var(--primary); 
}
.mading-text h3 {
    font-size: 1rem; 
    font-weight: 800; 
    color: var(--primary); 
    margin: 0 0 2px;
}
.mading-text p {
    color: var(--text-muted); 
    font-size: 0.82rem; 
    margin: 0;
}

@media (max-width: 992px) { 
    .video-gallery-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .video-playlist-column { max-height: none !important; }
    .video-list-scroll-box { max-height: 350px !important; }
    .warga-split-columns { grid-template-columns: 1fr; } 

    .video-main.is-tiktok {
        height: 620px !important;
    }
    .video-main.is-tiktok iframe {
        max-width: 100% !important;
    }

    .sambutan-grid-exact {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    .sambutan-card-right {
        order: 1 !important;
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }
    .sambutan-card-right .kepsek-photo-box {
        width: 160px !important;
        height: 190px !important;
        margin: 0 auto 10px !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
        flex-shrink: 0 !important;
    }
    .sambutan-card-left {
        order: 2 !important;
        padding: 20px 18px !important;
        border-radius: 14px !important;
    }
    .sambutan-card-left .kepsek-name-title,
    .sambutan-card-left .kepsek-role-tag {
        display: none !important;
    }
    .sambutan-card-left .kepsek-message-text {
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
        margin-bottom: 16px !important;
    }
    .sambutan-card-left .btn-selengkapnya {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .home-section { margin-top: 22px !important; }
    .section-main-box { padding: 16px 14px; border-radius: 14px; }
    .custom-section-header { gap: 8px; margin-bottom: 10px; }
    .header-icon-box { width: 32px; height: 32px; font-size: 0.95rem; border-radius: 6px; }
    .header-text-box .section-title-custom { font-size: 1.1rem; }
    .header-text-box .section-subtitle-custom { font-size: 0.75rem; }

    .hero-slider-container { height: 210px; border-radius: 12px; }
    .hero-slide-bg { object-fit: cover !important; background: #0f172a; }
    .hero-slide-overlay { padding: 12px 16px; }
    .hero-slide-title { font-size: 1.25rem !important; line-height: 1.3 !important; margin-bottom: 4px !important; }
    .hero-slide-desc { font-size: 0.85rem !important; line-height: 1.4 !important; -webkit-line-clamp: 2 !important; display: -webkit-box !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
    
    .hero-arrow-btn { width: 44px; height: 44px; font-size: 0.9rem; }
    .hero-arrow-btn.prev { left: 8px; }
    .hero-arrow-btn.next { right: 8px; }

    .news-card-slide { flex: 0 0 240px; border-radius: 10px; }
    .news-card-img-wrap { height: 140px; }

    .sarana-card-exact { flex: 0 0 220px; border-radius: 12px; }
    .sarana-img-box { height: 140px; }
    .sarana-info-box { padding: 12px; }
    .sarana-title { font-size: 0.95rem; }

    .program-card-exact { flex: 0 0 75vw; padding: 20px 16px; border-radius: 12px; }
    .program-card-title { font-size: 1rem; }

    .gallery-carousel-track .gallery-home-card { flex: 0 0 75vw; height: 160px; border-radius: 12px; }

    .layanan-wrapper-card { padding: 18px 14px; border-radius: 14px; }
    .layanan-grid-new { gap: 10px; }
    .layanan-item-new { padding: 12px 8px; border-radius: 8px; min-height: 44px; }
    .layanan-item-new i { font-size: 1.25rem; }
    .layanan-item-new span { font-size: 0.75rem; }

    .btn-arrow-slider { width: 44px; height: 44px; font-size: 0.9rem; }
    .btn-detail-sarana, a.btn-detail-sarana { padding: 8px 14px !important; font-size: 0.75rem !important; border-radius: 8px !important; min-height: 44px; }

    .video-main.is-tiktok {
        height: 580px !important;
    }
    .video-main-info { padding: 14px; }
    .video-main-info h3 { font-size: 1.05rem !important; }
    
    /* Layout Playlist Video Mobile Rapi & Presisi */
    .video-list-scroll-box {
        max-height: 320px !important;
        padding: 8px !important;
        gap: 6px !important;
    }
    .video-card { 
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 8px !important; 
        min-height: 58px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .vid-thumb-wrapper { 
        width: 82px !important; 
        height: 52px !important; 
        flex-shrink: 0 !important;
        border-radius: 6px !important;
    }
    .video-card .vid-info {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    .vid-meta-row {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-bottom: 2px !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
    }
    .vid-cat-badge, .vid-platform-tag {
        font-size: 0.58rem !important;
        padding: 1px 5px !important;
        white-space: nowrap !important;
    }
    .video-card .vid-info h4 { 
        font-size: 0.78rem !important; 
        font-weight: 800 !important;
        line-height: 1.25 !important;
        margin: 0 0 2px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .video-card .vid-info p {
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .warga-sekolah-container { padding: 16px 14px; border-radius: 14px; }
    .warga-header-title h2 { font-size: 1.2rem; }
    .warga-header-title p { font-size: 0.8rem; }
    .warga-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .warga-stat-card { padding: 10px; }
    .warga-stat-card .value-row strong { font-size: 1.2rem; }
    .warga-col-card { padding: 14px; border-radius: 12px; }
    .warga-items-grid { gap: 10px; }
    .guru-thumb-frame { width: 48px; height: 58px; margin-bottom: 6px; }
    .siswa-squircle-avatar { width: 46px; height: 46px; font-size: 1.2rem; margin-bottom: 6px; }
    
    .person-name-txt { font-size: 0.75rem; white-space: nowrap; margin: 0 !important; line-height: 1.1 !important; }
    .person-role-txt { font-size: 0.65rem; white-space: nowrap; margin: 2px 0 0 0 !important; line-height: 1.1 !important; }

    .mading-text { flex: 1; min-width: 0; }
    .mading-text p {
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100%;
    }

    .mading-section { padding: 18px 16px; border-radius: 14px; }
    .mading-header { margin-bottom: 12px; }
    .mading-header-text h2 { font-size: 1.2rem; }
    .mading-box { padding: 14px 16px; flex-direction: column; align-items: stretch; text-align: center; }
    .mading-info { flex-direction: column; text-align: center; gap: 8px; }
    .mading-icon { margin: 0 auto; }
    .mading-box a { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .news-card-slide { flex: 0 0 75vw; }
    .sarana-card-exact { flex: 0 0 75vw; }
    .video-main.is-tiktok { height: 560px !important; }
}