/*
Theme Name: Web SMK
Theme URI: https://domainsekolah.sch.id
Author: Bre
Author URI: https://domainsekolah.sch.id
Description: Tema custom sekolah built from scratch.
Version: 17.0 (Final Merge - Fixed Spacing, Hovers & Layout)
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: web-smk
*/

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --tosca-dark: #00695c;
  --tosca-main: #009688;
  --tosca-light: #b2dfdb;
  --tosca-bg: #f0fdfa;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;
  --max-w: 1200px;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,150,136,0.08);
  --shadow-lg: 0 12px 24px rgba(0,150,136,0.15);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--tosca-bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--tosca-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--tosca-dark); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Fix Jarak Section (Dipadatkan) */
.section-padding { padding: 2.5rem 0; } 
.text-center { text-align: center; }
.bg-light { background: var(--white); }

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--tosca-main);
  color: var(--white);
  border-radius: 6px;
  font-weight: 600;
  transition: background var(--transition-fast), opacity var(--transition-fast);
  transition: ease, 0.25s;
}
.btn-primary:hover { background: var(--tosca-dark); opacity: 0.95; color: white; transform: translateY(-3px);}
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }

/* ========================================
   MODERN TOPBAR
   ======================================== */
.topbar-modern {
    background: var(--tosca-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.topbar-item:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.topbar-item svg {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.topbar-item:hover svg { opacity: 1; }

.topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar-btn:hover {
    background: #ffffff;
    color: var(--tosca-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.topbar-btn svg { transition: transform 0.3s ease; }
.topbar-btn:hover svg { transform: translateX(3px); }

@media (max-width: 768px) {
    .topbar-modern { padding: 0.5rem 0; font-size: 0.75rem; }
    .topbar-inner { justify-content: center; text-align: center; }
    .topbar-left { gap: 1rem; justify-content: center; width: 100%; margin-bottom: 0.5rem; }
    .topbar-right { width: 100%; display: flex; justify-content: center; }
    .topbar-btn { width: 100%; justify-content: center; max-width: 200px; }
}

/* ========================================
   HEADER SPLIT LAYOUT (Fixed Spacing & Hover)
   ======================================== */
.site-header-split {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0.8rem 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header-split.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

/* --- LEFT: LOGO & NAME (Rapet) --- */
.header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Jarak Logo-Nama diperkecil */
}

.header-left .logo-link { display: block; line-height: 0; }

.custom-logo { max-height: 50px; width: auto; }
.logo-fallback { font-size: 2.5rem; color: var(--tosca-main); }

.brand-text-wrapper {
    text-align: left;
    line-height: 1.1;
    margin-right: 0; /* Hapus margin berlebih */
}

.school-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--tosca-dark);
    margin: 0;
}
.school-name a { color: inherit; text-decoration: none; }

.school-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- RIGHT: TEXT & NAV --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.main-navigation-split .nav-menu-split {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-split > li { 
    position: relative; 
    padding-bottom: 10px;
}

.nav-menu-split a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    position: relative; /* Untuk animasi garis */
    transition: color 0.3s ease;
}

/* Animasi Hover Navbar (Garis Bawah) */
.nav-menu-split a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tosca-main);
    transition: width 0.3s ease-in-out;
}

.nav-menu-split a:hover { color: var(--tosca-main); }
.nav-menu-split a:hover::after { width: 100%; }

/* --- DROPDOWN STYLING --- */
.sub-menu, .sub-menu-split {
    position: absolute;
    top: 100%;
    left: -10px;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    border: 1px solid #f1f5f9;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.sub-menu a, .sub-menu-split a {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #475569;
    border-bottom: 1px solid #f8fafc;
    display: block;
    text-decoration: none;
}

.sub-menu li:last-child a, .sub-menu-split li:last-child a { border-bottom: none; }
.sub-menu a:hover, .sub-menu-split a:hover { background: var(--tosca-bg); color: var(--tosca-dark); }

@media (min-width: 901px) {
    .nav-menu-split li:hover > .sub-menu,
    .nav-menu-split li:hover > .sub-menu-split {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        display: block !important;
    }
}

@media (max-width: 900px) {
    .sub-menu, .sub-menu-split {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none; background: #f8fafc;
        padding-left: 1rem; display: none;
        margin-bottom: 1rem; border: none; min-width: auto; width: 100%;
    }
    .nav-menu-split li.dropdown-open > .sub-menu,
    .nav-menu-split li.dropdown-open > .sub-menu-split { display: block !important; }
    .sub-menu a, .sub-menu-split a { padding: 0.8rem 0; font-size: 0.95rem; border-bottom: 1px solid #e2e8f0; }
}

/* --- MOBILE TOGGLE --- */
.mobile-toggle-split {
    display: none; background: none; border: none;
    width: 30px; height: 20px; position: relative; z-index: 1001;
}
.mobile-toggle-split span {
    display: block; width: 100%; height: 2px;
    background: var(--tosca-dark); position: absolute; left: 0; transition: 0.3s ease;
}
.mobile-toggle-split span:nth-child(1) { top: 0; }
.mobile-toggle-split span:nth-child(2) { top: 9px; }
.mobile-toggle-split span:nth-child(3) { top: 18px; }

.mobile-toggle-split.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.mobile-toggle-split.active span:nth-child(2) { opacity: 0; }
.mobile-toggle-split.active span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

@media (max-width: 900px) {
    .mobile-toggle-split { display: block; }
    .school-desc { display: none; }
    .custom-logo { max-height: 40px; }
    .school-name { font-size: 1.1rem; }
    
    .main-navigation-split {
        position: fixed; top: 0; right: -100%;
        width: 80%; max-width: 320px; height: 100vh;
        background: white; box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        padding: 5rem 1.5rem 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000; overflow-y: auto;
    }
    .main-navigation-split.open { right: 0; }
    .nav-menu-split { flex-direction: column; gap: 0; }
    .nav-menu-split > li { border-bottom: 1px solid #f1f5f9; padding-bottom: 0; }
    .nav-menu-split > li > a { padding: 1.2rem 0; font-size: 1.1rem; }
    
    body.nav-open::before {
        content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(2px); z-index: 999;
    }
}

/* ========================================
   UNIFIED HERO BANNER
   ======================================== */
/* ========================================
   HERO BANNER (FIXED SLIDER & LAYOUT)
   ======================================== */
.hero-banner-unified {
    position: relative;
    width: 100%;
    height: 85vh; /* Tinggi tetap 85% layar */
    min-height: 600px;
    overflow: hidden; /* Penting: Potong sisa slide */
    background: #0f172a;
}

.hero-slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%; /* PENTING: Setiap slide harus 100% lebar layar */
    width: 100%;
    height: 100%;
    flex-shrink: 0; /* Jangan biarkan slide mengecil */
    position: relative;
}

/* Gambar Slide */
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar nutup area tanpa gepeng */
    object-position: center;
    display: block;
}

/* Overlay Gelap Biar Teks Kebaca */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 30, 25, 0.9), rgba(0,0,0,0.4));
    z-index: 2;
    display: flex;
    align-items: center; /* Tengah vertikal */
    justify-content: center; /* Tengah horizontal (opsional, kalau mau teks di kiri hapus ini) */
}

