/* Global */
.carousel-poster .info-box{
    min-height: 540px;
    overflow: hidden;
}

.carousel-poster .info-box img{
    width: auto;
    height: 540px;
}

.pengumuman .recent-post .pengumuman-title, .pengumuman .recent-post a {
    color: var(--color-primary, #2F8FBF) !important;
}

/* --- Bagian Header --- */
/* --- 1. Background Section: Hijau Soft --- */
#prestasi.prestasi-section {
    background: #C8E6C9;
    padding: 100px 0;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1;
    padding-top: 20px !important;
    padding-bottom: 80px !important;
}

/* --- 2. Keyframes untuk Animasi Mengambang --- */
@keyframes floatBubble1 {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-40px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes floatBubble2 {
    0% { transform: translateY(0) translateX(0) scale(1); }
    50% { transform: translateY(30px) translateX(-20px) scale(1.1); }
    100% { transform: translateY(0) translateX(0) scale(1); }
}

/* --- 3. Style Dasar Gelembung Kaca (Glassmorphism) --- */
#prestasi.prestasi-section::before,
#prestasi.prestasi-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    /* Efek transparan menyala layaknya kaca/sabun */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    z-index: -1 !important;
    pointer-events: none;
}

/* --- 4. Bubble 1 (Kiri Atas) --- */
#prestasi.prestasi-section::before {
    top: 5%;
    left: -5%;
    width: 300px;
    height: 300px;
    animation: floatBubble1 6s ease-in-out infinite; /* Bergerak naik-turun setiap 6 detik */
}

/* --- 5. Bubble 2 (Kanan Bawah) --- */
#prestasi.prestasi-section::after {
    bottom: -5%;
    right: -2%;
    width: 400px;
    height: 400px;
    animation: floatBubble2 8s ease-in-out infinite; /* Bergerak menyilang perlahan setiap 8 detik */
}
.prestasi-header h2 {
    font-weight: 700;
    color: rgb(16, 33, 63);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 1px;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.prestasi-header h2 i {
    color: #f59e0b; /* Warna piala emas */
    font-size: 36px;
}

#prestasi .mb-4, 
#prestasi .mb-5 {
    margin-bottom: 25px !important; 
}


.prestasi-header p {
    color: #4b5563;
    font-size: 16px;
    margin-top: 10px;
}


.header-line {
    width: 60px;
    height: 4px;
    background-color: rgb(16, 33, 63);
    margin: 15px auto 30px auto;
    border-radius: 4px;
}

/* --- Kartu Prestasi --- */

/* 1. Beri ruang (padding) di kiri dan kanan agar kartu tidak tertabrak tombol */
.prestasiGlassSwiper {
    padding-left: 60px !important;
    padding-right: 60px !important;
    padding-bottom: 45px !important;
    position: relative;
}

/* 2. Posisikan tombol panah di area padding yang sudah dibuat */
.swiper-button-prev {
    left: 5px !important;
}

.swiper-button-next {
    right: 5px !important;
}

/* 3. Pastikan tampilan tombol bulat sempurna dan elegan */
.swiper-button-prev, .swiper-button-next {
    background-color: #ffffff !important;
    color: #0B7E48 !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin-top: -22px; /* Penyesuaian agar posisi presisi di tengah secara vertikal */
}

/* 4. Mengecilkan ukuran ikon panah bawaan swiper agar proporsional dengan lingkaran */
.swiper-button-prev:after, .swiper-button-next:after {
    font-size: 16px !important;
    font-weight: 900 !important;
}


.prestasi-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: max-content !important; 
}


.prestasi-content { 
    display: block; 
    flex-grow: 0 !important; 
    padding-bottom: 20px !important;
}

.prestasi-title a {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0; 
}

.prestasi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12); /* Shadow lebih tebal saat di-hover */
    border-color: #d1d5db; /* Border sedikit lebih gelap saat di-hover */
}

/* Gambar Hero di Kartu */
.prestasi-img-container {
    width: 100%;
    height: 200px; /* Tinggi seragam untuk semua gambar */
    position: relative;
    overflow: hidden;
}

.prestasi-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prestasi-card:hover .prestasi-img-container img {
    transform: scale(1.05); /* Efek zoom sedikit saat dihover */
}

