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

        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            color: #333;
            line-height: 1.6;
            overflow-x: hidden;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        /* --- Header & Navigation (Top Bar) --- */
        .top-bar {
            background-color: #fff;
            border-bottom: 3px solid #004d99;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            width: 100%;
            z-index: 1000;
            margin-bottom: 0 !important;
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 5%;
            background: linear-gradient(to right, #004d99 30%, #ffc107 70%);
            color: white;
        }

        .logo-title {
            display: flex;
            align-items: center;
        }

        .logo {
            width: 40px;
            height: 40px;
            margin-right: 10px;
        }

        .title-text {
            display: flex;
            flex-direction: column;
            font-weight: bold;
            font-size: 14px;
        }

        .site-title {
            font-size: 0.8em;
        }

        .school-name {
            font-size: 1.1em;
        }

        .date-time .date {
            font-size: 0.9em;
        }

        .main-nav {
            background-color: #fff;
            padding: 0 5%;
            border-bottom: 3px solid #f4f4f4;
            margin-bottom: 0 !important;
        }

        .main-nav ul {
            list-style: none;
            display: flex;
        }

        .main-nav li a {
            display: block;
            padding: 10px 15px;
            color: #333;
            font-weight: bold;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
        }

        .main-nav li a.active,
        .main-nav li a:hover {
            color: #004d99;
            border-bottom: 3px solid #004d99;
        }

        .main-image {
            width: 100%;
            height: 100%; 
            object-fit: cover; 
            display: block;
        }
        
        .slider-content-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%; /* Memastikan overlay menutupi seluruh gambar */
            display: flex;
            align-items: center; /* Vertically center the text box */
            padding: 0 5%;
            z-index: 10;
        }
        .slider-text-box {
            background-color: rgba(0, 0, 0, 0.4); /* Background gelap transparan */
            padding: 20px;
            width: 45%; /* Ambil sekitar 45% lebar untuk teks */
            color: white;
            min-height: 200px; /* Minimal tinggi agar terlihat */
        }
        .slider-text-box h2 {
            font-size: 1.8em;
            margin-bottom: 10px;
            color: #ffc107; /* Judul kuning */
        }
        .slider-text-box p {
            font-size: 1em;
            margin-bottom: 20px;
            line-height: 1.4;
        }
        .read-more-btn {
            display: inline-block;
            background-color: #004d99;
            padding: 8px 15px;
            color: white;
            font-weight: bold;
            text-decoration: none;
            transition: background-color 0.3s;
        }
        .read-more-btn:hover {
            background-color: #003366;
        }
        
        .main-content-wrapper {
            display: flex;
            gap: 20px;
            margin-top: 20px;
        }

        .main-content-left {
            flex: 3;
        }

        .sidebar-right {
            flex: 1;
            background-color: #fff;
            padding: 15px;
            border-radius: 5px;
            border: 1px solid #ddd;
            position: sticky;
            top: 15px;
            align-self: flex-start;
        }

        .new-section-title {
            color: #333;
            margin-top: 30px;
            border-bottom: none;
        }
        .new-section-title::after {
            content: '';
            display: block;
            width: 100%;
            height: 2px;
            background-color: #ccc;
            margin-top: 5px;
        }

        /* --- News List Styles --- */
        .news-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .featured-announcement {
            background-color: #004d99;
            color: white;
        }

       
        .news-content {
            flex: 1;
        }

        .news-content span {
            display: block;
            font-size: 0.8em;
            margin-bottom: 5px;
        }

        .news-content .news-category {
            font-weight: bold;
            color: #ffc107;
        }

        .featured-announcement .news-content .news-category {
            color: #ffc107;
        }

        .news-content h3 {
            font-size: 1.1em;
            margin-bottom: 5px;
            line-height: 1.3;
        }

        .read-more-link {
            font-size: 0.9em;
            font-weight: bold;
            color: #ffc107;
        }

        .featured-announcement .read-more-link {
            color: #ffc107;
        }


        .kepsek-photo {
            width: 100%;
            height: auto;
            border: 1px solid #ddd;
            margin-bottom: 10px;
        }

        .kepsek-name {
            display: block;
            font-size: 0.9em;
            color: #555;
        }

        .sidebar-button {
            display: block;
            text-align: center;
            padding: 10px;
            color: white;
            font-weight: bold;
            margin-bottom: 10px;
            border-radius: 3px;
            transition: opacity 0.3s;
        }

        .sidebar-button.blue {
            background-color: #004d99;
        }

        .sidebar-button.orange {
            background-color: #ffc107;
            color: #333;
        }

        .sidebar-button:hover {
            opacity: 0.9;
        }

        .infografis-note, .jajak-pendapat-note, .contact-info {
            font-size: 0.9em;
            text-align: center;
            margin-bottom: 20px;
            padding: 10px;
            border: 1px solid #ddd;
            background-color: #f7f7f7;
        }

        .contact-info {
            border: none;
            background-color: transparent;
            text-align: left;
        }

        /* --- Gallery --- */
        .gallery-section { margin-top: 40px; }
        .gallery-grid { 
            display: flex; 
            flex-wrap: wrap;
            overflow-x: auto; 
            gap: 20px; 
            justify-content: center;
            padding: 20px 0;
            padding-bottom: 15px; 
            scroll-behavior: smooth;
         }
        .gallery-item { 
            flex: 0 0 280px;
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            text-align: center;
            margin: 0 auto;
        }
        .gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; }
        .gallery-item img:hover { transform: scale(1.05); }

        .gallery-section-ticker {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background-color: #f8f9fa; /* Latar belakang abu-abu tipis agar kontras */
}

