@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

@font-face {
    font-family: Akira;
    src: url("../fonts/Akira\ Super\ Bold.otf");
}

:root {
    --hitam: hsl(0, 0%, 0%);
    /* --biru: #14213d; */
    --orange: #fca311;
    --abu: #e5e5e5;
    --putih: #ffffff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-padding);
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--hitam);
    background-color: var(--putih);
    margin: 0;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: #151515;
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 0px);
    left: calc(50% - 30px);
    border: 6px solid var(--orange);
    border-top-color: #151515;
    border-bottom-color: #151515;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: var(--orange);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

.back-to-top i {
    font-size: 28px;
    color: var(--putih);
    line-height: 0;
}

.back-to-top:hover {
    background: #151515;
}

.back-to-top:hover i {
    color: var(--orange);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# Section General
--------------------------------------------------------------*/
section {
    padding: 50px 0;
    overflow: hidden;
}

.section-title {
    padding-bottom: 30px;
    color: #ff8000;
}

.section-title h2 {
    font-size: 24px;
    font-weight: 500;
    padding: 0;
    line-height: 20px;
    margin: 0 0 5px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff8000 !important;
}

.section-title h2::before,
.section-title h2::after {
    content: "";
    width: 100px;
    height: 1px;
    display: inline-block;
    background: var(--orange);
    color: #ff8000;
    margin: 4px 10px;
}
/*
.section-title p {
    margin: 0;
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff8000;
} */

/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
.navbar-brand {
    margin-left: 30px;
}

.navbar a {
    font-size: 17px;
    font-weight: 600;
}

.navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: var(--orange);
    color: var(--putih);
}

.nav-item {
    margin-right: 10px;
}

.navbar-nav .nav-item .nav-link.active {
    color: var(--orange);
}

.navbar-nav .nav-item .nav-link:hover {
    color: var(--orange);
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
#hero {
    width: 100%;
    height: 100vh;
    background: url("../img/background_hero.webp") top center;
    background-size: cover;
    position: relative;
    background-attachment: fixed;
}

#hero .wave {
    position: absolute;
    width: 100%;
    height: 148px;
    bottom: 0;
    left: 0;
    background: url("../img/wave_gelombang3.png");
    animation: animate 10s linear infinite;
}

@keyframes animate {
    0% {
        background-position: 0;
    }
    100% {
        background-position: 1360px;
    }
}

@keyframes animate-reverse {
    0% {
        background-position: 1360px;
    }
    100% {
        background-position: 0;
    }
}

#hero .wave:before {
    content: "";
    width: 100%;
    height: 148px;
    background: url("../img/wave_gelombang3.png");
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.4;
    animation: animate-reverse 10s linear infinite;
}

#hero .wave:after {
    content: "";
    width: 100%;
    height: 148px;
    background: url("../img/wave_gelombang3.png");
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.6;
    animation-delay: -5s;
    animation: animate 20s linear infinite;
}

#hero:before {
    content: "";
    /* background: rgba(0, 0, 0, 0.6); */
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

#hero .container {
    position: relative;
    text-align: center;
}

#hero h1 {
    margin: 0;
    margin-top: 100px;
    font-size: 100px;
    font-family: Akira;
    line-height: 64px;
}

#hero a {
    font-weight: bold;
    font-size: 18px;
    /* background-color: #151515; */
}

/* Responsive Hero */
@media screen and (max-width: 640px) {
    #hero h1 {
        font-size: 53px;
    }

    #hero h4 {
        font-size: 17px;
    }
    #hero .wave {
        bottom: -60px;
    }
}

