/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.blur {
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.liquid-glass {
    /* Efek Blur */
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    
    /* Adopsi Border Radius 2rem dari referensi */
    border-radius: 2rem;

    /* TEKNIK BORDER GRADIENT: Menggunakan background-clip agar tidak merusak border-radius */
    border: 1.5px solid transparent;
    background-image: 
        linear-gradient(var(--base-color-brand--black), var(--base-color-brand--black)), 
        linear-gradient(135deg, 
            var(--base-color-brand--offwhite) 0%, 
            transparent 40%, 
            transparent 60%, 
            var(--base-color-brand--offwhite) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.box-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Container utama dengan background image untuk efek blur */
.glass-bg {
    /* Tambahkan gambar latar belakang yang menarik di sini. 
       Contoh menggunakan gambar pemandangan Bali agar efek blur terlihat. */
    background-image: url('https://images.unsplash.com/photo-1579970423236-4a4b27eb9543?q=80&w=2000&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Membuat background tetap saat discroll */
    min-height: 100vh; /* Pastikan background memenuhi layar */
}

/* --- NEWS GRID (3 Kolom Berjajar) --- */
.news-grid {
    display: grid;
    /* Mengunci 3 kolom dengan ukuran yang sama (1fr) */
    grid-template-columns: repeat(3, 1fr); 
    
    /* Mengadopsi gap dari referensi Anda */
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
    
    width: 100%;
    max-width: 1100px; /* Menjaga agar tidak terlalu lebar di layar besar */
    margin: 0 auto;
    justify-items: center; 
}

/* --- NEWS CARD (LIQUID GLASS STYLE) --- */
.news-card {
    /* Adopsi Alignment & Flex dari referensi Anda */
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    
    max-width: 19.375rem; 
    width: 100%;
    padding: 1.5rem;
    
    /* Efek Blur */
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    
    /* Adopsi Border Radius 2rem dari referensi */
    border-radius: 2rem;

    /* TEKNIK BORDER GRADIENT: Menggunakan background-clip agar tidak merusak border-radius */
    border: 1.5px solid transparent;
    background-image: 
        linear-gradient(var(--base-color-brand--black), var(--base-color-brand--black)), 
        linear-gradient(135deg, 
            var(--base-color-brand--offwhite) 0%, 
            transparent 40%, 
            transparent 60%, 
            var(--base-color-brand--offwhite) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    /* Sedikit mencerahkan background saat hover */
    background-image: 
        linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05)),
        linear-gradient(var(--base-color-brand--black), var(--base-color-brand--black)), 
        linear-gradient(135deg, white 0%, transparent 40%, transparent 60%, white 100%);
}

/* --- ELEMEN DI DALAM KARTU --- */
.news-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: rgba(255, 255, 255, 0.1);
    /* Radius lebih kecil sedikit dari card utama agar estetik */
    border-radius: 1.5rem;
    margin-bottom: 1.25rem;
}
.news-thumbnail-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
}

.news-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: black;
    margin-bottom: 0.25rem;
}

.news-body p {
    font-size: 1rem;
    color: var(--text-light);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #e60000; /* Warna merah sesuai gambar */
    padding: 10px 0;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo img {
    height: 40px;
}

/* Hero Section */
.hero-section {
    padding-bottom: 50px;
}

.slider-main {
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
}

 .slider-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
}

.slider-content div {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.dropdown-menu {
    background-color: rgba(0, 0, 90, 0.7);
    border-radius: 15px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    width: 200px;
    overflow: hidden;
}

.dropdown-item {
    color: white;
    padding: 5px 15px;
    text-decoration: none;
    display: block;
}

.dropdown-item:hover {
    background-color: rgba(1, 2, 47, 1);
    padding-left: 20px;
    color:white;
}

.red-badge {
    background-color: rgba(230, 0, 0, 0.4);
    width: 200px;
    height: 60px;
    border-radius: 15px;
    margin-top: 20px;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    z-index: 999;
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* Profile Section */
.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: -50px; /* Menumpuk sedikit ke atas slider */
}

.welcome-box {
    background-color: #f5f5f5;
    border-radius: 20px;
    min-height: 250px;
}

.leader-card {
    text-align: center;
}

.leader-card img {
    width: 100%;
    max-width: 250px;
    border-radius: 15px;
}

.leader-info h3 {
    font-size: 16px;
    margin: 10px 0;
}

.btn-perbekel {
    background-color: #e60000;
    color: white;
    text-decoration: none;
    padding: 8px 40px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
}

/* News Section */
.news-section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 800;
    letter-spacing: 1px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.news-img {
    background-color: #e0e0e0;
    height: 200px;
    border-radius: 20px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-container {
    background-color: #e0e0e0;
    height: 200px;
    border-radius: 20px;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.card-custom { border: none; border-radius: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.stat-card { background: #f1f3f5; border-radius: 10px; padding: 15px; text-align: center; }
.btn-detail { background-color: #c82333; color: white; border-radius: 8px; width: 100%; border: none; padding: 10px; }
.btn-detail:hover { background-color: #a71d2a; color: white; }
.border-box { border: 1px solid #eee; border-radius: 12px; padding: 15px; margin-bottom: 15px; display: flex; align-items: center; }
.icon-box { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 15px; }
.progress { height: 10px; border-radius: 5px; }
.progress-bar { background-color: #c82333; }
.orbitasi-item { position: relative; padding-left: 30px; margin-bottom: 20px; border-left: 2px dashed #dee2e6; }
.orbitasi-icon { position: absolute; left: -16px; background: white; border-radius: 50%; padding: 2px; }

.hpx-300 {
    height: 300px;
}

.hpx-500 {
    height: 500px;
}

.hpx-600 {
    height: 600px;
}

.news-body {
    padding: 15px 5px;
}

.news-body h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.date {
    color: red;
    font-size: 11px;
    font-weight: bold;
}

/* Stats Section */
.gray-placeholder-large {
    background-color: #d9d9d9;
    height: 150px;
    border-radius: 0;
    margin-bottom: 40px;
}

.news-section {
    background-color: rgb(14, 0, 74)
}

.social-media h5 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #e60000;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-grid, .news-grid {
        grid-template-columns: 1fr;
    }
    .social-icons {
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

