/* === RESET & VARIABEL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --dark-blue: #0A1128;
    --medium-blue: #3A6EA5;
    --light-blue: #4A88B7;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #f4f4f4;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


/* === NAVBAR === */
.navbar {
    background-color: #0A1128;
    /* Warna biru gelap */
    padding: 15px 5%;
    color: white;
}

.nav-container {
    display: flex;
    /* Membuat susunan menjadi menyamping */
    justify-content: space-between;
    /* Mendorong logo ke kiri, menu ke kanan */
    align-items: center;
    /* Memastikan keduanya berada di tengah secara vertikal */
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Jarak antara logo dan teks */
}

.nav-logo-img {
    height: 40px;
    width: auto;
    margin-right: 15px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Jarak antar menu */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #a0aec0;
    /* Berubah abu-abu terang saat disentuh mouse */
}

.nav-links a.btn-admin-nav {
    background-color: #4A88B7;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-links a.btn-admin-nav:hover {
    background-color: #3A6EA5;
    color: white;
    transform: translateY(-2px);
}
/* Active nav item highlight */
.nav-links a.active-nav {
    color: #4A88B7;
    font-weight: 700;
    position: relative;
}

@media (min-width: 769px) {
    .nav-links a.active-nav::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #4A88B7;
        border-radius: 2px;
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
}

.nav-toggle:hover {
    color: #4A88B7;
}

.nav-toggle:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .nav-logo {
        width: auto;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: #0A1128;
        border-radius: 12px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 0;
        gap: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease, margin-top 0.3s ease;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        padding: 10px 0;
        margin-top: 15px;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 16px;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a.btn-admin-nav {
        margin: 10px auto 5px;
        max-width: 220px;
        border-radius: 20px;
    }
}

/* === HERO SECTION === */
/* === HERO CAROUSEL === */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    /* Tinggi area hero, bisa disesuaikan */
    overflow: hidden;
    background-color: #0A1128;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pengaturan Gambar Latar */
.carousel-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* Animasi memudar */
    filter: brightness(0.4);
    /* Menggelapkan gambar 60% agar teks putih terbaca jelas */
}

.bg-slide.active {
    opacity: 1;
}

/* Pengaturan Teks di Tengah */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #e2e8f0;
}

.btn-start {
    display: inline-block;
    background-color: var(--white);
    color: var(--dark-blue);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-start:hover {
    background-color: #d1d5db;
    transform: translateY(-2px);
}

/* Titik Indikator */
.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

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

.indicator.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* === WELCOME SECTION === */
.welcome {
    text-align: center;
    padding: 60px 10%;
}

.welcome h2 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-size: 24px;
}

.welcome p {
    font-size: 14px;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   BAGIAN VISI MISI (MODE CARD)
   ========================================= */
.visi-misi-section {
    padding: 80px 20px;
    background-color: #f8fafc;
    /* Warna latar belakang abu-abu sangat muda */
}

.container-visi-misi {
    max-width: 850px;
    /* Membatasi kelebaran agar tidak kegedean */
    margin: 0 auto;
}

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

.section-title h2 {
    color: #1e293b;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.garis-bawah {
    width: 60px;
    height: 4px;
    background: #270B54;
    /* Warna biru gelap Karang Taruna */
    margin: 0 auto;
    border-radius: 2px;
}

.card-grid {
    display: flex;
    flex-direction: column;
    /* Stack cards vertically */
    gap: 20px;
    justify-content: center;
}

.vm-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 40px;
    display: flex;
    flex-direction: row;
    /* Horizontal content */
    align-items: flex-start;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #270B54;
    /* Move border to left */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vm-card:hover {
    transform: translateX(5px);
    /* Move right instead of up */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.vm-icon {
    width: 70px;
    height: 70px;
    background: #f1f5f9;
    color: #270B54;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px auto;
}

.vm-card h3 {
    text-align: left;
    color: #1e293b;
    font-size: 26px;
    margin-bottom: 0;
    min-width: 100px;
    /* Space for the title on the left */
}

.vm-card p {
    color: #475569;
    line-height: 1.8;
    text-align: left;
    font-size: 15px;
    flex: 1;
    /* Take remaining space */
    margin: 0;
}

.vm-card ul {
    color: #475569;
    line-height: 1.8;
    padding-left: 20px;
    text-align: left;
    font-size: 15px;
    flex: 1;
    /* Take remaining space */
    margin: 0;
}

.vm-card li {
    margin-bottom: 12px;
}

/* Responsif agar card menyusun ke bawah saat dibuka di HP */
@media (max-width: 768px) {
    .card-grid {
        flex-direction: column;
    }
    .vm-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
    }
    .vm-card h3 {
        text-align: center;
        min-width: auto;
    }
    .vm-card p {
        text-align: center;
    }
    .vm-card ul {
        text-align: left;
        padding-left: 20px;
        list-style-position: outside;
    }
}

/* === QUICK MENU SECTION === */
.quick-menu-section {
    padding: 60px 20px;
    background: #f8fafc;
}

.quick-menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    background-color: #0B132A;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.quick-card i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #ffffff;
}

