/* Import Google Fonts (contoh, sesuaikan dengan preferensi) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Variabel Warna (bisa disesuaikan) */
:root {
    --primary-color: #0056b3;
    /* Biru Gelap, seperti Bravensia */
    --secondary-color: #007bff;
    /* Biru Sedang */
    --accent-color: #ffc107;
    /* Kuning Cerah */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
}

/* Reset CSS Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Menghilangkan spasi ekstra di bawah gambar */
}

/* Header */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    height: 70px;
    /* Sesuaikan tinggi logo */
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    /* Sembunyikan secara default untuk desktop */
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: url('images/binamukti.jpg') no-repeat center center/cover;
    /* Placeholder background */
    color: #ffffff;
    text-align: center;
    padding: 100px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Overlay gelap */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #004085;
    /* Darken primary color */
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* General Section Styling */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.about-brief-section {
    background-color: var(--light-gray);
    text-align: center;
}

.about-brief-section p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
}

/* --- SPONSOR SECTION STYLING --- */
.sponsor-section {
    padding: 90px 0;
    background-color: #fff;
    text-align: center;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
    margin-top: 50px;
}

.sponsor-item {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sponsor-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Footer */
.main-footer {
    background-color: #222;
    color: #eee;
    padding-top: 50px;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info,
.footer-links,
.footer-social,
.footer-register-column {
    flex: 1;
    min-width: 250px;
}

.footer-info h3,
.footer-links h4,
.footer-social h4,
.footer-register-column h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #eee;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-social {
    text-align: left;
    /* Default to left for consistency, if needed */
}

.footer-social a {
    color: #fff;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* === Perubahan untuk Kolom Pendaftaran Footer === */
.footer-register-column {
    text-align: left;
    /* Pastikan semua konten di kolom ini rata kiri */
}

.footer-register-column p {
    margin-top: 15px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #ccc;
    text-align: left;
    /* Pastikan paragraf rata kiri */
}

.btn-footer-register {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    display: inline-block;
    /* Kembali ke inline-block untuk desktop */
    margin-top: 15px;
    /* align-self: flex-start;  Tidak diperlukan jika parent flex-direction: column */
}

.btn-footer-register:hover {
    background-color: #e0a800;
    color: #fff;
    transform: translateY(-2px);
}

/* === Akhir Perubahan untuk Kolom Pendaftaran Footer === */

.footer-bottom {
    background-color: #1a1a1a;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.9em;
    color: #ccc;
}

/* --- Tambahan CSS untuk Halaman Lainnya --- */

/* Page Hero Section (untuk halaman selain Beranda) */
.page-hero {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 180px 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.page-hero h1 {
    position: relative;
    z-index: 2;
    font-size: 3em;
    font-weight: 700;
}

/* Content Section General Styling */
.history-text {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

.content-section {
    padding: 80px 0;
    background-color: #fff;
}

.content-section p {
    margin-bottom: 20px;
}

.content-section ul {
    margin-bottom: 20px;
    list-style: disc;
    padding-left: 20px;
}

.content-section ul li {
    margin-bottom: 8px;
}

/* About Page Specifics (Coaches Grid) */
.coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.coach-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding-bottom: 20px;
}

.coach-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

.coach-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.coach-card p {
    font-size: 0.95em;
    color: var(--dark-gray);
    padding: 0 15px;
}

/* Programs Page Specifics */
.program-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.program-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.program-card ul li {
    background-color: #e9ecef;
    padding: 8px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.program-card ul li::before {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: green;
    margin-right: 10px;
}


.schedule-table-responsive {
    overflow-x: auto;
    margin-top: 40px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.schedule-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.schedule-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Gallery Page Specifics */
.gallery-grid,
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.video-item {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-item iframe {
    width: 100%;
    height: 200px;
    display: block;
}

.video-item p {
    color: #fff;
    padding: 10px;
    font-size: 0.9em;
    text-align: center;
}

/* News Page Specifics */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-content h3 {
    margin-bottom: 10px;
}

.news-card-content h3 a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.news-card-content h3 a:hover {
    color: var(--secondary-color);
}

.news-date {
    font-size: 0.85em;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.news-date i {
    margin-right: 5px;
}

.news-card-content p {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-sm-secondary {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9em;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.btn-sm-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.pagination {
    text-align: center;
    margin-top: 50px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Achievements Page Specifics */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.achievement-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.achievement-card img {
    height: 200px;
    width: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.achievement-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.achievement-card p {
    font-size: 0.95em;
    color: var(--dark-gray);
}

.victory-moment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.victory-moment-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Page Specifics */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-info p i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.3em;
    width: 25px;
}

.contact-form {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* --- Registration Section Styling (Non-Footer) --- */
.registration-box {
    background-color: #222;
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto 50px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.registration-box h2 {
    color: #fff;
    font-size: 2em;
    margin-bottom: 25px;
    position: relative;
}

.registration-box h2::after {
    display: none;
    /* Menyembunyikan garis bawah kuning untuk judul ini */
}

.registration-box p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-top: 20px;
    color: #eee;
}

.btn-register {
    background-color: var(--accent-color);
    color: #222;
    padding: 15px 35px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    display: inline-block;
    text-decoration: none;
}

.btn-register:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.btn-whatsapp-contact {
    background-color: #25d366;
    color: #fff;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.btn-whatsapp-contact:hover {
    background-color: #1da851;
}

.social-links-contact {
    margin-top: 30px;
}

.social-links-contact a {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.social-links-contact a:hover {
    color: var(--primary-color);
}

.social-links-contact a i {
    margin-right: 8px;
    font-size: 1.2em;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-group input[type="submit"]:hover {
    background-color: #004085;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {

    /* Navbar for Mobile */
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .main-nav ul li {
        margin: 10px 0;
        width: 100%;
    }

    .main-nav ul li a {
        padding: 10px 0;
        display: block;
    }

    .hamburger {
        display: block;
    }

    /* Hero Section for Mobile */
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content h2 {
        font-size: 1.4em;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    /* Sponsor Section for Mobile */
    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }

    .sponsor-item {
        height: 80px;
    }

    .sponsor-item img {
        max-height: 60px;
    }

    /* Footer for Mobile (Left-aligned) */
    .main-footer .container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-info,
    .footer-links,
    .footer-social,
    .footer-register-column {
        min-width: unset;
        text-align: left;
        /* All content in footer columns is left-aligned */
        padding: 0 10px;
    }

    .footer-info h3,
    .footer-links h4,
    .footer-social h4,
    .footer-register-column h4 {
        margin-bottom: 15px;
        text-align: left;
        /* Titles are left-aligned */
    }

    .footer-social a {
        margin: 0 8px 0 0;
        /* Adjust margin for social icons for left alignment */
        display: inline-block;
    }

    /* === Perubahan untuk Kolom Pendaftaran Footer di Mobile === */
    .btn-footer-register {
        margin-left: 0;
        /* Pastikan tidak ada margin auto dari tengah */
        margin-right: auto;
        /* Untuk menjaga tetap rata kiri */
        display: block;
        /* Agar button mengambil lebar penuh dan bisa di-align */
        text-align: left;
        /* Untuk teks di dalam button jika ada, meskipun ini biasanya tidak terlalu berpengaruh */
    }

    .footer-register-column p {
        margin-top: 10px;
        margin-bottom: 0;
        text-align: left;
        /* Pastikan paragraf rata kiri di mobile juga */
    }

    /* === Akhir Perubahan untuk Kolom Pendaftaran Footer di Mobile === */

    /* Registration Box for Mobile */
    .registration-box {
        padding: 30px 20px;
        margin: 0 auto 40px auto;
        max-width: 90%;
    }

    .registration-box h2 {
        font-size: 1.8em;
    }

    .btn-register {
        font-size: 1.1em;
        padding: 12px 25px;
    }

    /* Other Grids for Mobile (single column) */
    .contact-layout,
    .coaches-grid,
    .program-cards-grid,
    .gallery-grid,
    .video-grid,
    .news-list-grid,
    .achievements-grid,
    .victory-moment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .contact-form {
        padding: 25px;
    }
}

/* Media Query for very small screens (e.g., 480px or less) */
@media (max-width: 480px) {
    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 1.2em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}