/* ==================== */
/* 1. VARIABEL & RESET (DARI CSS BARU ANDA) */
/* ==================== */

:root {
    /* Variabel Warna Baru Anda */
    --primary-color: #003366;  /* Biru Tua (Profesional, Islami) */
    --secondary-color: #004a99; /* Biru sedikit lebih muda (Digunakan sebagai aksen) */
    --accent-color: #FDB913;    /* Emas/Kuning (Inspirasi, Prestasi) */
    --cta-color: #00a85a;     /* Hijau untuk Tombol (Sesuai Revisi) */
    --cta-color-hover: #45a049; /* Hijau lebih gelap untuk hover */
    
    --text-dark: #222222;       /* Teks utama (Hampir hitam) */
    --text-light: #FFFFFF;      /* Teks putih */
    --text-muted: #666666;      /* Teks abu-abu (subjudul, dll) */
    --bg-light: #FFFFFF;        /* Latar belakang utama */
    --bg-medium: #F4F7FC;       /* Latar belakang section (sedikit abu-abu/biru) */
    --border-color: #E0E0E0;    /* Garis pemisah */
    
    --font-primary: 'Poppins', sans-serif;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
    
    /* Variabel yang dibutuhkan untuk kompatibilitas kode lama (di-mapping ke variabel baru) */
    --dark-color: var(--text-dark);
    --white-color: var(--text-light);
    --text-color: var(--text-muted);
    --bg-gray: var(--bg-medium);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    font-family: var(--font-primary);
    line-height: 1.6; 
    color: var(--text-dark);
    background-color: var(--bg-medium); 
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary-color);
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--cta-color);
}

ul {
    list-style: none;
}

/* Tombol Dasar */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--cta-color);
    color: var(--text-light);
    border-color: var(--cta-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-accent {
    background-color: var(--cta-color);
    color: var(--text-light);
    border-color: var(--cta-color);
}

.btn-accent:hover {
    background-color: var(--cta-color-hover);
}

.btn-large {
    padding: 12px 25px;
    font-size: 1.1rem;
}

/* Judul dan Teks */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--text-dark); 
}

.section-title {
    text-align: center;
    font-size: 2.5rem; 
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}
.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -10px auto 50px auto;
    font-size: 1.1rem;
    color: var(--text-muted); 
}

section {
    padding: 80px 5%; 
    background-color: var(--bg-light); 
    position: relative;
}

/* --- Animasi Seksi saat Scroll --- */
.animated-section {
    opacity: 1; 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* ======================================================= */
/* 2. TOP BAR (DARI CSS ANDA) */
/* ======================================================= */
/*
.top-bar {
    background-color: var(--primary-color); 
    color: var(--text-light);
    padding: 10px 2rem;
    font-size: 0.9rem;
}
*/
.top-bar {
    background-color: var(--primary-color); 
    color: var(--text-light);
    padding: 10px 2rem;
    font-size: 0.9rem;
    /* TIDAK ADA position: sticky/fixed DI SINI */
    z-index: 1000; /* Pertahankan z-index agar di atas konten lain */
}
.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0; 
}
.top-bar-contact a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.top-bar-contact a:hover {
    color: var(--accent-color);
}
.top-bar-contact .separator {
    color: rgba(255, 255, 255, 0.5);
}
.top-bar-social a {
    color: var(--text-light);
    margin-left: 15px;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.top-bar-social a:hover {
    color: var(--accent-color);
}


/* ========================================================= */
/* 3. HEADER & NAVBAR (DARI CSS ANDA + PERBAIKAN SUBMENU) */
/* ========================================================= */
header {
    background-color: var(--bg-light);
    position: sticky; /* PASTIKAN INI ADALAH 'sticky' */
    top: 0;          /* PASTIKAN INI ADALAH '0' */
    z-index: 999;    /* Z-index tinggi agar tetap di atas konten */
    box-shadow: var(--shadow-medium); /* Pertahankan bayangan agar terlihat 'mengambang' */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%; 
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar.navbar-scrolled {
    padding: 0.5rem 5%; 
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.nav-logo img {
    height: 50px;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.navbar.navbar-scrolled .nav-logo img {
    height: 45px;
}
.logo-text {
    line-height: 1.2;
}
.arabic-text {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Amiri', serif;
    color: var(--primary-color);
    display: block;
}
.latin-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}
.nav-item {
    position: relative;
}
.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    margin: 0 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: all var(--transition-speed);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --- Gaya Dropdown Menu (Perbaikan Submenu Desktop) --- */
.nav-link .fa-chevron-down {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-light);
    border-radius: 8px; 
    padding: 15px 0;
    list-style: none;
    min-width: 220px;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden; 
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-top: 3px solid var(--primary-color);
    pointer-events: none; 
}
.dropdown-menu a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    transition: all 0.2s ease;
}
.dropdown-menu a:hover {
    background-color: var(--bg-medium);
    color: var(--cta-color);
}
.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; 
}
.dropdown:hover > .nav-link .fa-chevron-down {
    transform: rotate(180deg);
}
.submenu-toggle {
    display: none;
}

/* PPDB Button */
.cta-button {
    background-color: var(--cta-color);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    margin-left: 15px;
}
.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-dark); transition: all 0.3s ease-in-out; border-radius: 2px; }


/* ==================== */
/* 4. HERO SECTION (Gaya Modern) */
/* ==================== */
#hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
}

.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-bg {
    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, transform 8s ease; 
    transform: scale(1.1);
}

.slide-bg.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0,0,0,0.3));
    
    /*background: rgba(0, 51, 102, 0.7);  Menggunakan primary-color transparan */
}

.hero-content-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}
.arabic-tex {
  font-family: 'Amiri Quran', serif;
  direction: rtl;          /* arah teks kanan ke kiri */
  text-align: center;      /* agar tetap rapi */
  font-size: 2rem;
  line-height: 1.5;
  color: var(--accent-color);
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInDown 1s ease forwards 0.5s;
}

