/* static/css/landing_new.css */
/* MANCA Modern 3.0 - Hyper-Glass */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- Brand Palette --- */
    --bama-red: #A91D3A;
    --bama-red-gradient: linear-gradient(135deg, #A91D3A 0%, #D63456 100%);
    --bama-gold: #D4AF37;
    --bama-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F2D06B 100%);
    
    /* --- Theme Variables --- */
    --bg-body: #F5F5F7; 
    --text-main: #1D1D1F;
    --text-secondary: #6e6e73;
    --text-light: #f5f5f7;
    
    /* --- Glass Effect Engine --- */
    --glass-bg: rgba(255, 255, 255, 0.75); 
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
    --backdrop-blur: blur(24px);
    
    /* --- Dimensions & Spacing --- */
    --card-radius: 24px;
    --btn-radius: 50px;
    --section-spacing: 7rem;        
    --mobile-section-spacing: 4rem; 
    --transition-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    --transition-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   1. BASE RESET & TYPOGRAPHY
   ========================================= */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden; 
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* =========================================
   2. AMBIENT BACKGROUND SYSTEM
   ========================================= */
.ambient-light {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #fff;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 12s infinite ease-in-out;
}

.blob-1 { 
    top: -10%; left: -10%; width: 600px; height: 600px; 
    background: rgba(169, 29, 58, 0.12); 
}

.blob-2 { 
    bottom: 10%; right: -5%; width: 500px; height: 500px; 
    background: rgba(212, 175, 55, 0.15); 
    animation-delay: 3s; 
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
    100% { transform: translate(0, 0); }
}

/* =========================================
   3. NAVBAR (Dynamic Glass)
   ========================================= */
.navbar {
    padding: 1.25rem 0;
    background: transparent;
    transition: all 0.4s var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding: 0.75rem 0;
}

.navbar-brand img {
    height: 45px;
    transition: height 0.3s;
}

.nav-link {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.nav-link:hover, .nav-link.active {
    color: var(--bama-red);
    background: rgba(169, 29, 58, 0.05);
}

.btn-login {
    background: #1d1d1f;
    color: #fff;
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s var(--transition-spring);
}

.btn-login:hover {
    background: var(--bama-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(169, 29, 58, 0.3);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
#home {
    background-size: cover;
    background-position: center top;
    background-attachment: fixed; 
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
}

#home::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.85) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(245,245,247,1) 100%);
    z-index: 0;
}

.hero-glass-wrapper {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 4rem;
    border-radius: 40px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

#home h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1D1D1F 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   5. COMPONENTS (Cards & Buttons)
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s var(--transition-spring);
    position: relative;
    overflow: hidden; 
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    border-color: #fff;
    z-index: 2;
}

.btn-primary {
    background: var(--bama-red-gradient);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--btn-radius);
    transition: all 0.3s var(--transition-spring);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(169, 29, 58, 0.3);
}

.btn-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid #e1e1e1;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--btn-radius);
    transition: all 0.3s var(--transition-spring);
}

.btn-light:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* =========================================
   6. SECTIONS & HEADINGS
   ========================================= */
section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.feature-icon {
    width: 64px; height: 64px;
    background: var(--bama-red-gradient);
    border-radius: 20px; 
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(169, 29, 58, 0.25);
}

/* =========================================
   7. PARTNERS GRID
   ========================================= */
.partner-link img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s var(--transition-smooth);
    height: 55px; 
    width: auto;
    object-fit: contain;
}

.partner-link:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
}

/* =========================================
   8. TIMELINE STEPPER (FIXED & IMPROVED)
   ========================================= */
.step-item {
    padding: 0 0 4rem 6rem; /* More breathing room */
    position: relative;
}

/* Step Numbers Circle */
.step-icon {
    position: absolute;
    left: 20px; /* Aligned with line */
    top: 0;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--bama-red);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(169, 29, 58, 0.2); /* Shadow helps pop */
}

.step-content h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
    color: var(--text-main);
}

.step-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* =========================================
   9. STATS SECTION (FIXED VISIBILITY)
   ========================================= */
#stats {
    padding: 4rem 0;
    margin-top: 4rem;
}

#stats .stat-item i {
    /* Hapus override warna di sini, biarkan class HTML (text-danger) yang mengatur */
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    opacity: 1 !important; 
    transition: transform 0.3s ease;
}

#stats .stat-item:hover i {
    transform: scale(1.1);
}

