:root {
    --primary: #ff594b;
    --dark-red: #bf2828;
    --text-color: #262525;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Memberi jarak agar konten tidak tertutup header sticky */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: #f9f9f9;
    overflow-x: hidden; /* Mencegah scroll horizontal tidak sengaja */
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: rgba(0, 198, 255, 0.85); /* Efek semi-transparan */
    backdrop-filter: blur(10px); /* Efek Glassmorphism modern */
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Jarak antara gambar logo dan tulisan */
}

.logo .logo-text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.logo .main-text {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    background-color: #FFD700;
    color: #000000;
    padding: 5px 10px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: colorChange 2s infinite ease-in-out;
}

.logo .sub-text {
    font-size: 0.7rem;
    color: #000000;
    background-color: #FFD700; /* Kuning Emas */
    padding: 2px 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    margin-top: 3px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: colorChange 2s infinite ease-in-out;
    animation-delay: -1s; /* Membuat animasi mulai dari tengah durasi (bergantian) */
}

@keyframes colorChange {
    0%, 100% {
        background-color: #FFD700;
        color: #000000; /* Teks Hitam saat background Kuning */
    }
    50% {
        background-color: #ffffff;
        color: #ff0000; /* Teks Merah saat background Putih */
    }
}

.logo img {
    max-height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
}