.quick-card span {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* Responsive Quick Menu Cards on Mobile */
@media (max-width: 480px) {
    .quick-menu-grid {
        gap: 12px;
        padding: 0 5px;
    }

    .quick-card {
        width: calc(50% - 6px);
        height: 140px;
    }

    .quick-card i {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .quick-card span {
        font-size: 14px;
    }
}


.stats-banner {
    background-color: #2D6A9F !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    /* Memaksa dibagi jadi 3 kolom sama rata */
    align-items: center !important;
    padding: 60px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.stat-item {
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.stat-item h3 {
    font-size: 56px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
    /* Jarak bawah ke teks */
    line-height: 1 !important;
    color: #ffffff !important;
}

.stat-item p {
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    margin: 0 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
}


@media (max-width: 768px) {
    .stats-banner {
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 30px 10px !important;
        gap: 10px !important;
    }

    .stat-item h3 {
        font-size: 32px !important;
    }

    .stat-item p {
        font-size: 11px !important;
        letter-spacing: 1px !important;
    }
}

/* === FITUR UTAMA === */
.features {
    padding: 60px 10%;
    text-align: center;
}

.features-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.features-title::before,
.features-title::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
    max-width: 150px;
}

.features-title h2 {
    margin: 0 20px;
    font-size: 24px;
}

.feature-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 30px 20px;
    width: 180px;
    text-align: center;
    border-radius: 5px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 30px;
    margin-bottom: 15px;
}

.card h4 {
    font-size: 16px;
    font-weight: 400;
}

/* === SECTION LOKASI === */
.lokasi-section {
    padding: 60px 10%;
    background-color: #f8fafc;
}

.lokasi-container {
    max-width: 1000px;
    margin: 0 auto;
}

.lokasi-container h2 {
    color: #1e293b;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
}

.lokasi-grid {
    display: flex;
    gap: 30px;
}

.lokasi-card {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.lokasi-card h4 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
}

.lokasi-card p {
    color: #475569;
    line-height: 1.8;
    font-size: 15px;
}

.lokasi-map-card {
    flex: 1;
    background: #0A1128;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    min-height: 250px;
}

@media (max-width: 768px) {
    .lokasi-grid {
        flex-direction: column;
    }

    .lokasi-map-card {
        min-height: 300px;
    }
}

/* === SECTION ULASAN === */
.ulasan-section {
    padding: 60px 10%;
    background-color: #f4f6f9;
    /* Latar belakang abu-abu sangat muda agar kartu putih menonjol */
    display: flex;
    justify-content: center;
}

.ulasan-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 700px;
    /* Menjaga form tidak terlalu melebar */
}

.ulasan-card h2 {
    text-align: center;
    color: #1c2b4b;
    /* Warna biru gelap */
    margin-bottom: 30px;
    font-size: 22px;
}

/* Layout Baris Input */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

/* Desain Input, Select, Textarea */
.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #495057;
    outline: none;
    transition: border-color 0.3s;
    background-color: #fff;
}

/* Mengubah warna border saat di-klik */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4A88B7;
}

/* Desain Rating Bintang Interaktif */
.rating-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-group label {
    font-weight: 600;
    color: #1c2b4b;
    font-size: 14px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    /* Membalik urutan untuk trik hover CSS */
    gap: 5px;
}

.star-rating input {
    display: none;
    /* Sembunyikan radio button aslinya */
}

