@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --primary-color: #0d47a1; 
  --secondary-color: #00bcd4;
  --accent-color: #ffb300; 
  --text-dark: #333;
  --bg-light: #f9fafb;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 90px; /* Jarak agar judul tidak tertutup navbar */
}
body { background-color: var(--bg-light); color: var(--text-dark); }

/* NAVBAR TRANSPARAN & STICKY */
.navbar {
  position: sticky; top: 0; width: 100%; 
  background: rgba(255, 255, 255, 0.85); 
  backdrop-filter: blur(10px); 
  padding: 15px 5%; display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); z-index: 1000; border-bottom: 1px solid #eee;
}
.nav-brand img { height: 45px; object-fit: contain; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 14px; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-color); }

.nav-buttons { display: flex; gap: 10px; }
.btn-masuk { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 8px 20px; border-radius: 25px; font-weight: 600; text-decoration: none; transition: 0.3s;}
.btn-masuk:hover { background: var(--primary-color); color: white; }

/* Tombol Biru Langit untuk Pendaftaran */
.btn-daftar { 
    background: #2766ad; 
    border: none; 
    color: white; 
    padding: 10px 20px; 
    border-radius: 25px; 
    font-weight: 700; 
    text-decoration: none; 
    transition: 0.3s; 
    box-shadow: 0 4px 10px rgba(0, 191, 255, 0.3); 
}
.btn-daftar:hover { transform: translateY(-2px); background: #009acd; }

/* SECTION LAYOUT */
section { padding: 60px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ========================================= */
/* GAYA JUDUL SECTION (WHITE GLOW)           */
/* ========================================= */
.section-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 35px;
    text-align: center;
    position: relative;
    z-index: 5;
    /* Memberikan outline putih tegas dan pendaran cahaya putih di belakang teks */
    text-shadow: 
        -1px -1px 0 #fff,  
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
         0 0 25px rgba(255, 255, 255, 1), 
         0 0 50px rgba(255, 255, 255, 0.8);
}

/* BERANDA HERO DENGAN BACKGROUND GAMBAR */
#beranda { 
  text-align: center; 
  min-height: 100vh; /* Agar tinggi section menyesuaikan layar penuh */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  /* Gambar untuk Desktop/PC */
  background-image: url('https://raw.githubusercontent.com/calonfismed-creator/bimbelcalonfismed/e266b15906fd4f8c7aeda4319233203e6410481f/Background%20Calon%20Fismed%20HD.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#beranda img { height: 180px; margin-bottom: 20px; }
#beranda h1 { font-size: 42px; margin-bottom: 15px; color: var(--primary-color); }
#beranda p { font-size: 18px; max-width: 800px; margin-bottom: 30px; line-height: 1.6; color: #fcfcfc; }

/* KONTAK BUTTONS */
.contact-grid { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.btn-contact { padding: 12px 25px; border-radius: 30px; color: white; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 16px; transition: 0.3s; }
.btn-contact:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.btn-wa { background-color: #25D366; }
.btn-email { background-color: #003366; }
.btn-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

/* ========================================= */
/* PENGATURAN SIDEBAR MOBILE (TETAP ADA)     */
/* ========================================= */
.hamburger { display: none; font-size: 30px; cursor: pointer; color: var(--primary-color); user-select: none; }
.close-btn { display: none; }
.nav-menu { display: flex; flex: 1; justify-content: flex-end; align-items: center; gap: 20px;}

.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; display: none; opacity: 0; transition: opacity 0.3s; }
.sidebar-overlay.active { display: block; opacity: 1; }

/* ========================================= */
/* FAQ CAROUSEL (TAMPIL SATU PER SATU)       */
/* ========================================= */
.faq-carousel-container {
    position: relative;
    width: 100%;
    max-width: 700px; /* Lebar dibatasi agar kartu FAQ proporsional */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    min-height: 250px;
}

.faq-wrapper {
    width: 100%;
    padding: 0 40px; /* Memberikan ruang untuk tombol di sisi kanan-kiri */
}

.faq-card {
    display: none; /* Sembunyikan semua kartu secara default */
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    animation: fadeIn 0.4s ease-in-out; /* Animasi transisi halus */
}

.faq-card.active {
    display: flex; /* Hanya tampilkan kartu yang memiliki class 'active' */
    flex-direction: column;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.slider-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid #eee;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    position: absolute;
    z-index: 10;
}
.slider-btn:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.left-btn { left: 0; }
.right-btn { right: 0; }

/* ========================================= */
/* TEMA GRADASI GLOBAL & ORNAMEN ATOM        */
/* ========================================= */
.bg-tema-global {
    background: linear-gradient(180deg, #ffffff 0%, #bbdefb 40%, #0d47a1 100%);
    position: relative;
    overflow: hidden;
    padding-top: 20px;
    padding-bottom: 60px;
}

.bg-tema-global section, 
.bg-tema-global #keunggulan-section {
    padding: 35px 20px !important; 
    min-height: auto;
    position: relative;
    z-index: 1;
}

/* Pengaturan Ornamen Menyebar & Menyala */
.ornament-global {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    opacity: 0.9; /* Opasitas dinaikkan agar menyala */
}

/* Warna dan Efek Glow */
.glow-cyan {
    color: #00e5ff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.8), 0 0 40px rgba(0, 229, 255, 0.4);
}

.glow-yellow {
    color: #ffca28;
    text-shadow: 0 0 20px rgba(255, 202, 40, 0.8), 0 0 40px rgba(255, 202, 40, 0.4);
}

/* Animasi Mengambang */
@keyframes float-ornament {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.float-anim {
    animation: float-ornament 6s ease-in-out infinite;
}

/* UNTUK HANDPHONE */

@media (max-width: 800px) {
  #beranda {
        background-image: url('https://raw.githubusercontent.com/calonfismed-creator/bimbelcalonfismed/924e358c585ab922facffbd5b0de671cb44be5a3/Landing%20Page%20hp.jpeg');
        background-position: top center;
    }
    .hamburger { display: block; }
    .nav-menu { 
        position: fixed; top: 0; right: -300px; width: 260px; height: 100vh; 
        background-color: #fff; flex-direction: column; justify-content: flex-start; align-items: flex-start; 
        padding: 60px 20px 20px 20px; box-shadow: -5px 0 15px rgba(0,0,0,0.1); 
        transition: right 0.3s ease; z-index: 1000; 
    }
    .nav-menu.active { right: 0; }
    .close-btn { display: block; font-size: 40px; cursor: pointer; color: #333; position: absolute; top: 10px; right: 20px; line-height: 1; }
    .nav-links { flex-direction: column; align-items: flex-start; width: 100%; gap: 20px; margin-bottom: 30px; }
    .nav-links a { font-size: 16px; border-bottom: 1px solid #f0f0f0; width: 100%; padding-bottom: 10px;}
    .nav-buttons { flex-direction: column; width: 100%; align-items: stretch; gap: 15px; }
    .btn-masuk, .btn-daftar { width: 100%; text-align: center; }
}