/* assets/css/style.css */
:root {
    --primary-color: #78C2AD;
    /* Hijau Mint Pastel */
    --secondary-color: #F39C6B;
    /* Peach Pastel */
    --light-color: #F8F9FA;
    --dark-color: #343A40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg,
            #fffdf2,
            #fff7dc,
            #fff2cc);

}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #5db89f;
    border-color: #5db89f;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Carousel */
/* ===============================
   FIX CAROUSEL RESPONSIVE
================================ */

/* ===============================
   CAROUSEL UNIVERSAL (STABIL)
================================ */


#mainCarousel img {
    object-fit: cover;
}

/* Caption */
#mainCarousel .carousel-caption {
    background: rgba(0,0,0,.45);
    border-radius: 12px;
    padding: 10px 16px;
}

/* Mobile */
@media (max-width: 576px) {
    #mainCarousel .carousel-caption h5 {
        font-size: 14px;
    }
    #mainCarousel .carousel-caption p {
        font-size: 12px;
    }
}





/* Dashboard Cards */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid #28a745 !important;
}

.border-left-info {
    border-left: 0.25rem solid #17a2b8 !important;
}
/* Seragamkan gambar berita */
.img-berita {
    width: 100%;
    height: 220px;          /* tinggi seragam (boleh diubah) */
    object-fit: cover;      /* POTONG gambar agar pas kotak */
    object-position: center;
}
.card {
    overflow: hidden;
}


.card:hover .img-berita {
    transform: scale(1.05);
    transition: 0.3s ease;
}
/* ===== FIX GAMBAR BERITA (PASTI SERAGAM) ===== */
.card-img-top.img-berita {
    height: 220px !important;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* ===== Galeri Kegiatan ===== */
.img-kegiatan {
    height: 220px;          /* tinggi seragam */
    object-fit: cover;      /* potong rapi tanpa distorsi */
}

.activity-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
/* ===== Detail Kegiatan ===== */
.img-detail-kegiatan {
    max-width: 600px;
    width: 100%;
    height: auto;
}

/* Footer */
/* ========================= */
/* --- STYLING FOOTER --- */
/* ========================= */
.main-footer {
    background-color: #111827;
    /* Warna abu-abu gelap */
    color: #9ca3af;
    /* Warna teks abu-abu */
    padding: 80px 0 0;
    font-family: 'Nunito', sans-serif;
}

.footer-column {
    margin-bottom: 50px;
}

.footer-about .footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Judul Kolom */
.main-footer h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

/* Garis Bawah pada Judul */
.main-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
    /* Warna aksen */
}

/* Link Cepat */
.main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer ul li {
    margin-bottom: 15px;
}

.main-footer ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.main-footer ul li a i {
    margin-right: 10px;
    font-size: 12px;
    color: #3498db;
    /* Warna aksen untuk ikon */
    transition: transform 0.3s ease;
}

.main-footer ul li a:hover {
    color: #fff;
    padding-left: 5px;
    /* Efek geser ke kanan saat hover */
}

.main-footer ul li a:hover i {
    transform: translateX(3px);
    /* Ikon juga bergeser sedikit */
}

/* Kontak */
.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-list li i {
    color: #3498db;
    /* Warna aksen untuk ikon */
    margin-right: 15px;
    font-size: 18px;
    margin-top: 2px;
    /* Untuk menyejajarkan dengan teks */
}

/* Sosial Media */
.footer-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 16px;
    transition: all 0.4s ease;
}

.footer-social a:hover {
    background-color: #3498db;
    /* Warna aksen saat hover */
    color: #fff;
    transform: translateY(-5px);
    /* Efek melayang */
}

/* Copyright Bar */
.footer-bottom {
    background-color: #0f172a;
    /* Warna lebih gelap dari footer utama */
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}


/* admin */

/* Tambahkan ini di akhir file assets/css/style.css */

/* Wrapper untuk seluruh halaman admin */
.admin-wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #343A40;
    /* Warna gelap untuk sidebar */
    color: #fff;
    transition: all 0.3s;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #212529;
    text-align: center;
}

#sidebar .sidebar-header h3 {
    color: #fff;
    font-size: 1.5rem;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 15px 20px;
    font-size: 1.1em;
    display: block;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.2s;
}

#sidebar ul li a:hover {
    color: #fff;
    background: #495057;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: #007bff;
    /* Warna biru untuk item aktif */
}

#sidebar ul li a i {
    margin-right: 10px;
}

