/* =========================================
   STYLE.CSS - MTs Negeri 1 Lebak
   ========================================= */

/* --- GENERAL --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}
a { text-decoration: none; }

/* --- NAVBAR --- */
.navbar-brand { font-weight: 700; letter-spacing: 1px; }
.nav-link { font-weight: 500; transition: 0.3s; }
.nav-link:hover { color: #ffc107 !important; }

/* --- HERO SLIDER --- */
.hero-img {
    height: 600px;
    object-fit: cover;
    filter: brightness(0.65);
}
.carousel-caption { bottom: 20%; }
.carousel-caption h1 { 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); 
    font-weight: 800;
}

/* --- SECTION TITLES --- */
.section-title {
    border-bottom: 4px solid #198754; /* Hijau Kemenag */
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* --- KEPALA MADRASAH & KA TU --- */
.kamad-img {
    max-height: 400px;
    object-fit: cover;
    border: 5px solid #198754;
}
.katu-section {
    background-color: #f0fdf4; /* Hijau sangat muda */
    border-top: 5px solid #198754;
    border-bottom: 1px solid #ddd;
}
.katu-img {
    border: 5px solid #fff;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* --- WAKIL KEPALA (WAKA) - LOWER THIRD STYLE --- */
.waka-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: #fff;
}
.waka-card:hover { transform: translateY(-7px); }

.waka-img {
    width: 100%;
    height: 380px; /* Tinggi seragam agar rapi */
    object-fit: cover;
    display: block;
}

.lower-third {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Gradasi Hijau Tua Transparan */
    background: linear-gradient(to top, rgba(6, 78, 59, 1) 0%, rgba(6, 78, 59, 0.8) 70%, transparent 100%);
    color: white;
    padding: 30px 15px 15px 15px;
    text-align: center;
}
.lower-third h6 {
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px black;
    letter-spacing: 0.5px;
}
.lower-third p {
    margin: 3px 0 0 0;
    font-size: 0.85rem;
    color: #ffc107; /* Warna Emas */
    font-weight: 600;
    text-transform: uppercase;
}

/* --- CARDS & HOVER --- */
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important; 
}

