:root {
    --primary-emerald: #0d5c3a;
    --primary-light: #e8f5e9;
    --accent-amber: #f59e0b;
    --dark-heading: #0f172a;
    --body-text: #475569;
    --bg-light: #f8fafc;
}

/* Reset & Base Styling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Agar saat diklik menu navbar, judul section tidak tertutup Navbar */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--body-text);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Navbar Modern */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--dark-heading) !important;
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.2s ease;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--primary-emerald) !important;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 92, 58, 0.92) 0%, rgba(5, 46, 28, 0.95) 100%), 
                url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    padding: 120px 0 100px 0;
    color: #ffffff;
    border-radius: 0 0 50px 50px;
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

/* Modern Cards & Badge */
.card-modern {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(13, 92, 58, 0.1);
}

.badge-soft {
    background-color: var(--primary-light);
    color: var(--primary-emerald);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
}

/* Section Titles */
.section-tag {
    color: var(--primary-emerald);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

.section-title {
    color: var(--dark-heading);
    font-weight: 800;
}

/* Custom Buttons */
.btn-emerald {
    background-color: var(--primary-emerald);
    color: #ffffff;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-emerald:hover {
    background-color: #083e27;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(13, 92, 58, 0.3);
}

.btn-amber {
    background-color: var(--accent-amber);
    color: #ffffff;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-amber:hover {
    background-color: #d97706;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* Custom Tabs for Profil & Sambutan */
.nav-pills-custom .nav-link {
    border-radius: 30px;
    padding: 10px 25px;
    color: var(--dark-heading) !important;
    background-color: #e2e8f0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-pills-custom .nav-link.active {
    background-color: var(--primary-emerald) !important;
    color: #ffffff !important;
}

/* Guru / Teacher Image Penyesuaian */
.teacher-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
    background-color: #e2e8f0; /* Menjaga frame tetap bagus jika gambar belum ada */
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.gallery-img {
    border-radius: 16px;
    object-fit: cover;
    height: 240px;
    width: 100%;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* Table Style Data Kemendikdasmen */
.table-profile td {
    padding: 10px 15px;
    font-size: 0.9rem;
}

.table-profile tr:nth-child(even) {
    background-color: #f8fafc;
}

/* --- TAMBAHAN BARU AGAR LEBIH RAPI & MANTAP --- */

/* 1. Custom Form Controls (Kontak & WA Form) */
.form-control, .form-select {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-emerald);
    box-shadow: 0 0 0 0.25rem rgba(13, 92, 58, 0.15);
}

/* 2. Sosial Media Link Hover Efek di Footer */
footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

footer .btn-outline-light:hover {
    background-color: var(--primary-emerald);
    border-color: var(--primary-emerald);
    transform: translateY(-3px);
}

/* 3. Penyesuaian Responsif Layar HP/Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px 0;
        border-radius: 0 0 30px 30px;
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .table-profile td {
        display: block;
        width: 100% !important;
        padding: 4px 10px;
    }

    .table-profile tr {
        border-bottom: 1px solid #e2e8f0;
        display: block;
        padding: 8px 0;
    }
}

/* --- Styling Gambar Berita --- */
.news-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

/* Efek Zoom Gambar saat Card di-hover */
.card-modern:hover .news-img {
    transform: scale(1.08);
}

/* Styling Gambar di Dalam Pop-up Modal */
.modal-news-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 16px;
}

/* --- Styling Thumbnail Video Acara --- */
.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #000;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.card-modern:hover .video-thumbnail {
    transform: scale(1.08);
    opacity: 0.8;
}

/* Tombol Play Melayang di Tengah Gambar */
.btn-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: var(--primary-emerald);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    padding-left: 4px; /* Penyesuaian presisi ikon Play */
    cursor: pointer;
}

.btn-play-overlay:hover {
    background-color: #083e27;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 30px rgba(13, 92, 58, 0.6);
}