.star-rating label {
    color: #e4e5e9;
    /* Warna abu-abu default */
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

/* Trik mewarnai bintang saat di-hover dan di-klik (checked) */
.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: #ffc107;
    /* Warna kuning emas */
}

/* Tombol Kirim */
.btn-submit {
    width: 100%;
    background-color: #4381c1;
    /* Warna biru sesuai desain */
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-submit:hover {
    background-color: #3569a0;
    /* Warna biru lebih gelap saat di-hover */
}

/* Responsive untuk layar HP */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

/* === POSTER CAROUSEL === */
.poster-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 16px;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

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

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .poster-carousel {
        height: 300px;
    }

    .carousel-caption h3 {
        font-size: 20px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .carousel-caption {
        padding: 30px 15px 15px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
    color: var(--white);
    text-align: center;
    padding: 80px 10%;
}

/* === FOOTER === */
footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 40px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo .logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo p {
    font-size: 12px;
    color: #aaa;
}

.footer-links,
.footer-contact,
.footer-social {
    flex: 1;
    min-width: 150px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
    font-size: 12px;
}

.footer-contact p {
    font-size: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: #ff3b3b;
}

.footer-social i {
    font-size: 30px;
    background: -webkit-linear-gradient(#f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    font-size: 11px;
    color: #777;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* === HALAMAN LOMBA === */
.lomba-section {
    padding: 60px 10%;
    background-color: #f9f9f9;
    min-height: 80vh;
}

/* Judul dengan garis di samping */
.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    color: var(--dark-blue);
}

.page-title::before,
.page-title::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
    max-width: 200px;
}

.page-title h2 {
    margin: 0 20px;
    font-size: 24px;
}

/* Grid layout untuk kartu */
.lomba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desain Kartu Lomba */
.lomba-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.lomba-card:hover {
    transform: translateY(-5px);
}

.lomba-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.lomba-info {
    padding: 20px;
}

.lomba-info h3 {
    color: var(--dark-blue);
    font-size: 20px;
    margin-bottom: 15px;
}

.lomba-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}

/* Badge Status Hijau */
.badge-status {
    background-color: #d4edda;
    color: #155724;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Tombol Aksi */
.lomba-actions {
    display: flex;
    gap: 10px;
}

.btn-lomba {
    flex: 1;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-lomba:hover {
    background-color: var(--medium-blue);
    color: var(--white);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }

    .hero h1, .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .feature-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 250px;
    }

    .lomba-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: left;
    }
    
    .footer-logo {
        grid-column: 1 / -1;
        text-align: left;
    }
    
    .footer-logo .logo-box {
        justify-content: flex-start;
    }
    
    .footer-logo, .footer-links, .footer-contact, .footer-social {
        width: 100%;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .footer-links ul {
        padding-left: 0;
    }
    
    .footer-links h4, .footer-contact h4, .footer-social h4 {
        margin-bottom: 10px;
    }

    .footer-social {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 15px;
        margin-top: 10px;
    }
    
    .footer-social h4 {
        margin-bottom: 0;
    }
}


/* === HALAMAN LOMBA === */
.lomba-section {
    padding: 60px 10%;
    background-color: #f9f9f9;
    min-height: 80vh;
}

/* Judul dengan garis di samping */
.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    color: var(--dark-blue);
}

.page-title::before,
.page-title::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
    max-width: 200px;
}

.page-title h2 {
    margin: 0 20px;
    font-size: 24px;
}

/* Grid layout untuk kartu */
.lomba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desain Kartu Lomba */
.lomba-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.lomba-card:hover {
    transform: translateY(-5px);
}

.lomba-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.lomba-info {
    padding: 20px;
}

.lomba-info h3 {
    color: var(--dark-blue);
    font-size: 20px;
    margin-bottom: 15px;
}

.lomba-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}