.hero-content p {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.1s;
}

.hero-buttons .btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

.hero-buttons .btn-secondary:hover {
    color: var(--primary-color);
    background-color: var(--text-light);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 15;
    font-size: 1.5rem;
    transition: background 0.3s;
    border-radius: 5px;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* ==================== */
/* 5. TENTANG KAMI / SAMBUTAN */
/* ==================== */
#tentang-kami {
    background-color: var(--bg-medium);
}

.tentang-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: center;
}

.tentang-image {
    flex: 1;
    max-width: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transform: rotate(3deg); 
    transition: transform 0.5s;
}

.tentang-image:hover {
    transform: rotate(0deg) scale(1.03);
}

.tentang-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tentang-content {
    flex: 2;
}

.sambutan {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-muted);
}

.pimpinan-info {
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
}

.nama-pimpinan {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.jabatan-pimpinan {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==================== */
/* 6. JUMLAH SANTRI (PARALLAX) */
/* ==================== */
#jumlah-santri {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0,0,0,0.3)), url('Images/Background/003.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; 
    text-align: center;
    color: var(--text-light);
}

.jumlah-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.jumlah-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: background 0.3s, transform 0.3s;
}

.jumlah-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.jumlah-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.jumlah-item .counter {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-light);
}

.jumlah-item p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== */
/* 7. KEUNGGULAN */
/* ==================== */
#keunggulan {
    background-color: var(--bg-light);
}

.keunggulan-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.keunggulan-card {
    background-color: var(--bg-medium);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-speed);
    border-bottom: 4px solid var(--primary-color);
}

.keunggulan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    background-color: var(--bg-light);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: background-color var(--transition-speed);
}

.keunggulan-card:hover .icon-wrapper {
    background-color: var(--cta-color);
    color: var(--text-dark);
}

.keunggulan-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.keunggulan-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==================== */
/* 8. PRESTASI SLIDER */
/* ==================== */
#prestasi {
    background-color: var(--bg-medium);
    text-align: center;
}

.prestasi-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 30px;
    overflow: hidden;
}

.prestasi-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.prestasi-card {
    flex: 0 0 calc(33.333% - 20px); 
    margin: 10px;
    min-width: 300px; 
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s;
    color: var(--text-dark);
}

.prestasi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.prestasi-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.prestasi-title {
    padding: 15px;
    text-align: left;
}

.prestasi-title h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
}

.prestasi-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s, background-color 0.3s;
}

.prestasi-nav:hover {
    opacity: 1;
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.prestasi-nav.prev {
    left: 0;
}

.prestasi-nav.next {
    right: 0;
}

/* ==================== */
/* 9. JEJAK ALUMNI */
/* ==================== */
#jejak-alumni {
    background-color: var(--bg-light);
    text-align: center;
}

.alumni-container {
    max-width: 1200px;
    margin: 0 auto 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.alumni-card {
    width: 200px;
    background: var(--bg-medium);
    border-radius: 10px;
    padding: 20px 10px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    overflow: hidden;
}

.alumni-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.alumni-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 4px solid var(--accent-color);
}

.alumni-name {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.alumni-university {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.country-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

/* ==================== */
/* 10. PENGUMUMAN & BERITA */
/* ==================== */
#pengumuman {
    background-color: var(--bg-medium);
}
#berita {
    background-color: var(--bg-light);
}

.pengumuman-container, .berita-container {
    max-width: 1200px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pengumuman-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    border-left: 5px solid var(--accent-color);
    transition: all var(--transition-speed);
}

.pengumuman-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.pengumuman-date {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.pengumuman-card h3 a {
    color: var(--text-dark);
    font-size: 1.15rem;
}

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

.berita-card {
    background: var(--bg-medium);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-speed);
}

.berita-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.berita-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.berita-content {
    padding: 20px;
}

.berita-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.berita-content h3 a {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.berita-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.berita-content .btn-primary {
    font-size: 0.9rem;
    padding: 8px 15px;
}

.view-all {
    text-align: center;
    margin-top: 20px;
}

/* ==================== */
/* 11. TESTIMONI (ANIMASI) */
/* ==================== */
#testimoni {
    background-color: var(--bg-medium);
    overflow: hidden; 
}

.testimoni-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimoni-track {
    display: flex;
    width: max-content; 
    animation: scrollTestimoni 60s linear infinite; 
}

.testimoni-card {
    flex: 0 0 320px; 
    margin: 0 15px;
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.testimoni-card:hover {
    transform: scale(1.05);
}

.testimoni-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.testimoni-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.testimoni-card h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1rem;
}

.testimoni-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Keyframe Animasi Testimoni */
@keyframes scrollTestimoni {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* ==================== */
/* 12. PPDB CTA */
/* ==================== */
#ppdb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    text-align: center;
    padding: 60px 5%;
}

.ppdb-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.ppdb-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-accent.btn-large {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border-color: var(--accent-color);
    transition: all 0.3s ease-in-out;
}

.btn-accent.btn-large:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==================== */
/* 13. FOOTER */
/* ==================== */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding: 0 5% 30px;
}