#stats .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text-main);
    display: inline-block;
}

#stats span {
    color: var(--text-main);
    font-weight: 800;
    font-size: 3.5rem;
}

#stats p {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* =========================================
   10. REGISTER FORM 
   ========================================= */
.register-glass-container {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 32px;
    padding: 4rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.form-control, .form-select {
    background-color: #F2F2F7;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--bama-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    transform: scale(1.01);
}

.form-control.is-invalid { border-color: #ff3b30; background-image: none; }
.form-control.is-valid { border-color: #34c759; background-image: none; }

/* =========================================
   11. FOOTER & UTILITIES
   ========================================= */
footer {
    background: #1d1d1f;
    color: #86868b;
    padding-top: 5rem;
    padding-bottom: 2rem;
    font-size: 0.9rem;
}

footer .hover-white:hover {
    color: #fff !important;
    transition: color 0.2s;
}

.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 30px;          /* Sejajar dengan tombol WA */
    bottom: 105px;        /* Naik ke atas (30px margin + 60px tombol WA + 15px gap) */
    z-index: 999;
    background: var(--bama-red);
    width: 50px; height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(169, 29, 58, 0.4);
    transition: all 0.4s var(--transition-spring);
}

/* Pastikan di Mobile juga rapi */
@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        right: 25px;    /* Menyesuaikan ukuran tombol WA yang lebih kecil di mobile */
        bottom: 90px;   /* Sesuaikan ketinggian di mobile */
    }
}
.back-to-top:hover {
    background: #d63456;
    transform: translateY(-5px);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   12. MOBILE OPTIMIZATION (ULTIMATE FIX V2)
   ========================================= */

/* --- GLOBAL MOBILE FIXES (Mencegah Layar Miring) --- */
@media (max-width: 991px) {
    html, body {
        overflow-x: hidden !important; /* Paksa hidden */
        max-width: 100vw !important;   /* Kunci lebar maksimal */
        position: relative;
    }

    .container, .container-fluid {
        max-width: 100%;
        overflow-x: hidden; /* Mencegah container tumpah */
        padding-right: 20px; /* Padding standar mobile */
        padding-left: 20px;
    }

    /* Fix Navbar Alignment on Tablet/Mobile */
    .navbar-collapse {
        margin-top: 15px;
        background: rgba(255, 255, 255, 0.98); /* Lebih solid agar mudah dibaca */
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 24px;
        padding: 1.5rem;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        border: 1px solid rgba(255,255,255,0.6);
    }

    /* Center Buttons in Mobile Menu */
    .navbar-nav .nav-item { text-align: center; margin-bottom: 8px; }
    .navbar-nav .btn { width: 100%; margin-top: 12px; }
    #home h1 { font-size: 3.2rem; }
}

/* --- PHONE SPECIFIC ADJUSTMENTS (Max 768px) --- */
@media (max-width: 768px) {
    :root {
        --section-spacing: 3.5rem;
        --card-radius: 24px;
    }
    
    /* --- HERO SECTION --- */
    #home { 
        background-attachment: scroll; 
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: auto;
        /* Hapus flex center agar konten mengalir natural di HP */
        display: block; 
    }
    
    .hero-glass-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 28px;
        /* Hapus margin negatif/khusus */
        margin: 0 auto; 
        width: 100%;
    }
    
    #home h1 { 
        font-size: 2.4rem; 
        margin-bottom: 1rem;
        line-height: 1.15;
        word-wrap: break-word; /* Mencegah teks panjang keluar */
    }
    
    .lead { font-size: 1rem; line-height: 1.5; }
    
    /* Stack Hero Buttons */
    .d-flex.gap-3 {
        flex-direction: column;
        width: 100%;
        gap: 1rem !important;
    }
    .btn-lg { width: 100%; padding: 0.8rem 2rem; font-size: 1.1rem; }
    
    /* --- GENERAL ELEMENTS --- */
    .section-title { font-size: 2rem; margin-bottom: 2.5rem; }
    .glass-card { padding: 1.75rem; margin-bottom: 1rem; }
    .navbar-brand img { height: 40px !important; width: auto; }

    /* --- CRITICAL: SLIDER & GALLERY FIXES --- */
    /* Ini biasanya penyebab utama layar miring */
    
    .slider-container {
        padding: 1rem 0;
        /* Memastikan slider tidak melebihi lebar container induknya */
        max-width: 100%;
        overflow: hidden;
        /* Masking agar terlihat halus di ujung */
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }

    .slider-track {
        gap: 1.5rem; /* Jarak antar elemen lebih rapat di HP */
    }

    /* Partner Logos Smaller */
    .partner-item img { height: 45px; }
    
    /* Gallery Cards Smaller & Safer */
    .gallery-card {
        width: 240px;   /* Diperkecil agar aman di HP kecil (iPhone SE dll) */
        height: 160px;
        border-width: 3px;
    }

    /* --- TIMELINE STEPPER FIX --- */
    .timeline-stepper { padding-left: 0; }
    .timeline-stepper::after { left: 22px; top: 5px; } 
    .step-icon { 
        left: 0; 
        width: 48px; height: 48px; font-size: 1.2rem; border-width: 2px;
    }
    .step-item { 
        padding-left: 4rem; /* Memberi ruang cukup untuk teks */
        padding-bottom: 2.5rem; 
    }
    .step-content h5 { font-size: 1.25rem; }
    
    /* --- STATS & FORMS --- */
    .stat-number { font-size: 2.8rem; }
    #stats span { font-size: 2.8rem; }
    #stats i { font-size: 2rem; }

    .register-glass-container { padding: 2rem 1.5rem; }
    
    /* --- FOOTER --- */
    footer { text-align: center; padding-top: 3rem; }
    footer .col-lg-2, footer .col-lg-3 { margin-top: 2.5rem; text-align: center; }
    footer .d-flex.gap-3 { justify-content: center; }
    footer .text-lg-start { text-align: center !important; }
}
/* =========================================
   13. UPGRADED ANIMATIONS (Sliding Reveal)
   ========================================= */