/* Badge Juara melayang di atas gambar */
.badge-winner {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--color-primary) !important;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Contoh warna badge berdasarkan tingkat (opsional, sesuaikan di HTML) */
.badge-provinsi { background-color: #9ca3af; } /* Abu-abu */
.badge-kabupaten { background-color: #ea580c; } /* Oranye */
.badge-nasional { background-color: #eab308; } /* Kuning Emas */

/* Konten dalam kartu (Bawah gambar) */
.prestasi-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-bottom: 1px ;
}

/* Meta info (Tanggal & Lokasi) */
.prestasi-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 500;
}

.prestasi-meta i {
    color: #10b981; /* Ikon warna hijau */
    margin-right: 5px;
}

/* Judul */
.prestasi-title a {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 20px;
}

.prestasi-title a:hover {
    color: #0B7E48;
}

/* Profil Siswa di Footer Kartu */
.prestasi-student {
    display: flex;
    align-items: center;
    margin-top: auto; /* Mendorong ke bawah */
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.student-avatar {
    width: 36px;
    height: 36px;
    background-color: #d1fae5; /* Hijau muda */
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
}

.student-info h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 2px 0;
}

.student-info span {
    font-size: 12px;
    color: #6b7280;
}

/* --- Tombol Bawah --- */
.btn-prestasi {
    background-color: var(--color-primary) !important;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Memastikan teks dan ikon selalu rata tengah di dalam tombol */
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-prestasi:hover {
    background-color: transparent !important; 
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary) !important;;
    transform: translateY(-2px);
}

/* --- Kustomisasi Swiper --- */
.swiper-pagination-bullet {
    background: #9c9c9c !important; 
    width: 8px;
    height: 8px;
    opacity: 1;
    transition: all 0.3s ease;
    margin-top: 1px;
    bottom: 0 !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-primary) !important;
    width: 24px;
    border-radius: 5px;
}

/* Arrow Navigasi Swiper (Opsional jika ingin menaruh panah di luar) */
.swiper-button-next, .swiper-button-prev {
    color: #0B7E48 !important;
    background: #ffffff;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: bold;
}

/* --- CSS TAMBAHAN UNTUK SWIPER SLIDER --- */
/* Custom Swiper Pagination untuk Dark Theme */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
    background: #ffd54f; /* Warna kuning dari .color-yellow */
    width: 24px;
    border-radius: 5px;
}
.swiper-slide {
    height: auto; /* Agar tinggi card sama semua */
}


@media (max-width: 767px) {
    .prestasiGlassSwiper {
        padding-left: 20px !important; 
        padding-right: 20px !important;
    }
    
    .btn-prestasi {
        display: flex; 
        width: max-content; 
        margin: 30px auto 0 auto;
    }
}


/* --- Container & Section --- */
.ekstra-section {
    padding-top: 15px !important; 
    padding-bottom: 6px !important;
    padding-left: 15px;
    padding-right: 15px;
    background-color: #fcfcfc; 
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ekstra-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Header & Title --- */
.ekstra-header {
    text-align: center;
    margin-top: 0px !important; 
    margin-bottom: 40px;
}

.ekstra-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827; 
    position: relative;
    display: inline-block;
    margin-top: 0px !important;
    margin-bottom: 15px;
}


.ekstra-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #112b3c; /* Warna biru gelap */
    border-radius: 5px;
}