/* Badge Status Hijau */
.badge-status {
    background-color: #d4edda;
    color: #155724;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Tombol Aksi */
.lomba-actions {
    display: flex;
    gap: 10px;
}

.btn-lomba {
    flex: 1;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-lomba:hover {
    background-color: var(--medium-blue);
    color: var(--white);
}

/* === HALAMAN KEGIATAN === */
/* =========================================
           CSS KHUSUS HALAMAN KEGIATAN (GAYA PROFIL)
           ========================================= */
.kegiatan-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: block !important;
    width: 100%;
}

/* 2. Pembungkus Per Kategori (Mencegah elemen lari ke samping) */
.kategori-section {
    display: block !important;
    width: 100%;
    clear: both;
    margin-bottom: 50px;
}

/* 3. Judul Kategori (Garis kiri identik dengan profil.php) */
.kategori-header {
    border-left: 4px solid #1e3a8a;
    /* Warna biru gelap */
    padding-left: 15px;
    margin-bottom: 25px;
    display: block;
}

.kategori-header h2 {
    font-size: 22px;
    color: #1e293b;
    font-weight: 700;
    margin: 0;
    text-transform: capitalize;
}

/* 4. Grid Kartu Kegiatan */
.kegiatan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

/* 5. Desain Kartu Estetik */
.kegiatan-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.kegiatan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.kegiatan-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #f1f5f9;
}

.kegiatan-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.kegiatan-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.kegiatan-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Link "Lihat Kegiatan" Minimalis */
.btn-lihat {
    margin-top: auto;
    /* Mendorong tombol ke posisi paling bawah kartu */
    color: #1e3a8a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-lihat:hover {
    color: #270B54;
    gap: 12px;
    /* Panah bergeser saat di-hover */
}

/* === HALAMAN DETAIL KEGIATAN === */
body {
    background-color: #f8fafc;
}

.gallery-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Membagi rata 3 kolom */
    gap: 0;
    /* Sengaja 0 agar fotonya menyatu seperti di desain Figma */
}

.gallery-thumbs img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}


/* Responsive agar foto kecil tidak gepeng di layar HP */
@media (max-width: 768px) {
    .hero-img {
        height: 250px;
    }

    .thumbnail-img {
        height: 120px;
    }

    .detail-content {
        padding: 30px 5%;
    }
}

/* === POPUP DETAIL LOMBA (MODAL) === */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 17, 40, 0.6);
    /* Latar belakang lebih gelap & senada tema */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* Animasi lebih halus */
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tombol Close */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 400;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #cbd5e1;
}

/* Header Modal (Warna Solid Profesional) */
.modal-header {
    background-color: #0A1128;
    /* Warna biru gelap tema */
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-bottom: 3px solid #3A6EA5;
    /* Garis aksen biru laut */
}

.modal-header h2 {
    font-size: 22px;
    margin: 0;
    font-weight: 600;
}

