/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --merah-utama: #d90429;
    --merah-gelap: #ef233c;
    --putih-bersih: #ffffff;
    --abu-terang: #f8f9fa;
    --gelap: #2b2d42;
}

body {
    color: var(--gelap);
    background-color: var(--putih-bersih);
    line-height: 1.6;
}

/* NAVBAR UTAMA */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--putih-bersih);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--gelap);
}

.navbar .logo span {
    color: var(--merah-utama);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    transition: all 0.4s ease-in-out; /* Animasi smooth saat menu turun */
}

.nav-links li a {
    text-decoration: none;
    color: var(--gelap);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--merah-utama);
}

/* TOMBOL HAMBURGER (Disembunyikan di Laptop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--gelap);
    border-radius: 3px;
    transition: 0.3s ease;
}

/* ========================================== */
/* RESPONSIVE NAVBAR UNTUK LAYAR HP (Max 768px) */
/* ========================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Munculkan tombol hamburger di HP */
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Muncul tepat di bawah navbar */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98); /* Putih dengan sedikit transparan */
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
        gap: 15px;
        
        /* Efek Menyembunyikan Menu ke Atas */
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none; 
    }

    /* Ketika Menu Aktif (Dipencet), Menu akan Turun dan Terlihat */
    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links li a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }

    /* ANIMASI TOMBOL HAMBURGER JADI HURUF 'X' SAAT DIKLIK */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--merah-utama);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--merah-utama);
    }
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(217, 4, 41, 0.88), rgba(43, 45, 66, 0.92)), url('https://images.unsplash.com/photo-1626224583764-f87db24ac4ea?q=80&w=1200') no-repeat center center/cover;
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--putih-bersih);
    padding: 40px 20px;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* COUNTDOWN TIMER */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.time-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 0;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    width: 75px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.time-box span {
    font-size: 1.6rem;
    font-weight: 700;
    display: block;
    line-height: 1.1;
}

.time-box p {
    font-size: 0.75rem;
    margin-bottom: 0;
    opacity: 0.8;
    text-transform: uppercase;
}

.btn-main {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--merah-utama);
    color: var(--putih-bersih);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-main:hover {
    background-color: var(--putih-bersih);
    color: var(--merah-utama);
    transform: translateY(-2px);
}

/* SECTIONS */
.section {
    padding: 60px 5%;
    text-align: center;
}

.bg-light {
    background-color: var(--abu-terang);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 35px;
    color: var(--gelap);
    font-weight: 700;
}

.section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--merah-utama);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

/* KOMUNITAS */
.about-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background: var(--putih-bersih); /* Fixed from --white to --putih-bersih */
}

.about-container h3 {
    color: var(--merah-utama);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.about-container p {
    margin-bottom: 15px;
    color: #555;
    font-size: 0.95rem;
}

.about-container .motto {
    background-color: var(--abu-terang);
    padding: 15px;
    border-left: 4px solid var(--merah-utama);
    font-style: italic;
}

.about-container .motto span {
    color: var(--gelap);
    font-weight: 600;
}

/* CARDS KETENTUAN */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: var(--putih-bersih);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border-top: 4px solid var(--merah-utama);
    text-align: left;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--gelap);
    font-size: 1.15rem;
}

.card p {
    font-size: 0.9rem;
    color: #666;
}

/* HADIAH */
/* ========================================== */
/* DESAIN BARU: SECTION TOTAL HADIAH (PREMIUM) */
/* ========================================== */
.prize-section {
    background: linear-gradient(135deg, #1b1c2b 0%, #d90429 50%, #2b2d42 100%);
    color: var(--putih-bersih);
    position: relative;
    overflow: hidden;
}

/* Garis dekorasi estetik di latar belakang */
.prize-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.prize-section h2 {
    color: var(--putih-bersih);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.prize-section h2::after {
    background-color: #ffd700; /* Garis bawah judul jadi emas */
    width: 80px;
    height: 5px;
    box-shadow: 0 0 10px #ffd700;
}

.total-prize {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 45px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #ffd700, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255,215,0,0.4));
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 2px 5px rgba(255,215,0,0.3)); }
    100% { filter: drop-shadow(0 2px 15px rgba(255,215,0,0.7)); }
}