#sidebar ul ul a {
    font-size: 0.9em !important;
    padding-left: 40px !important;
    background: #495057;
}

/* Area Konten Utama */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Topbar */
.topbar {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Link aktif di sidebar */
.sidebar-link-active {
    color: #fff !important;
    background: #007bff !important;
}




.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

#sidebar {
    width: 250px;
    background: #343a40;
    color: #adb5bd;
}

#sidebar a {
    color: #adb5bd;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
}

#sidebar a:hover,
.sidebar-link-active a {
    background: #007bff;
    color: #fff;
}

#content {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
}



/* --- CSS untuk Halaman SPMB --- */
.spmb-container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.spmb-container h1 {
    text-align: center;
    color: var(--primary-color, #0d6efd);
    /* Gunakan variabel warna utama */
    border-bottom: 2px solid var(--primary-color, #0d6efd);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.spmb-container legend {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color, #0d6efd);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.spmb-container fieldset {
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 5px;
}

.spmb-container .form-group {
    margin-bottom: 15px;
}

.spmb-container .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.spmb-container .form-group input,
.spmb-container .form-group select,
.spmb-container .form-group textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.spmb-container .form-group input:focus,
.spmb-container .form-group select:focus,
.spmb-container .form-group textarea:focus {
    border-color: var(--primary-color, #0d6efd);
    outline: none;
}

.spmb-container .radio-group label,
.spmb-container .checkbox-group label {
    font-weight: normal;
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}

.spmb-container .sub-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color, #0d6efd);
    border-radius: 0 5px 5px 0;
}

.spmb-container .sub-section h3 {
    margin-top: 0;
    color: #555;
}

.spmb-container .submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color, #0d6efd);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.spmb-container .submit-btn:hover {
    background-color: #0b5ed7;
}

/* profil */
/* --- CSS untuk Halaman Profil --- */
.hero-section {
    color: #fff;
}

.profil-sekolah body,
.profil body {
    background: linear-gradient(180deg,
            #fffdf2,
            #fff7dc,
            #fff2cc);
}

.struktur-section {
    margin-bottom: 120px;
}

/* WRAPPER UTAMA */
.struktur-vertical {
    width: 100%;
    max-width: 1100px;
    /* diperlebar */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 90px;
    position: relative;
    z-index: 2;
}


/* GROUP */
.group {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 60px;
}


.group.two {
    justify-content: center;
    gap: 100px;
}


.group.wrap {
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}


.group.center {
    justify-content: center;
}


/* CARD */
.struktur-card {
    width: 260px;
    background: #fff;
    border-radius: 22px;
    padding: 80px 20px 30px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .1);
    position: relative;
}



/* WRAPPER FOTO */
.foto-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: #f1f1f1;
    border: 6px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FOTO */
.foto-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* MOBILE */
@media (max-width: 768px) {

    .struktur-card {
        width: 200px;
        /* dari 260px */
        padding: 70px 15px 25px;
        border-radius: 18px;
    }

    .group {
        gap: 30px;
        /* jarak dipersempit */
    }

    .group.two {
        gap: 40px;
        /* tetap kiri–kanan */
    }
}


/* SECTION */
.visi-misi-section {
    background: #fff8ec;
    padding: 60px;
    border-radius: 24px;
}

/* CONTAINER UTAMA */
.struktur-container {
    background: #fff8ec;
    padding: 60px 40px;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* SECTION */
.struktur-section h2 {
    color: #0f3d2e;
}

.struktur-section .lead {
    color: #4a6f5a;
}

/* BUTTON GURU */
.btn-guru {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
}

.btn-guru:hover {
    background: linear-gradient(135deg, #27ae60, #219150);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(39, 174, 96, 0.5);
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .struktur-container {
        padding: 35px 20px;
    }

    .btn-guru {
        width: 100%;
    }
}

/* JUDUL */
.judul-profil {
    font-size: 42px;
    font-weight: 800;
    color: #0f3d2e;
    margin-bottom: 30px;
}

/* BOX VISI MISI */
.box-visi {
    background: #fff;
    padding: 25px 28px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.box-visi p {
    margin-top: 15px;
    color: #2f3e46;
    line-height: 1.8;
    font-size: 16px;
}

/* TITLE BAR */
.box-title {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2ecc71;
    color: #fff;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
}

.box-title i {
    font-size: 22px;
}

/* IMAGE */
.visi-misi-image img {
    width: 100%;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .judul-profil {
        font-size: 32px;
        text-align: center;
    }

    .visi-misi-section {
        padding: 30px;
    }
}