.ekstra-subtitle {
    color: #6b7280;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Grid System --- */
.ekstra-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Responsif untuk tablet (2 kolom) */
@media (max-width: 992px) {
    .ekstra-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsif untuk HP (1 kolom) */
@media (max-width: 576px) {
    .ekstra-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* --- Card Styles --- */
.ekstra-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.2) !important; 
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ekstra-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    transform: translateY(-5px); 
}

.ekstra-link-wrapper {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- Icons --- */
.ekstra-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.ekstra-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* --- Teks Card --- */
.ekstra-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.ekstra-desc {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1; /* Agar tombol selalu di bawah walau teks pendek */
    
    /* Membatasi teks maksimal 3 baris */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Tautan "Lihat Detail" --- */
.ekstra-action {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary) !important;
    transition: color 0.3s;
}

.ekstra-link-wrapper:hover .ekstra-action {
    color: #3730a3; /* Warna lebih gelap saat hover */
}

.ekstra-action i {
    font-size: 12px;
    margin-left: 5px;
}

/* --- Tombol Bawah --- */
.ekstra-footer {
    text-align: center;
    margin-top: 50px;
}

.btn-lihat-semua {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #4b5563;
    font-weight: 600;
    border-radius: 50px; /* Ujung bulat panjang */
    text-decoration: none;
    transition: all 0.3s;
}

.btn-lihat-semua:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.ekstra-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #9ca3af;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
}

/* --- Slider Container --- */
.ekstra-slider-container {
    width: 100%;
    overflow: hidden; 
    padding: 10px 0 20px 0;
}

/* --- Slider Track --- */
.ekstra-slider-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 20px;
    
    /* Sembunyikan Scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.ekstra-slider-track::-webkit-scrollbar {
    display: none;
}

/* --- Menyesuaikan Lebar Card di Slider --- */
.ekstra-card {
    /* Desktop: Tampil 4 Card */
    flex: 0 0 calc(25% - 19px); 
    scroll-snap-align: start;
    /* (Sisa CSS ekstra-card sama seperti kode sebelumnya) */
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}



.advisor-item {
    padding: 15px 10px !important;
}


.advisor-item .info-box {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 30px 20px 20px 20px !important;
    border-top: 4px solid var(--color-primary, #28a745) !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    
    /* Mencegah terpotong */
    display: block !important;
    height: auto !important;
    overflow: visible !important; 
    text-align: center !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advisor-item .info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}


.advisor-item .avatar-wrapper {
    width: 90px !important;
    height: 90px !important;
    min-height: 90px !important;
    margin: 0 auto 15px auto !important;
    display: block !important; 
}

.advisor-item .info-box img,
.advisor-item .info-box .bg-theme {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.advisor-item .info-box .bg-theme span {
    font-size: 2rem !important;
    font-weight: bold !important;
    line-height: 1 !important;
}


.advisor-item .info-title h4 {
    color: #1a202c !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

/* guru */
.advisor-item .info-title p {
    display: inline-block !important;
    background-color: #eef2fa !important;
    color: var(--color-primary) !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
}

.advisor-item .guru-divider {
    border-top: 1px solid var(--color-secondary) !important;
    margin: 25px 0 40px 0 !important;
}

.advisor-item .guru-social a {
    color: #a0aec0 !important;
    font-size: 1.2rem !important;
    margin: 0 10px !important;
    transition: color 0.2s ease;
}

.advisor-item .guru-social a:hover {
    color: var(--color-primary, #28a745) !important;
}

.custom-btn-more {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    padding: 12px 32px !important;
    border-radius: 50px !important; /* Bentuk pil */
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(31, 41, 55, 0.2) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important; /* Jarak antara teks dan ikon */
}

.custom-btn-more:hover {
    background-color: var(--color-secondary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 22px rgba(31, 41, 55, 0.35) !important;
    color: #ffffff !important;
}

/* Animasi Ikon Panah Bergeser */
.custom-btn-more .icon-arrow {
    transition: transform 0.3s ease;
}

.custom-btn-more:hover .icon-arrow {
    transform: translateX(4px);
}

/* Maps Dan Kontak */

.bg-white {
    background-color: #ffffff !important;
}

.icon-circle {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background-color: #f0f4f9; 
    color: #0b4a8f; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}


.contact-item-modern h6 {
    color: #1a202c !;
    font-size: 1rem;
}

.contact-item-modern p, 
.contact-item-modern a {
    color: #64748b; 
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.2s;
}

.contact-item-modern a:hover {
    color: #0b4a8f;
}


.btn-social-outline {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    color: #64748b; 
    border: 1px solid #cbd5e1; 
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-social-outline:hover {
    background-color: #f0f4f9;
    color: #1a202c;
    border-color: #cbd5e1;
}


.map-modern-wrapper {
    border-radius: 16px;
    overflow: hidden; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 400px; 
}


.map-modern-wrapper iframe,
.map-modern-wrapper div {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px;
    border: none;
}

/* Tablet: Tampil 2 Card */
@media (max-width: 992px) {
    .ekstra-card {
        flex: 0 0 calc(50% - 13px);
    }
}

/* Mobile: Tampil 1 Card */
@media (max-width: 576px) {
    .ekstra-card {
        flex: 0 0 100%;
    }
}

#ekstrakurikuler .ekstra-items .equal-height {
    margin-bottom: 20px;
}

#ekstrakurikuler .ekstra-items .item {
    height: 100%;
}

.our-features .item.cinnabar i {
    color: #e84b3a;
}

.our-features .item.plum i {
    color: #92278f;
}

.advisor-item .info-box span {
    text-transform: none !important;
}

.advisor-item .info-box .info-title p {
    color: var(--color-primary, #2F8FBF);
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    margin: 0;
    line-height: 1;
}

/* Dekstop */

#box-pengumuman .home-sidebar {
    margin-top: 0px !important;
    margin-bottom: 30px;
}

#box-pengumuman .trending-courses-items {
    padding: 20px;
}

.item-pengumuman {
    padding: 0px !important;
}

.item-pengumuman h4 {
    font-size: 14px;
}

.sambutan h4 {
    font-weight: 600;
}

/* --- Pembungkus Utama --- */
.sambutan-section {
    padding: 80px 0;
    background-color: #ffffff;
    overflow: hidden;
}

/* --- Area Foto Kiri --- */
.sambutan-image-wrapper {
    position: relative;
    border-radius: 20px;
    z-index: 2;
    max-width: 420px;
    margin: 0 auto; /* Menengahkan foto di layar mobile */
}

/* Kotak latar belakang hijau pastel di belakang foto */
.sambutan-backdrop {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    background-color: #e6f2ec; 
    border-radius: 20px;
    z-index: -1;
}

.sambutan-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Kartu Nama */
.sambutan-name-card {
    position: absolute;
    bottom: -20px;
    right: -15px;
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #0B7E48; 
}

.sambutan-name-card .name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.sambutan-name-card .title {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

/* --- Area Teks Kanan --- */
.sambutan-badge {
    display: inline-block;
    background-color: #e6f2ec;
    color: #0B7E48;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sambutan-heading {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 25px;
}

/* Kutipan dan Isi Teks */
.sambutan-content {
    position: relative;
}

.sambutan-quote {
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: 60px;
    color: #f3f4f6;
    z-index: -1;
}

.excerpt-text {
    color: #4b5563;
    line-height: 1.8;
    font-size: 16px;
}

/* Menghapus margin berlebih pada paragraf bawaan CMS (TinyMCE/CKEditor) */
.excerpt-text p {
    margin-bottom: 15px;
}
.excerpt-text p:last-child {
    margin-bottom: 0;
}

/* --- Tombol Kustom --- */
.btn-selengkapnya {
    display: inline-flex;
    align-items: center;
    background-color: #0B7E48;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-selengkapnya:hover {
    background-color: var(--color-primary) !important;background-color: #35985A;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 126, 72, 0.2);
}

/* Responsif untuk Mobile */
@media (max-width: 767px) {
    .sambutan-heading {
        font-size: 26px;
    }
    .sambutan-img {
        height: 380px;
    }
    .sambutan-name-card {
        right: 10px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    #box-pengumuman > .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    #box-pengumuman .sambutan-card {
        grid-template-columns: 35% 65%;
    }

    #box-pengumuman .sambutan-content {
        padding: 30px;
    }

    #box-pengumuman .sambutan-image,
    #box-pengumuman .sambutan-image img {
        min-height: 380px;
    }
}

/* HP */
@media (max-width: 767px) {
    #box-pengumuman {
        padding: 25px 0;
    }

    #box-pengumuman > .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    #box-pengumuman .sambutan-card {
        grid-template-columns: 1fr;
    }

    #box-pengumuman .sambutan-image {
        height: 320px;
        min-height: 0;
    }

    #box-pengumuman .sambutan-image img {
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: center 25%;
    }

    #box-pengumuman .sambutan-content {
        padding: 28px 22px;
    }

    #box-pengumuman .sambutan-content h2 {
        font-size: 26px;
    }

    #box-pengumuman .sambutan-description {
        text-align: left;
        font-size: 14px;
    }
}


