.logo-disdik-header {
    height: 40px;
    margin-left: -10px;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .logo-disdik-header {
        height: 32px;
        margin-right: 10px;
    }
}

.carousel {
    position: relative;
    z-index: 1;
}

.carousel-img {
    width: 100%;
    height: 650px;
    object-fit: cover;
}

.position-relative::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.6));
    z-index: 1;
}

@media (max-width: 768px) {
    .carousel-img {
        height: 300px;
    }
}

.carousel-item {
    position: relative;
}

.carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.5));
}

.carousel-caption {
    bottom: 20%;
    text-align: left;
}

.carousel-caption h3 {
    max-width: 600px;
}

.carousel-overlay-box {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;

    width: 85%;
    max-width: 650px;

    animation: fadeUp 0.8s ease;
}


@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.carousel-search {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.carousel-search input {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;

    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
}

.carousel-search input::placeholder {
    color: #555;
}

.carousel-search input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.carousel-search .btn {
    border-radius: 10px;
    padding: 10px 14px;
    background: #fff;
    border: none;
}

.carousel-search .btn i {
    font-size: 16px;
}

.carousel-custom-button {
    display: flex;
    gap: 10px;
}

.carousel-custom-button .btn {
    flex: 1;

    border-radius: 10px;
    padding: 10px;

    font-weight: 500;

    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;

    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    transition: 0.3s;
}

.carousel-custom-button .btn i {
    font-size: 14px;
    transition: 0.3s;
}

.carousel-custom-button .btn:hover i {
    transform: translate(2px, -2px);
}

.carousel-custom-button .btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {

    .carousel-img {
        height: 350px;
    }

    .carousel-overlay-box {
        width: 90%;
        bottom: 25px;
    }

    .carousel-search {
        flex-direction: column;
    }

    .carousel-search .btn {
        width: 100%;
    }

    .carousel-custom-button {
        flex-direction: column;
    }

}

@media (max-width: 576px) {

    .carousel-overlay-box {
        bottom: 15px;
    }

    .carousel-search input {
        font-size: 14px;
    }

    .carousel-custom-button .btn {
        font-size: 14px;
        padding: 8px;
    }

}

/* end carausal */

/* card tusi */
.tusi .box {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 18px 12px;
}

.tusi .box a {
    text-decoration: none;
}

.tusi .box h6 {
    color: #333;
    /* default gelap */
    font-weight: 500;
    transition: 0.3s;
}

/* hover */
.tusi .box:hover h6 {
    color: #5FAFC2;
    /* biru saat hover */
}

/* aktif */
.tusi .box a.active h6 {
    color: #0d6efd;
    font-weight: 600;
}

.tusi .box a.active {
    background: #e7f1ff;
    border-radius: 8px;
}

.tusi .box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


/* end */

.mega-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateX(0);
    /* penting */
    width: max-content;
    /* biar fleksibel */
    min-width: 600px;
    /* optional */
    margin-top: 15px;
    padding: 40px 0;
    background: linear-gradient(to right, #0f3d2e, #145a3f);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    display: none;
    z-index: 999;
}

/* isi tetap di tengah */
.mega-menu .container {
    /* max-width: 1200px; */
    max-width: 1100px;
    margin: 0 auto;
    /* center isi */
    padding-left: 40px;
    padding-right: 40px;
}

.mega-dropdown:hover .mega-menu {
    display: block;
}

.mega-menu a.menu-card {
    padding: 8px 0 !important;
    justify-content: flex-start;
    /* penting biar nggak space-between */
}

/* hilang garis saat hover */
.mega-menu .menu-card::after {
    display: none !important;
}

.mega-menu .menu-card:hover::after {
    width: 0 !important;
}

.mega-menu .menu-card {
    text-decoration: none;
    border-bottom: none !important;
}
/* end hilangkan garis */

/* .menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: start;
} */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.menu-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    transition: 0.3s;
    padding: 8px 0;
    /* hilangkan padding kiri-kanan */
    border-left: none;
    /* ada bayangan di cardnya */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(2px);
    /* agar sudut tidak kaku */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-left: 3px solid #ffc107;
}

