/* --- GLOBAL STYLES --- */
:root {
    --primary-color: #004aad; /* Biru mirip referensi */
    --secondary-color: #f39c12; /* Oranye/Kuning aksen */
    --text-color: #333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a { text-decoration: none; }
ul { list-style: none; }

/* --- NAVBAR --- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
}

.logo span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-daftar {
    background: var(--secondary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-daftar:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    /* BACKGROUND LAMA DIHAPUS KARENA SUDAH DIGANTI SLIDER */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    overflow: hidden; /* Mencegah slider meluber keluar layar */
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 74, 173, 0.75); /* Overlay biru transparan */
}

.hero-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    z-index: 2;
    color: white;
    padding: 20px;

    width: 100%;
    max-width: 900px;
    text-align: center;
}

.badge-year {
    background: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3rem;
    margin: 20px 0 10px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* --- INFO SECTION (Cards) --- */
.info-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
    color: #666;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
}

.info-card:hover { transform: translateY(-5px); }

.info-card .icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-card h3 { margin-bottom: 15px; color: #222; }

.info-card ul {
    text-align: left;
    padding-left: 10px;
}

.info-card ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.info-card.highlight {
    border: 2px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.free-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #27ae60;
    margin: 10px 0;
}

/* --- JURUSAN SECTION --- */
.jurusan-section {
    padding: 80px 0;
    background: white;
}

.jurusan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.jurusan-card {
    background: var(--bg-light);
    width: 200px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit; /* Mengikuti warna teks aslinya */
    display: block; /* Agar behave seperti div */
}

.jurusan-card-informasi {
    background: var(--bg-light);
    width: 200px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit; /* Mengikuti warna teks aslinya */
    display: block; /* Agar behave seperti div */
}

.jurusan-card:hover {
    background: var(--primary-color);
    color: white;
}

.jurusan-card:hover h4, .jurusan-card:hover p { color: white; }

.card-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin: 0 auto 15px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.card-img-informasi {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}


.jurusan-card h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.jurusan-card p { font-size: 0.8rem; color: #666; }

.jurusan-card-informasi h5 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.jurusan-card-informasi p { font-size: 0.8rem; color: #666; }

/* --- SYARAT SECTION --- */
.syarat-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
}

.syarat-box {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.syarat-box h2 {
    text-align: center;
    margin-bottom: 30px;
}

.syarat-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.syarat-item {
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 5px;
    font-weight: 500;
}

.syarat-item.warning {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    font-weight: 700;
}

/* --- FOOTER --- */
footer {
    background: #222;
    color: #ddd;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- CHATBOT STYLES (Keep Existing Logic) --- */
.chat-toggler {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 24px;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggler:hover { transform: scale(1.05); }
.chat-toggler .icon-close { display: none; }
body.show-chat .chat-toggler .icon-chat { display: none; }
body.show-chat .chat-toggler .icon-close { display: block; font-size: 20px;}

.chat-container {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 380px;
    max-width: 90%;
    height: 500px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.show-chat .chat-container {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-info { display: flex; align-items: center; gap: 10px; font-weight: 600;}
.bot-avatar { width: 30px; height: 30px; filter: invert(1); }
.close-btn { background: none; border: none; color: white; font-size: 18px; cursor: pointer;}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f5f7fb;
}

.chat-footer {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: white;
    align-items: center; /* biar sejajar */
}

.chat-footer input {
    flex: 1;
    min-width: 0; /* penting untuk flex biar tidak overflow */
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.chat-footer .send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    min-width: 40px; /* cegah gepeng */
    min-height: 40px;
    flex-shrink: 0; /* INI KUNCI UTAMA */
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bubble Styles */
.message-box {
    display: flex;
    margin-bottom: 15px;
    animation: popIn 0.3s ease-out forwards;
    opacity: 0;
}
@keyframes popIn { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 15px;
}

.bot-message .message-content { background: #e9ecef; color: #333; border-bottom-left-radius: 2px; }
.user-message { justify-content: flex-end; }
.user-message .message-content { background: var(--primary-color); color: white; border-bottom-right-radius: 2px; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Simpel hide for now */
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
}

/* --- LOKASI & KONTAK SECTION --- */
.location-section {
    padding: 80px 0;
    background: white;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsif 2 Kolom */
    gap: 30px;
    align-items: start;
}

/* Tampilan Peta */
.map-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 5px solid white;
}

.map-card iframe {
    display: block; /* Menghilangkan gap di bawah iframe */
}

/* Tampilan Kontak */
.contact-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-card hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* Tombol WhatsApp */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366; /* Warna Resmi WA */
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1ebc57;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 1.4rem;
}

/* --- UPDATE UNTUK HALAMAN DETAIL JURUSAN --- */

/* Header khusus halaman detail (Lebih kecil dari Hero homepage) */
.jurusan-header-detail {
    padding: 120px 0 60px; /* Padding atas besar untuk kompensasi fixed navbar */
    text-align: center;
    color: white;
    /* Background color akan di-set inline di masing-masing HTML */
}

.jurusan-header-detail h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Kontainer Utama Halaman Detail */
.jurusan-content-container {
    padding: 60px 0;
    background-color: white;
}

/* Styling setiap seksi (Deskripsi, Kurikulum, dll) */
.detail-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h2 i {
    font-size: 1.4rem;
    opacity: 0.8;
}

.detail-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* Styling List (untuk Kurikulum/Prospek) */
.detail-list {
    list-style: none;
    padding-left: 10px;
}

.detail-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
    color: #444;
}

/* Menambahkan ikon check kecil di depan list */
.detail-list li::before {
    content: '\f00c'; /* FontAwesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--secondary-color); /* Warna oranye/kuning */
    font-size: 0.9rem;
}

/* Responsive untuk halaman detail */
@media (max-width: 768px) {
    .jurusan-header-detail h1 {
        font-size: 1.8rem;
        padding: 0 20px;
    }
    .detail-section h2 {
        font-size: 1.5rem;
    }
}

/* --- UPDATE: TAMPILAN PERSYARATAN BARU (KARTU) --- */
.syarat-section-new {
    padding: 80px 0;
    background-color: var(--white);
}

.syarat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.syarat-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
    border-top: 5px solid var(--primary-color); /* Aksen warna di atas */
}

.syarat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.syarat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.syarat-card h3 {
    text-align: center;
    color: #222;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.syarat-card ul {
    list-style: none;
    padding: 0;
}

.syarat-card ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.syarat-card ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.syarat-card ol {
    padding-left: 20px;
    color: #555;
}

.syarat-card ol li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* --- UPDATE: TOMBOL KEMBALI (BACK BUTTON) UNTUK HALAMAN JURUSAN --- */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px; /* Jarak dari judul */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    position: relative;
    z-index: 10;
}

.back-button:hover {
    background-color: #f0f0f0;
    transform: translateX(-5px); /* Efek geser kiri sedikit */
}

/* --- TAMBAHAN KODE SLIDER --- */
.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Di belakang konten */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Efek memudar/fade saat ganti gambar */
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 74, 173, 0.75); /* Overlay biru transparan */
    z-index: 2; /* Di atas gambar slider, di bawah teks */
}

.hero-content {
    position: relative;
    z-index: 3; /* Teks harus berada paling atas */
    color: white;
    padding: 20px;
}

/* --- TAMBAHAN UNTUK TEKS HERO AGAR TERBACA TANPA OVERLAY BIRU --- */
.hero-content h1, 
.hero-content p, 
.badge-year {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

/* --- STYLING TOMBOL NAVIGASI SLIDER KIRI & KANAN --- */
.slider-btn {
    position: absolute;
    top: 74%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    font-size: 24px;
    z-index: 10; /* Agar tombol berada di atas gambar */
    transition: 0.3s;
    border-radius: 5px;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.navbar {
    position: fixed; /* Pastikan navbar fixed di atas */
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease-in-out; /* Animasi halus */
    background: rgba(255, 255, 255, 0.8); /* Putih transparan */
    backdrop-filter: blur(10px); /* Efek blur kaca */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: top 0.4s ease-in-out;
}

/* Class ini akan dipicu oleh JavaScript */
.navbar-hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.more-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: 0.3s;
}

.more-btn:hover {
    opacity: 0.9;
}

.mobile-links {
    display: none;
    align-items: center;
    gap: 14px;
}

.mobile-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 999;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: 0.35s ease;
    padding: 25px;
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.sidebar-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 10px;
    transition: 0.3s;
    background: #f5f5f5;
}

.sidebar-menu a:hover {
    background: var(--primary-color);
    color: white;
}

.sidebar-title {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #777;
    font-weight: 700;
}

/* DESKTOP */
@media (min-width: 769px) {

    .mobile-links {
        display: none;
    }

    .more-btn {
        display: flex;
    }

    .logo-text {
        display: block;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .logo-text {
        display: none;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-links {
        display: flex;
    }

    .btn-daftar {
        padding: 10px 14px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .more-btn {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
        flex-shrink: 0;
    }

    .nav-right {
        gap: 8px;
    }

    .navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .mobile-links a {
        font-size: 0.82rem;
    }
}