.home {
    min-height: 100vh;
    height: 100%;
    background: url(/assets/images/bg.webp);
    background-size: cover;
    background-position: center;
    color: white;
}

.bg-bottom img {
    pointer-events: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 0;
}

.cloud3 {
    position: fixed;
    top: 2%;
    right: 10%;
    width: 300px;
}

.home-title-group {
    position: relative;
}

.home-title-group h4 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    white-space: nowrap;
    font-size: 1.7rem;
    text-shadow: 4px 4px 3px #000;
}

.head-text {
    text-align: center;
    margin: 0 auto;
    margin-top: 30px;
    line-height: 46px;
    font-size: 2.5rem;
    letter-spacing: 1px;
    width: 75vw;
}

.section-3 .head-text {
    font-size: 2.2rem;
}

.section-3 .head-text a {
    color: #E71170;
}

.head-ic {
    width: 200px;
}

.border-image {
    position: absolute;
    top: -10%;
    left: -8%;
    width: 116%;
    height: 120%;
    pointer-events: none;
}

/*  banner */

.section-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-1>div {
    position: relative;
    margin-top: 80px;
}

.section-1>div img:first-child {
    width: 600px;
    z-index: 1;
    position: relative;
}

.section-1>div img:nth-child(2),
.section-1>div img:nth-child(3),
.section-1>div img:nth-child(4) {
    width: 200px;
    position: absolute;
}

.section-1>div img:nth-child(2) {
    left: -66px;
    top: -40px;
    z-index: 5;
}

.section-1>div img:nth-child(3) {
    bottom: -26px;
    right: -65px;
    z-index: 5;
}

.section-1>div img:nth-child(4) {
    right: -100px;
    top: -60px;
    z-index: 0;
}

/* floating image */
.floating-img {
    position: relative;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 500px;
    opacity: 0;
}

.float-boat {
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 500px;
}


/* ẩn */
.floating-img.hide {
    display: none;
}

/* section 2 */
.section-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25vh;
}


/* slider */
.wrap-slide-about {
    position: relative;
    margin: 40px auto 0;
}

.slider {
    max-width: 60vw;
    display: flex;
    overflow-x: auto;

    scroll-snap-type: x mandatory; /* 🔥 mấu chốt */
    scroll-behavior: smooth;

    border-radius: 8px;
    cursor: grab;
}

.slider::-webkit-scrollbar {
    display: none; /* ẩn thanh scroll */
}

.slide {
    min-width: 100%;
    scroll-snap-align: start;
}

.slide img {
    width: 100%;
    max-width: 90vw;
    display: block;
    pointer-events: none;
}

/* slider pass event */
.wrap-past-event {
    position: relative;
    margin: 40px auto 0;
}

.slider-pass-event {
    max-width: 60vw;
    display: flex;
    overflow-x: auto;

    scroll-snap-type: x mandatory; /* 🔥 mấu chốt */
    scroll-behavior: smooth;

    border-radius: 8px;
    cursor: grab;
}

.slider-pass-event img:hover {
    transform: scale(1.02);
}

.slider-pass-event::-webkit-scrollbar {
    display: none; /* ẩn thanh scroll */
}

.slide-pass-event {
    min-width: 100%;
    scroll-snap-align: start;
}

.slide-pass-event img {
    width: 100%;
    max-width: 90vw;
    display: block;
    object-fit: cover;
    height: 100%;
    transition: 0.4s;
    margin: 0 auto;
    /* pointer-events: none; */
}

/* section 3 */
.section-3 {
    margin-top: 22vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* z-index: 100; */
}

.thumb-upcoming-event {
    max-width: 60vw;
    margin: 40px auto 0;
    position: relative;
}

.thumb-upcoming-event .thumb {
    width: 100%;
    transition: 0.4s;
}

.thumb-upcoming-event .thumb:hover {
    transform: scale(1.01)
}

.thumb-upcoming-event .more-detail {
    width: 220px;
    position: absolute;
    right: -91px;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.4s;
}

.thumb-upcoming-event .more-detail>div {
    position: relative;
}

.thumb-upcoming-event .more-detail>div span {
    position: absolute;
    white-space: nowrap;
    color: #fff;
    font-size: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 5px 5px 3px #000;
}

.thumb-upcoming-event .more-detail:hover {
    transform: scale(1.05) translateY(-50%);
}

.thumb-upcoming-event .more-detail img {
    width: 100%;
}

