/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Variable Default */
    --primary: #35B8BD;
    --primary-dark: #2a9296;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --light: #f0fdfa;
    --gray: #64748b;
    --text: #334155;
    --font: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--font); 
    color: var(--text); 
    background: white; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* =========================================
   2. GLOBAL LAYOUT
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; transition: 0.3s; }
.section-padding { padding: 80px 0; }
.bg-light { background: var(--light); }
.text-center { text-align: center; }
.section-title { 
    text-align: center; 
    font-size: 2rem; 
    color: var(--secondary); 
    margin-bottom: 50px; 
    font-weight: 800; 
}

/* Grid Systems */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }

/* =========================================
   3. COMPONENTS (BUTTONS & BADGES)
   ========================================= */
.btn-primary { 
    background: var(--primary); 
    color: white; 
    padding: 14px 30px; 
    border-radius: 8px; 
    display: inline-block; 
    font-weight: 600; 
    cursor: pointer; 
    border: none; 
}
.btn-primary:hover { filter: brightness(90%); transform: translateY(-2px); }

.btn-outline { 
    border: 2px solid var(--primary); 
    color: var(--primary); 
    padding: 12px 28px; 
    border-radius: 8px; 
    display: inline-block; 
    font-weight: 600; 
    margin-left: 10px; 
    background: transparent; 
}
.btn-outline:hover { background: var(--primary); color: white; border-color: var(--primary); }

.btn-secondary { color: var(--text); font-weight: 600; }
.btn-block { 
    display: block; 
    width: 100%; 
    background: var(--secondary); 
    color: white; 
    text-align: center; 
    padding: 12px; 
    border-radius: 6px; 
    margin-top: 20px; 
    font-weight: 600; 
}
.btn-block:hover { background: var(--primary); }

.badge-cat { 
    font-size: 0.75rem; 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-weight: 600; 
    background: #e0fafa; /* Fallback */
    color: var(--primary);
}

/* =========================================
   4. NAVBAR
   ========================================= */
.navbar { 
    background: white; 
    padding: 20px 0; 
    border-bottom: 1px solid #e2e8f0; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--primary); 
    letter-spacing: -1px; 
    display: flex; 
    align-items: center; 
}
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { color: var(--secondary); font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

/* =========================================
   5. HERO SECTION
   (Note: Style detail background ada di index.php agar dinamis)
   ========================================= */
.hero {
    text-align: center;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    color: white;
}
.hero h1 { 
    font-size: 3.5rem; 
    color: white; 
    margin-bottom: 20px; 
    line-height: 1.2; 
    letter-spacing: -1px; 
}
.hero p { 
    font-size: 1.25rem; 
    color: #f1f5f9; 
    margin-bottom: 40px; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
}
.trust-badge { margin-top: 60px; color: #cbd5e1; font-size: 0.9rem; }
.trust-badge p { color: white; font-weight: 600; margin-top: 5px; font-size: 1rem; }

/* =========================================
   6. STATS & FEATURES
   ========================================= */
.stats { background: var(--secondary); color: white; padding: 60px 0; text-align: center; }
.stat-card h3 { font-size: 2.5rem; color: var(--primary); margin-bottom: 5px; }

.feature-card { 
    background: white; 
    padding: 20px; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    transition: transform 0.3s; 
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.icon-box { 
    width: 50px; 
    height: 50px; 
    background: #e0fafa; 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 8px; 
    font-size: 1.2rem; 
    margin-bottom: 20px; 
}

/* =========================================
   7. CARDS (PROGRAM & AGENDA)
   ========================================= */
.agenda-card, .card { 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid #e2e8f0; 
    transition: 0.3s; 
    display: flex; 
    flex-direction: column; 
}
.agenda-card:hover, .card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    border-color: var(--primary); 
}

.agenda-img-box { position: relative; height: 200px; }

/* PENTING: Agar gambar upload tidak penyok */
.agenda-img, .card-img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; /* Crop otomatis agar pas */
    object-position: center;
}

.agenda-date { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: var(--primary); 
    color: white; 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
}

.agenda-body, .card-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.agenda-cat { 
    color: var(--primary); 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 8px; 
    display: block; 
}

.agenda-body h3, .card h3 { 
    font-size: 1.25rem; 
    margin-bottom: 10px; 
    color: var(--secondary); 
    line-height: 1.4; 
}

.agenda-link { margin-top: auto; color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.original-price { text-decoration: line-through; color: #94a3b8; font-size: 0.9rem; margin-right: 8px; }
.current-price { color: var(--primary); font-weight: 700; font-size: 1.25rem; }

/* =========================================
   8. CUSTOMERS (INFINITE SLIDER)
   ========================================= */
.logo-slider { 
    background: white; 
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05); 
    height: 120px; 
    margin: auto; 
    overflow: hidden; 
    position: relative; 
    width: 100%; 
    display: flex; 
    align-items: center; 
}
/* Efek Fade Kiri Kanan */
.logo-slider::before, .logo-slider::after { 
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); 
    content: ""; 
    height: 120px; 
    position: absolute; 
    width: 100px; 
    z-index: 2; 
}
.logo-slider::before { left: 0; top: 0; }
.logo-slider::after { right: 0; top: 0; transform: rotate(180deg); }

.logo-track { 
    display: flex; 
    gap: 60px; 
    width: max-content; 
    animation: scroll 30s linear infinite; 
}
.logo-track:hover { animation-play-state: paused; }

.logo-item { 
    height: 60px; 
    width: 150px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    filter: grayscale(100%); 
    opacity: 0.6; 
    transition: 0.3s; 
}
.logo-item:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
.logo-item img { 
    max-height: 60px; 
    max-width: 100%; 
    object-fit: contain; 
}

@keyframes scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* =========================================
   9. TESTIMONIALS, FAQ, CONTACT, FOOTER
   ========================================= */
.testi-card { 
    background: white; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
}
.testi-text { font-style: italic; color: var(--secondary); margin-bottom: 20px; font-size: 1.1rem; }
.testi-user { display: flex; align-items: center; gap: 15px; }
.testi-user img { width: 50px; height: 50px; border-radius: 50%; }

/* FAQ & Contact Box */
.faq-box, .contact-box { width: 100%; }

footer { background: var(--secondary); color: #cbd5e1; padding-top: 60px; margin-top: 50px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; padding-bottom: 40px; }
.footer-col h3 { color: white; font-size: 1.5rem; margin-bottom: 20px; }
.social-links a { color: white; font-size: 1.2rem; margin-right: 15px; }
.copyright { border-top: 1px solid #334155; text-align: center; padding: 20px; font-size: 0.9rem; }

/* =========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .grid-4, .grid-3, .grid-card, .grid-2 { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

/* === STYLE TESTIMONIALS (FOTO BULAT) === */
.testi-card { 
    background: white; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testi-text { 
    font-style: italic; 
    color: var(--text); 
    margin-bottom: 20px; 
    font-size: 1.05rem; 
    line-height: 1.6;
}

/* Container Foto & Nama */
.testi-user { 
    display: flex; 
    align-items: center; 
    gap: 15px; /* Jarak antara foto dan nama */
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

/* Foto Bulat */
.testi-user img { 
    width: 60px;       /* Ukuran lebar */
    height: 60px;      /* Ukuran tinggi */
    border-radius: 50%; /* Membuat lingkaran */
    object-fit: cover;  /* Agar muka tidak gepeng */
    border: 2px solid var(--primary); /* List warna pinggir */
}

/* Info Nama */
.testi-info h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 700;
}

.testi-info small {
    color: var(--gray);
    font-size: 0.85rem;
}