/* Tablet/Ipad */
@media (min-width: 992px) {
    nav.navbar .navbar-brand {
		width: 139.8px;
	}

    .news-thumb2 {
        max-height: 270px;
        overflow: hidden !important;
    }

    .news-thumb2 img {
        vertical-align: middle;
    }
    
    .advisor-item .info-box {
        max-height: 280px;
        overflow: hidden !important;
    }

}


/* =========================================
   BERITA UTAMA - DESAIN SESUAI REFERENSI
========================================= */

#berita-utama {
    width: 100%;
    padding: 35px 0 45px;
    margin: 0;
    background: #f8fafc !important;
    font-family: inherit;
    color: #142342;
}

#berita-utama,
#berita-utama * {
    box-sizing: border-box;
}

#berita-utama .bu-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 26px;
}

#berita-utama .bu-layout {
    display: flex;
    align-items: flex-start;
    --bs-gutter-x: 32px;
    --bs-gutter-y: 28px;
}

#berita-utama .bu-news-column,
#berita-utama .bu-announcement-column {
    min-width: 0;
}

/* HEADER */

#berita-utama .bu-heading {
    display: flex;
    justify-content: center; /* Ubah ini dari space-between menjadi center */
    align-items: center; /* Ubah ini menjadi center agar rata tengah atas-bawah */
    text-align: center; /* Pastikan teks di dalamnya rata tengah */
    flex-direction: column; /* Menjaga agar h2 dan p tetap atas-bawah jika ada elemen lain */
    gap: 15px;
    min-height: 76px;
    margin-bottom: 25px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dfe5ed;
}

.bu-heading {
    text-align: center;
    width: 100%; /* Memastikan elemen mengambil lebar penuh dari parent-nya */
    margin-bottom: 20px; /* Opsional: untuk memberi jarak ke bawah */
}

#berita-utama .bu-heading h2 {
    margin: 0 0 8px;
    color: #10213f;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.25;
}

#berita-utama .bu-heading p {
    margin: 0;
    color: #687b96;
    font-size: 13px;
    line-height: 1.5;
}