/* Wadah Utama Slider */
.gallery-ticker-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    padding: 10px 0;
}

/* Track Jalur Gerak Animasi */
.gallery-ticker-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: gallery-scroll 35s linear infinite; /* Jalur waktu gerak otomatis (35 detik) */
}

/* Mematikan pergerakan / Pause Slide saat kursor diarahkan ke foto */
.gallery-ticker-container:hover .gallery-ticker-track {
    animation-play-state: paused;
}

/* Komponen Setiap Kotak Foto */
.gallery-ticker-item {
    flex: 0 0 280px; /* Lebar konstan setiap box foto */
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #eaeaea;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Frame Gambar */
.gallery-ticker-item img {
    width: 100%;
    height: 180px; /* Mengunci tinggi agar simetris sempurna */
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-ticker-item:hover img {
    transform: scale(1.06);
}

/* Teks Caption di Bawah Gambar */
.ticker-caption {
    padding: 12px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Otomatis memotong teks panjang dengan tanda ... */
}

/* Keyframe Perhitungan Translasi Horizontal */
@keyframes gallery-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Translasi bergeser setengah total panjang track (karena diduplikasi) */
        transform: translateX(-50%); 
    }
}

/* Optimalisasi Tampilan Layar Smartphone */
@media (max-width: 576px) {
    .gallery-ticker-item {
        flex: 0 0 220px;
    }
    .gallery-ticker-item img {
        height: 140px;
    }
}

        /* --- Link Terkait Section --- */
        .link-terkait-section {
            margin-top: 30px;
            margin-bottom: 20px;
        }

        .link-title {
            border-bottom: 3px solid #ffc107;
            padding-bottom: 5px;
        }

        .link-title .terkait-text {
            color: #ffc107;
        }

        .link-terkait-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            gap: 10px;
            margin-top: 15px;
        }

        .link-item {
            text-align: center;
            padding: 10px;
        }

        .link-item img {
            width: 40px;
            height: 40px;
            display: block;
            margin: 0 auto 5px;
        }

        .link-item span {
            font-size: 0.8em;
            color: #555;
        }

        /* --- Footer --- */
        .site-footer {
            background-color: #ffc107;
            color: #333;
            padding: 20px 5%;
            text-align: center;
        }

        .footer-content p {
            margin-bottom: 5px;
            font-size: 0.9em;
        }

        .social-icons a {
            color: #004d99;
            font-size: 1.5em;
            margin: 0 5px;
            transition: color 0.3s;
        }

        .social-icons a:hover {
            color: #333;
        }

        .footer-links {
            margin-top: 10px;
            font-size: 0.8em;
        }

        .footer-links a {
            font-weight: bold;
        }
        
        .instansi-info-section {
            background-color: #fff;
            padding: 10px 5%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
        }

        .instansi-info-grid {
            display: flex;
            justify-content: space-around;
            align-items: center;
            flex-wrap: wrap;
            list-style: none;
        }

        .info-card {
            background-color: #f7f7f7;
            border: 1px solid #ddd;
            padding: 8px 12px;
            display: flex;
            align-items: center;
            font-weight: bold;
            color: #004d99;
            transition: background-color 0.3s;
            cursor: pointer;
            border-radius: 3px;
            margin: 5px;
            flex-grow: 1;
            max-width: 150px;
            font-size: 0.9em;
        }

        .info-card:hover {
            background-color: #e9e9e9;
        }

        .info-card .icon {
            font-size: 1.2em;
            margin-right: 8px;
        }

        .info-card.target-icon {
            background-color: #ffc107;
            color: #333;
        }
        .info-card span {
            white-space: nowrap;
        }
        
        @media (max-width: 768px) {
            .main-content-wrapper {
                flex-direction: column; 
            }
            .main-content-left, .sidebar-right {
                flex: none; /* Remove flex sizing */
                width: 100%; /* Take full width */
            }
            .slider-text-box {
                width: 100%; /* Ambil lebar penuh */
                background-color: rgba(0, 0, 0, 0.6); /* Lebih gelap di mobile */
                min-height: auto;
                padding: 15px;
            }
            .instansi-info-grid {
                justify-content: center;
            }
            .info-card {
                flex-basis: 30%;
                max-width: 200px;
            }
            .news-item { /* Pastikan gambar dan teks berita berjejer di tablet */
                flex-direction: row; 
            }
        }
        @media (max-width: 600px) {
            .header-container {
                flex-direction: column;
                text-align: center;
            }

            .logo-title {
                margin-bottom: 10px;
            }

            .main-nav ul {
                justify-content: space-around;
            }

            .instansi-info-grid {
                flex-direction: column;
                align-items: stretch;
            }
            .info-card {
                max-width: 100%;
            }

            .gallery-grid {
                grid-template-columns: 1fr;
            }

            .link-terkait-grid {
                justify-content: space-around;
            }

            /* Layout Utama */


.pegawai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Card Styling */
.pegawai-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    padding-bottom: 20px;
}