.prize-distribution {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 550px;
    margin: 0 auto;
}

/* BASE KOTAK HADIAH / PODIUM */
.prize-box {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--putih-bersih);
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.prize-box:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.13);
}

/* BADGE KELAS JUARA */
.badge-rank {
    display: inline-block;
    padding: 6px 20px;
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* KUSTOMISASI KHUSUS PER PODIUM (WARNA & GLOW) */
.rank-1 {
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.15);
}
.rank-1:hover {
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
}
.rank-1 .badge-rank { 
    background: linear-gradient(135deg, #ffe066, #ffd700); 
    color: #111; 
}

.rank-2 {
    border: 1px solid rgba(192, 192, 192, 0.3);
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.1);
}
.rank-2:hover {
    box-shadow: 0 15px 35px rgba(192, 192, 192, 0.3);
    border-color: #c0c0c0;
}
.rank-2 .badge-rank { 
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0); 
    color: #111; 
}

.rank-3 {
    border: 1px solid rgba(205, 127, 50, 0.3);
    box-shadow: 0 10px 30px rgba(205, 127, 50, 0.1);
}
.rank-3:hover {
    box-shadow: 0 15px 35px rgba(205, 127, 50, 0.35);
    border-color: #cd7f32;
}
.rank-3 .badge-rank { 
    background: linear-gradient(135deg, #e59866, #cd7f32); 
    color: #fff; 
}

/* ATURAN TYPOGRAPHY NOMINAL UANG */
.prize-box .money {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.rank-1 .money { color: #ffd700; text-shadow: 0 0 10px rgba(255,215,0,0.3); }
.rank-2 .money { color: #e0e0e0; text-shadow: 0 0 10px rgba(192,192,192,0.3); }
.rank-3 .money { color: #ffaa66; text-shadow: 0 0 10px rgba(205,127,50,0.3); }

.prize-box span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    display: block;
}

/* RESPONSIVE KHUSUS MODE DESKTOP/LAPTOP */
@media (min-width: 769px) {
    .prize-distribution {
        flex-direction: row;
        align-items: flex-end;
        max-width: 950px;
        height: 340px;
        gap: 20px;
    }
    
    .prize-box {
        flex: 1;
        padding: 40px 20px;
    }
    
    /* Efek susunan podium fisik (Kiri: Juara 2, Tengah: Juara 1 Tinggi, Kanan: Juara 3) */
    .rank-1 { 
        order: 2; 
        height: 100%; 
        display: flex; 
        flex-direction: column; 
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
    }
    .rank-2 { order: 1; height: 85%; }
    .rank-3 { order: 3; height: 75%; }

    .prize-box .money {
        font-size: 1.8rem;
    }
    .rank-1 .money {
        font-size: 2.3rem;
    }
}

/* FORM REGISTRASI */
.reg-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 450px;
    margin: 0 auto 40px auto;
    margin-bottom: -40px
}

.reg-form input {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    transition: 0.3s;
}

.reg-form input:focus {
    border-color: var(--merah-utama);
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1);
}

.btn-submit {
    padding: 14px;
    background-color: var(--merah-utama);
    color: var(--putih-bersih);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--merah-gelap);
}

/* TABEL PESERTA */
/* TABEL PESERTA MODERN (TEMA MERAH PUTIH) */
.bg-light-red {
    background-color: #fffafb; /* Latar belakang section putih dengan sedikit tint kemerahan hangat */
}

.section-header {
    margin-bottom: 25px;
}

.table-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gelap);
    margin-bottom: 0;
}

