html {
    overflow-y: scroll;
    scrollbar-width: thin; /* Firefox */
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #4A90C7;
    border-radius: 10px;
}

* { 
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background-color: white;
    
}


/* NAVBAR DESKTOP */
nav {
    width: 100%;
    background-color:rgb(0, 119, 179);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.25);
}

.left-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.left-box img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.school-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 5rem;
    list-style: none;
    margin-right: 60px;
}

nav ul a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    padding: 6px 0;
    position: relative;
    transition: 0.3s;
}

nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s;
}

nav ul a:hover::after {
    width: 100%;
}

/* Hamburger Menu Button - Hidden di Desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animasi Hamburger saat aktif */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   NAVBAR RESPONSIVE
   =================================== */

/* Tablet - 1024px ke bawah */
@media screen and (max-width: 1024px) {
    nav ul {
        gap: 3rem;
        margin-right: 30px;
    }
}

/* Mobile - 768px ke bawah */
@media screen and (max-width: 768px) {
    /* Navbar Mobile */
    nav {
        padding: 1rem 1.5rem;
    }

    .school-name {
        font-size: 16px;
        transform: translateX(-11px);
    }

    .left-box img {
        width: 40px;
        height: 40px;
        transform: translateX(-11px);
    }

    /* Tampilkan Hamburger Menu */
    .hamburger {
        display: flex;
    }

    /* Hide Menu di Mobile, Show saat Active */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgb(0, 119, 179);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        margin-right: 0;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

    nav ul.active {
        right: 0;
    }

    nav ul a {
        font-size: 20px;
        padding: 10px 20px;
    }
}

/* Small Mobile - 480px ke bawah */
@media screen and (max-width: 480px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .school-name {
        font-size: 14px;
        letter-spacing: 0.5px;
        transform: translateX(-11px);
    }

    .left-box img {
        width: 35px;
        height: 35px;
        transform: translateX(-11px);
    }

    nav ul {
        width: 80%;
    }
}

.content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 70px 40px;
}

/* CENTER TITLE */
.center-title {
    text-align: center;
    margin-bottom: 20px;
}

.title-box {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1px;
}

/* DESCRIPTION TEXT */
.galeri-desc {
    text-align: center;
    font-size: 16px;
    color: #6c757d;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

/* ========================================== */
/*        CATEGORY BUTTONS - SIMPLE ELEGANT   */
/* ========================================== */

.category-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.cat-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 28px;
    background: #ffffff;
    color: #6c757d;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cat-btn:hover {
    background: #f8f9fa;
    border-color: #4A90C7;
    color: #4A90C7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 199, 0.15);
}

.cat-btn.is-active {
    background: #4A90C7;
    color: #ffffff;
    border-color: #4A90C7;
    box-shadow: 0 4px 12px rgba(74, 144, 199, 0.25);
}

.cat-btn span {
    position: relative;
}

/* ========================================== */
/*              CARDS GRID                    */
/* ========================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ========================================== */
/*          CARD IMAGE CONTAINER              */
/* ========================================== */

.card-image {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

/* Subtle gradient overlay */
.card-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

/* ========================================== */
/*              BADGE JABATAN                 */
/* ========================================== */

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ffffff;
    color: #2c3e50;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* Additional Role Badge */
.card-additional {
    position: absolute;
    top: 55px;
    left: 16px;
    background: rgba(74, 144, 199, 0.95);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* ========================================== */
/*            CARD INFO/CONTENT               */
/* ========================================== */

.card-info {
    padding: 24px;
    text-align: center;
    background: #ffffff;
}

.card-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-nip {
    font-size: 12px;
    color: #adb5bd;
    margin-bottom: 6px;
}

.card-position {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}
.card-nip {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
  }
  
/* ========================================== */
/*        STUDENT CARD STYLING                */
/* ========================================== */

.student-card .card-badge {
    background: linear-gradient(135deg, #4A90C7 0%, #2E5F8C 100%);
    color: #ffffff;
}

/* ========================================== */
/*           VIDEO CARD STYLING               */
/* ========================================== */

.video-card .card-image {
    height: 280px;
    background: #000000;
}

.video-card .card-image img {
    opacity: 0.9;
}

.video-card:hover .card-image img {
    opacity: 1;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #4A90C7;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.play-overlay i {
    margin-left: 3px;
}

.video-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ffffff;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
}

.video-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: #adb5bd;
    margin-top: 10px;
}

.video-meta i {
    margin-right: 5px;
}

/* ========================================== */
/*        EKSTRAKURIKULER CARD STYLING        */
/* ========================================== */

.ekskul-card .card-image {
    height: 260px;
}

.ekskul-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #4A90C7;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ekskul-description {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
    margin: 10px 0 16px 0;
    text-align: left;
}

.ekskul-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
}

.ekskul-pembina {
    color: #4A90C7;
    font-weight: 600;
}

.ekskul-members {
    color: #adb5bd;
    font-weight: 500;
}

/* ========================================== */
/*              VIDEO MODAL                   */
/* ========================================== */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.is-open {
    display: flex;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 10;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.video-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.video-modal__frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-modal__frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================== */
/*              RESPONSIVE                    */
/* ========================================== */

@media screen and (max-width: 992px) {
    .content {
        padding: 50px 30px;
    }

    .title-box {
        font-size: 40px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .category-row {
        gap: 12px;
    }

    .cat-btn {
        padding: 10px 22px;
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    nav ul {
        gap: 2rem;
    }

    .content {
        padding: 40px 20px;
    }

    .title-box {
        font-size: 34px;
    }

    .galeri-desc {
        font-size: 15px;
    }

    .category-row {
        flex-direction: column;
        align-items: center;
    }

    .cat-btn {
        width: 100%;
        max-width: 280px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-image {
        height: 380px;
    }

    .video-modal__content {
        width: 95%;
    }

    .video-modal__close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