/* Konten Teks */
.hero-content {
    position: relative;
    z-index: 5;
    color: white;
    text-align: center; /* Teks di tengah */
    max-width: 900px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    background: var(--tosca-main);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem); /* Responsif besar */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Tombol Hero */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 1rem 2.5rem;
    background: var(--tosca-main);
    color: white !important;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s;
    border: none;
}
.btn-hero-primary:hover {
    background: white;
    color: var(--tosca-dark) !important;
    transform: translateY(-3px);
}

.btn-hero-secondary {
    padding: 1rem 2.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    color: white !important;
    font-weight: 700;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: 0.3s;
}
.btn-hero-secondary:hover {
    background: white;
    color: var(--tosca-dark) !important;
}

/* Navigasi Slider (Panah Kiri Kanan) */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.hero-nav-btn:hover {
    background: white;
    color: var(--tosca-dark);
}
.hero-nav-btn.prev { left: 2rem; }
.hero-nav-btn.next { right: 2rem; }

/* Dots Indikator */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.hero-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Responsive HP */
@media (max-width: 768px) {
    .hero-banner-unified { height: 70vh; min-height: 500px; }
    .hero-title { font-size: 2.5rem; }
    .hero-nav-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .hero-nav-btn.prev { left: 1rem; }
    .hero-nav-btn.next { right: 1rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; }
}