/* Base class for all scroll animations */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Slide UP (Standard BAMA) */
.animate-on-scroll.fade-up {
    transform: translateY(60px);
}

/* Slide DOWN (Partner Request: "Sliding down reveal") */
/* Gunakan class 'fade-down' di HTML untuk efek ini */
.animate-on-scroll.fade-down {
    transform: translateY(-60px);
}

/* Slide Sides */
.animate-on-scroll.fade-left { transform: translateX(60px); }
.animate-on-scroll.fade-right { transform: translateX(-60px); }

/* The Active State (Triggered by JS) */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered Delays for Grid Items */
.animate-on-scroll[data-delay="100"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="200"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="300"] { transition-delay: 0.3s; }
/* =========================================
   14. PARTNER SLIDER (Infinite Marquee)
   ========================================= */
.partner-section-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bama-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

/* Slider Container */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    /* Masking untuk efek fade di kiri-kanan */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
    display: flex;
    align-items: center;
    gap: 4rem; /* Jarak antar logo */
    width: max-content;
    /* Animasi berjalan infinite */
    animation: scroll 40s linear infinite; 
}

/* Animasi untuk memutar track ke kiri */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Geser setengah karena kita duplikasi konten */
}

/* Pause animasi saat di-hover user */
.slider-track:hover {
    animation-play-state: paused;
}

/* Styling Logo di Slider */
.partner-item img {
    height: 70px; /* Tinggi logo seragam */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Special Badge for Runata --- */
.partner-item.coming-soon {
    position: relative;
}

.badge-coming-soon {
    position: absolute;
    top: -15px;
    right: -20px;
    background: var(--bama-gold-gradient);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
    white-space: nowrap;
    z-index: 10;
    transform: rotate(5deg);
    border: 2px solid #fff;
}
/* =========================================
   15. PARTNER GALLERY SLIDER (New Feature)
   ========================================= */
/* Gallery Card Style */
.gallery-card {
    position: relative;
    width: 320px;       /* Lebar kartu foto */
    height: 220px;      /* Tinggi kartu foto */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 4px solid #fff; /* Frame putih agar terlihat seperti foto */
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan foto mengisi kotak tanpa gepeng */
    transition: transform 0.6s ease;
}

/* Efek Zoom saat Hover */
.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(169, 29, 58, 0.15); /* Bayangan merah halus */
    border-color: var(--bama-gold);
}

/* Label nama partner di atas foto (Opsional, agar user tahu ini foto siapa) */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================
   16. ANTI-THEFT STYLING (GLOBAL)
   ========================================= */
body {
    /* Disable text selection global */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Standard */
}

/* Re-enable selection for inputs */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    cursor: auto;
}

/* Disable image dragging global */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none; /* Default: Gambar tidak bisa diklik/interaksi */
}