/* Gaya Dasar Tombol */
.bu-all-news {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--color-primary) !important;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px; /* Sudut melengkung */
    transition: all 0.3s ease; /* Efek transisi halus */
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2); /* Bayangan lembut */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 25px;
}

/* Mengatur tanda panah di dalam span */
.bu-all-news span {
    margin-left: 8px;
    font-size: 18px;
    transition: transform 0.3s ease; /* Transisi khusus untuk panah */
}

/* Efek Hover (Saat kursor di atas tombol) */
.bu-all-news:hover {
    background-color: #BDD541; 
    color: #ffffff !important;
    transform: translateY(-2px); /* Efek tombol terangkat sedikit */
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3); /* Bayangan membesar */
}

/* Animasi Panah saat Hover */
.bu-all-news:hover span {
    transform: translateX(4px); /* Panah bergerak ke kanan */
}

/* Efek Active (Saat tombol diklik) */
.bu-all-news:active {
    transform: translateY(0); /* Tombol kembali turun */
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.button-wrapper {
    text-align: center; 
    width: 100%;
    margin-top: 20px; 
    
}

.bu-all-news-soft {
    border: 1px solid var(--color-primary) !important;; 
    color: var(--color-primary) !important;;
    padding: 10px 24px; 
    border-radius: 50px; 
    text-decoration: none; 
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    font-weight: 600;
    transition: all 0.3s ease; 
}

/* Efek saat tombol diarahkan kursor (hover) */
.bu-all-news-soft:hover {
    background-color: var(--color-primary) !important;
    color: #ffffff !important; 
    border-color: var(--color-primary) !important;; 
}

/* KARTU BERITA */

#berita-utama .bu-cards {
    align-items: stretch;
    --bs-gutter-x: 20px;
    --bs-gutter-y: 20px;
}

#berita-utama .bu-card-column {
    display: flex;
    min-width: 0;
}

#berita-utama .bu-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 11px;
    box-shadow: 0 2px 4px rgba(20, 35, 66, 0.025);
    transition: box-shadow .25s ease, transform .25s ease;
}

#berita-utama .bu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(20, 35, 66, 0.07);
}

/* GAMBAR BERITA */

#berita-utama .bu-image {
    position: relative;
    width: 100%;
    height: 154px;
    flex: 0 0 154px;
    overflow: hidden;
    background: #eef2f7;
}

#berita-utama .bu-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

#berita-utama .bu-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

#berita-utama .bu-card:hover .bu-image img {
    transform: scale(1.035);
}

/* LABEL KATEGORI */

#berita-utama .bu-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-block;
    max-width: calc(100% - 24px);
    padding: 5px 11px;
    overflow: hidden;
    color: #ffffff;
    background: #2864f0;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#berita-utama .bu-card-column:nth-child(even) .bu-category {
    background: #f59e0b;
}

/* KONTEN KARTU */

#berita-utama .bu-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 19px 19px;
    min-width: 0;
}

#berita-utama .bu-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 15px;
    width: 100%;
    margin-bottom: 12px;
    color: #71819b;
    font-size: 10.5px;
    line-height: 1.4;
}

#berita-utama .bu-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#berita-utama .bu-meta i {
    color: #71819b;
    font-size: 11px;
}

#berita-utama .bu-content h3 {
    width: 100%;
    margin: 0 0 8px;
    color: #111f39;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#berita-utama .bu-content h3 a {
    color: inherit;
    text-decoration: none;
}

#berita-utama .bu-content h3 a:hover {
    color: #0757ff;
}

#berita-utama .bu-excerpt {
    display: -webkit-box;
    width: 100%;
    margin: 0 0 15px;
    overflow: hidden;
    color: #566a86;
    font-size: 11.5px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

#berita-utama .bu-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    color: var(--color-primary) !important;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}

#berita-utama .bu-read-more:hover,
#berita-utama .bu-all-news:hover {
    color: #0038bb;
}

/* =========================================
   PANEL PENGUMUMAN
========================================= */

#berita-utama .bu-announcement-heading {
    margin-bottom: 25px;
}

#berita-utama .bu-announcement-panel {
    position: relative;
    width: 100%;
    padding: 20px 18px 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-left: 3px solid #ffbd13;
    border-radius: 11px;
    box-shadow: 0 2px 4px rgba(20, 35, 66, 0.025);
}

#berita-utama .bu-announcement-item {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    min-width: 0;
    margin-bottom: 19px;
}

#berita-utama .bu-announcement-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 59px;
    padding: 5px 2px;
    border: 1px solid;
    border-radius: 7px;
}

#berita-utama .bu-announcement-date span {
    font-size: 9px;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
}

#berita-utama .bu-announcement-date strong {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

#berita-utama .date-red {
    color: #ff3648;
    background: #fff4f5;
    border-color: #ffdadd;
}