.footer-info, .footer-links, .footer-map {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.2rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-contact-item i {
    font-size: 1rem;
    margin-right: 10px;
    margin-top: 2px;
    color: var(--accent-color);
}

.footer-contact-item a {
    color: var(--bg-medium);
}

.footer-contact-item a:hover {
    color: var(--accent-color);
}

.footer-links h3, .footer-map h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

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

.footer-links ul li a {
    color: var(--bg-medium);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-map iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.3rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background-color: #1a1a1a;
    text-align: center;
    padding: 15px 5%;
    font-size: 0.85rem;
    border-top: 1px solid #333333;
}


/* ==================== */
/* 14. MEDIA QUERIES (RESPONSIVE) */
/* ==================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    /* Top Bar Tablet */
    .top-bar {
        padding: 10px 5%;
    }
    .top-bar-contact {
        flex-wrap: wrap;
    }
    .top-bar-contact a {
        margin: 5px 10px 5px 0;
    }
    .top-bar-contact .separator {
        display: none;
    }
    .top-bar-contact a:nth-child(3) {
        display: none; 
    }

    /* Navbar Tablet */
    .navbar {
        padding: 0.8rem 5%;
        min-height: 70px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; 
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 0;
        height: calc(100vh - 70px); 
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }
    
    .nav-link {
        padding: 15px 20px; 
        margin: 0;
    }

    .nav-link::after {
        display: none;
    }
    
    /* Submenu Mobile Toggle */
    .submenu-toggle {
        display: block;
        position: absolute;
        right: 20px; 
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem; 
        color: var(--primary-color);
        cursor: pointer;
        padding: 5px;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        transform: translateY(0);
        box-shadow: none;
        border-top: none;
        background-color: var(--bg-medium);
        display: none; 
        opacity: 1; 
        visibility: visible;
        padding-top: 0;
        border-radius: 0;
        pointer-events: auto;
    }
    
    .nav-item.dropdown.active .dropdown-menu {
        display: block; 
    }

    .nav-item.dropdown.active .submenu-toggle .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .dropdown-menu a {
        padding-left: 40px; 
    }

    .dropdown:hover > .nav-link .fa-chevron-down {
        transform: rotate(0deg); 
    }
    
    .hamburger {
        display: block;
        z-index: 100;
    }
    
    /* Content Adjustments */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .tentang-container {
        flex-direction: column;
        text-align: center;
    }
    .tentang-image {
        transform: rotate(0deg);
    }
    .prestasi-card {
        flex: 0 0 calc(50% - 20px); 
    }
}

/* Mobile (max-width: 600px) - REVISI PROFESIONAL */
@media (max-width: 600px) {
    /* Top Bar Mobile */
    .top-bar {
        display: block;
        padding: 8px 5%;
    }
    .top-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .top-bar-contact {
        flex-direction: column;
        align-items: flex-start;
    }
    .top-bar-contact a {
        margin: 2px 0;
        font-size: 0.8rem;
    }
    .top-bar-social {
        margin-top: 5px;
    }
    .top-bar-social a {
        margin-left: 0;
        margin-right: 10px;
    }
    
    /* Navbar Mobile */
    .navbar {
        padding: 10px 5%;
        min-height: 60px;
    }
    
    .nav-menu {
        top: 60px; 
        height: calc(100vh - 60px);
    }
    
    .nav-logo img {
        height: 35px;
    }

    .arabic-text {
        font-size: 1rem;
    }

    .latin-text {
        font-size: 0.6rem;
    }
    
    .navbar .cta-button {
        display: none; 
    }

    section {
        padding: 40px 5%; 
    }
    
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .jumlah-container {
        flex-direction: column;
    }
    .jumlah-item {
        min-width: unset;
    }
    
    .prestasi-card {
        flex: 0 0 100%; 
    }
    
    .alumni-container {
        gap: 15px;
    }
    .alumni-card {
        width: 48%; 
        min-width: 140px;
    }
    
    .pengumuman-container, .berita-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        padding: 0 5% 20px;
        gap: 30px;
    }
}


/* ==================== */
/* 15. KEYFRAMES & AOS */
/* ==================== */

/* Animasi Kustom untuk Hero */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}














/* =================================== */
/* 16. SUBMENU TEMPLATE (VISI MISI) STYLING */
/* =================================== */

/* --- Submenu Hero / Breadcrumb --- */
#submenu-hero {
    position: relative;
    height: 35vh; /* Ketinggian lebih pendek dari Hero utama */
    min-height: 250px;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), url('Images/Background/004.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0;
}

.submenu-content-wrapper {
    position: relative;
    z-index: 5;
}

.page-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-title .submenu-name {
    color: var(--accent-color);
}

.breadcrumb-path {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-path a {
    color: var(--accent-color);
}

.current-page-name {
    color: var(--text-light);
    font-weight: 600;
}


/* --- Konten Visi Misi --- */
#visi-misi-content {
    background-color: var(--bg-light);
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* 1. Sambutan Pimpinan Style */
.sambutan-pimpinan {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    padding: 30px;
    background: var(--bg-medium);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.pimpinan-photo {
    flex-shrink: 0;
    width: 280px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.pimpinan-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.pimpinan-info-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 51, 102, 0.8); /* Primary Color Transparan */
    color: var(--text-light);
    text-align: center;
}
.pimpinan-info-box h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-light);
}
.pimpinan-info-box p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.sambutan-teks {
    flex-grow: 1;
}

.sambutan-teks .section-title {
    margin-bottom: 10px;
    padding-bottom: 0;
    text-align: left;
}
.sambutan-teks .section-title::after {
    display: none;
}
.title-sub-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.lead-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.quote-text {
    margin-top: 20px;
    font-style: italic;
    color: var(--secondary-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}


/* 2. Visi & Misi Style */
.visi-section, .misi-section {
    margin-bottom: 60px;
    padding: 20px 0;
}

.icon-before-title {
    margin-right: 10px;
    color: var(--accent-color);
}

.visi-box {
    text-align: center;
    padding: 30px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-medium);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.misi-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.misi-list li {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.misi-list li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.misi-list i {
    color: var(--cta-color);
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 3px;
}

.misi-list p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
}


/* =================================== */
/* 17. RESPONSIVITAS SUBMENU */
/* =================================== */

@media (max-width: 992px) {
    .sambutan-pimpinan {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .pimpinan-photo {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .sambutan-teks .section-title {
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    #submenu-hero {
        height: 30vh;
        min-height: 200px;
    }
    .page-title {
        font-size: 2rem;
    }
    .page-title .submenu-name {
        display: block;
    }
    .breadcrumb-path {
        font-size: 0.85rem;
    }

    .sambutan-pimpinan {
        padding: 20px;
        margin-bottom: 40px;
    }
    .pimpinan-photo {
        width: 100%;
    }
    .pimpinan-info-box {
        position: static;
        background: transparent;
        color: var(--text-dark);
        padding: 10px 0;
    }
    .pimpinan-info-box h4 {
        color: var(--primary-color);
        font-size: 1rem;
    }
    .pimpinan-info-box p {
        color: var(--text-muted);
    }
    
    .visi-box {
        font-size: 1.1rem;
        padding: 20px;
    }

    .misi-list {
        grid-template-columns: 1fr;
    }

    .misi-list li {
        padding: 15px;
    }
}









/* =================================== */
/* 17. KONTAK PAGE STYLING */
/* =================================== */

/* --- Peta Lokasi --- */
#lokasi-maps {
    padding-top: 50px;
    padding-bottom: 0;
    background-color: var(--bg-medium);
}

#lokasi-maps .section-title {
    margin-bottom: 30px;
}

.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 30px; /* Jarak antara peta dan section selanjutnya */
}
.map-container iframe {
    display: block;
}