/*--------------------------------------------------------------
# Hero Juara
--------------------------------------------------------------*/
.countdown-juara {
    display: flex;
}
.hero-juara {
    width: 688px;
    height: 230px;
    border: 20px solid transparent;
    border-image-slice: 1;
    border-image-source: linear-gradient(to left, #f3742a, #883283);
    border-radius: 40px;
}
.hero-juara ul {
    display: flex;
    justify-content: center;
    padding-right: 32px;
}
.hero-juara ul li {
    list-style-type: none;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-align: center;
    color: var(--putih);
}
.hero-juara ul li span {
    display: block;
    font-size: 4rem;
    color: var(--putih);
    font-weight: bold;
}
.hero-juara ul li.separator {
    margin: 10px;
    font-size: 4rem;
    line-height: 1;
    color: var(--putih);
}
/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/

#about {
    padding: 0;
    margin: 0;
    height: 90vh;
    position: relative;
    background: url("../img/bg_kotak.png") center center;
    background-size: cover;
}

#about .title {
    color: #fd6930;
    font-size: 50px;
    font-weight: 700;
}

#about .containerAbout {
    margin-left: 40px;
}

#about .desc {
    text-align: justify;
    color: #ffb03b;
    font-size: 15pt;
    font-weight: 400;
}

#svg-3 {
    position: absolute;
    right: 0;
    bottom: 0;
}

.about-img img {
    height: 350px;
    width: auto;
}

/* Responsive About */
@media screen and (max-width: 640px) {
    #svg-2 svg,
    #about img {
        display: none;
    }

    .containerAbout {
        padding-top: 20px !important;
    }
    #about .containerAbout {
        margin-left: 0px;
    }

    #about .title {
        font-size: 40px;
    }

    #about .desc {
        font-size: 12pt;
    }
    #about {
        height: 75vh;
    }

    #about .containerAbout {
        margin-top: 20px;
    }
}

@media screen and (min-width: 641px) and (max-width: 1007px) {
    #about .title {
        font-size: 40px;
    }

    #about .desc {
        font-size: 12pt;
    }

    .about-img img {
        height: 300px;
    }

    .aboutContainer {
        padding-top: 50px;
    }
    #about .containerAbout {
        margin-left: 0px;
    }
    #about {
        height: 60vh;
    }
}

@media screen and (min-width: 1008px) and (max-width: 1366px) {
    #about .title {
        font-size: 40px;
    }

    #about .desc {
        font-size: 12pt;
    }

    .about-img img {
        height: 300px;
    }
    #about .containerAbout {
        margin-left: 0px;
    }
    #about {
        height: 90vh;
    }
}

@media screen and (min-width: 1367px) {
    .aboutContainer {
        padding-top: 30px;
    }
    #about .containerAbout {
        margin-left: 0px;
    }
}

/*--------------------------------------------------------------
# Video
--------------------------------------------------------------*/
#video {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #131418;
}

.video-cont {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 12px;
    border: 2px solid #ff6a00;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.3);
    overflow: hidden;
    background: white;
}

.epim-header {
    background: white;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
}

