/* =====================================================
   GLOBAL
===================================================== */
body {
    font-family: 'Poppins', sans-serif;
}


/* =====================================================
   HEADER / HERO
===================================================== */
header {
    position: relative;
    height: 100vh;
    color: #fff;
    background: url('../img/bg-wisma.png') center center / cover no-repeat;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

header .content {
    position: relative;
    z-index: 2;
}


/* =====================================================
   NAVBAR
===================================================== */
.navbar {
    background-color: rgba(252, 20, 20, 0.75) !important;
}


/* =====================================================
   CARD
===================================================== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
}


/* =====================================================
   FOOTER
===================================================== */
footer {
    padding: 20px 0;
    color: #fff;
    background: #fd0d0d;
}


/* =====================================================
   IMAGE MODAL
===================================================== */
.modal-img {
    max-width: 100%;
    border-radius: 8px;
}


/* =====================================================
   VIDEO BANNER WISMA UNEJ
===================================================== */

.wisma-video-banner {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 900px;
    min-height: 800px;
    overflow: hidden;
    background: #222 url('../img/bg-wisma.png') center center / cover no-repeat;
}

/* VIDEO BACKGROUND */
.wisma-video-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #222;
}

/* OVERLAY */
.wisma-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.48);
    pointer-events: none;
}

/* CONTENT */
.wisma-video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 90%;
    max-width: 750px;
    padding: 20px;

    text-align: center;
    color: #fff;

    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* SUBTITLE */
.wisma-video-content .video-subtitle {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* TITLE */
.wisma-video-content h2 {
    margin: 15px 0 28px;
    color: #fff;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* PLAY BUTTON */
.wisma-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 75px;
    height: 75px;
    min-width: 75px;
    min-height: 75px;

    padding: 0;
    margin: 10px auto;

    border: 3px solid #fff;
    border-radius: 50%;
    background: #fff;

    cursor: pointer;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

/* ICON PLAY */
.wisma-play-icon {
    display: block;
    width: 0;
    height: 0;
    margin-left: 8px;

    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 21px solid #b51f2a;
}

/* HOVER */
.wisma-play-button:hover {
    background: #b51f2a;
    border-color: #b51f2a;
    transform: scale(1.1);
}

.wisma-play-button:hover .wisma-play-icon {
    border-left-color: #fff;
}

/* HINT */
.wisma-video-hint {
    margin-top: 12px;
    color: #fff;
    font-size: 13px;
    opacity: 0.9;
}

/* VIDEO PLAYING */
.wisma-video-banner.is-playing .wisma-video-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.wisma-video-banner.is-playing .wisma-video-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* VIDEO ENDED */
.wisma-video-banner.is-ended .wisma-video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.wisma-video-banner.is-ended .wisma-video-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    .wisma-video-banner {
        height: 550px;
        min-height: 400px;
    }

    .wisma-video-content {
        width: 95%;
    }

    .wisma-video-content h2 {
        font-size: 36px;
    }

}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .wisma-video-banner {
        width: 100%;
        height: 430px;
        min-height: 430px;
        max-height: 500px;
    }

    .wisma-video-background {
        object-fit: cover;
        object-position: center center;
    }

    .wisma-video-overlay {
        background: rgba(0, 0, 0, 0.52);
    }

    .wisma-video-content {
        top: 50%;
        left: 50%;
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
    }

    .wisma-video-content .video-subtitle {
        margin-bottom: 10px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .wisma-video-content h2 {
        margin: 12px 0 22px;
        font-size: clamp(23px, 6vw, 30px);
        line-height: 1.35;
    }

    .wisma-play-button {
        width: 62px;
        height: 62px;
        min-width: 62px;
        min-height: 62px;
    }

    .wisma-play-icon {
        border-top-width: 12px;
        border-bottom-width: 12px;
        border-left-width: 18px;
        margin-left: 6px;
    }

    .wisma-video-hint {
        margin-top: 10px;
        font-size: 11px;
    }

}

/* =====================================================
   MOBILE KECIL
===================================================== */

@media (max-width: 380px) {

    .wisma-video-banner {
        height: 380px;
        min-height: 380px;
    }

    .wisma-video-content {
        padding: 15px 10px;
    }

    .wisma-video-content h2 {
        font-size: 23px;
    }

    .wisma-video-content .video-subtitle {
        font-size: 10px;
    }

}

/* =====================================================
   HP LANDSCAPE
===================================================== */

@media (max-width: 767px) and (orientation: landscape) {

    .wisma-video-banner {
        height: 100vh;
        min-height: 350px;
        max-height: 550px;
    }

    .wisma-video-content h2 {
        font-size: 25px;
        margin: 8px 0 15px;
    }

}