/* PENTING: Class untuk gambar yang butuh diklik (Zoom / Link) */
img.interactive, 
a img {
    pointer-events: auto !important; /* Kembalikan fungsi klik */
    cursor: pointer;
}
/* =========================================
   17. FOOTER FINAL FIX (Email & Icons)
   ========================================= */

/* 1. Aturan Umum (Desktop & Mobile) */
/* Membuat Icon dan Teks selalu berjejer ke samping */
footer .list-unstyled li {
    display: flex;           
    align-items: center;     /* Tengah secara vertikal */
    gap: 10px;               /* Jarak antara icon dan teks */
    margin-bottom: 0.8rem;
}

/* Pastikan icon tidak mengecil (gepeng) */
footer .list-unstyled li i {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-right: 0 !important; /* Hapus margin bawaan bootstrap */
}

/* 2. Khusus Desktop (Layar Besar) */
@media (min-width: 992px) {
    footer .list-unstyled li {
        justify-content: flex-start; /* Rata Kiri */
    }
    footer {
        text-align: left; /* Pastikan teks footer rata kiri di desktop */
    }
    footer .col-lg-2, footer .col-lg-3 {
        margin-top: 0; /* Reset margin top mobile */
    }
}

/* 3. Khusus Mobile (Layar Kecil) */
@media (max-width: 991px) {
    footer .list-unstyled li {
        justify-content: center; /* Tetap Rata Tengah di Mobile */
    }
    
    /* PERBAIKAN EMAIL KEPOTONG */
    footer .list-unstyled li a {
        font-size: 0.9rem;       /* Kecilkan font sedikit (standar 1rem) */
        word-break: break-word;  /* Izinkan text turun baris jika kepanjangan */
        overflow-wrap: anywhere; /* Paksa text panjang (email) agar tidak keluar layar */
        text-align: left;
        line-height: 1.4;
    }
}
/* =========================================
   18. About Us
   ========================================= */

/* Custom CSS */
.max-w-300 {
    /* Set the maximum width of the container */
    max-width: 300px; 
}
/* =========================================
   19. FAQ [Frequently Asked Question]
   ========================================= */

.accordion-glass .accordion-item {
    background: transparent;
    border: none;
    margin-bottom: 1rem;
}

.accordion-glass .accordion-button {
    background: transparent;
    box-shadow: none;
    color: var(--text-main);
    font-weight: 700;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
}

.accordion-glass .accordion-button:not(.collapsed) {
    color: var(--bama-red);
    background: rgba(169, 29, 58, 0.05); /* Subtle red tint when open */
}

.accordion-glass .accordion-button::after {
    filter: grayscale(100%); 
    transition: all 0.3s ease;
}

.accordion-glass .accordion-button:not(.collapsed)::after {
    filter: none; /* Show color when active */
    transform: rotate(180deg);
}

.accordion-glass .accordion-body {
    /* Urutan: Top Right Bottom Left */
    padding: 1.5rem 2rem 2rem 2rem; 
    color: var(--text-secondary);
    border-top: 1px solid rgba(169, 29, 58, 0.1); /* Opsional: Garis pemisah tipis agar makin rapi */
}
/* =========================================
   20. Floating WhatsApp Button (Posisi Paling Bawah)
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;   /* Paling bawah */
    right: 25px;    /* Jarak dari kanan */
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    z-index: 10000; /* Pastikan paling depan */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1ebc57;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}
/* =========================================
   21. NEWS FLIP CARD (NEW)
   ========================================= */
.flip-card {
    background-color: transparent;
    perspective: 1000px; /* Memberikan efek 3D */
    height: 420px;       /* Tinggi kartu fix agar seragam */
    width: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 24px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

/* Tampilan Depan (Gambar & Judul) */
.flip-card-front {
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.flip-card-front .news-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-front .news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Tampilan Belakang (Detail & Tombol) */
.flip-card-back {
    background: var(--bama-red-gradient); /* Warna Brand BAMA */
    color: white;
    transform: rotateY(180deg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card-back h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Badge Pinned */
.pinned-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--bama-gold);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================================
   22. ABOUT US GLASS LOGO (NEW)
   ========================================= */
.about-logo-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 50px rgba(169, 29, 58, 0.15); /* Shadow merah halus */
    border-radius: 40px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Efek kilau */
.about-logo-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 60%);
    opacity: 0.3;
    transform: rotate(45deg);
    pointer-events: none;
}