.video-container {
    width: 100%;
    height: 60vh;
    position: relative;
    color: #fff;
    overflow: hidden;
    background: rgb(25, 25, 25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.epim-title {
    color: #ff6a00;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.epim-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #ff6a00 0%, #ff6a00 100%);
    margin: 0 15px;
}

.traffic-lights {
    display: flex;
    gap: 8px;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.light.green {
    background: #28ca42;
}

.light.yellow {
    background: #ffbd2e;
}

.light.red {
    background: #ff5f56;
}

.video-container {
    width: 100%;
    height: 82vh;
    position: relative;
    color: #fff;
    overflow: hidden;
    background: rgb(25, 25, 25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    max-width: 100%;
    max-height: 100%;
}

.custom-loader {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-top: 5px solid transparent;
    border-right: 5px solid #ffffff;
    border-left: 5px solid #ffffff;
    border-bottom: 5px solid #ffffff;
    z-index: 9999;
    animation: rotation 2s infinite ease;
    -webkit-animation: rotation 2s infinite ease;
    display: none;
}

.player-state {
    display: flex;
    position: absolute;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    pointer-events: none;
}

.state-btn {
    font-size: 2.3rem;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(36, 36, 36, 0.667);
    z-index: 50;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    user-select: none;
    transform: scale(0);
    pointer-events: all;
}

.state-forward,
.state-backward {
    font-size: 1.5rem;
}

.state-forward .forward-duration {
    margin-right: 0.5rem;
}
.state-backward .backward-duration {
    margin-left: 0.5rem;
}

.animate-state {
    animation: playPause 0.5s forwards;
}

.show-state {
    transform: scale(1);
    opacity: 1;
}

.show-controls {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 5rem 1rem 0.5rem 1rem;
    width: 100%;
    background: linear-gradient(to top, #000000b8 -100%, transparent);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(40px);
    visibility: hidden;
    z-index: 99;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.duration {
    position: relative;
    width: 100%;
    height: 15px;
    background: #62626274;
    cursor: pointer;
    transition: all 0.2s;
}

.duration:hover {
    height: 17px;
}

.duration .buffer {
    height: 100%;
    position: absolute;
    inset: 0;
    background-color: #ff6a0045;
    z-index: 9;
    width: 0;
}

.hover-time {
    height: 100%;
    position: absolute;
    inset: 0;
    background: #ffffff9a;
    z-index: 99;
    display: flex;
    align-items: center;
    width: 0;
}

.hover-time .hover-duration {
    position: absolute;
    right: calc((-25px / 2));
    top: -25px;
    background: #3c3c3ca7;
    padding: 0.2rem;
    border-radius: 5px;

    font-size: 0.7rem;
    visibility: hidden;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
}

.duration:hover .hover-time .hover-duration {
    visibility: visible;
    opacity: 1;
    transition: all 0.2s;
    transform: scale(1);
}

.duration .current-time {
    height: 100%;
    position: absolute;
    inset: 0;
    background: #ff6a00;
    z-index: 999;
    display: flex;
    align-items: center;
    width: 0;
}

.current-time::before {
    content: "";
    position: absolute;
    right: calc((-25px / 2));
    background: #ff6a00;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    transition: all 0.2s;
    visibility: hidden;
    transform: scale(0);
}

.duration:hover .current-time::before {
    visibility: visible;
    transform: scale(1);
}

.btn-controls {
    padding-top: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-con {
    display: flex;
    align-items: center;
}

.btn-con,
.btn-controls > span {
    cursor: pointer;
}

.play-pause {
    display: flex;
    margin-right: 0.5rem;
}

.control-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: #33333372;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    box-sizing: border-box;
    position: relative;
    margin-right: 0.5rem;
}

.control-btn:last-child {
    margin-right: 0;
}

.control-btn:hover {
    border: 1px solid #3131315c;
}

.control-btn::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #2424246a;
    position: absolute;
    transition: all 0.1s;
    transform: scale(0);
}

.control-btn:active::before {
    transform: scale(1);
    border: 1px solid #3131315c;
}

.time-container {
    font-size: 13px;
    font-weight: 500;
    padding-left: 0.7rem;
}

.volume {
    display: flex;
    align-items: center;
    cursor: default;
}

.mute-unmute {
    display: flex;
    cursor: pointer;
}

.max-vol {
    height: 3px;
    cursor: pointer;
    background: #ffffff6e;
    transition: all 0.1s;
    width: 0;
    visibility: hidden;
    transform: scaleX(0);
    transform-origin: left;
    display: flex;
    align-items: center;
}

.max-vol.show {
    width: 56px;
    visibility: visible;
    transform: scaleX(1);
}

.current-vol {
    position: absolute;
    inset: 0;
    width: 20%;
    height: 100%;
    background: #fff;
    display: flex;
    transition: none;
    align-items: center;
}

.current-vol::before {
    content: "";
    position: absolute;
    right: -5px;
    width: 12px;
    height: 12px;
    display: block;
    border-radius: 50%;
    background: #eee;
}

.setting-menu {
    opacity: 0;
    visibility: hidden;
    list-style: none;
    padding-inline-start: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    position: absolute;
    bottom: 4.5rem;
    transition: all 0.2s;
    background: rgba(28, 28, 28, 0.9);
    transform: scaleY(0);
    transform-origin: bottom;
    border-radius: 5px;
}

.setting-menu li {
    padding: 0.3rem 2rem;
    margin: 0.5rem;
    transition: all 0.2s;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.speed-active {
    background: rgb(23, 23, 23);
}

.setting-menu li:hover {
    background: rgb(31, 31, 31);
}

.setting-btn {
    display: flex;
}

.show-setting-menu {
    opacity: 1;
    transform: scaleY(1);
    visibility: visible;
}

.theater {
    width: 100% !important;
}

.theater-btn .theater-default,
.theater-btn .theater-active {
    display: flex;
}
.video-container.theater .theater-default {
    display: none;
}

.video-container:not(.theater) .theater-active {
    display: none;
}

.fullscreen {
    position: absolute !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    background: #000 !important;
    align-items: center !important;
}

.right-controls {
    display: flex;
    align-items: center;
}

.right-controls span {
    cursor: pointer;
}

.full,
.contract {
    display: none;
}

.video-container:not(.fullscreen) .full {
    display: flex;
}

.video-container.fullscreen .contract {
    display: flex;
}

@keyframes playPause {
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Video */
@media screen and (max-width: 640px) {
    .video-cont {
        max-width: 90% !important;
        margin: 0 auto !important;
    }

    .video-container {
        height: 300px !important;
        width: 100% !important;
    }

    .controls {
        padding: 3rem 1rem 0.5rem 1rem !important;
    }

    .state-btn {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
    }
}

@media screen and (min-width: 641px) and (max-width: 1007px) {
    .video-cont {
        max-width: 90% !important;
        margin: 0 auto !important;
    }
    .video-container {
        height: 45vh !important;
    }
}
/* INI COMMIT TGL 19/06 JIKA MERUSAK HAPUS SAJA */
@media screen and (min-width: 1367px) {
    .video-container {
        height: 5% !important;
    }
} /* INI COMMIT TGL 19/06 JIKA MERUSAK HAPUS SAJA */

/*--------------------------------------------------------------
# Timeline
--------------------------------------------------------------*/
.timeline {
    position: relative;
    max-width: 1000px; /* batasi lebar maksimal timeline */
    margin: 0 auto; /* center timeline */
}

.container-timeline {
    padding-top: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    width: 3px;
    background-color: #fca311;
    top: 0;
    bottom: 0;
    left: 50%; /* posisikan garis di tengah */
    margin-left: -1.5px;
}

.timeline-item {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
}

.timeline-content-kanan {
    text-align: left;
    margin-left: calc(50% + 50px); /* mulai dari tengah + jarak dari garis */
    max-width: 450px !important; /* paksa remove max-width restriction */
    width: 450px;
    word-wrap: break-word;
    hyphens: auto;
}

.timeline-content-kiri {
    text-align: left;
    margin-left: -100px;
    max-width: 450px;
    word-wrap: break-word;
    hyphens: auto;
}

.timeline-icon-kanan {
    position: absolute;
    left: calc(50% + 8px); /* posisi dari tengah */
    top: 50%;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #fca311;
}

.timeline-icon-kiri {
    position: absolute;
    right: calc(50% + 8px); /* posisi dari tengah */
    top: 50%;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid #fca311;
}

.bg-card-linear {
    background: linear-gradient(to top right, #fd642c, #ffb03b);
    border: none;
    box-shadow: 2px 4px 23.3px rgba(0, 0, 0, 0.2);
    width: 445px;
    height: 243px;
}

.title-timeline {
    position: relative;
    top: 30px;
}

.more-details {
    color: #fca311;
    text-decoration: none;
}

.web-programming {
    border-width: 10px;
}

.webpro-desc {
    font-size: 12px;
}

#btnDetail {
    /* background-color: var(--putih); */
    border: 2px solid white;
    color: var(--white);
    border-radius: 10px;
    width: 150px;
    font-size: 14px;
}

/* Responsive Timeline */
@media screen and (max-width: 640px) {
    #informasi .bg-card-linear {
        width: 330px;
        height: auto;
        margin: 0 auto;
    }
    #informasi .bg-card-linear h3 {
        position: relative;
        top: 1px !important;
    }
    #informasi .bg-card-linear p.webpro-desc {
        margin-left: -5px;
    }
    .section-title p {
        font-size: 25px;
    }

    .timeline-content {
        margin-left: 150px;
    }

    .timeline-line {
        width: 100px;
    }
    .timeline::before {
        left: 0;
        margin-left: 0;
    }
    .timeline-content-kanan,
    .timeline-content-kiri {
        margin-left: 30px !important;
        max-width: 100% !important;
        width: auto;
        margin-top: -10px;
    }

    .timeline-icon-kanan,
    .timeline-icon-kiri {
        position: absolute;
        left: 10px !important;
        top: 30px;
        border-left: 10px solid #fca311;
        border-right: none;
    }

    .timeline-icon-kanan {
        border-left: 10px solid #fca311;
        border-right: none;
    }

    .timeline-icon-kiri {
        border-left: 10px solid #fca311;
        border-right: none;
    }
    .section-title h2::before,
    .section-title h2::after {
        display: none;
    }
    .section-title h2 {
        font-size: 18px;
    }
}

@media screen and (min-width: 641px) and (max-width: 1007px) {
    /* /medium size/  */
    .timeline-line {
        width: 150px;
    }

    .timeline {
        margin-left: -130px;
    }

    .container-timeline {
        margin-left: 120px;
    }

    .timeline-content {
        margin-left: 200px;
    }

    .timeline-content-kanan,
    .timeline-content-kiri {
        margin-left: 30px !important;
        max-width: 100% !important;
        width: auto;
        margin-top: -10px;
    }

    .timeline::before {
        left: 0;
        margin-left: 0;
    }

    .timeline-icon-kanan,
    .timeline-icon-kiri {
        position: absolute;
        left: 10px !important;
        top: 30px;
        border-left: 10px solid #fca311;
        border-right: none;
    }

    .timeline-icon-kanan {
        border-left: 10px solid #fca311;
        border-right: none;
    }

    .timeline-icon-kiri {
        border-left: 10px solid #fca311;
        border-right: none;
    }

    #informasi .bg-card-linear {
        width: 700px;
        height: auto;
        margin: 0 auto;
    }
    #informasi .bg-card-linear h3 {
        position: relative;
        top: 1px !important;
    }
    #informasi .bg-card-linear p.webpro-desc {
        margin-left: -5px;
    }
}

@media screen and (min-width: 1008px) and (max-width: 1366px) {
    #informasi .bg-card-linear {
        margin-left: 50px;
    }
}

