/* --- Section Tentang Kami (band) --- */
.proc-band {
    background: #F4F8FD;
    scroll-margin-top: 80px;
}

.proc {
    padding: 80px 0;
}

.proc-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 50px;
}

.proc-head .eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #3a8adf;
}

.proc-head h2 {
    font-weight: 700;
    font-size: clamp(24px, 3.4vw, 32px);
    color: #101828;
    margin: 8px 0 10px;
}

/* Efek sapuan kuas (brush) di bawah judul */
#title-brush {
    position: relative;
    display: inline-block;
    margin-bottom: 26px;
}

#title-brush::after {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    top: 100%;
    margin-top: -2px;
    height: 16px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 24' preserveAspectRatio='none'%3E%3Cpath fill='%233a8adf' d='M4,12 C60,5 120,17 180,9 C240,3 290,13 316,8 L314,16 C290,21 240,11 180,17 C120,23 60,13 6,19 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: 100% 100%;
}

@media (max-width: 575px) {
    #title-brush::after {
        height: 12px;
    }
}

.proc-head p {
    font-size: 16px;
    color: #667085;
    margin: 0;
}

/* --- Tentang SPMB (samakan dgn halaman Tentang SPMB) --- */
.spmb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.spmb-side {
    flex: 0 0 320px;
    max-width: 320px;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    padding: 16px;
}

.spmb-search {
    position: relative;
    margin-bottom: 18px;
}

.spmb-search .fa {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 14px;
}

.spmb-search input {
    width: 100%;
    height: 42px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 0 14px 0 38px;
    font-size: 14px;
    color: #1f2733;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}

.spmb-search input:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.spmb-side-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #98a2b3;
    padding: 4px 8px;
    margin: 6px 0 4px;
}

.spmb-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spmb-menu>li {
    margin-bottom: 4px;
}

.spmb-menu>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #344054;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.3;
    text-transform: none;
    transition: background .15s, color .15s;
}

.spmb-menu>li>a:hover {
    background: #f6f7f9;
}

.spmb-menu>li.active>a {
    background: #eef1ff;
    color: #4f46e5;
}

.spmb-menu>li>a>aside {
    display: flex;
    gap: 10px;
    align-items: center;
}

.spmb-menu>li>a>small {
    font-size: 9px;
    background-color: #3a8adf;
    color: #fff;
    padding-inline: 5px;
    padding-block: 2px;
    border-radius: 9999px;
}

.spmb-tile {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.spmb-menu>li>a .spmb-title-text {
    flex: 1;
}

.spmb-empty-search {
    display: none;
    text-align: center;
    color: #98a2b3;
    font-size: 13px;
    padding: 14px 8px;
}

.spmb-detail {
    flex: 1 1 480px;
    min-width: 320px;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    padding: 40px;
    min-height: 420px;
}

.spmb-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.spmb-detail-title {
    font-weight: 700;
    font-size: 27px;
    color: #101828;
    margin: 0 0 18px;
    line-height: 1.25;
}

.spmb-detail .konten {
    color: #475467;
    font-size: 15.5px;
    line-height: 1.7;
}

/* Lampiran PDF */
.spmb-lampiran {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eceef2;
}

.spmb-lampiran-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #98a2b3;
    margin-bottom: 12px;
}

.spmb-pdf {
    border: 1px solid #e6eefb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.spmb-pdf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #f7faff;
    border-bottom: 1px solid #e6eefb;
}

.spmb-pdf-name {
    min-width: 0;
    font-weight: 600;
    font-size: 14px;
    color: #344054;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spmb-pdf-name .fa-file-pdf-o {
    color: #e5484d;
    margin-right: 5px;
}

.spmb-pdf-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 14px;
}

.spmb-pdf-actions a {
    font-size: 13px;
    font-weight: 600;
    color: #3a8adf;
    text-decoration: none;
    white-space: nowrap;
}

.spmb-pdf-actions a:hover {
    color: #2f74c0;
    text-decoration: underline;
}

.spmb-pdf-viewer {
    width: 100%;
    height: 560px;
    background: #eceef2;
}

.spmb-pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 575px) {
    .spmb-pdf-viewer {
        height: 420px;
    }
}

/* Galeri gambar */
.spmb-galeri {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eceef2;
}

.spmb-galeri-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #98a2b3;
    margin-bottom: 12px;
}

.spmb-galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.spmb-galeri-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f7faff;
    border: 1px solid #e6eefb;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.spmb-galeri-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(58, 138, 223, .15);
}

.spmb-galeri-item img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform .3s ease;
}

.spmb-galeri-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 575px) {
    .spmb-galeri-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }

    .spmb-galeri-item img {
        height: 110px;
    }
}

/* Lightbox overlay */
.spmb-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .85);
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.spmb-lightbox.active {
    display: flex;
}

.spmb-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    cursor: default;
}

.spmb-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.spmb-lightbox-close:hover {
    background: rgba(255, 255, 255, .3);
}

.spmb-detail .konten img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.spmb-detail .konten figure {
    margin: 20px 0;
    text-align: center;
    max-width: 100%;
}

.spmb-detail .konten figcaption {
    font-style: italic;
    color: #98a2b3;
    font-size: 13.5px;
    margin-top: 8px;
}

.spmb-detail .konten .image-left {
    float: left;
    margin: 10px 18px 10px 0;
}

.spmb-detail .konten .image-right {
    float: right;
    margin: 10px 0 10px 18px;
}

.spmb-detail .konten .image-center {
    display: block;
    margin: 10px auto;
}

.spmb-detail .konten table {
    width: 100%;
    margin-bottom: 15px;
    border-collapse: collapse;
}

.spmb-detail .konten table td,
.spmb-detail .konten table th {
    border: 1px solid #e4e7ec;
    padding: 9px 11px;
}

.spmb-detail .konten:after {
    content: "";
    display: table;
    clear: both;
}

.spmb-detail .tab-pane {
    overflow-x: auto;
}

@media (max-width: 991px) {
    .spmb-side {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .spmb-detail {
        padding: 24px 22px;
    }
}

/* Fit the same information section inside the student dashboard. */
#tentang-spmb.tentang-dashboard {
    background: transparent;
    margin-top: 20px;
}

.tentang-dashboard .proc {
    padding: 24px 0;
}

.tentang-dashboard .proc-head {
    margin-bottom: 28px;
}

.tentang-dashboard .spmb-side,
.tentang-dashboard .spmb-detail {
    min-width: 0;
    max-width: 100%;
}

.tentang-dashboard .spmb-detail-title,
.tentang-dashboard .spmb-title-text {
    overflow-wrap: anywhere;
}

.tentang-dashboard .spmb-search input::placeholder {
    color: #667085;
    opacity: 1;
}

@media (max-width: 575px) {
    .tentang-dashboard .container-fluid {
        padding: 0;
    }

    .tentang-dashboard .spmb-detail {
        padding: 24px 16px;
    }

    .tentang-dashboard .spmb-pdf-head {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    #tentang-spmb *,
    .spmb-lightbox * {
        transition: none !important;
    }
}