.btn-elearning {
    background-color: #FFD700; /* Kuning Emas yang kontras dengan biru */
    color: #000000 !important; /* Teks Hitam */
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-elearning:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

/* Mobile Nav Toggle (Hamburger) */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-inner, 
.hamburger-inner::before, 
.hamburger-inner::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: transform 0.3s ease, top 0.3s ease, background-color 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

/* Hamburger Animation when Active */
body.nav-active .hamburger-inner {
    background-color: transparent;
}
body.nav-active .hamburger-inner::before {
    top: 0; transform: rotate(45deg);
}
body.nav-active .hamburger-inner::after {
    top: 0; transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        linear-gradient(135deg, #00c6ff, #ff8c00, #00c6ff);
    background-size: 30px 30px, 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 60px 0;
    color: var(--white);
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Agar klik tembus ke elemen di bawahnya */
}

.hero .container {
    position: relative;
    z-index: 2; /* Konten harus di atas partikel */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

@keyframes gradientBG {
    0% {
        background-position: 0 0, 0% 50%;
    }
    50% {
        background-position: 0 0, 100% 50%;
    }
    100% {
        background-position: 0 0, 0% 50%;
    }
}

/* Form Styling */
.reg-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.reg-form input, .reg-form select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    transition: all 0.2s ease-in-out;
}

.reg-form input:focus, .reg-form select:focus {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--text-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease-in-out;
}

.btn-submit:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-image {
    position: relative;
    display: inline-block; /* Agar container pas dengan ukuran gambar */
    border-radius: 20px;
    overflow: hidden; /* Memotong kilauan yang keluar dari area gambar */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    justify-self: center; /* Menengahkan gambar di dalam kolom grid */
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Shine Effect Hero (Berkala) */
.hero-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-25deg);
    z-index: 2;
    animation: shineHero 6s infinite; /* Animasi berjalan setiap 6 detik */
    pointer-events: none;
}

@keyframes shineHero {
    0% { left: -100%; }
    15% { left: 200%; } /* Melintas cepat dalam ~1 detik */
    100% { left: 200%; } /* Diam (jeda) selama sisa waktu */
}

.hero-image img {
    height: 400px; /* Menyamakan tinggi dengan form disebelahnya */
    width: auto; /* Lebar menyesuaikan agar tidak gepeng */
    max-width: 100%;
    border: 8px solid rgba(255, 255, 255, 0.2); /* Border transparan putih */
    border-radius: 20px; /* Sudut melengkung */
    display: block;
    object-fit: cover;
    object-position: top;
}

/* Program Cards */
.programs {
    padding: 80px 0 30px 0; /* Mengurangi padding bawah agar banner lebih dekat ke section berikutnya */
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

.section-title span {
    display: block;
    color: var(--primary);
    font-weight: bold;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grid responsif otomatis */
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
    background-size: 30px 30px, 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
    position: relative;
}

/* Warna Background Berbeda Tiap Kartu */
.card:nth-child(1) {
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        linear-gradient(135deg, #eb7c8c, #ff8c00, #eb7c8c);
}

.card:nth-child(2) {
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        linear-gradient(135deg, #518cb6, #20B2AA, #518cb6);
}

.card:nth-child(3) {
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        linear-gradient(135deg, #645d5d, #2c3e50, #645d5d);
}

.card:nth-child(4) {
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        linear-gradient(135deg, #7e7519, #a89525, #7e7519);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Shine Effect (Kilauan Cahaya) */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    z-index: 1;
    transition: 0s; /* Reset instan saat mouse keluar */
    pointer-events: none;
}

.card:hover::before {
    left: 200%; /* Bergerak melintas ke kanan */
    transition: 0.75s;
}

.card h2 {
    background: var(--primary);
    color: var(--white);
    margin: 0;
    padding: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 70px; /* Menyamakan tinggi header kartu */
}

.card img {
    width: 100%;
    height: 200px; /* Menyamakan tinggi gambar agar teks dibawahnya sejajar */
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    text-align: justify;
}

.view-detail {
    color: var(--white);
    text-decoration: underline;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}

.btn-daftar {
    background-color: #28a745; /* Warna Hijau */
    color: var(--white) !important; /* Teks Putih */
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3); /* Bayangan hijau halus */
    transition: all 0.3s ease;
}

.btn-daftar:hover {
    background-color: #218838; /* Hijau lebih gelap saat hover */
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Support untuk toggle class active (Mobile/JS) */
.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #ADD8E6; /* Light Blue */
}

/* Adjust nav links for dropdown icon */
nav ul li.dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-wa.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: wa-pulse 2s infinite;
}

.floating-wa:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.floating-wa i {
    font-size: 1.5rem;
}

/* Help Banner (Widget Style) */
.help-banner {
    margin-top: 220px; /* Memberi ruang lebih untuk foto yang menyembul */
    background: linear-gradient(135deg, #FF9800, #FF5722); /* Orange ke DeepOrange */
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(255, 87, 34, 0.3);
    position: relative;
    overflow: visible; /* Penting: Agar foto bisa terlihat keluar dari kotak */
    color: var(--white);
    padding: 0 50px;
    display: flex;
    align-items: flex-end; /* Align content to bottom */
    min-height: 250px;
}

/* Lingkaran Dekoratif (Stack/Positioned) */
.help-banner::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    z-index: 0;
}

.help-banner::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -20px;
    left: 25%;
    z-index: 0;
}

.banner-content {
    display: flex;
    align-items: flex-end; /* Align items to bottom */
    gap: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.banner-image {
    position: relative; /* Agar label bisa diposisikan absolut terhadap ini */
    height: 0; /* Prevent expanding container height */
    width: 350px; /* Reserve width for image */
}

.profile-label {
    position: absolute;
    bottom: 60px; /* Posisi vertikal dari bawah */
    right: -20px; /* Posisi horizontal (sedikit keluar ke kanan) */
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: left;
    z-index: 10;
    animation: floatLabel 3s ease-in-out infinite;
}

.profile-label .name {
    display: block;
    color: #333;
    font-weight: 800;
    font-size: 0.95rem;
}

.profile-label .role {
    display: block;
    color: #FF5722; /* Warna oranye senada tema */
    font-size: 0.75rem;
    font-weight: 600;
}

@keyframes floatLabel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.banner-image img {
    max-height: 450px; /* Foto diperbesar signifikan */
    transform: none;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3)); /* Bayangan lebih kuat */
    position: absolute;
    bottom: 0;
    left: 0;
}

.banner-text {
    padding-bottom: 40px; /* Lift text up slightly */
}

.banner-text h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.banner-text .subtitle {
    font-weight: 300;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.banner-text .phone-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    line-height: 1.2;
    display: block;
}

.banner-text .click-hint {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.8;
}

.banner-text .email {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
        align-items: center;
    }
    .banner-image {
        height: auto;
        width: auto;
        margin-bottom: 0; /* Hapus margin agar label bisa menempel */
    }
    .banner-image img {
        position: static;
        max-height: 180px;
        margin-bottom: 0;
        width: auto;
    }
    .help-banner {
        padding: 0 20px;
        margin-top: 60px; /* Reset jarak di HP agar tidak terlalu jauh */
    }
    .profile-label {
        position: relative; /* Ubah posisi menjadi relatif */
        bottom: auto; right: auto; /* Reset posisi absolut */
        transform: translateY(-50%); /* Tarik ke atas setengah tinggi label */
        width: fit-content; /* Lebar sesuai konten */
        margin: 0 auto 20px auto; /* Tengahkan dan beri margin bawah */
        animation: none; /* Matikan animasi mengapung di HP */
    }
    .profile-label .name {
        font-size: 0.85rem; /* Perkecil ukuran font nama */
    }
    .profile-label .role {
        font-size: 0.7rem; /* Perkecil ukuran font jabatan */
    }
    /* Penyesuaian jarak khusus di HP */
    .programs {
        padding-bottom: 10px;
    }
    .latest-articles {
        padding-top: 20px;
    }
    .section-header-left h2 {
        justify-content: center;
    }
}

/* Latest Articles Section */
.latest-articles {
    padding: 30px 0 80px 0; /* Mengurangi padding atas agar lebih dekat dengan banner */
    background-color: #f9f9f9;
    position: relative;
    box-shadow: inset 0 20px 25px -15px rgba(0, 0, 0, 0.05); /* Bayangan halus di perbatasan atas */
}

.section-header-left {
    text-align: left;
    margin-bottom: 30px;
}

.section-header-left h2 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
}