#berita-utama .date-blue {
    color: #2864f0;
    background: #eff5ff;
    border-color: #d5e4ff;
}

#berita-utama .date-green {
    color: #08a84b;
    background: #effdf4;
    border-color: #d0f7dc;
}

#berita-utama .bu-announcement-content {
    min-width: 0;
}

#berita-utama .bu-announcement-content h3 {
    margin: 1px 0 5px;
    color: #172238;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#berita-utama .bu-announcement-content h3 a {
    color: inherit;
    text-decoration: none;
}

#berita-utama .bu-announcement-content h3 a:hover {
    color: #0757ff;
}

#berita-utama .bu-announcement-content p {
    margin: 0;
    color: #778399;
    font-size: 10px;
    line-height: 1.55;
}

#berita-utama .bu-empty {
    padding: 15px 0;
    margin: 0;
    color: #778399;
    font-size: 12px;
    text-align: center;
}

/* Tambahan Warna Baru untuk Tanggal Pengumuman */
.date-yellow {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.date-purple {
    border-color: #8b5cf6 !important;
    color: #8b5cf6 !important;
}

/* Catatan: Jika style bawaan date-red Anda menggunakan background-color 
   (bukan border), ganti tulisan 'border-color' di atas menjadi 'background-color' */

/* TOMBOL SEMUA PENGUMUMAN */

#berita-utama .bu-all-announcements {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-height: 34px;
    margin-top: 5px;
    padding: 8px;
    color: #18345d;
    background: #f1f3f6;
    border-radius: 7px;
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease;
}

#berita-utama .bu-all-announcements:hover {
    background: #e5edff;
    color: #0757ff;
}

/* =========================================
   TABLET DAN DESKTOP KECIL
========================================= */

@media (max-width: 1199px) {
    #berita-utama .bu-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    #berita-utama .bu-layout {
        --bs-gutter-x: 22px;
    }

    #berita-utama .bu-image {
        height: 145px;
        flex-basis: 145px;
    }

    #berita-utama .bu-content {
        padding: 14px 14px 18px;
    }

    #berita-utama .bu-content h3 {
        font-size: 14px;
    }

    #berita-utama .bu-announcement-panel {
        padding: 16px 12px;
    }

    #berita-utama .bu-announcement-item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 9px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
    #berita-utama {
        padding: 28px 0 35px;
    }

    #berita-utama .bu-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    #berita-utama .bu-layout {
        --bs-gutter-y: 30px;
    }

    #berita-utama .bu-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        min-height: auto;
        margin-bottom: 18px;
    }

    #berita-utama .bu-heading h2 {
        font-size: 24px;
    }

    #berita-utama .bu-heading p {
        font-size: 12px;
    }

    #berita-utama .bu-cards > .bu-card-column {
        width: 100%;
    }

    #berita-utama .bu-image {
        height: 200px;
        flex-basis: 200px;
    }

    #berita-utama .bu-content {
        padding: 16px;
    }

    #berita-utama .bu-content h3 {
        font-size: 16px;
    }

    #berita-utama .bu-announcement-heading {
        margin-bottom: 18px;
    }

    #berita-utama .bu-announcement-panel {
        padding: 18px 16px;
    }
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1199px) {
    #berita .berita-container {
        padding-left: 25px;
        padding-right: 25px;
    }

    #berita .berita-image {
        height: 175px;
    }

    #berita .berita-info {
        padding: 17px 15px 20px;
    }

    #berita .berita-info h3 {
        font-size: 15px;
    }

    #berita .pengumuman-card {
        padding: 20px 16px;
    }

    #berita .pengumuman-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
    }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 991px) {
    #berita .berita-header h2 {
        font-size: 27px;
    }

    #berita .pengumuman-card {
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    #berita.berita-modern {
        padding: 35px 0 45px;
    }

    #berita .berita-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    #berita .berita-header {
        margin-bottom: 22px;
    }

    #berita .berita-header h2 {
        font-size: 25px;
    }

    #berita .berita-column {
        width: 100%;
    }

    #berita .berita-image {
        height: 220px;
    }

    #berita .berita-info {
        padding: 20px;
    }

    #berita .berita-info h3 {
        font-size: 17px;
    }

    #berita .berita-excerpt {
        font-size: 13px;
    }

    #berita .pengumuman-card {
        padding: 22px 18px;
    }
}


@media (max-width: 1023px) {
    nav.navbar.bootsnav ul.nav > li > a {
        font-size: 11px !important;
    }
    
    #berita .blog-items .info p {
        font-size: 12px;
    }
    
    #ekstrakurikuler .ekstra-items .item {
        padding: 25px 15px !important;
        height: 100%;
    }
    
    #ekstrakurikuler .ekstra-items .item a i {
        font-size: 40px;
    }
    
    #ekstrakurikuler .ekstra-items .item a h4 {
        font-size: 10px;
    }
    
    #prestasi .item .bg-cover, #prestasi .item .info{
        max-width: 485px !important;
    }

}