.menu-card p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* ubah ke 3 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.7);
    margin: 2px 0 0;
    font-size: 12px;
    text-align: left;
}


.menu-card * {
    text-align: left !important;
}

.menu-card .content {
    display: flex;
    flex-direction: column;
}

.menu-card h6,
.menu-card p {
    margin: 0;
}

.menu-card h6 {
    margin: 0;
    line-height: 1.2;
    text-align: left;
    vertical-align: top;
    color: #ffffff;
}


/* mobile default */
.mega-menu {
    display: none;
}

/* desktop */
@media (min-width: 992px) {
    .mega-dropdown>ul {
        display: none;
        /* sembunyikan dropdown biasa */
    }

    .mega-dropdown:hover .mega-menu {
        display: block;
    }

}

/* mobile */
@media (max-width: 991px) {

    .mega-menu {
        display: none !important;
    }

    .carousel-overlay-box {
        display: none !important;
    }
}

@media (max-width: 1400px) {
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mega-menu .container {
        max-width: 900px;
        /* atau 800px */
    }
}

.gradient-text {
    background: #212529;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* custome table */
/* untuk judul berita terkini */
/* .section-berita {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-berita h3 {
    font-weight: 700;
    margin: 0;
}

.section-berita::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #dee2e6; */
    /* abu halus */
/* } */

/* end */
/* Wrapper */
.table-custom {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    background: #fff;
}

/* Header */
.table-custom thead th {
    background-color: #5FAFC2;
    color: #fff;
    text-align: center;
    padding: 12px;
    border: 1px solid #ddd;
}

/* Body */
.table-custom tbody td {
    padding: 10px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

/* Zebra strip */
.table-custom tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover */
.table-custom tbody tr:hover {
    background-color: #f1f7fa;
}

/* Kolom nomor center */
.table-custom td:first-child {
    text-align: center;
    width: 60px;
}

/* Tombol download */
.btn-download {
    background: #5FAFC2;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.btn-download:hover {
    background: #4a9bab;
    color: #fff;
}

.dataTables_filter {
    margin-bottom: 10px;
    text-align: right;
}

.dataTables_filter input {
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 5px 10px;
}

.table-custom,
.table-custom th,
.table-custom td {
    border-color: #e0e0e0 !important;
}

/* Wrapper pagination */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
    text-align: center;
}

/* Pagination clean */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: transparent !important;
    border: none !important;
    margin: 0 4px;
    padding: 6px 10px;
    line-height: 1.5;
    color: #5FAFC2 !important;
    font-weight: 500;

    display: inline-block !important;
    min-width: 32px;
    text-align: center;
}

/* Hover */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eaf6f9 !important;
    border-radius: 6px;
}

/* Active */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #5FAFC2 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 6px 10px !important;
}

/* Disabled */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #ccc !important;
}

/* ckeditor tugas fungsi menampilkan */
.ck-content p {
    margin-bottom: 8px;
    text-align: justify;
}

.ck-content ul {
    margin-bottom: 8px;
    padding-left: 20px;
}

.ck-content li {
    margin-bottom: 4px;
    text-align: justify;
}

.why-us.custom-accordion .accordion-list {
    padding: 0 10px 5px 10px !important;
}

.why-us.custom-accordion .accordion-list li+li {
    margin-top: 0 !important;
}

.why-us.custom-accordion .accordion-list li {
    padding: 0 !important;
    background: none !important;
}

/* untuk struktur */
.org-card {
    padding: 15px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eee;
    transition: 0.3s;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.org-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* LEVEL STYLE */
.level-1 {
    background: #0d6efd;
    color: #fff;
}

.level-2 {
    background: #198754;
    color: #fff;
}

.level-3 {
    background: #d1e7dd;
}

.level-4 {
    background: #f8f9fa;
}

/* 🔥 ini kunci hirarki */
.sub-level {
    margin-top: 20px;
}

/* teks struktur tampilkan isi dari ckedtior */
.ckeditor-content p {
    margin: 0 !important;
    line-height: 1.2 !important;
}

.ckeditor-content {
    line-height: 1.3 !important;
    font-size: 12px;
}

/* event */
.fc-daygrid-day {
    /* cursor: pointer; */
    cursor: default !important;
}

.fc-daygrid-day:hover {
    background-color: #f1f5ff;
    transition: 0.2s;
}

.active-date {
    /* background-color: #0d6efd !important; */
    color: white !important;
    border-radius: 8px;
}


#event-list.active {
    background: #f8f9ff;
    padding: 10px;
    border-radius: 8px;
}