/* INI COMMIT TGL 19/06 JIKA MERUSAK HAPUS SAJA */
@media screen and (min-width: 1367px) and (max-width: 1400px) {
    #informasi .bg-card-linear {
        margin-left: 50px;
    }
} /* INI COMMIT TGL 19/06 JIKA MERUSAK HAPUS SAJA */
@media screen and (min-width: 1401px) and (max-width: 1600px) {
    #informasi .bg-card-linear {
        margin-left: 90px;
    }
} /* INI COMMIT TGL 19/06 JIKA MERUSAK HAPUS SAJA */
@media screen and (min-width: 1601px) and (max-width: 1799px) {
    #informasi .bg-card-linear {
        margin-left: 90px;
    }
} /* INI COMMIT TGL 19/06 JIKA MERUSAK HAPUS SAJA */
@media screen and (min-width: 1800px) and (max-width: 1920px) {
    #informasi .bg-card-linear {
        margin-left: 90px;
    }
} /* INI COMMIT TGL 19/06 JIKA MERUSAK HAPUS SAJA */

/*--------------------------------------------------------------
# Info Pendaftaran
--------------------------------------------------------------*/
/* .infoDaftar {
    background: url("../img/bgInfo.png");
    padding-bottom: 100px;
    position: relative;
} */

