/* PENGATURAN UMUM */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #fcfcfc;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* WARNA UTAMA */
:root {
    --green-dark: #12553e;
    --orange: #f38020;
}

/* =========================================
   BAGIAN ATAS (NAVBAR & HERO)
   ========================================= */
.main-green-wrapper {
    background-color: var(--green-dark);
    position: relative;
    min-height: 600px;
    padding-bottom: 150px;
}

/* Pola Titik-Titik */
.dots-pattern {
    position: absolute;
    width: 150px; height: 150px;
    background-image: radial-gradient(#ffffff40 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: 1;
}
.dots-top-right { top: 20px; right: 20px; }

/* CUSTOM HEADER (Lengkungan) */
.custom-header {
    position: relative;
    height: 100px;
    z-index: 10;
}

.bg-curve-orange {
    position: absolute;
    top: 0; left: 0;
    width: 52%; height: 100%;
    background-color: var(--orange);
    border-bottom-right-radius: 80px;
    z-index: 2;
}

.bg-curve-white {
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    background-color: #ffffff;
    border-bottom-right-radius: 80px;
    z-index: 3;
}

.header-content {
    position: relative;
    z-index: 4;
    height: 100%;
}

.brand-text {
    font-weight: 800;
    color: var(--green-dark);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Menu Kanan */
.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center; /* Memastikan menu sejajar tengah vertikal */
}
.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--orange);
}
.nav-link.active {
    color: var(--orange);
    border-bottom: 2px solid var(--orange);
}

/* --- TAMBAHAN UNTUK DROPDOWN MENU DIREKTORI --- */
.nav-menu .dropdown {
    position: relative;
}
.nav-menu .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0;
    z-index: 9999 !important;
    display: none; /* Disembunyikan dulu */
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 250px;
    margin-top: 10px; /* Jarak dari menu utama */
}
/* Memunculkan dropdown saat di-hover */
.nav-menu .dropdown:hover .dropdown-menu {
    display: block !important;
}
.nav-menu .dropdown-item {
    color: var(--green-dark);
    font-weight: 500;
    font-size: 13px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}
.nav-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--orange);
}
/* ---------------------------------------------- */


/* HERO SECTION */
.hero-section {
    padding-top: 60px;
    z-index: 5;
}

.hero-orange-circle {
    position: absolute;
    left: -40px;
    bottom: -60px;
    width: 100px; height: 100px;
    background-color: var(--orange);
    border-radius: 50%;
}

.hero-text-area {
    position: relative;
    z-index: 10; 
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 90%;
}

/* Desain Tombol Daftar Sekarang (Diperbarui agar rapi dan proporsional) */
.btn-orange-custom {
    background-color: var(--orange);
    color: #fff;
    padding: 14px 35px; 
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700; 
    font-size: 15px;
    display: inline-flex; 
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(243, 128, 32, 0.4); 
    border: 2px solid var(--orange);
    margin-top: 10px; 
}

.btn-orange-custom:hover {
    background-color: transparent; 
    color: var(--orange);
    transform: translateY(-3px); 
    box-shadow: 0 10px 30px rgba(243, 128, 32, 0.6);
}

.btn-orange-custom i {
    transition: transform 0.3s ease;
}

.btn-orange-custom:hover i {
    transform: translateX(5px); 
}

/* Foto Siswa Menempel Kanan */
.hero-image-box {
    position: absolute;
    right: 0;
    top: 10px;
    width: 48%;
    height: 400px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    overflow: hidden;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.2);
}
.hero-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   KARTU SECTION
   ========================================= */
.cards-section {
    margin-top: -100px;
    position: relative;
    z-index: 20;
}

.custom-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.custom-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
}

.card-content {
    padding: 15px 5px 5px 5px;
}

.card-category {
    color: var(--orange);
    font-weight: 700;
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}

.card-title-main {
    font-weight: 800;
    font-size: 16px;
    color: #222;
    margin-bottom: 5px;
}

.card-school-name {
    color: #777;
    font-size: 13px;
    margin-bottom: 0;
}

/* =========================================
   KEUNGGULAN KAMI
   ========================================= */
.keunggulan-section {
    position: relative;
    z-index: 10;
}
.keunggulan-section h6 {
    color: #333;
    font-size: 1.1rem;
    margin-top: 10px;
}
.keunggulan-section i {
    transition: transform 0.3s ease;
}
.keunggulan-section i:hover {
    transform: scale(1.2);
}

/* =========================================
   FULL FOOTER
   ========================================= */
footer a {
    transition: color 0.3s ease;
    font-size: 14px;
}
footer a:hover {
    color: var(--orange) !important;
}

/* =========================================
   FLOATING WHATSAPP
   ========================================= */
.floating-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.3);
    z-index: 99999; 
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-wa:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
    color: #fff !important;
}

/* =======================================================
   BARIS DIREKTORI GURU BERJALAN OTOMATIS (PERBAIKAN TOTAL)
   ======================================================= */
.guru-marquee-container {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 15px 0;
    border-bottom: 2px solid var(--green-dark);
    position: relative;
    display: block;
}

.guru-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content;
    animation: scrollGuru 25s linear infinite;
}

.guru-marquee-container:hover .guru-marquee-track {
    animation-play-state: paused;
}

.guru-marquee-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 6px 25px 6px 8px !important;
    margin: 0 15px;
    min-width: 280px; /* Sedikit diperlebar agar nama panjang muat */
    white-space: nowrap !important; /* Mencegah teks turun ke bawah */
}

.guru-marquee-img {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important; /* Mengunci ukuran foto agar tidak mengkerut */
    object-fit: cover;
    border-radius: 50% !important;
    margin-right: 12px !important;
    border: 2px solid var(--green-dark);
}

.guru-marquee-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
}

.guru-marquee-info h6 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    color: #333 !important;
    line-height: 1.2 !important;
}

.guru-marquee-info small {
    margin-top: 2px !important;
    font-size: 0.75rem !important;
    color: var(--green-dark) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

@keyframes scrollGuru {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}