/* File: slide_beranda.css
    Description: Style khusus untuk Hero Slider Beranda SMAN 1 Teminabuan
*/

/* --- WADAH UTAMA SLIDER --- */
.caption-container {
    padding-top: 80px; /* Sesuaikan dengan tinggi navbar Anda */
}
/* Reset margin/padding pada elemen pembungkus */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

.hero-section { 
    width: 100%; 
    height: 90vh; 
    position: relative; 
    overflow: hidden;
    /* Menghilangkan semua potensi spasi */
    margin-top: 0 !important; 
    padding-top: 0 !important;
    top: 0;
    display: block;
    clear: both; /* Memastikan tidak ada elemen mengambang di atasnya */
}

/* Memastikan swiper mengambil ruang penuh */
.main-swiper { 
    width: 100%; 
    height: 100%; 
    margin: 0;
}

/* --- TAMPILAN GAMBAR & OVERLAY --- */
.slide-image-wrapper {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1;
}

.slide-bg {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    /* Transition standar tanpa efek zoom */
    display: block;
}

/* Overlay gelap agar teks putih kontras dan mudah dibaca */
.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(0, 109, 221, 0.7) 0%, 
        rgba(2, 6, 23, 0.5) 100%
    );
    z-index: 2;
}

/* --- KONTEN TEKS (CAPTION) --- */
.caption-container {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

.caption-content {
    max-width: 800px;
    color: white;
}

.badge-smansa {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffc107;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    border-left: 4px solid #ffc107;
}

.caption-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.caption-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.6;
}

/* --- TOMBOL AKSI --- */
.btn-smansa-gold {
    background: #ffc107;
    color: #0f172a !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease-in-out;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-smansa-gold:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* --- NAVIGASI & PAGINATION --- */
.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.4;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffc107 !important;
    width: 40px;
    border-radius: 5px;
}

/* Panah Navigasi */
.swiper-button-next, .swiper-button-prev {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: #006DDD;
}

/* --- RESPONSIVE UNTUK HP --- */
@media (max-width: 768px) {
    .hero-section { height: 70vh; }
    .caption-content { text-align: center; padding: 0 15px; }
    .caption-content h1 { font-size: 2rem; }
    .caption-content p { font-size: 1rem; }
    .hero-overlay {
        background: rgba(2, 6, 23, 0.6); /* Overlay lebih gelap di HP */
    }
}
.caption-content h1 {
    color: #ffc107; /* Warna Kuning/Emas SMANSA */
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4); /* Shadow diperkuat agar tetap terbaca */
}
/* --- SECTION STATISTIK --- */
.stats-section {
    position: relative;
    z-index: 20;
    margin-top: -30px; /* Membuat section naik sedikit menimpa slider (efek elegan) */
    padding-bottom: 50px;
}

.stats-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border-bottom: 5px solid #ffc107; /* Garis bawah kuning khas SMANSA */
}

.stats-item {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #f1f5f9;
    transition: 0.3s;
}

.stats-item:last-child { border-right: none; }

.stats-item:hover {
    background-color: #f8fafc;
    transform: translateY(-5px);
}

.stats-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 109, 221, 0.1); /* Background biru transparan */
    color: #006DDD; /* Biru SMANSA */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.stats-data h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 5px;
}

.stats-data p {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin: 0;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .stats-section { margin-top: -30px; }
    .stats-item { 
        padding: 30px 10px; 
        border-bottom: 1px solid #f1f5f9;
    }
    .stats-item:nth-child(even) { border-right: none; }
}
/* --- NEWS & ANNOUNCEMENT STYLING --- */
.info-section {
    background-color: #f8fafc;
     margin-top: -60px;
}

.card-berita {
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.card-berita:hover {
    transform: translateY(-8px);
}

.card-berita img {
    height: 200px;
    object-fit: cover;
}

.date-box {
    background: #f1f5f9;
    padding: 8px 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 65px;
}

.date-box .day {
    font-size: 1.2rem;
    line-height: 1;
}

.announce-item:last-child {
    border-bottom: none !important;
}

.announce-item a:hover {
    color: #006DDD !important;
}
/* --- GREETING SECTION --- */
.greeting-section {
    padding: 30px 0 10px 0; /* Memberi jarak dari slide */
    background-color: #f8fafc; /* Menyamakan background dengan section berita */
}

.greeting-card {
    background: #ffffff;
    border-radius: 15px;
    border-left: 6px solid #ffc107; /* Aksen Kuning SMANSA */
    overflow: hidden;
    position: relative;
}

.greeting-icon {
    font-size: 2.5rem;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.greeting-text h4 {
    letter-spacing: 0.5px;
}

.greeting-text p {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Menghilangkan padding bawah pada container agar menempel dengan berita */
.greeting-section + .info-section {
    padding-top: 20px;
}

@media (max-width: 768px) {
    .greeting-text { text-align: center; }
    .greeting-card { border-left: none; border-top: 5px solid #ffc107; }
}
/* --- WELCOME BANNER SECTION --- */
.welcome-banner-section {
    /* 1. Hilangkan padding atas agar rapat dengan slide */
 
    /* 2. Beri jarak bawah agar tidak menempel/menimpa section berita */
    padding-bottom: 20px; 
    background-color: #f8fafc;
    /* 3. Pastikan tidak ada posisi absolute yang mengganggu */
    position: relative;
    z-index: 10;
}

.welcome-banner-wrapper {
    /* 4. Berikan sedikit margin-top jika ingin ada celah tipis (misal 10px) 
       atau 0 jika ingin benar-benar menempel dengan slide */
    margin-top: 0; 
    
    background: linear-gradient(135deg, #006DDD 0%, #004a99 100%);
    border-radius: 20px;
    padding: 35px 40px;
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid #ffc107;
}

/* Pastikan section info (berita) di bawahnya punya jarak yang cukup */
.info-section {
    padding-top: 30px !important;
    position: relative;
}