/* section 4 */
.section-4 {
    margin-top: 22vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* section 5 */
.section-5 {
    margin-top: 22vh;
    position: relative;
    padding-bottom: 25vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-5 .contact {
    width: 60vw;
    margin: 120px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
        flex-wrap: wrap;
    column-gap: 100px;
    row-gap: 70px;

}

.section-5 .ic-social:hover
{
    transform: scale(1.05);
    transition: 0.4s;
}

.cloud-contact-1,
.cloud-contact-2 {
    position: absolute;
}

.cloud-contact-1 {
    bottom: -130px;
    left: 60px;
    width: 200px;
}

.cloud-contact-2 {
    bottom: -75px;
    right: -100px;
    width: 200px;
}

.section-5 .all-right-reserved {
    margin-top: 200px;
}


/* responsive */
@media (max-width: 1280px) {

    .floating-img,
    .float-boat {
        width: 500px;
        bottom: 120px;
    }

    .head-text {
        font-size: 2.3rem;
    }

    .section-3 .head-text {
    font-size: 1.6rem;
}
}

@media (max-width: 1024px) {
    .floating-img,
    .float-boat {
        bottom: 100px;
    }
}

@media (max-width: 992px) {
    .section-1>div img:first-child {
        width: 400px;
    }

    .section-1>div img:nth-child(2),
    .section-1>div img:nth-child(3),
    .section-1>div img:nth-child(4) {
        width: 150px;
    }

    .float-boat,
    .floating-img {
        bottom: 90px;
        width: 400px;
    }

    .head-text {
        font-size: 2rem;
        line-height: 36px;
    }

    .section-3 .head-text {
    font-size: 1.5rem;
}

    .slider {
        max-width: 60vw;
    }

    .thumb-upcoming-event .more-detail {
        width: 150px;
    }

    .contact a img {
        height: 100px;
    }

    .cloud-contact-1,
    .cloud-contact-2 {
        width: 120px;
    }

}

@media (max-width: 768px) {
    .section-1>div img:first-child {
        width: 350px;
    }

    .section-1>div img:nth-child(2),
    .section-1>div img:nth-child(3),
    .section-1>div img:nth-child(4) {
        width: 120px;
    }

    .float-boat,
    .floating-img {
        bottom: 50px;
        width: 350px;
    }

    .section-2,
    .section-3,
    .section-4,
    .section-5 {
        margin-top: 150px;
    }

    .head-text {
        font-size: 1.7rem;
    }

    .section-3 .head-text {
    font-size: 1.4rem;
}

    .slider {
        max-width: 70vw;
    }

    .thumb-upcoming-event {
        max-width: 70vw;
    }

    .section-5 .contact {
        width: 70vw;
    }

    .slider-pass-event {
        max-width: 70vw;
    }
}

@media (max-width: 576px) {
    .float-boat,
    .floating-img {
        width: 300px;
    }

    .section-1>div img:nth-child(2) {
        left: -35px;
        top: -27px;
    }

    .section-1>div img:nth-child(4) {
        right: -35px;
        top: -35px;
    }

    .section-1>div img:nth-child(3) {
        bottom: -35px;
        right: -18px;
    }

    .section-2,
    .section-3,
    .section-4,
    .section-5 {
        margin-top: 120px;
    }

    .head-text {
        font-size: 1.3rem;
        line-height: 30px;
        width: 90vw;
    }

    .section-1 .head-text {
        margin-top: 100px;
    }

    .thumb-upcoming-event .more-detail {
        width: 100px;
        right: -46px;
    }

    .thumb-upcoming-event .more-detail>div span {
        font-size: 14px;
    }

    .section-5 .contact {
        width: 80vw;
        margin: 100px auto 0;
    }

    .section-5 {
        padding-bottom: 20vh;
    }

    .contact a img {
        height: 80px;
    }

    .cloud-contact-2 {
        bottom: -45px;
        right: -10px;
    }

    .cloud-contact-1 {
        bottom: -87px;
        left: 53px;
    }

    .thumb-upcoming-event,
    .slider {
        max-width: 80vw;
    }

    .home-title-group h4 {
        font-size: 1.5rem;
    }

        .slider-pass-event{
        max-width: 80vw;
    }

    .section-3 .head-text {
        font-size: 1.2rem;
    }

        .head-ic {
        width: 125px;
    }

}

@media (max-width: 414px) {
    .section-1>div img:first-child {
        width: 250px;
    }

    .section-1>div img:nth-child(2),
    .section-1>div img:nth-child(3),
    .section-1>div img:nth-child(4) {
        width: 100px;
    }

    .float-boat,
    .floating-img {
        bottom: 35px;
        width: 200px;
    }


    .contact a img {
        height: 60px;
    }

    .thumb-upcoming-event .more-detail {
        width: 85px;
        right: -10px;
    }

    .cloud-contact-1, .cloud-contact-2 {
        width: 100px;
    }

    .cloud-contact-1 {
        left: 0;
    }

    .section-3, .section-4, .section-5 {
        margin-top: 100px;
    }

        .thumb-upcoming-event,
    .slider {
        max-width: 85vw;
    }

    .slider-pass-event {
        max-width: 90vw;
    }

}