.section-header-left i {
    color: #FF9800; /* Sparkles Orange */
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Grid responsif otomatis */
    gap: 25px;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.article-thumb {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #FF9800, #FF5722); /* Gradasi Oranye */
    overflow: hidden;
}

/* Elemen Lingkaran Abstrak di Background Gambar */
.article-thumb::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    top: -20px;
    left: -20px;
    z-index: 1;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.article-thumb .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FF9800;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.article-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-body h3 {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: #000;
    line-height: 1.4;
    font-weight: 700;
    /* Membatasi maksimal 3 baris */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #FF5722; /* Oranye Kemerahan */
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.read-more:hover {
    color: #E64A19;
}

.article-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee; /* Garis tipis divider */
    color: #999; /* Abu-abu muda */
    font-size: 0.85rem;
}

.articles-action {
    text-align: center;
    margin-top: 50px;
}

.btn-see-more {
    background: linear-gradient(to right, #FF9800, #FF5722);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-see-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.4);
}

/* Responsif untuk Artikel */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Grid responsif otomatis */
    gap: 15px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}


/* Footer Styling */
footer {
    background-color: #FF5722; /* Oranye Kemerahan Solid */
    color: var(--white);
    padding-top: 60px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Grid responsif otomatis */
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-logo img {
    max-height: 100px;
    margin-bottom: 5px;
}

.footer-logo h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.footer-line {
    width: 50px;
    height: 3px;
    background-color: #FFD700; /* Kuning Emas */
    margin-bottom: 20px;
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    transition: padding-left 0.3s ease;
}

.footer-col ul li a:hover {
    padding-left: 5px;
    color: #FFD700;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list i {
    width: 20px;
}

.copyright {
    background-color: #E64A19; /* Oranye lebih gelap */
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.copyright p {
    margin: 0;
}


/* --- GLOBAL RESPONSIVE FIXES --- */

/* Tablet & Mobile Navigation (Max Width 991px) */
@media (max-width: 991px) {
    /* Tampilkan Tombol Hamburger */
    .mobile-nav-toggle {
        display: block;
    }

    /* Ubah Navigasi jadi Sidebar */
    nav {
        position: fixed;
        top: 0;
        right: -100%; /* Sembunyi di kanan */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(38, 37, 37, 0.9); /* Transparan untuk modern feel */
        backdrop-filter: blur(15px); /* Glassmorphism di mobile */
        padding: 80px 20px 30px;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        overflow-y: auto;
    }

    /* Saat Menu Aktif */
    body.nav-active nav {
        right: 0;
    }
    
    body.nav-active {
        overflow: hidden; /* Kunci scroll body saat menu terbuka */
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    /* Fix Dropdown di Mobile */
    .dropdown-menu {
        position: static; /* Agar menyatu dengan flow menu (accordion style) */
        width: 100%;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05); /* Sedikit lebih terang dari bg nav */
        padding-left: 20px; /* Indentasi anak menu */
        margin-top: 10px;
        display: none;
    }

    .dropdown-menu li a {
        color: var(--white);
    }

    /* Matikan hover default di mobile agar tidak bentrok dengan klik */
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* Hero Section Responsif */
    .hero-grid {
        grid-template-columns: 1fr; /* Stack ke bawah */
        text-align: center;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .form-row {
        flex-direction: column; /* Input nama & telp jadi atas-bawah */
    }

    .hero-image img {
        height: auto;
        max-height: 350px;
    }

    /* (Saran) Nonaktifkan partikel di mobile untuk performa lebih baik */
    #particleCanvas {
        display: none;
    }
}

/* Mobile Kecil (Max Width 480px) */
@media (max-width: 480px) {
    .logo .main-text { font-size: 1.4rem; }
    .logo .sub-text { font-size: 0.6rem; }
    .logo img { max-height: 45px; }
    
    .section-title { font-size: 1.5rem; }
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    max-width: 100px; /* Ukuran logo saat loading */
    height: auto;
    animation: pulseLogo 1.5s infinite ease-in-out;
}

@keyframes pulseLogo {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--primary);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Lightbox Navigation Buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0;
    font-size: 24px;
    cursor: pointer;
    z-index: 10002;
    transition: background-color 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Di kiri agar tidak menumpuk dengan WA */
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9998; /* Di bawah preloader tapi di atas konten */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--dark-red);
    transform: translateY(-5px);
    color: var(--white);
}

/* Announcement Bar (Running Text) */
.announcement-bar {
    background-color: #262525;
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 900;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.running-text-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.announcement-label {
    background-color: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.running-text-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.running-text-content p {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    margin: 0;
    font-size: 0.9rem;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.running-text-content:hover p {
    animation-play-state: paused;
}

@media (max-width: 600px) {
    .announcement-label {
        display: none; /* Sembunyikan label di HP agar teks lebih lega */
    }
}

/* --- ANIMASI & STYLING KARTU TUTOR --- */
.tutor-card {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
    height: 100%;
}

.tutor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 4px solid var(--primary); /* Garis bawah merah menyala */
}

.tutor-card .tutor-img-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.tutor-card:hover .tutor-img-container {
    transform: scale(1.1) rotate(5deg); /* Foto membesar dan miring sedikit */
}

.tutor-card h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.tutor-card:hover h3 {
    color: var(--primary);
}

.tutor-card .tutor-subject {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.tutor-card .tutor-quote {
    font-size: 0.85rem;
    color: #9ca3af;
    font-style: italic;
}