/* Hp */

@media (max-width: 600px) {
    nav.navbar .navbar-brand {
        width: 139.8px;
    }

    .news-thumb2 {
        max-height: 270px;
        overflow: hidden !important;
    }

    .news-thumb2 img {
        vertical-align: middle;
    }
    
    .info img {
        height: auto !important;
    }
    
    .advisor-item .info-box {
        max-height: 280px;
        overflow: hidden !important;
    }
    
    .advisor-item .info-box .info-title {
        padding: 10px !important;
    }
    
    .advisor-item .info-box h4 {
        font-size: 10pt !important;
        line-height: 1.2;
        margin: 0;
    }
    
    .advisor-item .info-box span, .advisor-item .info-box .info-title p {
        font-size: 8pt !important;
        line-height: 1.2;
    }

    #ekstrakurikuler .ekstra-items .item {
        padding: 25px 15px !important;
        height: 100%;
        margin: 0;
        text-align: left;
    }
    
    #ekstrakurikuler .ekstra-items .item a i {
        font-size: 40px;
    }
    
    #ekstrakurikuler .ekstra-items .item .icon {
        display: table-cell !important;
        vertical-align: middle !important;
        
    }

    #ekstrakurikuler .ekstra-items .item .info {
        display: table-cell !important;
        vertical-align: middle !important;
        padding-right: 0px;
        padding-left: 10px;
    }

    #ekstrakurikuler .ekstra-items .item a h4 {
        font-size: 14px;
    }

}

@media (max-width: 500px) {
    #berita .blog-items {
        margin-left: 5px;
        margin-right: 5px;
    }

    #berita .single-item {
        padding-left: 10px;
        padding-right: 10px;
    } 
    #berita .blog-items .thumb .date {
        padding: 5px;
        background-color: rgb(from var(--bs-info) r g b / 0.25);

    }

    #berita .blog-items .thumb .date span {
        font-size: 12px;
    }

    #berita .blog-items .thumb .date h4 {
        font-size: 8px;
    }

    #berita .blog-items h4 {
        font-weight: 500;
        font-size: 11px;
    }

    #berita .blog-items .info {
        min-height: 120px !important;
        max-height: 120px !important;
    }

    #berita .blog-items .info .meta {
        margin-top: 0px;
        padding-top: 0px;
    }

    #berita .blog-items .info span {
        font-size: 12px;
    }

    #guru .advisor-item .info-box {
        max-height: 220px;
        overflow: hidden !important;
    }

    #ekstrakurikuler .ekstra-items .item {
        padding: 18px 10px !important;
        height: 100%;
        margin: 0;
        text-align: left;
    }
    
    #ekstrakurikuler .ekstra-items .item a i {
        font-size: 75px;
    }

    #ekstrakurikuler .ekstra-items .item .icon {
        display: table-cell !important;
        vertical-align: middle !important;
    }

    #ekstrakurikuler .ekstra-items .item .info {
        display: table-cell !important;
        vertical-align: middle !important;
        padding-right: 0px;
        padding-left: 8px;
    }

    #ekstrakurikuler .ekstra-items .item a h4 {
        font-size: 9px;
    }

    #prestasi .item .bg-cover, #prestasi .item .info {
        width: 100% !important;
        max-width: 382px !important;
    }
}

@media (min-width: 600px) {
    .carousel-pendidik .info-title {
        padding: 15px 20px !important;    
    }
    
    .carousel-pendidik .info-title h4, .carousel-pendidik .info-title span {
        font-size: 14px !important;
    }
}



/* =================== */

.banner-area.transparent-nav .content {
    /* padding-top: 0px !important; 
    padding-bottom: 120px; */
}

.shadow.dark.bg-home {
    z-index: 1;
}

.shadow.dark.bg-home::after {
  opacity: 0.1 !important;
}

h1.sma1 {
	font-family: 'Roboto Condensed', sans-serif !important;
}

/* .ekstra-items .item a {
    padding: 50px 25px !important;
} */

.carousel-pendidik {
	margin-bottom: 30px !important;
}

.shadow.dark-hard.bg-piala::after {
  opacity: 0.6 !important;
}