.scroll-hint {
    font-size: 0.85rem;
    color: var(--merah-utama);
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(217, 4, 41, 0.06);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.scroll-hint svg {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Container utama untuk membatasi lebar & memberikan shadow premium */
.table-container {
    width: 100%; /* Tambahan perbaikan */
    max-width: 100%; /* Tambahan perbaikan */
    margin: 0 auto;
    margin-top: -20px;
    margin-bottom: -5px;
    background: var(--putih-bersih);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(217, 4, 41, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(217, 4, 41, 0.1);
    overflow: hidden;
}

/* Wrapper scrollable */
.table-wrapper {
    display: block; /* Tambahan perbaikan */
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Kustomisasi Scrollbar agar Sinkron dengan Tema */
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 16px 16px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--merah-utama);
}

/* Desain Tabel Utama */
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px; /* Menjaga ukuran minimal tabel di HP agar bisa di-scroll dengan rapi */
    text-align: left;
}

/* Header Tabel (Tema Merah Putih Premium) */
th {
    background: linear-gradient(135deg, var(--merah-utama) 0%, #b80322 100%);
    color: var(--putih-bersih);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 24px;
    border: none;
    white-space: nowrap; /* Tambahan perbaikan */
}

th:first-child {
    border-top-left-radius: 14px;
}

th:last-child {
    border-top-right-radius: 14px;
}

/* Baris Data Tabel */
td {
    padding: 16px 24px;
    font-size: 0.95rem;
    color: #333;
    border-bottom: 1px solid #f5e6e8;
    vertical-align: middle;
    white-space: nowrap; /* Tambahan perbaikan */
    transition: all 0.2s ease;
}

/* Pewarnaan Baris & Efek Hover */
table tbody tr {
    background-color: var(--putih-bersih);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Efek Hover dengan Garis Samping Merah */
table tbody tr:hover td {
    background-color: #afe1af; /* Warna merah muda super soft */
    color: var(--gelap);
}

table tbody tr:hover .row-number {
    color: black;
    font-weight: 700;
}

/* Detail Komponen di Dalam Sel */
.row-number {
    font-weight: 600;
    color: black;
}

.team-name {
    font-weight: 700;
    color: var(--gelap);
    display: flex;       
    align-items: center; 
    gap: 12px;           
    min-width: max-content; /* Tambahan perbaikan */
}

/* Tambahkan class baru untuk ukuran logo tabel */
.team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain; /* Memastikan logo tidak gepeng */
}


/* Badge untuk Leveling Akreditasi */
.lvl-badge {
    font-size: 0.8rem;
    font-weight: 600;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.lvl-badge.text-red {
    background: rgba(43, 45, 66, 0.08);
    color: var(--gelap);
}

.lvl-badge.text-dark {
    background: rgba(43, 45, 66, 0.08);
    color: var(--gelap);
}

/* Badge Status Pembayaran Merah-Putih (Confirmed / Lunas) */
.badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.confirmed {
    background-color: white;
    color: green;
    border: green;
    box-shadow: 0 3px 10px rgba(0, 255, 0, 0.1);
    animation: softGlow 2s infinite alternate;
}

@keyframes softGlow {
    0% { box-shadow: 0 3px 8px rgba(0, 255, 0, 0.1); }
    100% { box-shadow: 0 3px 15px rgba(0, 255, 0, 0.25); }
}

/* RESPONSIVE LAPTOP / MONITOR */
@media (min-width: 769px) {
    .scroll-hint {
        display: none; /* Menyembunyikan info geser pada desktop karena space sudah luas */
    }
    
    td, th {
        padding: 18px 30px; /* Ruang baris lebih luas pada layar besar */
    }
}



/* SPONSOR */
/* ========================================== */
/* BAGIAN SPONSOR MODERN            */
/* ========================================== */
#sponsor {
    background-color: #fffafb; /* Tint kemerahan tipis senada dengan tabel */
    padding: 60px 5%;
    width: 100%;
}

#sponsor .container {
    max-width: 1200px;
    margin: 0 auto;
}

#sponsor h2 {
    text-align: center;
    color: var(--gelap);
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 700;
}

#sponsor h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--merah-utama);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

#sponsor .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 45px;
    font-size: 0.95rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* GRID ADAPTIF: Otomatis membagi kolom & proteksi layar HP */
.sponsor-grid {
    display: grid;
    /* auto-fill dikombinasikan dengan minmax memastikan card responsif tanpa meluber */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    width: 100%;
}

/* CARD SPONSOR */
.sponsor-card {
    background: var(--putih-bersih);
    border: 1px solid #f0e2e4;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column; /* Membuat isi card tersusun vertikal */
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(217, 4, 41, 0.08);
    border-color: var(--merah-utama);
}

