/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
    --primary-red: #BA0000;
    --primary-white: #FFFFFF;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-white);
    color: var(--text-dark);
}

/* Header & Navbar */
header {
    background-color: var(--primary-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 60px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-red);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-red);
    color: var(--primary-white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #900000;
}

/* Auth Pages */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

/* =========================================
   STYLE UNTUK FRONTEND (HALAMAN DEPAN)
   ========================================= */

.hero-section {
    /* Penyesuaian path gambar dari dalam folder css */
    background: linear-gradient(rgba(186, 0, 0, 0.8), rgba(186, 0, 0, 0.9)), url('../images/others/bg-hero.jpg') center/cover;
    color: var(--primary-white);
    text-align: center;
    padding: 100px 20px;
}

.hero-section h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.package-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    transition: 0.3s;
    background: var(--primary-white);
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.badge-kuota {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #ffc107;
    color: #000;
    padding: 5px 30px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
}

.fasilitas-list {
    list-style: none; 
    padding: 0; 
    color: #666; 
    margin-bottom: 25px; 
    line-height: 1.8;
    font-size: 14px;
}

.fasilitas-list li {
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.fasilitas-list li strong {
    color: var(--text-dark);
}

/* =========================================
   SELESAI STYLE UNTUK FRONTEND (HALAMAN DEPAN)
   ========================================= */

/* =========================================
   STYLE HEADER & NAVIGASI BARU
   ========================================= */

/* Top Bar (Merah Atas) */
.top-bar {
    background-color: var(--primary-red);
    color: var(--primary-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 50px;
    font-size: 14px;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-gold {
    background-color: #cda434; /* Warna Emas/Gold */
    color: var(--primary-white);
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-gold:hover {
    background-color: #b58e2a;
}

/* Main Header (Putih Bawah) */
.main-header {
    background-color: var(--primary-white);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease; /* Animasi transisi saat sticky */
    z-index: 1000;
    box-sizing: border-box;
}

.main-header .logo img {
    max-height: 50px; /* Sesuaikan dengan tinggi logo Anda */
}

.main-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px; /* Jarak antar menu */
}

.main-header nav ul li a {
    text-decoration: none;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px; /* Bentuk melengkung (pill) seperti contoh */
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s ease;
}

/* Hover dan Menu Aktif */
.main-header nav ul li a:hover,
.main-header nav ul li a.active {
    background-color: var(--primary-red);
    color: var(--primary-white);
}

/* Class Sticky untuk Javascript */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px 50px; /* Padding sedikit mengecil saat di-scroll */
}

/* Mencegah konten melompat saat header menjadi fixed */
body.sticky-padding {
    padding-top: 80px; /* Sesuaikan dengan perkiraan tinggi .main-header */
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
    .top-bar { flex-direction: column; gap: 10px; padding: 10px 20px; }
    .main-header { flex-direction: column; padding: 15px 20px; }
    .main-header nav ul { flex-wrap: wrap; justify-content: center; margin-top: 15px; }
}

/* =========================================
  END STYLE HEADER & NAVIGASI BARU
   ========================================= */
   
/* =========================================
   STYLE FOOTER BARU (3 KOLOM)
   ========================================= */

.main-footer {
    /* Latar belakang gradien merah elegan */
    background: linear-gradient(135deg, #B80000 0%, #8a0000 100%);
    color: var(--primary-white);
    padding: 60px 50px 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col img.img-fluid {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

/* List Informasi di Kolom 2 & 3 */
.footer-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.footer-info-list li {
    margin-bottom: 15px;
}

.footer-info-list li strong {
    display: block;
    color: #ffd700; /* Warna kuning emas untuk judul list */
    font-weight: 600;
}

/* Tombol Sosial Media */
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
    background: var(--primary-white);
    color: var(--primary-red);
}

/* Copyright Bar */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 14px;
    color: #ccc;
}

@media (max-width: 768px) {
    .main-footer { padding: 40px 20px 20px; }
}
/* =========================================
   END STYLE FOOTER BARU (3 KOLOM)
   ========================================= */
/* --- Testimonials --- */
.testi-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #f0f0f0;
    margin-bottom: 40px; /* space for dots */
}
.testi-card .stars { color: #f39c12; margin-bottom: 15px; }
.testi-card .quote { font-style: italic; color: #555; margin-bottom: 25px; font-size: 0.95rem; }
.testi-card .user-img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px; border: 3px solid #f4f4f4; }
.testi-card h4 { color: #112B3C; margin-bottom: 5px; font-family: var(--font-heading); }
.testi-card .role { font-size: 0.8rem; color: #888; }
.btn-dark { background: #112B3C; color: #fff; border-radius: 30px; padding: 12px 30px; border: none; }
.mt-4 { margin-top: 1.5rem; } .text-center { text-align: center; }

/* --- Modal --- */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center;
}
.modal-content {
    background-color: #fefefe; padding: 30px; border-radius: 10px; width: 90%; max-width: 500px; position: relative;
}
.close { position: absolute; right: 20px; top: 15px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
.form-control { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
/* --- End Testimonials --- */

/* --- About Us --- */
/* --- About Us Section Revised --- */
.about-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start; /* Sejajar atas */
    gap: 40px;
}

.about-content {
    flex: 1.2;
}

.about-image-wrapper {
    flex: 1;
    position: relative; /* Penting untuk posisi izin di atas gambar */
    padding-top: 10px;
}

/* Kotak Izin & Akreditasi yang diletakkan di atas gambar */
.izin-floating-box {
    background: #BA0000;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: -40px; /* Membuatnya menimpa sedikit ke gambar */
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(186, 0, 0, 0.3);
}

.izin-floating-box h4 {
    font-size: 1rem;
    margin: 0 0 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    line-height: 1.4;
}

.izin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.izin-card small {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 3px;
}

.izin-card p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
}

.about-main-img {
    width: 100%;
    border-radius: 15px;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.about-content span {
    color: #BA0000;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 2.3rem;
    color: #222;
    line-height: 1.2;
    margin-bottom: 25px;
}

.about-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .about-container { flex-direction: column; }
    .about-image-wrapper { order: -1; margin-bottom: 50px; }
}
/* --- Perbaikan About Us & Tombol --- */

.about-image-wrapper {
    flex: 1;
    position: relative;
    /* Memberi ruang agar box tidak terlalu mepet ke atas */
    padding-top: 20px; 
}

.izin-floating-box {
    background: #BA0000;
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    /* Menambah jarak bawah agar tidak menempel dengan gambar */
    margin-bottom: 30px; 
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(186, 0, 0, 0.25);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Desain Tombol Profile Alhijaz */
.btn-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #BA0000;
    color: #ffffff !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 15px rgba(186, 0, 0, 0.2);
    margin-top: 10px;
    cursor: pointer;
}

.btn-profile i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.btn-profile:hover {
    background-color: #8c0000;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(186, 0, 0, 0.3);
    color: #fff !important;
}

/* Memastikan gambar profil rapi */
.about-main-img {
    width: 100%;
    border-radius: 20px;
    display: block;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
    .izin-floating-box {
        margin-bottom: 20px;
    }
}
/* --- End About Us --- */

/* --- Styling Hamburger Menu HP --- */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-red);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block; /* Memunculkan tombol hamburger */
    }
    nav#navbar-menu {
        display: none; /* Sembunyikan menu menyamping */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    nav#navbar-menu.active {
        display: block; /* Memunculkan menu saat diklik */
    }
    nav#navbar-menu ul {
        flex-direction: column; /* Membuat menu berbaris ke bawah */
        padding: 10px 0;
    }
    nav#navbar-menu ul li {
        margin: 0;
        text-align: left;
    }
    nav#navbar-menu ul li a {
        display: block;
        padding: 15px 30px;
        border-bottom: 1px solid #f0f0f0;
        color: var(--text-dark);
    }
}
/* --- Styling Hamburger Menu HP --- */

/* --- Admin Manage Penghargaan --- */

/* --- End Admin Manage Penghargaan --- */