/* Utility class untuk H1 yang hanya terbaca screen reader & Google */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== SLIDER ===== */
.content {
    margin-top: 0;
    padding: 0;
}
.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 80px;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 33, 77, 0.6);
    z-index: 1;
}
.slide-text {
    position: relative;
    color: #fff;
    max-width: 700px;
    z-index: 2;
}
.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}
.dots span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.3s;
}
.dots span.active {
    background: #fff;
}

/* ===== ANNOUNCEMENT ===== */
#announcement {
    background-color: #0a2343;
}
#announcement .btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
}
#announcement .btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
#announcement-wrapper {
    transition: transform 0.6s ease;
    min-width: 100%;
    display: flex;
}
.announcement-item {
    font-size: 0.8125rem;
    white-space: nowrap;
    flex: 0 0 100%;
}

/* ===== INFO SECTION (jika di-uncomment) ===== */
.custom-info-1 {
    background-color: #0a2343;
    border-radius: 12px;
    padding: 20px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}
.custom-info-1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background-color: #c7251b;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

/* ===== KEUNGGULAN SECTION ===== */
.bg-navy { background-color: #001f3f; }
.text-navy { color: #001f3f; }
.border-navy { border-bottom: 4px solid #001f3f !important; }
.border-yellow-custom { border-bottom: 4px solid #ffc107 !important; }
.rounded-3xl { border-radius: 1.5rem !important; }
.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    min-height: 70px;
}
.icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.75rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.card-prodi {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.card-custom:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
    transform: translateY(-5px);
}
.card-custom:hover .icon-box {
    transform: scale(1.1);
}
.btn-outline-navy {
    color: #001f3f;
    border-color: #001f3f;
    background-color: transparent;
}
.btn-outline-navy:hover {
    background-color: #001f3f;
    color: #fff;
}

/* ===== NEWS CARD ===== */
.news-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.news-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.news-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    color: white;
}
.news-card .news-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

/* ===== ALUMNI CAROUSEL ===== */
.wrapper_alumni {
    max-width: auto;
    width: 100%;
    position: relative;
    padding: 20px 40px;
}
.wrapper_alumni i {
    top: 50%;
    height: 50px;
    width: 50px;
    cursor: pointer;
    font-size: 1.25rem;
    position: absolute;
    text-align: center;
    line-height: 50px;
    background: #002244;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
    transform: translateY(-50%);
    transition: transform 0.1s linear;
}
.wrapper_alumni i:active {
    transform: translateY(-50%) scale(0.85);
}
.wrapper_alumni i:first-child { left: -22px; }
.wrapper_alumni i:last-child { right: -22px; }
.wrapper_alumni .carousel_alumni {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 4) - 7px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    border-radius: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.carousel_alumni::-webkit-scrollbar { display: none; }
.carousel_alumni.no-transition { scroll-behavior: auto; }
.carousel_alumni.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}
.carousel_alumni.dragging .card_alumni {
    cursor: grab;
    user-select: none;
}
.carousel_alumni :where(.card_alumni, .img) {
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel_alumni .card_alumni {
    scroll-snap-align: start;
    height: 322px;
    list-style: none;
    background: #002244;
    cursor: pointer;
    padding-bottom: 15px;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
}
.carousel_alumni .card_alumni .img {
    background: #c7251b;
    height: 118px;
    width: 118px;
    border-radius: 50%;
}
.card_alumni .img img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
}
.carousel_alumni .card_alumni h3 {
    font-weight: 500;
    font-size: 1.3rem;
    margin: 30px 0 5px;
}
.carousel_alumni .card_alumni span {
    font-size: 1rem;
}


/* ===== FAQ ===== */
.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ffffff;
    backdrop-filter: blur(4px);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.faq-button {
    background-color: transparent !important;
    color: white;
    font-weight: 500;
}
.faq-button:not(.collapsed) {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}
.accordion-body {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* ===== POPUP MODAL / BROCHURE ===== */
.popup-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.popup-modal-overlay.show { opacity: 1; visibility: visible; }
.popup-modal-content {
    position: relative;
    width: 95%; max-width: 800px;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}
.popup-modal-overlay.show .popup-modal-content { transform: scale(1); }
.popup-native-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f0f0f000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.popup-slides-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.popup-slides-wrapper::-webkit-scrollbar { display: none; }
.popup-slide-item {
    min-width: 100%;
    scroll-snap-align: start;
}
.popup-slide-item img {
    width: 100%;
    display: block;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}
.popup-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: white; border: none;
    width: 35px; height: 35px; cursor: pointer; border-radius: 50%;
    font-size: 14px; z-index: 10; transition: 0.2s;
}
.popup-nav-btn:hover { background: #c7251b; }
.popup-nav-btn.prev { left: 10px; }
.popup-nav-btn.next { right: 10px; }
.popup-dots-nav {
    text-align: center;
    padding: 10px 0;
    background: rgba(0,0,0,0.2);
}
.popup-dot {
    height: 8px; width: 8px; margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%; display: inline-block;
    transition: 0.3s; cursor: pointer;
}
.popup-dot.active { background-color: #fff; transform: scale(1.2); }
.popup-btn-close {
    position: absolute; top: -10px; right: -45px;
    background: none; border: none; color: white;
    font-size: 2.5rem; cursor: pointer; line-height: 1;
}

/* ===== IMAGE SCROLL CONTAINER ===== */
.image-scroll-container {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-bottom: 3px solid #cbb26a;
    scrollbar-width: thin;
}
.image-scroll-container::-webkit-scrollbar { width: 8px; }
.image-scroll-container::-webkit-scrollbar-track {
    background: #0a0909;
    border-radius: 10px;
}
.image-scroll-container::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 10px;
}
.image-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== RESPONSIVE HOME ===== */
@media screen and (max-width: 900px) {
    .wrapper_alumni .carousel_alumni {
        grid-auto-columns: calc((100% / 2) - 9px);
    }
}
@media screen and (max-width: 600px) {
    .wrapper_alumni .carousel_alumni {
        grid-auto-columns: 100%;
    }
}
@media (max-width: 767.98px) {
    #announcement .row {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
    }
    #announcement .col-auto.d-flex {
        justify-content: center;
        margin-top: 8px !important;
        order: 3 !important;
    }
    #announcement .col.overflow-hidden {
        order: 2 !important;
        padding: 0 10px;
    }
    .announcement-item {
        white-space: normal;
        font-size: 0.75rem;
        line-height: 1.4;
    }
    #announcement-wrapper {
        width: 100% !important;
        flex-wrap: wrap;
    }
}
@media (max-width: 768px) {
    .icon-box {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    .icon-wrapper {
        min-height: 60px;
    }
    .popup-btn-close { right: 0; top: -50px; }
    .popup-modal-content { width: 85%; }
}