/* --- WIDGET PRESTASI (SIDEBAR) --- */
.widget-prestasi-item {
    border-left: 4px solid #ffc107;
    background: #fff;
    margin-bottom: 10px;
    transition: 0.3s;
}
.widget-prestasi-item:hover { background: #fdfdfd; padding-left: 5px; }
.rank-icon {
    width: 35px; height: 35px;
    background: #198754; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 14px;
}

/* --- SWIPER NAVIGATION --- */
.swiper-button-next, .swiper-button-prev { 
    color: #198754 !important; 
    transform: scale(0.7); 
    font-weight: bold;
}
* =========================================
   STYLE.CSS - MTs Negeri 1 Lebak
   ========================================= */

/* --- GENERAL --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}
a { text-decoration: none; }

/* --- NAVBAR --- */
.navbar-brand { font-weight: 700; letter-spacing: 1px; }
.nav-link { font-weight: 500; transition: 0.3s; }
.nav-link:hover { color: #ffc107 !important; }

/* --- HERO SLIDER --- */
.hero-img {
    height: 600px;
    object-fit: cover;
    filter: brightness(0.65);
}
.carousel-caption { bottom: 20%; }
.carousel-caption h1 { 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); 
    font-weight: 800;
}

/* --- SECTION TITLES --- */
.section-title {
    border-bottom: 4px solid #198754; /* Hijau Kemenag */
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* --- KEPALA MADRASAH & KA TU --- */
.kamad-img {
    max-height: 400px;
    object-fit: cover;
    border: 5px solid #198754;
}
.katu-section {
    background-color: #f0fdf4; /* Hijau sangat muda */
    border-top: 5px solid #198754;
    border-bottom: 1px solid #ddd;
}
.katu-img {
    border: 5px solid #fff;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* --- WAKIL KEPALA (WAKA) - LOWER THIRD STYLE --- */
.waka-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: #fff;
}
.waka-card:hover { transform: translateY(-7px); }

.waka-img {
    width: 100%;
    height: 380px; /* Tinggi seragam agar rapi */
    object-fit: cover;
    display: block;
}

.lower-third {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Gradasi Hijau Tua Transparan */
    background: linear-gradient(to top, rgba(6, 78, 59, 1) 0%, rgba(6, 78, 59, 0.8) 70%, transparent 100%);
    color: white;
    padding: 30px 15px 15px 15px;
    text-align: center;
}
.lower-third h6 {
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px black;
    letter-spacing: 0.5px;
}
.lower-third p {
    margin: 3px 0 0 0;
    font-size: 0.85rem;
    color: #ffc107; /* Warna Emas */
    font-weight: 600;
    text-transform: uppercase;
}

/* --- CARDS & HOVER --- */
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important; 
}

/* --- WIDGET PRESTASI (SIDEBAR) --- */
.widget-prestasi-item {
    border-left: 4px solid #ffc107;
    background: #fff;
    margin-bottom: 10px;
    transition: 0.3s;
}
.widget-prestasi-item:hover { background: #fdfdfd; padding-left: 5px; }
.rank-icon {
    width: 35px; height: 35px;
    background: #198754; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 14px;
}

/* --- SWIPER NAVIGATION --- */
.swiper-button-next, .swiper-button-prev { 
    color: #198754 !important; 
    transform: scale(0.7); 
    font-weight: bold;
}
/* --- SLIDER GURU --- */
.guru-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #eee;
}
.guru-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #198754; /* Hijau saat hover */
}
.guru-img {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* Membuat foto bulat */
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}
.guru-nama {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}
.guru-jabatan {
    font-size: 0.8rem;
    color: #198754;
    font-weight: 600;
}
/* =========================================
   ANIMASI BACKGROUND (Tambahan)
   ========================================= */

