/* ======================================= */
/* Gaya Dasar & Layout Utama
/* ======================================= */
body {
    background-image: 
        linear-gradient(to bottom, rgba(20, 20, 20, 0.85), rgba(20, 20, 20, 0.95)), 
        url('images/tttttt.avif');

    /* ▼▼▼ BAGIAN INI YANG MEMBUATNYA RESPONSIVE ▼▼▼ */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    /* ▲▲▲ -------------------------------------- ▲▲▲ */
    
    background-repeat: no-repeat;
    background-color: #121212;
    /* ...properti lainnya... */
}

/* Wrapper Konten Utama untuk menyamakan lebar dan posisi tengah */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ======================================= */
/* Header & Navigasi
/* ======================================= */
header {
    background-color: #121212;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
  width: 180px;
  height: auto;
}

.btn {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-left: 10px;
    transition: filter 0.3s ease;
}

.btn-primary {
    background-color: #780103;
}

.btn-secondary {
    background-color: #333;
}

.btn:hover {
    filter: brightness(85%);
}

/* ======================================= */
/* Konten Utama (Main Content)
/* ======================================= */
.hero-banner img {
    width: 100%;
    height: auto;
    display: block; /* Menghilangkan spasi bawah gambar */
}

.info-section {
    padding: 40px 0; /* Padding horizontal diatur oleh .content-wrapper */
    text-align: center;
}

.info-section h2 {
    margin-bottom: 40px;
    font-size: 28px;
    color: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.info-card {
    background: transparent linear-gradient(158deg, #850000 0%, #292217 100%) 0% 0% no-repeat padding-box;
    box-shadow: inset 3px 3px 6px #640000, 2px 2px 6px #00000087;
    border: 1px solid #d9a31d;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 3px 4px 4px #c00000, inset 3px 3px 6px #640000;
}

.info-icon {
    font-size: 48px;
}

.info-card h3 {
    margin: 15px 0 10px 0;
    color: #d9a31d;
    font-size: 22px;
}

.info-card p {
    font-size: 16px;
    color: #ededee;
    line-height: 1.6;
}

.form-text {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0;
}

.form-wrapper {
  margin: 30px 0 0 0; /* DIHAPUS: max-width & margin auto */
}

.form-wrapper iframe {
  width: 100%;
  display: block;
}

.follow-us-section {
    margin: 40px 0; /* DIHAPUS: max-width & margin auto */
    padding: 30px 20px;
    background: transparent linear-gradient(158deg, #850000 0%, #292217 100%) 0% 0% no-repeat padding-box;
    border-radius: 15px;
    box-shadow: inset 3px 3px 6px #640000, 2px 2px 6px #00000087;
    border: 1px solid #d9a31d;
    text-align: center;
}

.follow-us-section h2 {
    color: #d9a31d;
    font-size: 24px;
    margin-bottom: 10px;
}

.follow-us-section p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: #6f0007; /* DIPERBAIKI: Menggunakan warna solid */
    border-radius: 8px;
    border: 1px solid #d9a31d;
    padding: 5px;
    box-shadow: 3px 4px 4px #990100, inset 3px 3px 6px #640000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 3px 4px 4px #c00000, inset 3px 3px 6px #640000;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ======================================= */
/* Footer, Widgets & Lain-lain
/* ======================================= */
footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid #333;
  color: #888;
  font-size: 14px;
}

.floating-widgets {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
}

.floating-widget {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.floating-widget:hover {
  transform: scale(1.1);
}

.floating-widget video {
  width: 100%;
  size: 20px;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.floating-widget video {
  width: 100%;  /* Membuat video mengisi lingkaran secara horizontal */
  height: 100%; /* Membuat video mengisi lingkaran secara vertikal */
  object-fit: cover; /* Memastikan video menutupi seluruh area tanpa distorsi */
  border-radius: 50%; /* Membuat video itu sendiri berbentuk lingkaran */
}

/* ============================================= */
/* Aturan Tampilan Mobile
/* ============================================= */
@media (max-width: 480px) {
    .info-section h2, .form-text {
        font-size: 24px;
    }

    header .container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    header nav {
        display: flex;
        gap: 10px;
    }

    .btn { 
        padding: 8px 16px; 
        font-size: 14px; 
    }
}

/* ======================================= */
/* GAYA UNTUK SECTION BARU                 */
/* ======================================= */

/* 1. Section Tentang Kompetisi */
.about-competition {
  text-align: center;
  padding: 5px;
  margin-top: 10px;
}
.about-competition h2 {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 15px;
}
.about-competition p {
  max-width: 750px;
  margin: 0 auto;
  color: #ffffff;
  line-height: 1.7;
  font-size: 16px;
}

/* 2. Section Detail (Jadwal & Aturan) */
.details-section {
  padding: 2px 0;
}
.timeline {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Agar responsif di layar kecil */
  margin-bottom: 40px;
}
.timeline-item {
  background: transparent linear-gradient(158deg, #850000 0%, #292217 100%) 0% 0% no-repeat padding-box;
  box-shadow: inset 3px 3px 6px #640000, 2px 2px 6px #00000087;
  border: 1px solid #d9a31d;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  flex-basis: 300px; /* Lebar dasar setiap item */
  flex-grow: 1; /* Agar bisa membesar mengisi ruang */
}
.timeline-item h4 {
  margin: 0 0 10px 0;
  color: #d9a31d;
  font-size: 18px;
}
.timeline-item p {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.rules-container {
  background: transparent linear-gradient(158deg, #850000 0%, #292217 100%) 0% 0% no-repeat padding-box;
  box-shadow: inset 3px 3px 6px #640000, 2px 2px 6px #00000087;
  border: 1px solid #d9a31d;
  padding: 25px;
  border-radius: 8px;
  margin-top: 20px;
}
.rules-container h3 {
  color: #d9a31d;
  margin: 0 0 15px 0;
  text-align: center;
  font-size: 22px;
}
.rules-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #ffffff;
}
.rules-container ul li {
  padding-left: 20px;
  text-indent: -20px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.rules-container ul li::before {
  content: '✔'; /* Ganti dengan '►' atau '•' jika suka */
  color: #d9a31d;
  margin-right: 10px;
  font-size: 14px;
}

/* 3. Section FAQ */
.faq-section {
  padding: 40px 0;
  margin: 0 auto; /* DIUBAH: Jarak atas dihapus */
}

.faq-section h2 {
  text-align: center;
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 30px;
}

.faq-item {
  margin-bottom: 10px;
}

/* Pertanyaan yang bisa diklik */
.faq-question {
  font-size: 18px;
  color: #d9a31d; /* Warna emas untuk pertanyaan */
  margin: 0;
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tanda + / - */
.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #d9a31d;
  transition: transform 0.3s ease;
}

/* Kontainer untuk jawaban */
.faq-answer {
  max-height: 0; /* Awalnya jawaban disembunyikan */
  overflow: hidden;
  transition: max-height 0.4s ease-in-out; /* Animasi dropdown halus */
  color: #ffffff;
  line-height: 1.6;
}

.faq-answer p {
    padding-bottom: 20px;
}

/* Gaya saat item FAQ aktif (terbuka) */
.faq-item.active .faq-answer {
  max-height: 200px; /* Atur tinggi maksimal agar jawaban terlihat */
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg); /* Mengubah tanda + menjadi X */
}