/* WRAPPER LOGO */
.logo-wrapper {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #f0e2e4;
    padding-bottom: 15px;
}

.logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Memastikan logo tidak gepeng/distorsi */
    transition: transform 0.3s ease;
}

.sponsor-card:hover .logo-wrapper img {
    transform: scale(1.05);
}

/* SPONSOR INFO (FLEXBOX UTK KESERAGAMAN TINGGI KOTAK) */
.sponsor-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Memaksa box mengambil sisa ruang yang ada */
    width: 100%;
}

.sponsor-info h3 {
    font-size: 1.05rem;
    color: var(--gelap);
    margin-bottom: 8px;
    font-weight: 600;
}

.sponsor-info p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Menjaga teks deskripsi rata dan mendorong tombol ke dasar card */
}

/* TOMBOL LINK KUNJUNGI */
.sponsor-info .btn-link {
    display: inline-block;
    align-self: center;
    background-color: var(--merah-utama);
    color: var(--putih-bersih);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
    max-width: 160px;
    margin-top: auto; /* Tombol akan selalu presisi di bagian bawah card */
}

.sponsor-info .btn-link:hover {
    background-color: var(--merah-gelap);
}

/* MEDIA QUERIES (UNTUK LAYAR LAPTOP & MONITOR BESAR) */
@media (min-width: 769px) {
    #sponsor {
        padding: 80px 8%;
    }
    #sponsor h2 {
        font-size: 2.4rem;
    }
    .sponsor-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
}

/* SECTION KOMUNITAS BERPARTISIPASI */
#komunitas-partisipan {
    background-color: var(--putih-bersih);
    padding: 60px 5%;
    text-align: center;
}

#komunitas-partisipan h2 {
    font-size: 2rem;
    color: var(--gelap);
    margin-bottom: 40px;
}

#komunitas-partisipan h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--merah-utama);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

.komunitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.komunitas-item {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.komunitas-item:hover {
    border-color: var(--merah-utama);
    transform: scale(1.05);
}

.komunitas-item img {
    width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: 0.3s;
}

.komunitas-item:hover img {
    filter: grayscale(0%);
}


/* FOOTER */
footer {
    background-color: var(--gelap);
    color: var(--putih-bersih);
    text-align: center;
    padding: 20px 10px;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* RESPONSIVE UNTUK LAYAR MONITOR/LAPTOP (>= 769px) */
@media (min-width: 769px) {
    .navbar {
        padding: 20px 8%;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .countdown-container {
        gap: 20px;
    }
    
    .time-box {
        width: 95px;
        padding: 15px 0;
    }
    
    .time-box span {
        font-size: 2.2rem;
    }

    .section {
        padding: 80px 10%;
    }

    .section h2 {
        font-size: 2.4rem;
    }
    
    .prize-distribution {
        flex-direction: row;
        align-items: flex-end;
        max-width: 900px;
        height: 300px;
    }
    
    .prize-box {
        flex: 1;
    }
    
    /* Mengembalikan susunan podium (Juara 2 - Juara 1 - Juara 3) di layar besar */
    .rank-1 { order: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
    .rank-2 { order: 1; height: 85%; }
    .rank-3 { order: 3; height: 75%; }
    
    .reg-form {
        flex-direction: row;
        max-width: 900px;
    }
    
    .reg-form input {
        flex: 1;
    }
    
    .btn-submit {
        width: auto;
        padding: 14px 30px;
    }
    
    .sponsor-logos {
        grid-template-columns: repeat(4, 1fr);
        max-width: 900px;
    }
    
    .scroll-hint {
        display: none; /* Hilangkan petunjuk geser di laptop */
    }
}

/* Styling Section Patokan Level */
.level-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.level-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.btn-detail {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--gelap);
    color: var(--putih-bersih);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-detail:hover {
    background-color: var(--merah-utama);
}

.fee-card {
    background: #fff !important;
    border-top: 4px solid var(--merah-utama) !important;
}

.fee-card .price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--merah-utama);
    margin: 10px 0;
}

/* Responsif untuk Layar Monitor */
@media (min-width: 769px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr); /* Tetap 3 kolom di layar lebar */
        max-width: 1000px;
    }
}