/* --- Form & Info Kontak Layout --- */
#form-info {
    background-color: var(--bg-light);
    padding-top: 50px;
}

.kontak-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr; /* Info Kontak lebih kecil, Form lebih besar */
    gap: 40px;
}

.info-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

/* Info Kontak Box */
.info-kontak {
    background-color: var(--bg-medium);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    box-shadow: var(--shadow-light);
}

.info-kontak p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.contact-item-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item-box i {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-item-box h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item-box p, .contact-item-box a {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color var(--transition-speed);
}
.contact-item-box a:hover {
    color: var(--primary-color);
}

.info-social h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.info-social a {
    font-size: 1.4rem;
    margin-right: 15px;
    color: var(--primary-color);
}


/* Form Kontak Style */
.form-kontak {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: auto;
    padding: 12px 30px;
    font-size: 1rem;
}


/* --- Responsivitas Kontak --- */
@media (max-width: 992px) {
    .kontak-container {
        grid-template-columns: 1fr; /* Jadi satu kolom */
    }
    .info-kontak {
        order: 2; /* Pindah info kontak ke bawah di tablet */
    }
    .form-kontak {
        order: 1; /* Pindah form ke atas di tablet */
    }
}

@media (max-width: 600px) {
    #lokasi-maps {
        padding-top: 30px;
    }
    .map-container iframe {
        height: 300px;
    }

    #form-info {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .info-kontak, .form-kontak {
        padding: 20px;
    }
    .info-title {
        font-size: 1.3rem;
    }
}





/* =================================== */
/* 19. STRUKTUR ORGANISASI STYLING (REVISI) */
/* =================================== */

#struktur-organisasi {
    background-color: var(--bg-medium);
}

.struktur-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* 1. Kepala Madrasah Puncak (Foto di tengah) */
.kepala-madrasah-wrapper {
    margin: 40px auto 70px auto;
    max-width: 300px;
}

.kepala-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 25px 20px;
    box-shadow: var(--shadow-medium);
    border-top: 5px solid var(--accent-color);
}

.kepala-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary-color);
}

/* 2. Struktur Jaringan (Wakil, Koordinator) - DENGAN FOTO */
.struktur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.struktur-card {
    /* Gaya Card Struktur */
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    border-bottom: 3px solid var(--secondary-color);
    transition: transform 0.3s;
    height: 100%;
    
    /* Tambahkan Flexbox untuk meratakan konten jika diperlukan, atau Biarkan Block */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.struktur-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* FOTO UNTUK WAKIL/KOORDINATOR */
.wakil-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--secondary-color);
}

.struktur-card h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.jabatan-secondary {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 3. Diagram (Responsif Bagan) */
.diagram-struktur {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.diagram-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}
.diagram-title i {
    color: var(--accent-color);
    margin-right: 10px;
}

.diagram-box-img {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow-x: auto; /* MEMUNGKINKAN SCROLL HORIZONTAL DI MOBILE */
    box-shadow: var(--shadow-medium);
}

.bagan-img {
    max-width: 100%; /* Agar terlihat bagus di desktop */
    height: auto;
    display: block;
    /* Ini adalah trik responsif utama untuk bagan lebar: */
    min-width: 900px; /* Atur lebar minimum bagan agar di mobile bisa di-scroll */
    border-radius: 8px;
}

.note-zoom {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}


/* --- Responsivitas Struktur --- */
@media (max-width: 600px) {
    .kepala-madrasah-wrapper {
        margin-bottom: 50px;
    }
    
    .struktur-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Di Mobile, jangan biarkan gambar bagan terlalu kecil, biarkan scroll */
    .diagram-box-img {
        overflow-x: scroll; 
    }
    .bagan-img {
        min-width: 800px; /* Pastikan ia lebar agar terlihat detail */
    }
}






/* =================================== */
/* 20. KURIKULUM STYLING */
/* =================================== */

/* --- Kurikulum Intro --- */
#kurikulum-intro {
    background-color: var(--bg-medium);
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.intro-teks {
    flex: 2;
}

.intro-teks .section-title {
    padding-bottom: 0;
    margin-bottom: 15px;
}
.intro-teks .section-title::after {
    display: none;
}

.note-utama {
    margin-top: 15px;
    font-weight: 600;
    color: var(--accent-color);
    font-style: italic;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.intro-diagram {
    flex: 1;
    min-width: 250px;
    box-shadow: var(--shadow-medium);
    border-radius: 8px;
    overflow: hidden;
}

.intro-diagram img {
    width: 100%;
    height: auto;
    display: block;
}


/* --- Struktur Mata Pelajaran Grid --- */
#struktur-mapel {
    background-color: var(--bg-light);
}

.mapel-kategori-grid {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.kategori-card {
    background-color: var(--bg-medium);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border-top: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.kategori-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.icon-header {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.kategori-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.mapel-list {
    text-align: left;
}
.mapel-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}
.mapel-list i {
    color: var(--cta-color);
    margin-right: 8px;
}


/* --- Program Khusus / Tabel Jurusan --- */
#program-khusus {
    background: var(--primary-color);
    color: var(--text-light);
}

#program-khusus .section-title {
    color: var(--accent-color);
}
#program-khusus .section-title::after {
    background-color: var(--accent-color);
}