.modal-badge {
    background-color: #3A6EA5;
    /* Background badge senada */
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Isi Modal */
.modal-body {
    padding: 30px;
}

.modal-desc {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    font-size: 15px;
    color: #0A1128;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

/* Kotak Jadwal Minimalis */
.schedule-box {
    display: flex;
    flex-direction: column;
}

.schedule-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14.5px;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item strong {
    color: #0A1128;
    width: 130px;
    font-weight: 600;
}

.schedule-item span {
    color: #475569;
    flex: 1;
}

/* Custom Scrollbar untuk Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}



/* === HALAMAN DAFTAR TIM === */
.daftar-tim-section {
    background-color: white;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Banner Hero Background (Brand Colored) */
.daftar-hero {
    background: linear-gradient(135deg, #270B54 0%, #1a0738 100%);
    height: auto;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 10%;
    border-bottom: 3px solid #f59e0b; /* Gold accent line */
    text-align: center;
    gap: 10px;
}

.daftar-hero h1 {
    font-size: 36px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.form-container {
    padding: 40px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Kotak Kriteria & Persyaratan */
.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 30px;
    min-height: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.info-card h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.criteria-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.criteria-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.criteria-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #270B54; /* Brand purple color for the bullet points */
    font-weight: bold;
    font-size: 18px;
    line-height: 1.1;
}

/* Grid Layout untuk Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    /* Jarak vertikal 20px, horizontal 40px */
    margin-bottom: 30px;
}

.form-group-custom label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group-custom input[type="text"],
.form-group-custom input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.form-group-custom input[type="text"]:focus,
.form-group-custom input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Kotak Upload File */
.upload-box {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.upload-box:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.upload-box input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    /* Menyembunyikan input asli */
    cursor: pointer;
}

.upload-text {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

/* Pilihan RT (Radio Buttons disamarkan jadi kotak) */
.rt-section {
    margin-bottom: 40px;
}

.rt-section>label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
    color: #2c3e50;
}

.rt-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.rt-item input[type="radio"] {
    display: none;
    /* Sembunyikan bulatannya */
}

.rt-item label {
    display: inline-block;
    padding: 12px 28px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    color: #2c3e50;
}

.rt-item label:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

/* Warna saat kotak RT diklik */
.rt-item input[type="radio"]:checked+label {
    background: #270B54;
    color: white;
    border-color: #270B54;
    box-shadow: 0 4px 10px rgba(39, 11, 84, 0.2);
}

/* Tombol Daftar Modern */
.btn-daftar-merah {
    background: #ef4444; /* Solid Red */
    color: white;
    border: none;
    padding: 16px 80px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-daftar-merah:hover {
    background: #dc2626; /* Darker Red on Hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

/* Responsive */
@media (max-width: 768px) {

    .info-cards,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* === TAMBAHAN UNTUK DAFTAR INDIVIDU === */
.form-single {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Membatasi lebar input agar sesuai dengan desain (tidak full layar) */
.form-single .form-group-custom {
    max-width: 500px;
    margin-bottom: 25px;
}

/* Desain untuk Radio Button Jenis Kelamin */
.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 12px;
    margin-bottom: 25px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    color: #2c3e50;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.radio-group label:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.radio-group input[type="radio"]:checked+label {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Success message styling */
.form-container p[style*="color: green"] {
    background: rgba(39, 174, 96, 0.1);
    border: 2px solid rgba(39, 174, 96, 0.3);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

/* === SECTION TESTIMONI / ULASAN WARGA === */
.testimoni-section {
    padding: 60px 10%;
    background-color: #ffffff;
}

.testimoni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 450px));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.testimoni-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease;
}

.testimoni-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Icon Kutipan Besar di Belakang */
.testimoni-card::before {
    content: '\201C';
    /* Kode Unicode untuk tanda kutip */
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    color: #cbd5e1;
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 1;
}

.stars {
    color: #fbbf24;
    /* Warna kuning emas */
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.quote-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.testimoni-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    font-size: 13px;
    font-weight: 600;
}

.lomba-tag {
    color: #2563eb;
    background-color: #eff6ff;
    padding: 4px 10px;
    border-radius: 20px;
}

.date-tag {
    color: #94a3b8;
    font-weight: 400;
}

/* =========================================
   HALAMAN PROFIL: HEADER
   ========================================= */
.profil-header {
    text-align: center;
    padding: 120px 20px 30px;
}

.profil-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #0f172a;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.profil-header h2 span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #cbd5e1;
}

/* =========================================
   HALAMAN PROFIL: VISI MISI
   ========================================= */
.visi-misi-card {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    /* Penting agar lengkungan tidak tertutup warna background */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.visi-box {
    flex: 1;
    background-color: #0B132A;
    /* Warna Navy */
    color: white;
    padding: 50px 40px;
    text-align: center;
}

.misi-box {
    flex: 1;
    background-color: #4A88B7;
    /* Warna Biru Terang */
    color: white;
    padding: 50px 40px;
}

.visi-box h3,
.misi-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.misi-box ol {
    text-align: left;
    padding-left: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.misi-box li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .visi-misi-card {
        flex-direction: column;
    }
    .visi-box, .misi-box {
        padding: 35px 20px;
    }
}

/* =========================================
   HALAMAN PROFIL: STRUKTUR ANGGOTA (SCROLL)
   ========================================= */
.struktur-section {
    background-color: #f8fafc;
}

.divisi-row {
    margin-bottom: 40px;
}

.divisi-title {
    margin-bottom: 15px;
    color: #0f172a;
    border-left: 4px solid #2D6A9F;
    padding-left: 10px;
}

/* Area Scroll Ke Samping */
.scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    /* Kunci agar bisa di-scroll ke kanan */
    padding-bottom: 20px;
    /* Ruang untuk scrollbar */
    scroll-snap-type: x mandatory;
    /* Biar berhentinya pas di tengah card */
}

/* Mempercantik bentuk scrollbar */
.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Card Anggota */
.anggota-card {
    flex: 0 0 auto;
    /* Mencegah card mengecil */
    width: 220px;
    /* Lebar setiap card */
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    text-align: center;
    scroll-snap-align: start;
    /* Titik henti saat discroll */
}

/* Lingkaran Foto */
.anggota-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #d1d5db;
    /* Warna abu-abu bawaan */
    margin: 0 auto 20px;
    overflow: hidden;
}

.anggota-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anggota-nama {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
}

/* =========================================
   KEGIATAN LOMBA DETAIL PAGE STYLING
   ========================================= */

/* Hero Section */
.kegiatan-detail-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #270B54 0%, #4a1c40 100%);
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1593786480112-258079147ce1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(39, 11, 84, 0.8) 0%, rgba(74, 28, 64, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-breadcrumb a:hover {
    color: white;
}

.hero-breadcrumb i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-breadcrumb span {
    color: white;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.meta-item i {
    font-size: 18px;
    color: #fbbf24;
}

/* Detail Content Section */
.kegiatan-detail-content {
    padding: 80px 0;
    background: #f8fafc;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 40px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #270B54;
    margin-bottom: 25px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #270B54, #4a1c40);
    border-radius: 2px;
}

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    text-align: justify;
}

/* Gallery */
.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-hero {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-hero:hover {
    transform: scale(1.02);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.thumbnail-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumbnail {
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(39, 11, 84, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    font-size: 24px;
    color: white;
}

/* Sidebar */
.sidebar-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 30px;
    margin-bottom: 25px;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #270B54;
    margin-bottom: 20px;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.info-item i {
    font-size: 20px;
    color: #270B54;
    width: 24px;
    text-align: center;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e0e7ff;
}

.contact-item i {
    font-size: 16px;
    color: #270B54;
    width: 20px;
    text-align: center;
}

.contact-item span {
    font-size: 14px;
    color: #1e293b;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #270B54 0%, #4a1c40 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 11, 84, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 11, 84, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-sidebar {
        order: -1;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .kegiatan-detail-hero {
        min-height: 50vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 15px;
    }

    .content-card {
        padding: 25px;
    }

    .sidebar-card {
        padding: 20px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .thumbnail {
        height: 80px;
    }

    .gallery-hero {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-breadcrumb {
        font-size: 12px;
        gap: 8px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .content-card {
        padding: 20px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
}

.anggota-role {
    font-size: 14px;
    color: #64748b;
}

/* =========================================
   HALAMAN PENDAFTARAN LOMBA (Kriteria)
   ========================================= */
.header-lomba {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.kriteria-container {
    display: flex;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.kriteria-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    flex: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.bulat-ungu {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 50%;
    margin-bottom: 20px;
}

.kriteria-card h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 20px;
}

.list-kriteria {
    list-style: none;
    padding: 0;
}

.list-kriteria li {
    margin-bottom: 15px;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
}

.check-icon {
    color: #10b981;
}

@media (max-width: 768px) {
    .kriteria-container {
        flex-direction: column;
        padding: 0 20px;
    }
}

.lomba-img {
    width: 100%;
    height: 200px;
    /* Atur tinggi pastinya sesuai selera Anda */
    object-fit: cover;
    /* Ini kunci agar gambar memotong otomatis dengan rapi, bukan memipih */
    border-radius: 12px 12px 0 0;
    /* Opsional: agar sudut atas gambar melengkung mengikuti kartu */
}

/* =========================================
   ADDITIONAL MOBILE RESPONSIVENESS PATCHES
   ========================================= */
@media (max-width: 768px) {
    /* Generic section paddings to prevent clipping */
    .welcome, .features, .lokasi-section, .ulasan-section, .testimoni-section {
        padding: 40px 20px !important;
    }

    /* Testimoni grid overflow fix */
    .testimoni-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 40px auto 0 auto;
        gap: 20px;
    }

    /* Form container padding adjustments on mobile */
    .form-container {
        padding: 20px 15px !important;
    }

    /* Adjust form-single elements layout */
    .form-single {
        padding: 25px 20px !important;
    }

    /* Fix radio group alignment */
    .radio-group {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .radio-group label {
        width: 100%;
        justify-content: center;
        margin: 0;
    }
}