#event-list {
    transition: all 0.3s ease;
    max-height: 500px;
    /* tinggi area */
    overflow-y: auto;
    /* scroll ke bawah */
    padding-right: 10px;
    /* biar gak ketutup scrollbar */
}

/* angka tanggal */
.fc-daygrid-day-number {
    font-size: 14px;
    color: #555;
    /* cursor: pointer; */
    cursor: pointer !important;
}

/* nama hari */
.fc-col-header-cell-cushion {
    color: #333;
    font-weight: 500;
}

/* judul bulan */
.fc-toolbar-title {
    color: #222;
    font-weight: 600;
}

/* tinggi kotak tanggal */
.fc .fc-daygrid-day-frame {
    min-height: 40px !important;
    /* default biasanya tinggi */
    height: 40px !important;
}

.fc .fc-scroller {
    overflow: hidden !important;
}

.fc .fc-daygrid-day-frame {
    background: #ffffff;
    border-radius: 10px;
    margin: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

/* efek hover */
.fc .fc-daygrid-day-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* hari ini */
.fc .fc-day-today .fc-daygrid-day-frame {
    border: 2px solid #4a9fb2;
}

/* optional: padding dalam kotak biar lebih rapat */
.fc .fc-daygrid-day-top {
    padding: 2px 4px;
}

/* untuk scroll event-list */
#event-list-utama {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 6px;
    scroll-behavior: smooth;
}

#event-list-utama::-webkit-scrollbar {
    width: 6px;
}

#event-list-utama::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.event-ordered {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.event-ordered li {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* text bulan */
#calendar-utama .fc-toolbar-title {
    font-size: 14px;
    font-weight: 600;
}

#calendar-utama .fc-button {
    font-size: 12px;
    padding: 4px 8px;
}

/* end event */

.accordion-judul ul li a span {
    color: #495057 !important;
    transition: all 0.2s ease;
}

/* Hover */
.accordion-judul ul li a:hover span {
    color: #0D6EFD !important;
}

/* Active / terbuka */
.accordion-judul ul li a:not(.collapsed) span {
    color: #0B5ED7 !important;
    font-weight: 600;
}

.ck-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.ck-content ol {
    list-style-type: decimal;
    padding-left: 20px;
}

/* sosial media float left */
.social-sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 9999;
    animation: slideInLeft 0.5s ease;
}