.table-responsive {
    overflow-x: auto;
    max-width: 1200px;
    margin: 0 auto;
}

.jurusan-table {
    width: 100%;
    min-width: 800px; /* Minimal width untuk responsif tabel */
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.jurusan-table thead th {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
}

.jurusan-table tbody tr {
    transition: background-color 0.3s ease;
}

.jurusan-table tbody tr:nth-child(even) {
    background-color: var(--bg-medium);
}
.jurusan-table tbody tr:hover {
    background-color: var(--border-color);
}

.jurusan-table tbody td {
    padding: 15px 20px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}
.jurusan-table tbody td i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* --- Responsivitas Kurikulum --- */
@media (max-width: 992px) {
    .intro-container {
        flex-direction: column;
        text-align: center;
    }
    .intro-teks {
        order: 2;
    }
    .intro-diagram {
        order: 1;
        max-width: 400px;
    }
    .intro-teks .section-title {
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    #kurikulum-intro, #struktur-mapel, #program-khusus {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .mapel-kategori-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .mapel-list li {
        font-size: 0.9rem;
    }
}








/* =================================== */
/* 21. PENGAJAR STYLING */
/* =================================== */

#daftar-pengajar {
    background-color: var(--bg-medium);
}

.pengajar-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.pengajar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.pengajar-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pengajar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.15); /* Bayangan sedikit biru */
}

.pengajar-photo {
    width: 100%;
    height: 300px; /* Tinggi tetap agar seragam */
    object-fit: cover;
    display: block;
    filter: grayscale(10%);
    transition: filter 0.3s;
}

.pengajar-card:hover .pengajar-photo {
    filter: grayscale(0%);
}

.pengajar-info {
    padding: 20px 15px;
    text-align: center;
}

.pengajar-info h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.pengajar-jabatan {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.pengajar-jabatan i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* Style untuk Mata Pelajaran */
.mapel-group {
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.mapel-item {
    display: inline-block;
    background-color: var(--bg-medium);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}
.mapel-item i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.info-tambahan-pengajar {
    margin-top: 20px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}
.info-tambahan-pengajar p {
    margin-bottom: 15px;
}


/* --- Responsivitas Pengajar --- */
@media (max-width: 600px) {
    .pengajar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pengajar-photo {
        height: 250px;
    }
    
    .pengajar-info h4 {
        font-size: 1.1rem;
    }

    .mapel-group {
        gap: 8px;
    }
    .mapel-item {
        font-size: 0.8rem;
    }
    
    .info-tambahan-pengajar {
        padding: 20px;
    }
}








/* =================================== */
/* 22. BEASISWA STYLING */
/* =================================== */

#beasiswa-grid {
    background-color: var(--bg-medium);
}

.beasiswa-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.beasiswa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.beasiswa-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    text-align: left;
    transition: transform 0.3s ease, border 0.3s ease;
    border-bottom: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.beasiswa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0, rgba(0, 51, 102, 0.05) 5%, transparent 10%);
    opacity: 0;
    transition: opacity 0.3s;
}

.beasiswa-card:hover {
    transform: translateY(-8px);
    border-bottom: 5px solid var(--accent-color);
}
.beasiswa-card:hover::before {
    opacity: 1;
}

.beasiswa-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
    width: fit-content;
}

.beasiswa-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.deskripsi-singkat {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.benefit-list {
    margin-bottom: 25px;
}
.benefit-list li {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}
.benefit-list i {
    color: var(--cta-color);
    margin-right: 8px;
}

/* Catatan Beasiswa */
.catatan-beasiswa {
    margin-top: 50px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid var(--accent-color);
    text-align: left;
}
.catatan-beasiswa i {
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}
.catatan-beasiswa p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* --- Responsivitas Beasiswa --- */
@media (max-width: 600px) {
    .beasiswa-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .beasiswa-card {
        padding: 25px;
    }
    .beasiswa-icon {
        font-size: 2.5rem;
    }
    .beasiswa-card h3 {
        font-size: 1.2rem;
    }

    .catatan-beasiswa {
        flex-direction: column;
        text-align: center;
    }
    .catatan-beasiswa i {
        margin: 0;
    }
}











/* =================================== */
/* 23. ALUMNI STYLING (FINAL & RAPI) */
/* =================================== */

#jejak-akademik {
    background-color: var(--bg-medium);
    padding-top: 50px; 
}
#jejak-karir {
    background-color: var(--primary-color);
}

.alumni-page-container { 
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* OVERRIDE JUDUL SECTION KARIR DI LATAR BELAKANG GELAP */
#jejak-karir .section-title {
    color: var(--text-light) !important; 
}

#jejak-karir .section-title::after {
    background-color: var(--accent-color);
}

#jejak-karir .section-title i {
    color: var(--accent-color);
}
.section-subtitle-light {
    color: var(--text-light);
    margin-bottom: 50px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Tata Letak Dua Kolom Akademik (HEADER) --- */
.double-column-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.akademik-kolom-luar {
    text-align: center;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    height: 100%;
}

.kolom-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.kolom-title i {
    color: var(--accent-color);
    margin-right: 8px;
}


/* --- 1. Jejak Akademik Grid (HORIZONTAL WRAP RAPAT) --- */
.akademik-page-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 15px; 
}

.alumni-page-card { 
    background: var(--bg-medium); 
    padding: 15px 10px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.alumni-page-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.1);
}

.alumni-photo-small {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 3px solid var(--primary-color);
}