.pegawai-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #ffc107;
}

/* Foto Pegawai */
.pegawai-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f8f9fa;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pegawai-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Foto akan menyesuaikan kotak tanpa gepeng */
    transition: transform 0.5s ease;
}

.pegawai-card:hover .pegawai-img {
    transform: scale(1.1);
}

/* Informasi Teks */
.pegawai-info {
    padding: 0 20px;
}

.pegawai-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    min-height: 50px; /* Menjaga tinggi agar tetap sejajar */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pegawai-jabatan {
    display: inline-block;
    background: #e7f1ff;
    color: #004085;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-divider {
    width: 50px;
    margin: 15px auto;
    border-top: 2px solid #ffc107;
    opacity: 1;
}

.pegawai-nip p {
    color: #555;
    font-size: 0.95rem;
}

/* Judul & Separator */
.title-separator {
    width: 60px;
    height: 4px;
    background: #ffc107;
    border-radius: 2px;
}
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1) !important;
}

.struktur-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 20px;
}

/* Garis Vertikal Tengah */
.struktur-container::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.struktur-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 60px;
}

/* Titik Penghubung */
.struktur-item::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #ffc107;
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 0 0 2px #ffc107;
}

.struktur-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #004085;
    transition: all 0.3s ease;
}

.struktur-card:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.icon-box {
    background: #f0f4f8;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #004085;
    font-size: 1.2rem;
}

.info-box {
    flex-grow: 1;
}

.info-box .nama {
    margin: 0;
    font-weight: 700;
    color: #333;
}

.info-box .jabatan {
    margin: 0;
    color: #004085;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.rank-badge {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #adb5bd;
    font-weight: bold;
}

.title-line {
    width: 60px;
    height: 4px;
    background: #ffc107;
    border-radius: 2px;
}

.hero-section {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.7);
} 
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-hero.primary {
    background-color: #004d99;
    color: #ffffff;
    border: 2px solid #004d99;
}
.btn-hero.primary:hover {
    background-color: #003366;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.btn-hero.secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-hero.secondary:hover {
    background-color: #ffffff;
    color: #004d99;
    transform: translateY(-4px);
}
/* Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

.news-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: #000;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50px;
    z-index: 10;
}
.read-more-btn {
    background: #004085;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.read-more-btn:hover {
    background: #002752;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #004085;
    text-transform: uppercase;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #eee;
    position: relative;
}
.section-title span {
    color: #ffc107;
}

.section-title.light {
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.section-title.with-border::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ffc107; /* Warna kuning sekolah */
    margin: 10px auto 0;
    border-radius: 2px;
}

.container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}   

.visi-misi-section {
    padding: 50px 0;
    background-color: #f4f7f6;
}
.visi-misi-card {
    max-width: 900px;
    margin: 0 auto; /* MEMBUAT KONTEN RATA TENGAH */
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.card-header-blue {
    background: #5d5fef; /* Warna biru ungu sesuai gambar */
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 2px;
}
.card-body-content {
    padding: 40px;
    text-align: center; /* SEMUA TEKS RATA TENGAH */
}
.visi-content h3, .misi-content h3 {
    color: #5d5fef;
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 1.8rem;
}
.visi-content p {
    font-size: 1.2rem;
    color: #444;
    font-weight: 600;
    line-height: 1.6;
}
.divider {
    width: 100px;
    margin: 30px auto;
    border: 2px solid #ffc107;
}
.misi-content ul {
    list-style: none; 
    padding: 0;
    text-align: center;
}
.misi-content ul li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #555;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
}


.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #ffc107;
    margin: 15px auto 0; 
}


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

@media (max-width: 576px) {
    .pegawai-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

        }
    }
  