.video-slide .bg-video-iframe {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto; pointer-events: none;
}
.video-overlay-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 40, 30, 0.85), rgba(0,0,0,0.3));
    z-index: 1;
}
.btn-unmute {
    position: absolute; bottom: 2rem; right: 2rem;
    z-index: 99999; background: rgba(255,255,255,0.9);
    border: none; width: 50px; height: 50px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    pointer-events: auto !important;
}
.btn-unmute.is-unmuted .icon-mute { display: none; }
.btn-unmute.is-unmuted .icon-sound { display: block; }
.icon-sound { display: none; }

@media (max-width: 768px) {
    .hero-banner-unified { height: 70vh; min-height: 500px; }
    .hero-title { font-size: 2rem; }
    .hero-nav-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .hero-nav-btn.prev { left: 1rem; }
    .hero-nav-btn.next { right: 1rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; }
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section { background: var(--tosca-dark); padding: 4rem 0; color: white; }
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem; justify-content: center;
}
.stat-card {
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px;
    padding: 2rem 1.5rem; text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.15); }
.stat-number { font-size: 2.5rem; font-weight: 800; margin: 0 0 0.5rem; color: #ffffff; line-height: 1; }
.stat-label { font-size: 0.95rem; font-weight: 500; color: rgba(255, 255, 255, 0.9); margin: 0; text-transform: uppercase; letter-spacing: 0.05em; }

/* ========================================
   JURUSAN SECTION GRID STYLE
   ======================================== */
.jurusan-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.jurusan-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.jurusan-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,150,136,0.15);
    border-color: var(--tosca-main);
}

.card-media-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    z-index: 2;
}

.jurusan-card-modern:hover .card-media-wrapper img {
    transform: scale(1.1);
}

.media-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

.jurusan-card-modern:hover .media-overlay {
    opacity: 1;
}

.placeholder-icon {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
    z-index: 2;
}

.card-info-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: white;
    z-index: 4;
    position: relative;
}

.card-info-box h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tosca-dark);
    margin: 0 0 0.8rem;
    line-height: 1.3;
    transition: color 0.3s;
}

.jurusan-card-modern:hover .card-info-box h4 {
    color: var(--tosca-main);
}

.card-info-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tosca-main);
    transition: gap 0.3s ease;
}

.jurusan-card-modern:hover .card-action {
    gap: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .jurusan-grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .jurusan-card-modern {
        flex-direction: column;
    }
    .card-media-wrapper {
        height: 180px;
    }
    .card-info-box {
        padding: 1.2rem;
    }
}
/* ========================================
   NEWS SECTION - FIXED RESPONSIVE SLIDER
   ======================================== */

.news-section { padding: 4rem 0; background: var(--tosca-bg); }
.news-section .container { max-width: 1100px; }
.news-section .section-title {
    text-align: left; margin-bottom: 2rem; font-size: 1.8rem;
    font-weight: 800; color: var(--tosca-dark); position: relative;
    padding-left: 1rem; border-left: 5px solid var(--tosca-main);
}

/* WRAPPER SLIDER */
.news-slider-wrapper {
    position: relative; 
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,100,80,0.15); 
    margin-bottom: 3rem; 
    background: #000;
    width: 100%;
}

/* CONTAINER SLIDE (FLEX) */
.news-slider { 
    display: flex !important; 
    width: 100%; 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
    will-change: transform; /* Optimasi performa */
}

/* INDIVIDUAL SLIDE - DESKTOP */
.news-slide { 
    min-width: 100% !important; 
    flex-shrink: 0; 
    position: relative; 
    height: 400px; /* Tinggi Desktop */
    width: 100%;   /* Paksa lebar penuh */
}

.news-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.7); 
    transition: transform 0.5s ease; 
    display: block; /* Hilangkan gap bawah gambar */
}

.news-slide-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); color: white;
    z-index: 2;
}
.news-slide-overlay h3 { font-size: 1.8rem; margin: 0 0 0.5rem; line-height: 1.2; }
.news-slide-overlay h3 a { color: white; text-decoration: none; }