.alumni-page-card h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.alumni-institution {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.campus-name {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

/* CONTAINER BARU UNTUK LOKASI DETAIL */
.campus-location-info {
    font-size: 0.8rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 5px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.location-detail, .alumni-asal {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.alumni-asal {
    color: var(--secondary-color); 
}
.alumni-asal i {
    color: var(--secondary-color);
}

.country-flag-small {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
}


/* --- 2. Jejak Karir Grid (Gaya Konsisten) --- */
.karir-page-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px;
    margin-top: 50px;
}

.alumni-page-card.karir-style-page {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.alumni-page-card.karir-style-page:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}
.alumni-page-card.karir-style-page h4 {
    color: var(--text-light); 
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.karir-info-wrapper {
    flex-grow: 1; 
    padding-top: 5px;
    padding-bottom: 5px;
}

.karir-institusi {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-color); 
    line-height: 1.3;
    margin-bottom: 10px;
    display: block;
}

.karir-detail-separator {
    width: 80%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 10px auto;
}

.karir-jabatan-posisi, .karir-lokasi-asal {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
    line-height: 1.2;
}

.karir-jabatan-posisi i, .karir-lokasi-asal i {
    color: var(--accent-color);
    margin-right: 5px;
}


/* --- Responsivitas Alumni --- */
@media (max-width: 992px) {
    .double-column-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .akademik-kolom-luar {
        padding: 20px;
    }
    
    .akademik-page-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); 
    }
    
    .karir-page-grid-full {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    .double-column-wrapper {
        gap: 20px;
    }

    .akademik-page-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .alumni-page-card {
        padding: 10px;
    }
    
    .alumni-photo-small {
        width: 60px;
        height: 60px;
    }
    .alumni-page-card h4 {
        font-size: 0.9rem;
    }
    .alumni-page-card .alumni-institution {
        font-size: 0.75rem;
    }
    .campus-location-info {
        font-size: 0.7rem;
    }
    
    .karir-page-grid-full {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}










/* =================================== */
/* 24. PROGRAM UNGGULAN STYLING (REVISI PROFESIONAL) */
/* =================================== */

.unggulan-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#unggulan-fitur {
    background-color: var(--bg-medium);
    padding-bottom: 50px;
}

/* --- Feature Block Layout (Asimetris) --- */
.feature-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 70px;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}
.feature-block:hover {
    transform: translateY(-5px);
    transition: transform 0.4s ease;
}

.feature-content {
    flex: 1; /* Mengambil 50% ruang */
    text-align: left;
}

.feature-media {
    flex: 1; /* Mengambil 50% ruang */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-media img {
    width: 100%;
    height: 300px; /* Tinggi visual yang baik */
    object-fit: cover;
    display: block;
    filter: brightness(0.95);
}

/* Gaya Icon dan Judul */
.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.feature-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.feature-content p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-dark);
}

.benefit-list-feature {
    margin-bottom: 25px;
}
.benefit-list-feature li {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.benefit-list-feature i {
    color: var(--cta-color);
    margin-right: 8px;
}

/* Caption (Deskripsi Program dari Foto) */
.media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.8); /* Primary Color semi-transparan */
    color: var(--text-light);
    padding: 10px 15px;
    font-style: italic;
    font-size: 0.9rem;
}
.media-caption i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* Pengaturan Urutan untuk Block Kanan (Foto Kiri) */
.block-right-text {
    flex-direction: row-reverse;
}


/* --- 3. CTA Daftar --- */
#cta-unggulan {
    background: var(--bg-light);
    padding: 60px 5%;
    text-align: center;
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border: 3px dashed var(--primary-color);
    border-radius: 10px;
}

.cta-inner h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}


/* --- Responsivitas Program Unggulan --- */
@media (max-width: 992px) {
    .feature-block {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-content {
        order: 2;
    }
    .feature-media {
        order: 1;
        width: 100%;
    }
    
    .block-right-text {
        flex-direction: column; /* Hilangkan row-reverse di tablet */
    }
    
    .feature-content h3 {
        text-align: center;
    }
    .benefit-list-feature {
        text-align: left;
        padding-left: 20px;
    }
}

@media (max-width: 600px) {
    #unggulan-fitur {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .feature-block {
        padding: 20px;
        gap: 30px;
        margin-top: 40px;
    }
    
    .feature-media img {
        height: 250px;
    }
    
    .feature-content h3 {
        font-size: 1.5rem;
    }
    .feature-content p {
        font-size: 0.95rem;
    }
    
    .cta-inner h3 {
        font-size: 1.3rem;
    }
}











/* =================================== */
/* 25. PROGRAM KEPESANTRENAN STYLING */
/* =================================== */

.pesantren-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* --- 1. Pembiasaan Ibadah & Adab --- */
#pembiasaan {
    background-color: var(--bg-medium);
}

.pembiasaan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pembiasaan-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border-bottom: 5px solid var(--secondary-color);
    transition: transform 0.3s ease;
    height: 100%;
}

.pembiasaan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.pembiasaan-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.pembiasaan-card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pembiasaan-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* --- 2. Kegiatan Ilmiah & Bahasa (Visual Grid) --- */
#kegiatan-ilmiah {
    background-color: var(--primary-color);
}
#kegiatan-ilmiah .section-title, #kegiatan-ilmiah .section-title::after {
    color: var(--accent-color);
    background-color: var(--accent-color);
}

.ilmiah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.ilmiah-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
    height: 100%;
}
.ilmiah-card:hover {
    transform: translateY(-5px);
}

.ilmiah-media {
    height: 180px;
    overflow: hidden;
}
.ilmiah-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.ilmiah-card:hover .ilmiah-media img {
    transform: scale(1.05);
}

.ilmiah-content-box {
    padding: 20px;
    text-align: left;
}
.ilmiah-content-box h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.ilmiah-content-box i {
    color: var(--accent-color);
    margin-right: 8px;
}
.ilmiah-content-box p {
    font-size: 0.95rem;
    color: var(--text-dark);
}


/* --- 3. Kegiatan Kesehatan & Rekreasi (Flex Blocks) --- */
#rekreasi {
    background-color: var(--bg-light);
}