.video-fix {
	position: fixed !important;
	z-index: -999;
    background-size: cover;
    transition: 1s opacity;
    margin: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.maps-form {
    width: 100%;
}

.maps-form .f-item.address li {
    margin-bottom: 15px;
}

.maps-form .f-item.address i {
    border: 1px solid rgba(0, 33, 71, 0.1);
    color: #002147;
    height: 40px;
    text-align: center;
    width: 40px;
    font-size: 20px;
}

.maps-form .f-item.address p {
    font-weight: 500;
    margin: 0;
    padding-left: 10px;
    /*text-transform: uppercase;*/
}

.maps-form .f-item.address i, 
.maps-form .f-item.address p {
    display: table-cell;
    vertical-align: middle;
}

.maps-form .f-item.address li a {
    color: #002147;
    font-family: "Open Sans",sans-serif;
}

.maps-form .f-item p {
    color: #002147;
}

.clients-review-carousel .item .info p {
    margin: 15px 0 0 0 !important;
}

#berita {
    background: #fff;
}

#prestasi {
	background-color: #fff;
}

.blog-area .blog-items .single-item .info {
    background: #fff !important;
    padding: 10px;
    border-radius: 0 0 5px 5px;
}

/*HOME*/
#infoModal .modal-dialog {
    width: 70% !important;
    /*height: 80% !important;
    text-align: left;
    vertical-align: middle;
    margin-top: 70px;*/
}

.modal-home-info .link-modal {
    color: #007bff !important;
}

@media screen and (max-width: 768px) {
    #infoModal .modal-dialog {
        width: 90% !important;
    }
}

.blog-area .blog-items .info {
    min-height: 300px !important;
}

.padding-page {
    padding-top: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 80px !important;
}

.advisor-item:hover .info-title {
    transform: none !important;
}

.advisor-items .advisor-item:hover .info-title,
.advisor-items .advisor-item {
    transform: none !important;
}

footer .f-item.recent-post li span.post-date {
    font-size: 12px;
}

footer .f-item.recent-post .meta-title {
    margin-top: 0px !important;
}

footer.bg-fixed .f-item.recent-post li a {
    color: var(--color-primary, #2F8FBF);
}

/*GALERY MASONRY*/
.grid--images .modal-dialog {
    width: 70% !important;
}

@media screen and ( min-width: 1100px ) {
    .grid-image-item,
    .grid--images .grid-sizer { 
        width: 20%; 
    }
}

@media screen and (max-width: 768px) {
    .grid-image-item,
    .grid--images .grid-sizer { 
        width: 50%; 
    }

    .grid--images .modal-dialog {
        width: 90% !important;
    }
}

.grid-image-item img {
    padding: 5px;
}

@media (min-width: 1024px) {
    nav.navbar.bootsnav .navbar-brand {
        width: 213px;
        padding: 15px;
    }

    .news-thumb {
        height: 270px;
    }

    .news-thumb img{
        overflow: hidden !important;
    }

    .news-thumb2 {
        max-height: 421px;
        overflow: hidden !important;
    }

    .news-thumb2 img {
        vertical-align: middle;
    }

	.news-thumb3 {
        max-height: 550px;
        overflow: hidden !important;
    }

    .news-thumb3 img {
        vertical-align: middle;
    }

    .advisor-item .info-box {
        max-height: 350px;
        overflow: hidden !important;
    }

    #prestasi .item .bg-cover, #prestasi .item .info{
        min-width: 570px !important;
    }

}

@media (min-width: 1370px) {
    #prestasi .item .bg-cover, #prestasi .item .info{
        min-width: 685px !important;
    }
    
    .advisor-item .info-box {
        max-height: 330px;
        overflow: hidden !important;
    }
    
    .blog-area .blog-items .info {
        min-height: 230px !important;
    }
}


@media (max-width: 767px) {
    /* 1. Hapus batasan ruang di Container & Row */
    #berita-utama .bu-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    #berita-utama .bu-layout {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 2. Paksa Kolom untuk mengambil lebar 100% dari layar */
    .bu-announcement-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 3. Paksa Kotak Konten Pengumuman membentang penuh */
    .bu-announcement-wrapper,
    .bu-announcement-panel,
    .bu-announcement-item,
    .bu-empty {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
}

/* 1. Kunci Utama: Mematikan paksaan melar dari Swiper */
.swiper-slide {
    height: auto !important;
    display: flex !important;
    align-items: flex-start !important; /* Ini yang membuat kartu berhenti melar ke bawah */
}

/* 2. Kartu murni mengikuti isi teksnya */
.prestasi-card {
    height: auto !important; /* Ubah ke auto */
    width: 100%;
}

/* 3. Menghilangkan ruang sisa di dalam kartu */
.prestasi-content {
    flex-grow: 0 !important;
    padding-bottom: 20px !important; 
}

/* 4. Mengatur jarak luar (merapatkan titik bullet ke kartu) */
.prestasiGlassSwiper {
    padding-bottom: 35px !important; /* Ubah angka ini jika bullet masih kurang dekat/terlalu dekat */
}

.swiper-pagination {
    bottom: 0px !important; 
}