/* TOMBOL NAVIGASI */
.news-slider-wrapper .slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); border: none;
    color: white; width: 45px; height: 45px; border-radius: 50%;
    cursor: pointer; z-index: 10; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center; transition: background 0.3s;
}
.news-slider-wrapper .slider-btn:hover { background: rgba(255,255,255,0.4); }
.news-slider-wrapper .slider-btn.prev { left: 1rem; }
.news-slider-wrapper .slider-btn.next { right: 1rem; }

/* GRID LIST BERITA (Tetap sama) */
.news-list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.news-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column; height: 100%; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,150,136,0.2); }
.news-card-thumb { width: 100%; height: 180px; overflow: hidden; }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-card-thumb img { transform: scale(1.1); }
.news-card-content { padding: 1.2rem; display: flex; flex-direction: column; flex-grow: 1; }
.news-card-content h4 { font-size: 1.1rem; margin: 0 0 0.5rem; line-height: 1.4; font-weight: 700; }
.news-card-content h4 a { color: var(--tosca-dark); transition: color 0.2s; }
.news-card-content h4 a:hover { color: var(--tosca-main); }
.news-card-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin: 0; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ========================================
   MOBILE FIX (KUNCI PERBAIKAN LU)
   ======================================== */
@media (max-width: 768px) {
    /* Ubah Tinggi Slider Jadi Aspect Ratio Biar Gak Kepotong Parah */
    .news-slide {
        height: auto;          /* Hapus tinggi fix 400px */
        aspect-ratio: 4 / 3;   /* Rasio 4:3 lebih cocok buat HP vertikal */
        min-height: 250px;     /* Batas minimal biar gak kedempet */
    }

    .news-slider-wrapper {
        border-radius: 12px;
        margin-bottom: 2rem;
    }

    .news-slide-overlay {
        padding: 1rem; /* Padding lebih kecil di HP */
    }

    .news-slide-overlay h3 {
        font-size: 1.2rem; /* Judul lebih kecil */
        line-height: 1.3;
    }

    /* Tombol Navigasi Lebih Kecil & Dekat Tepi */
    .news-slider-wrapper .slider-btn {
        width: 35px; height: 35px;
        font-size: 1.2rem;
    }
    .news-slider-wrapper .slider-btn.prev { left: 0.5rem; }
    .news-slider-wrapper .slider-btn.next { right: 0.5rem; }

        /* --- FIX CARD LIST MOBILE: VERTICAL STACK --- */
    .news-list-grid {
        grid-template-columns: 1fr; /* 1 Kolom Penuh */
        gap: 1.5rem;
    }

    .news-card {
        flex-direction: column; /* UBAH JADI VERTIKAL (Gambar Atas, Teks Bawah) */
        align-items: stretch;
        height: auto;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        border: 1px solid rgba(0,0,0,0.03);
    }

    /* THUMBNAIL FULL WIDTH DI ATAS */
    .news-card-thumb {
        width: 100%;
        aspect-ratio: 16 / 9; /* Rasio landscape standar biar gambar jelas */
        position: relative;
        overflow: hidden;
        background: #f1f5f9;
        flex-shrink: 0; /* Jangan biarkan mengecil */
    }

    .news-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    /* KONTEN TEKS DI BAWAH GAMBAR */
    .news-card-content {
        padding: 1.2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Mulai dari atas */
        flex-grow: 1;
    }

    .news-card-content time {
        font-size: 0.75rem;
        color: var(--tosca-main);
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .news-card-content h4 {
        font-size: 1.1rem; /* Sedikit lebih besar biar jadi fokus */
        font-weight: 700;
        line-height: 1.3;
        margin: 0 0 0.8rem;
        color: var(--text-dark);
        
        /* Batasi Judul Max 2 Baris */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-card-content p {
        font-size: 0.9rem;
        color: var(--text-muted);
        line-height: 1.5;
        margin: 0;
        
        /* Batasi Excerpt Max 3 Baris */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section { padding: 4rem 0; background: #f8fafc; }
.gallery-section .section-title { text-align: center; margin-bottom: 3rem; color: var(--tosca-dark); font-weight: 800; }
.gallery-row { display: grid; gap: 1.5rem; width: 100%; }
.row-4-col { grid-template-columns: repeat(4, 1fr); }
.row-2-col { grid-template-columns: repeat(2, 1fr); }
.gallery-item {
    position: relative; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease; margin: 0;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 12px 20px rgba(0,0,0,0.1); z-index: 2; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white; padding: 1.5rem 1rem 1rem; font-size: 0.9rem; font-weight: 500;
    opacity: 0; transform: translateY(10px); transition: all 0.3s ease; pointer-events: none;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ========================================
   CTA PPDB
   ======================================== */
.cta-ppdb {
  background: var(--tosca-dark);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-ppdb h2 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-subtitle { opacity: 0.95; margin: 0.5rem 0 1.5rem; font-size: 1.05rem; }
.cta-ppdb .btn-primary { background: var(--white); color: var(--tosca-dark); }
.cta-ppdb .btn-primary:hover { background: var(--tosca-light); opacity: 1; }

/* ========================================
   FOOTER (Fixed Hover)
   ======================================== */
.site-footer { background: #0f172a; color: #cbd5e1; padding-top: 4rem; font-size: 0.95rem; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h4.footer-title {
    color: #ffffff; font-size: 1.1rem; font-weight: 700;
    margin-bottom: 1.2rem; position: relative; display: inline-block;
}
.footer-col h4.footer-title::after {
    content: ''; display: block; width: 40px; height: 3px;
    background: var(--tosca-main); margin-top: 8px; border-radius: 2px;
}
.footer-logo .custom-logo { max-height: 50px; width: auto; margin-bottom: 1rem;}
.footer-desc { color: #94a3b8; font-size: 0.9rem; }
.footer-links, .footer-contact-list, .widget ul { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact-list li, .widget li { margin-bottom: 0.8rem; }

/* Fix Hover Link Footer */
.footer-links a, .widget a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-links a:hover, .widget a:hover {
    color: var(--tosca-main);
    padding-left: 8px;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0; text-align: center;
    font-size: 0.85rem; color: #64748b;
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */
.anim-scroll {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-scroll.is-visible { opacity: 1; transform: translateY(0); }

.card-hover { transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.section-title { text-align: center; margin-bottom: 2.5rem; color: var(--tosca-dark); font-size: 2rem; font-weight: 700; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }

@media (max-width: 900px) {
    .row-4-col { grid-template-columns: repeat(2, 1fr); }
    .row-2-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .row-4-col, .row-2-col { grid-template-columns: 1fr; }
    .gallery-item img { height: 200px; }
    .stats-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .news-slide { height: 300px; }
    .news-list-grid { grid-template-columns: 1fr; }
}
/* ========================================
   IMPROVED CHILD PAGES GRID (MODERN CARD)
   ======================================== */
.child-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Card Container */
.child-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    border: 1px solid rgba(0,0,0,0.02);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.child-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,150,136,0.15);
    border-color: var(--tosca-main);
}

/* Media/Image Area */
.card-media-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    z-index: 2;
}

.child-card-modern:hover .card-media-wrapper img {
    transform: scale(1.1);
}

.media-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

.child-card-modern:hover .media-overlay {
    opacity: 1;
}

/* Placeholder Icon (Jika no image) */
.placeholder-icon {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
    z-index: 2;
}

/* Info Box */
.card-info-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: white;
    z-index: 4;
    position: relative;
}

.card-info-box h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tosca-dark);
    margin: 0 0 0.8rem;
    line-height: 1.3;
    transition: color 0.3s;
}

.child-card-modern:hover .card-info-box h4 {
    color: var(--tosca-main);
}

.card-info-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Button/Link */
.card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tosca-main);
    transition: gap 0.3s ease;
}

.child-card-modern:hover .card-action {
    gap: 0.8rem;
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
    .child-pages-grid {
        grid-template-columns: 1fr; /* 1 Kolom di HP */
        gap: 1.5rem;
    }
    
    /* Di HP, tetap vertikal tapi lebih compact */
    .child-card-modern {
        flex-direction: column; 
    }
    
    .card-media-wrapper {
        height: 180px;
    }
    
    .card-info-box {
        padding: 1.2rem;
    }
    
    .card-info-box h4 {
        font-size: 1.1rem;
    }
}