/* 1. Background Gradient Bergerak untuk Body */
body {
    background: linear-gradient(-45deg, #f8f9fa, #e8f5e9, #d1e7dd, #f1f8e9);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Animasi Floating Squares (Kotak Melayang) */
.area-animasi {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Di belakang konten */
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(25, 135, 84, 0.1); /* Warna Hijau Transparan */
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 5px; /* Sedikit membulat */
}

/* Konfigurasi tiap kotak (posisi, ukuran, kecepatan) */
.circles li:nth-child(1){ left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.circles li:nth-child(2){ left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.circles li:nth-child(3){ left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.circles li:nth-child(4){ left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.circles li:nth-child(5){ left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.circles li:nth-child(6){ left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.circles li:nth-child(7){ left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.circles li:nth-child(8){ left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.circles li:nth-child(9){ left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.circles li:nth-child(10){ left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

@keyframes animate {
    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Update agar section yang punya animasi background jadi transparan */
.bg-animasi {
    background-color: transparent !important; /* Agar animasi di belakangnya terlihat */
    position: relative;
    overflow: hidden; 
}
/* Konten harus di atas animasi */
.bg-animasi .container {
    position: relative;
    z-index: 1; 
}
/* --- PROMO BANNER SECTION (FULL WIDTH) --- */
.promo-section {
    position: relative;
    width: 100%;
    min-height: 500px; /* Tinggi Banner */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efek Parallax (Background diam saat scroll) */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-bottom: 0;
}

/* Lapisan Hitam Transparan */
.promo-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Gelap 60% */
    transition: background 0.5s ease;
}

/* Efek Hover: Background jadi lebih gelap saat mouse masuk */
.promo-section:hover .promo-overlay {
    background: rgba(0, 0, 0, 0.8);
}

/* Konten Teks */
.promo-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    opacity: 0; /* Mulai transparan */
    transform: translateY(30px); /* Mulai dari bawah sedikit */
    animation: fadeUpPromo 1.5s ease forwards; /* Animasi Fade In */
}

/* Definisi Animasi Fade Up */
@keyframes fadeUpPromo {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-btn {
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    background: transparent;
}

.promo-btn:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
    transform: scale(1.05);
}
/* --- RESPONSIVE YOUTUBE EMBED --- */
/* Memaksa semua iframe (video) di dalam artikel agar 100% lebar layar */
.content-body iframe {
    width: 100% !important;
    max-width: 100%;
    /* Mengatur rasio 16:9 otomatis (agar tidak gepeng) */
    aspect-ratio: 16 / 9; 
    height: auto !important;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}
/* --- WIDGET SOSIAL MEDIA --- */
.widget-sosmed {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
}

/* Cover Atas */
.sosmed-cover { height: 80px; width: 100%; }
.bg-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.bg-tt { background-color: #000000; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23333333' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }

/* Foto Profil Bulat */
.sosmed-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sosmed-info h6 { font-weight: 800; margin-bottom: 0; margin-top: 10px; }
.sosmed-info p { font-size: 0.85rem; color: #777; margin-bottom: 15px; }

.btn-sosmed {
    width: 80%;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}
.btn-sosmed:hover { transform: scale(1.05); }
.btn-ig { background-color: #fff; border: 2px solid #e1306c; color: #e1306c; }
.btn-ig:hover { background-color: #e1306c; color: #fff; }
.btn-tt { background-color: #fff; border: 2px solid #000; color: #000; }
.btn-tt:hover { background-color: #000; color: #fff; }
/* --- TAMBAHAN WARNA SOSMED (HOMEPAGE) --- */
.bg-fb { background-color: #1877F2; } /* Biru Facebook */
.bg-yt { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); } /* Merah YouTube */

/* Tombol Facebook */
.btn-fb { border: 1px solid #1877F2; color: #1877F2; background: #fff; }
.btn-fb:hover { background: #1877F2; color: #fff; }

/* Tombol YouTube */
.btn-yt { border: 1px solid #ff0000; color: #ff0000; background: #fff; }
.btn-yt:hover { background: #ff0000; color: #fff; }

/* Hover Effect Khusus Section Sosmed */
.sosmed-card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
/* --- STYLE GURU MODERN (6 KOLOM) --- */
.guru-card-modern {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: #fff;
    height: 100%;
}

.guru-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.guru-img-modern {
    width: 100%;
    height: 250px; /* Tinggi foto guru seragam */
    object-fit: cover;
    object-position: top; /* Fokus ke wajah/atas */
    display: block;
}

/* Overlay Tulisan di Bawah (Semi Transparan) */
.guru-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Gradasi Putih Transparan ke Atas */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    color: white;
    padding: 20px 10px 10px 10px;
    text-align: center;
}

.guru-overlay h6 {
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    /* Agar nama panjang tidak merusak layout */
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

.guru-overlay p {
    margin: 2px 0 0 0;
    font-size: 0.7rem;
    color: #ffc107; /* Warna Emas */
    font-weight: 600;
    text-transform: uppercase;
}
/* --- SECTION GALERI SPLIT --- */
.galeri-slider-img {
    width: 100%;
    height: 420px; /* Tinggi Slider Kiri */
    object-fit: cover;
    border-radius: 10px;
}
.galeri-grid-img {
    width: 100%;
    height: 200px; /* Tinggi Grid Kanan (setengah dari slider - margin) */
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s;
}
.galeri-grid-img:hover {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* --- SECTION VIDEO --- */
.video-main iframe {
    width: 100%;
    height: 350px;
    border-radius: 10px;
}
.video-list-item {
    cursor: pointer;
    transition: 0.2s;
}
.video-list-item:hover {
    background-color: #f8f9fa;
}
.video-thumb-sm {
    width: 120px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}