/* Link dasar */
.social-sidebar a {
    display: flex;
    align-items: center;
    width: 45px;
    height: 40px;
    margin: 5px 0;
    color: #fff;
    text-decoration: none;
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Icon */
.social-sidebar a i {
    width: 45px;
    text-align: center;
    font-size: 18px;
}


/* Text (hidden dulu) */
.social-sidebar a span {
    white-space: nowrap;
    opacity: 0;
    margin-left: 5px;
    transition: 0.3s;
    font-size: 14px;
}

/* Hover → expand */
.social-sidebar a:hover {
    width: 150px;
    /* sebelumnya 170 */
    filter: brightness(1.1);
}

/* Tampilkan teks */
.social-sidebar a:hover span {
    opacity: 1;
}

/* Warna brand */
.social-sidebar .wa {
    background: #25D366;
}

.social-sidebar .ig {
    background: #E1306C;
}

.social-sidebar .fb {
    background: #1877F2;
}

.social-sidebar .tw {
    background: #000000;
}

.social-sidebar .yt {
    background: #FF0000;
}


/* Animasi masuk */
@keyframes slideInLeft {
    from {
        left: -60px;
        opacity: 0;
    }

    to {
        left: 0;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .social-sidebar {
        display: none;
    }
}

/* pagination custom */
.pagination {
    gap: 6px;
}

.pagination .page-link {
    border-radius: 8px;
    border: none;
    color: #333;
    padding: 6px 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pagination .page-link:hover {
    background: #5FAFC2;
    color: #fff;
    transform: translateY(-2px);
}

.pagination .active .page-link {
    background: #5FAFC2;
    color: #fff;
    font-weight: 600;
}

.pagination .disabled .page-link {
    opacity: 0.4;
}

/* tampilan video, galery, artikel */
.pic {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
}

.pic img,
.pic iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.member {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1200px) {
    .berita-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .berita-grid {
        grid-template-columns: 1fr;
    }
}

/* untuk judul di index */
.section-heading {
    /* margin-top: 10px; */
    margin-bottom: 25px;
}

.section-heading h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

/* garis aksen */
.section-heading h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #198754;
    /* warna hijau utama */
    margin-top: 8px;
    border-radius: 2px;
}

/* deskripsi */
.section-heading p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.section-heading.center {
    text-align: center;
}

.section-heading.center h2::after {
    margin-left: auto;
    margin-right: auto;
}

.section-heading.light h2 {
    color: #fff;
}

.section-heading.light p {
    color: rgba(255, 255, 255, 0.7);
}

/* carousal galery di home */
.gallerySwiper {
    padding: 20px 10px 50px;
}

.gallerySwiper .member {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallerySwiper .pic img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallerySwiper .member-info {
    padding: 15px;
}

/* home hero identity */
.carousel-overlay-box {
    max-width: 760px;
}

.carousel-identity {
    color: #fff;
    margin-bottom: 18px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.carousel-identity span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.9);
    font-size: 13px;
    font-weight: 600;
}

.carousel-identity h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.carousel-identity p {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.6;
}

/* quick access */
.quick-access {
    position: relative;
    z-index: 2;
    margin-top: -34px;
    padding: 0 0 20px;
}

.quick-access-panel {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 12px 35px rgba(15, 61, 46, 0.14);
}

.quick-access-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.quick-access-title span {
    color: #198754;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.quick-access-title h2 {
    margin: 0;
    color: #243b35;
    font-size: 24px;
    font-weight: 700;
}

.quick-access-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    padding: 16px;
    border: 1px solid #e6eee9;
    border-radius: 10px;
    background: #fbfdfc;
    color: #273832;
    transition: 0.25s ease;
}

.quick-access-card:hover {
    color: #273832;
    border-color: #198754;
    background: #f2fbf6;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(25, 135, 84, 0.12);
}

.quick-access-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #e7f6ee;
    color: #198754;
    font-size: 20px;
}

.quick-access-card h3 {
    margin: 0 0 4px;
    color: #21362f;
    font-size: 15px;
    font-weight: 700;
}

.quick-access-card p {
    margin: 0;
    color: #64726d;
    font-size: 13px;
    line-height: 1.5;
}

/* contact service */
.contact .icon-box {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.contact-service-panel {
    width: 100%;
    padding: 28px;
    border-radius: 14px;
    background: linear-gradient(to right, #123c2f, #184d3b);
    color: #fff;
}

.contact-service-panel h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.contact-service-panel p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.contact-service-list {
    display: grid;
    gap: 12px;
}

.contact-service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    transition: 0.25s ease;
}

.contact-service-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(4px);
}

.contact-service-item i {
    font-size: 22px;
    color: #ffc107;
}

.contact-service-item h4 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.contact-service-item span {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.5;
}

#footer .footer-top .footer-links p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .carousel-overlay-box {
        bottom: 18px;
    }

    .carousel-identity {
        margin-bottom: 12px;
    }

    .carousel-identity h1 {
        font-size: 24px;
    }

    .carousel-identity p {
        font-size: 13px;
        line-height: 1.45;
    }

    .carousel-identity span {
        padding: 5px 10px;
        font-size: 12px;
    }

    .quick-access {
        margin-top: 0;
        padding-top: 16px;
    }

    .quick-access-panel,
    .contact .icon-box {
        padding: 16px;
    }

    .quick-access-title {
        display: block;
    }

    .contact-service-panel {
        padding: 20px;
    }
}