.rekreasi-flex {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.rekreasi-block {
    flex: 1;
    background: var(--bg-medium);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: left;
}

.rekreasi-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.rekreasi-header i {
    font-size: 2.5rem;
    color: var(--cta-color);
}
.rekreasi-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.fitur-list-large {
    list-style: none;
    padding-left: 0;
}
.fitur-list-large li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-dark);
}
.fitur-list-large i {
    color: var(--primary-color);
    margin-right: 10px;
}


/* --- Responsivitas Program Kepesantrenan --- */
@media (max-width: 992px) {
    .rekreasi-flex {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    #pembiasaan, #kegiatan-ilmiah, #rekreasi {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .pembiasaan-grid, .ilmiah-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pembiasaan-card h4 {
        font-size: 1rem;
    }
    
    .ilmiah-media {
        height: 160px;
    }
    .ilmiah-content-box h4 {
        font-size: 1.1rem;
    }

    .rekreasi-block {
        padding: 20px;
    }
    .rekreasi-header h3 {
        font-size: 1.1rem;
    }
}









/* =================================== */
/* 26. KEGIATAN SANTRI STYLING (TIMELINE VISUAL) */
/* =================================== */

.kegiatan-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* --- 2. Jadwal Harian (Timeline Visual) --- */
#jadwal-harian {
    background-color: var(--bg-medium);
}

.jadwal-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.timeline-item {
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
    border-top: 5px solid var(--primary-color);
    text-align: left;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-media {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.timeline-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
}

.timeline-jam {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-light);
}

.timeline-content {
    padding: 20px;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--border-color);
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-dark);
}


/* --- 3. Kegiatan Mingguan & Tahunan --- */
#kegiatan-ekstra {
    background-color: var(--primary-color);
}
#kegiatan-ekstra .section-title, #kegiatan-ekstra .section-title::after {
    color: var(--accent-color);
    background-color: var(--accent-color);
}

.ekstra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.ekstra-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    transition: background 0.3s, transform 0.3s;
    height: 100%;
}
.ekstra-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.ekstra-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.ekstra-card h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.ekstra-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}


/* --- 4. CTA (Menggunakan CTA Unggulan yang Sudah Ada) --- */
#cta-unggulan {
    background: var(--bg-light);
    padding: 60px 5%;
    text-align: center;
}


/* --- Responsivitas Kegiatan Santri --- */
@media (max-width: 992px) {
    .jadwal-timeline {
        grid-template-columns: 1fr 1fr;
    }
    .ekstra-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    #jadwal-harian, #kegiatan-ekstra {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .jadwal-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .timeline-media {
        height: 150px;
    }
    .timeline-jam {
        font-size: 0.8rem;
    }
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    
    .ekstra-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}








/* =================================== */
/* 18. DETAIL & SEMUA BERITA STYLING (FINAL FIX) */
/* =================================== */

#detail-berita, #semua-berita {
    background-color: var(--bg-medium);
    padding-top: 50px; 
    padding-bottom: 50px;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    /* KUNCI UTAMA: Konten Kiri (3/4) dan Sidebar Kanan (1/4) */
    display: grid;
    grid-template-columns: 3fr 1fr; 
    gap: 40px;
}

/* --- KONTEN UTAMA (KOLOM KIRI) --- */
.konten-utama {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.berita-judul {
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* REVISI: Tambahan Views Counter */
.berita-meta {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.berita-meta span {
    margin-right: 15px;
    display: inline-block;
}
.berita-meta i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* Gaya baru untuk Views Counter */
.views-counter {
    font-weight: 600;
    color: var(--primary-color) !important;
}

.berita-gambar {
    margin: 0 0 30px 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}
.berita-gambar img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}
.berita-gambar figcaption {
    background-color: var(--text-dark);
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 8px 15px;
    text-align: center;
}

/* Dalam tes.css, di blok 18. DETAIL & SEMUA BERITA STYLING */

.berita-isi {
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-align: justify;
}

.berita-isi p {
    margin-bottom: 1.5em; /* Tetap pertahankan margin P */
    text-align: inherit;
}

/* Dalam tes.css, di blok 18. DETAIL & SEMUA BERITA STYLING */
.berita-isi br {
    /* KUNCI PERBAIKAN: Jarak vertikal yang kuat pada tag <br> */
    margin-bottom: 20px; /* Nilai yang lebih besar untuk membedakan paragraf */
    display: block; 
    content: " ";
}
.berita-isi img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px auto;
    display: block;
    box-shadow: var(--shadow-light);
}

/* --- BLOCK BERBAGI (SHARE BUTTONS) --- */
.share-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 20px;
    border-top: 1px dashed var(--border-color);
}
.share-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}
.share-title i {
    margin-right: 8px;
    color: var(--accent-color);
}
.share-icons {
    display: flex;
    gap: 10px;
}
.share-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.share-icon:hover {
    transform: scale(1.15);
    opacity: 0.9;
}
.share-icon.whatsapp {
    background-color: #25D366;
}
.share-icon.facebook {
    background-color: #3b5998;
}
.share-icon.twitter {
    background-color: #1DA1F2;
}


/* --- SIDEBAR (KOLOM KANAN) --- */
.sidebar {
    padding-top: 0; 
}

.sidebar-block {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}
.sidebar-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    text-align: left;
}
.sidebar-title i {
    color: var(--accent-color);
    margin-right: 8px;
}

/* REVISI: Gaya Sidebar Berita dengan Gambar Thumbnail */
.list-berita-sidebar {
    list-style: none;
    padding: 0;
}
.list-berita-sidebar li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}
.list-berita-sidebar li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-link-visual {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}
.sidebar-link-visual:hover .judul-sidebar {
    color: var(--secondary-color);
}

.sidebar-thumb {
    width: 60px; /* Ukuran thumbnail kecil */
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
}

.sidebar-info-teks {
    flex-grow: 1;
    text-align: left;
}

.judul-sidebar {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;
    line-height: 1.3;
}
.tanggal-sidebar {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sidebar CTA */
.cta-sidebar {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}
.cta-sidebar .sidebar-title {
    color: var(--accent-color);
    border-color: rgba(255, 255, 255, 0.2);
}
.cta-sidebar p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}