.infoDaftar {
    background: url("../img/bgInfo.png");
    padding-bottom: 100px;
    position: relative; /* Tambahkan ini */
}
.infoDaftar .wave1 {
    position: absolute;
    width: 100%;
    height: 148px;
    top: -30px;
    left: 0;
    background: url("../img/wave_gelombang3.png");
    background-size: cover;
    z-index: 1;
    transform: rotate(180deg); /* Membalik gelombang jika diperlukan */
}
.infoDaftar .wave {
    position: absolute;
    width: 100%;
    height: 148px;
    bottom: -30px;
    left: 0;
    background: url("../img/wave_gelombang3.png");
    background-size: cover; /* atau '100% 100%' */
    z-index: 1;
    display: block;
}

.infoDaftar-swiper {
    overflow: hidden;
}

.swiper-wrapper {
    transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.swiper-slide {
    transition: all 0.3s ease;
}

.swiper-slide-active {
    transform: scale(1.02);
}

.infoDaftar img {
    border-radius: 20px;
    height: 450px;
    width: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.infoDaftar .container {
    position: relative;
    width: 90%;
    margin: 0 auto;
}

.swiper-button-prev {
    left: -60px !important;
    color: #ffffff;
}

.swiper-button-next {
    right: -60px !important;
    color: #ffffff;
}

.title-lomba {
    color: white;
}

.btn-guidebook {
    width: 170px;
}

.btn-guidebook,
.btn-register {
    border-radius: 20px;
    color: var(--hitam);
    background-color: var(--putih);
    font-weight: 500;
}

.btn-guidebook:hover,
.btn-register:hover,
.btn-guidebook:focus,
.btn-register:focus {
    color: var(--putih);
    background-color: var(--orange);
}

.infoDaftar .container {
    padding-top: 100px;
    position: relative;
    z-index: 2;
}

.infoDaftar .section-title h2 {
    color: #ffffff !important;
    font-weight: bold;
}

.infoDaftar .section-title p {
    color: rgb(0, 0, 0) !important;
    font-weight: bold;
}

.infoDaftar .section-title h2::before,
.infoDaftar .section-title h2::after {
    background-color: rgb(255, 255, 255);
}

/* Responsive infoPendaftar */
@media screen and (max-width: 640px) {
    /* small size */
    .swiper-slide .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .img-lomba {
        order: 1 !important;
        margin-bottom: 20px;
    }

    .img-lomba img {
        width: 100%;
        max-width: 320px;
        height: auto;
        padding-bottom: 0;
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .desc-lomba {
        order: 2 !important;
        padding: 0 15px;
    }

    .desc-lomba h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .desc-lomba p {
        font-size: 14px;
        line-height: 1.6;
    }

    .desc-lomba .row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 10px;
    }

    .btn-guidebook,
    .btn-register {
        width: 90%;
        max-width: 240px;
    }

    .section-title h2::before,
    .section-title h2::after {
        width: 75px;
    }

    .infoDaftar .section-title h2 {
        display: none;
    }

    .infoDaftar .section-title p {
        color: rgb(255, 255, 255) !important;
        font-weight: bold;
    }
}

@media screen and (min-width: 641px) and (max-width: 1007px) {
    /* medium size */

    .swiper-slide .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .img-lomba {
        order: 1 !important;
        margin-bottom: 20px;
    }

    .img-lomba img {
        width: 100%;
        max-width: 340px;
        height: auto;
        padding-bottom: 0;
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .desc-lomba {
        order: 2 !important;
        padding: 0 20px;
    }

    .desc-lomba h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .desc-lomba p {
        font-size: 15px;
        line-height: 1.6;
    }

    .desc-lomba .row {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 12px;
    }

    .btn-guidebook,
    .btn-register {
        width: 90%;
        max-width: 260px;
    }

    .btn-guidebook {
        margin-bottom: 10px;
    }

    .swiper-button-prev {
        left: -30px !important;
        color: #ffffff;
    }

    .swiper-button-next {
        right: -30px !important;
        color: #ffffff;
    }
}

/*--------------------------------------------------------------
# Modal Pendaftaran
--------------------------------------------------------------*/
#form2 {
    left: 450px;
}
.modal-lomba {
    position: relative;
}

.modal-lomba img {
    height: auto;
    width: auto;
    filter: blur(1px);
    -webkit-filter: blur(1px);
}

.modal-lomba span {
    color: var(--putih);
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    font-size: 38px;
    font-weight: 700;
}

input[type="file"] {
    width: 350px;
    max-width: 100%;
    color: #444;
    padding: 5px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #555;
}

input[type="file"]::file-selector-button {
    margin-right: 20px;
    border: none;
    background: var(--orange);
    padding: 10px 20px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

input[type="file"]::file-selector-button:hover {
    background: #ee9910;
}

/*--------------------------------------------------------------
# Gallery
--------------------------------------------------------------*/
.gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--biru) 0%, #2d5a87 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gallery .section-title h2 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--orange);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery p {
    color: var(--putih);
    font-size: 1.2rem;
    opacity: 0.9;
}

.gallery-swiper-container {
    width: 100%;
    position: relative;
}

.gallery-swiper {
    width: 100%;
    height: 400px;
}

.gallery-swiper .swiper-slide {
    width: 320px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.gallery-swiper .swiper-wrapper {
    align-items: center;
    backface-visibility: hidden;
    z-index: 1;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gallery-swiper .swiper-slide-duplicate {
    opacity: 0.6 !important;
    transform: scale(0.9) !important;
}

/* Slide aktif di tengah */
.gallery-swiper .swiper-slide-active {
    transform: scale(1.1);
    z-index: 10;
}

.gallery-swiper .swiper-slide-active img {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Slide tetangga */
.gallery-swiper .swiper-slide-prev,
.gallery-swiper .swiper-slide-next {
    transform: scale(0.95);
    opacity: 0.8;
}

.gallery-swiper .swiper-slide-prev img,
.gallery-swiper .swiper-slide-next img {
    filter: blur(2px) !important;
}

/* Sembunyikan slide lainnya */
.gallery-swiper
    .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(
        .swiper-slide-next
    ) {
    opacity: 0 !important;
    transform: scale(0.5) !important;
    pointer-events: none;
}

/* Hover effects */
.gallery-swiper .swiper-slide:hover img {
    transform: scale(1.02);
}

.gallery-swiper .swiper-slide-active:hover img {
    transform: scale(1.05);
}

.gallery .swiper-pagination {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 10px 0;
    justify-content: center;
}
.gallery .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    margin: 0 8px;
    transition: all 0.4s ease;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid var(--orange);
}

.gallery .swiper-pagination-bullet-active {
    background: var(--orange);
    width: 35px;
    border-radius: 8px;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(253, 126, 20, 0.8);
    border: 1px solid black;
}

.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: var(--swiper-pagination-bottom, 0) !important;
    top: var(--swiper-pagination-top, auto) !important;
    left: 0 !important;
    width: 100% !important;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
    color: var(--orange);
    background: rgba(253, 126, 20, 0.2);
    transform: scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    max-width: 80%;
    text-align: center;
}

/* Loading state */
.gallery-swiper .swiper-slide img[data-loading="true"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive // Ukuran layar <= 428px (termasuk 320, 360, 375, 393, 412, 414, 428) */
@media screen and (max-width: 428px) {
    .gallery-swiper .swiper-slide img {
        margin-top: -40px;
        width: 85vw;
        height: auto;
        max-height: 220px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .gallery-swiper .swiper-slide {
        opacity: 1 !important;
        transform: scale(0.95) !important;
        transition: transform 0.5s ease, opacity 0.5s ease !important;
        pointer-events: auto !important;
    }

    .gallery-swiper .swiper-slide-active {
        transform: scale(1.05) !important;
        z-index: 10;
    }

    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        transform: scale(0.95) !important;
        opacity: 0.9 !important;
    }

    .gallery-swiper
        .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(
            .swiper-slide-next
        ) {
        opacity: 1 !important;
        transform: scale(0.95) !important;
        pointer-events: auto !important;
    }
}

/* Ukuran layar antara 429px sampai 768px */
@media screen and (min-width: 429px) and (max-width: 768px) {
    .gallery-swiper .swiper-slide img {
        margin-top: -50px;
        width: 350px;
        height: 300px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .gallery-swiper .swiper-slide {
        opacity: 1 !important;
        transform: scale(0.95) !important;
        transition: transform 0.5s ease, opacity 0.5s ease !important;
        pointer-events: auto !important;
    }

    .gallery-swiper .swiper-slide-active {
        transform: scale(1.05) !important;
        z-index: 10;
    }

    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        transform: scale(0.95) !important;
        opacity: 0.9 !important;
    }

    .gallery-swiper
        .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(
            .swiper-slide-next
        ) {
        opacity: 1 !important;
        transform: scale(0.95) !important;
        pointer-events: auto !important;
    }
}

/* Ukuran layar antara 769px dan 800px */
@media screen and (min-width: 769px) and (max-width: 800px) {
    .gallery-swiper .swiper-slide {
        opacity: 1 !important;
        transform: scale(0.95) !important;
        transition: transform 0.5s ease, opacity 0.5s ease !important;
        pointer-events: auto !important;
    }

    .gallery-swiper .swiper-slide-active {
        transform: scale(1.05) !important;
        z-index: 10;
    }

    .gallery-swiper .swiper-slide-prev,
    .gallery-swiper .swiper-slide-next {
        transform: scale(0.95) !important;
        opacity: 0.9 !important;
    }

    .gallery-swiper
        .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(
            .swiper-slide-next
        ) {
        opacity: 1 !important;
        transform: scale(0.95) !important;
        pointer-events: auto !important;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery .section-title {
    animation: fadeInUp 0.8s ease-out;
}

.gallery-swiper {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/*--------------------------------------------------------------
# Medpart and sponsor
--------------------------------------------------------------*/
#medpart,
#sponsor {
    height: auto;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
    background: black;
    padding: 0 0 30px 0;
    color: #fff;
    font-size: 14px;
}

#footer .footer-top {
    background: #151515;
    border-bottom: 1px solid #222222;
    padding: 60px 0 30px 0;
}

#footer .footer-top .footer-info {
    margin-bottom: 30px;
}

#footer .footer-top .footer-info p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
    font-family: "Raleway", sans-serif;
    color: #fff;
}

#footer .footer-top .social-links a {
    font-size: 18px;
    display: inline-block;
    background: #292929;
    color: #fff;
    padding: 8px 0;
    margin-right: 4px;
    border-radius: 4px;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
    background: var(--orange);
    color: #151515;
    text-decoration: none;
}

#footer .footer-top h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
}

#footer .footer-top .footer-links {
    margin-bottom: 30px;
}

#footer .footer-top .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-top .footer-links ul i {
    padding-right: 2px;
    color: var(--orange);
    font-size: 18px;
    line-height: 1;
}

#footer .footer-top .footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

#footer .footer-top .footer-links ul li:first-child {
    padding-top: 0;
}

#footer .footer-top .footer-links ul a {
    color: #fff;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
}

#footer .footer-top .footer-links ul a:hover {
    color: var(--orange);
}

#footer .copyright {
    text-align: center;
    padding-top: 30px;
}

#footer .credits {
    padding-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #fff;
}

#footer .credits a {
    color: var(--orange);
    text-decoration: none;
}

#footer img {
    margin-right: 20px;
}

/* Responsive Footer */
@media screen and (max-width: 640px) {
    /* /small size/ */
    #footer img:nth-child(3),
    #footer img:nth-child(4) {
        width: 200px;
        height: auto;
    }
    #footer img {
        margin: 10px;
    }
}
.card-expo {
    transition: transform 0.3s;
}
.card-expo:hover {
    transform: scale(1.5);
}