/* Portfolio Section with Coverflow */
.portfolio-section {
    margin-top: -10px
    width: 100%;
    overflow: hidden; /* Mencegah konten meluap keluar */
    padding: 60px 5%;
}

.portfolio-header {
	text-align: center;
	margin-top: -60px
	margin-bottom: 60px;
	padding: 0 20px;
}

.portfolio-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	letter-spacing: -1px;
	margin-bottom: 5px;
	margin-top: -70px;
	color: var(--merah-utama);
}

.portfolio-subtitle {
	color: black;
	font-size: 16px;
	max-width: 600px;
	margin: 0 auto;
}

/* Coverflow Container */
.coverflow-wrapper {
    width: 100%;
    max-width: 100%; /* Memastikan tidak melebihi lebar layar */
    position: relative;
    overflow: hidden;
    overflow-x: hidden; /* Memungkinkan scroll horizontal jika item terlalu lebar */
    padding-bottom: 20px;
}

.coverflow-container {
    display: flex;
    touch-action: none;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    width: 100%;
    /* Pastikan tidak memaksa lebar yang lebih besar dari layar */
    box-sizing: border-box; 
}

.coverflow-item {
	position: absolute;
	width: clamp(210px, 27vh, 300px);
	height: clamp(290px, 38vh, 420px);
	left: 50%;
	top: 50%;
	transform-origin: center center;
	cursor: pointer;
	transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
	border-radius: 8px;
	overflow: hidden;
	overflow-x: hidden;
}

/* Reflection Effect */
.coverflow-item::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 100%;
	background: inherit;
	transform: scaleY(-1) translateY(1px);
	opacity: 0.15;
	filter: blur(2px);
	mask: linear-gradient(to bottom,
			rgba(0, 0, 0, 0.4) 0%,
			rgba(0, 0, 0, 0.2) 20%,
			rgba(0, 0, 0, 0.1) 40%,
			transparent 60%);
	-webkit-mask: linear-gradient(to bottom,
			rgba(0, 0, 0, 0.4) 0%,
			rgba(0, 0, 0, 0.2) 20%,
			rgba(0, 0, 0, 0.1) 40%,
			transparent 60%);
	pointer-events: none;
}

.portfolio-image {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .coverflow-item {
        width: 80%; /* Mengurangi lebar item agar pas di layar HP */
    }
}

.coverflow-item:hover .portfolio-image {
	transform: scale(1.05);
}

.portfolio-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top,
			rgba(0, 0, 0, 0.95) 5%,
			rgba(0, 0, 0, 0.7) 40%,
			rgba(0, 0, 0, 0.3) 70%,
			transparent 100%);
	padding: 30px;
	transform: translateY(100px);
	transition: transform 0.4s ease;
}

.coverflow-item:hover .portfolio-overlay {
	transform: translateY(0);
}

.portfolio-category {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--putih-bersih);
	margin-bottom: 8px;
	font-weight: 600;
}

.portfolioo-title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--putih-bersih);
}

.portfolio-description {
	font-size: 13px;
	color: var(--putih-bersih);
	line-height: 1.5;
}

/* Navigation Controls */
.coverflow-controls {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 15px;
	z-index: 10;
}

.control-btn {
	width: 45px;
	height: 45px;
	border: 2px solid black;
	background: black;
	backdrop-filter: blur(10px);
	color: white;
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
	position: relative;
}

.control-btn:hover {
	background: black;
	border-color: black;
	color: red;
	transform: scale(1.1);
}

/* Indicators */
.indicators {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 10;
}

.indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	cursor: pointer;
	transition: all 0.3s ease;
}

.indicator.active {
	width: 30px;
	border-radius: 4px;
	background: var(--accent-color);
}

/* Badge Baru: Progress */
.badge.progress {
    background-color: #fff3cd; /* Kuning muda (khas status proses) */
    color: #856404; /* Coklat tua */
    border: 1px solid #ffeeba;
}