/* --- Responsivitas Detail Berita --- */
@media (max-width: 992px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sidebar {
        padding-top: 0;
        order: 2; 
    }
    .konten-utama {
        order: 1;
    }
}

@media (max-width: 600px) {
    #detail-berita {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .konten-utama {
        padding: 15px;
    }
    .berita-judul {
        font-size: 1.8rem;
    }
    .berita-meta {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    .berita-meta span {
        display: block;
        margin: 5px 0;
    }

    .berita-isi {
        font-size: 1rem;
    }
    
    .sidebar-block {
        padding: 15px;
    }
    
    .share-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .sidebar-thumb {
        width: 50px;
        height: 50px;
    }
}







/* =================================== */
/* 18. DETAIL & SEMUA BERITA STYLING (FINAL FIX SEMUA BERITA) */
/* =================================== */

#semua-berita {
    background-color: var(--bg-medium);
    padding-top: 50px; 
    padding-bottom: 50px;
}

/* KUNCI UTAMA: Membalik tata letak - Sidebar Kiri, Konten Kanan */
.detail-container.semua-berita-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Sidebar Kiri (1fr/kecil) | Konten Kanan (3fr/besar) */
    grid-template-columns: 1fr 3fr; 
    gap: 40px;
}

/* --- KONTEN UTAMA (KOLOM KANAN) --- */
.konten-utama {
    padding: 0; /* Hapus padding default konten utama di halaman ini */
    background: none;
    box-shadow: none;
}
.konten-utama .section-title {
    margin-bottom: 30px;
    padding-bottom: 0;
}
.konten-utama .section-title::after {
    display: none;
}

/* --- GRID 2x2 BERITA BESAR (KANAN) --- */
.berita-grid-besar {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolom di desktop */
    gap: 30px;
}

.berita-card-besar {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.berita-card-besar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.15);
}

.berita-card-besar img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.berita-content-besar {
    padding: 20px;
    text-align: left;
}
.berita-date-besar {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.berita-content-besar h3 a {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}
.berita-content-besar p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.berita-content-besar .btn-small {
    margin-top: auto;
}

/* --- SIDEBAR (KOLOM KIRI) --- */
.sidebar {
    padding-top: 5px; 
}

.sidebar-block {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}
.sidebar-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    text-align: left;
}
.sidebar-title i {
    color: var(--accent-color);
    margin-right: 8px;
}

/* Gaya List Berita Kecil */
.list-berita-sidebar {
    list-style: none;
    padding: 0;
}
.list-berita-sidebar li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}
.list-berita-sidebar li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-link-visual {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}
.sidebar-link-visual:hover .judul-sidebar {
    color: var(--secondary-color);
}

.sidebar-thumb {
    width: 60px; /* Ukuran thumbnail kecil */
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
}

.sidebar-info-teks {
    flex-grow: 1;
    text-align: left;
}
.judul-sidebar {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;
    line-height: 1.3;
}
.tanggal-sidebar {
    font-size: 0.8rem;
    color: var(--text-muted);
}
/* ... (Gaya Sidebar CTA tetap sama) ... */


/* --- Responsivitas Semua Berita --- */
@media (max-width: 992px) {
    .detail-container.semua-berita-layout {
        /* Kembali ke tata letak 1 kolom, Sidebar pindah ke atas */
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sidebar {
        order: 1; /* Sidebar di atas di tablet/mobile */
        padding-top: 0;
    }
    .konten-utama {
        order: 2;
    }
    .berita-grid-besar {
        grid-template-columns: 1fr; /* 1 kolom di tablet/mobile */
    }
}

@media (max-width: 600px) {
    #semua-berita {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .sidebar-thumb {
        width: 50px;
        height: 50px;
    }
    .berita-card-besar img {
        height: 180px;
    }
    .berita-content-besar h3 {
        font-size: 1.2rem;
    }
}












/* =================================== */
/* 27. PRESTASI TABEL STYLING */
/* =================================== */

#tabel-prestasi {
    background-color: var(--bg-medium);
}

.prestasi-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tabel-prestasi-wrapper {
    margin-top: 40px;
    margin-bottom: 60px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    transition: box-shadow 0.3s;
}

.tabel-prestasi-wrapper:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tabel-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}
.tabel-title i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* --- Gaya Tabel Data --- */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    min-width: 600px; /* Lebar minimum untuk responsif */
    border-collapse: collapse;
    margin-top: 10px;
    text-align: left;
}

.data-table thead th {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.data-table tbody tr {
    transition: background-color 0.3s ease;
}

.data-table tbody tr:nth-child(even) {
    background-color: var(--bg-medium);
}
.data-table tbody tr:hover {
    background-color: var(--border-color);
}

.data-table tbody td {
    padding: 12px 15px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    vertical-align: middle;
}

.data-table tbody td:nth-child(2) {
    font-weight: 700;
    color: var(--cta-color); /* Menonjolkan Juara */
}

/* --- Responsif Tabel Mobile (Stacking Columns) --- */
@media (max-width: 600px) {
    .tabel-prestasi-wrapper {
        padding: 15px;
        margin-bottom: 40px;
    }
    
    .tabel-title {
        font-size: 1.3rem;
    }
    
    .table-responsive {
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
    
    .data-table {
        border: none;
        width: 100%;
        display: block;
        overflow-x: auto;
    }

    /* Memaksa header kolom menjadi header baris */
    .data-table thead {
        display: none;
    }
    .data-table tbody tr {
        margin-bottom: 10px;
        display: block;
        border: 1px solid var(--border-color);
        border-radius: 6px;
    }
    .data-table tbody td {
        border-bottom: 1px solid var(--border-color);
        display: block;
        text-align: right !important;
        padding-left: 50% !important;
        position: relative;
    }
    .data-table tbody td::before {
        /* Memunculkan header kolom sebagai label baris */
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: var(--primary-color);
    }
}