/* Tab */

a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}

.tab {
    padding: 0;
    margin: 0;
}

.tab .nav-tabs {
    margin: 0;
    border: none;
    position: relative;
}

.tab .nav-tabs li a {
    color: #fff;
    background-color: #669bbc;
    font-size: 17px;
    /* font-weight: 600; */
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: capitalize;
    padding: 18px 10px;
    margin: 0 9px 1px 0;
    border-radius: 0 10px 0 0;
    border: none;
    display: block;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease 0s;
}

.tab .nav-tabs li.active a,
.tab .nav-tabs li a:hover,
.tab .nav-tabs li.active a:hover {
    color: #fdf0d5;
    background-color: #c1121f;
    text-shadow: 0 0 7px rgba(0, 0, 0, 0.3);
    border: none;
}

.tab .nav-tabs li a:before {
    content: "";
    background: #003049;
    width: 100%;
    height: 90%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    transition: all 0.3s ease 0s;
}

.tab .nav-tabs li a:hover:before,
.tab .nav-tabs li.active a:before {
    height: 0;
    opacity: 0;
}

.tab .tab-content {
    color: #fff;
    background: #003049;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 25px;
    padding: 20px 25px;
    border-radius: 0 10px 0 0;
    /* border-bottom: 10px solid #669bbc; */
}

@media only screen and (max-width: 479px) {
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
    }
    .tab .nav-tabs li a {
        margin: 0 0 10px;
    }
}


/* End Tab */

@media (min-width: 992px) {
    .intro .intro-img {
        width: 100%;
        /* float: right; */
    }
    .intro .intro-text {
        left: 0;
        width: 60%;
        margin-top: 3rem;
        position: absolute;
    }
    .intro .intro-text .intro-button {
        width: 100%;
        left: 0;
        position: absolute;
        bottom: -2rem;
    }
}

@media (min-width: 1200px) {
    .intro .intro-text {
        width: 38%;
    }
}

.text-center {
    text-align: center !important;
}

.bg-faded {
    background-color: #f6e1c5;
}


/* scenes */

:root {
    --red: #0ab6ad;
    --bgColor: bisque;
}

/* div.framed {
    box-shadow: -50px -50px 0 -40px #669bbc, 50px 50px 0 -40px #669bbc;
} */

.section-heading {
    text-transform: uppercase;
}

.section-heading .section-heading-upper {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.section-heading .section-heading-lower {
    display: block;
    font-size: 1.5rem;
    font-weight: 100;
}

.scenes {
    position: relative;
    aspect-ratio: 1.8 / 1;
    outline: 2px solid #ccc;
}

.scene-1,
.scene-2,
.scene-3,
.scene-4,
.scene-5,
.scene-6,
.scene-7,
.scene-8 {
    position: absolute;
    inset: 0;
    background-size: 100%;
    /* background-size: cover; */
}

/* .scene-1 {
    background-image: url("../../img/bg-main.png");
    width: 100%;
    margin-top: 3.99999%;
} */

/* .scene-1 {
    background-image: url("../../img/bg-main.png");
    background-size: cover;
    background-position: center;
    width: 100%;
    margin-top: 5.99999%;
    margin-bottom: 5.99999%;
    animation: fadeZoomIn 1.5s ease-in-out forwards;
    opacity: 0;
    transform: scale(1.05);
}

@keyframes fadeZoomIn {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
} */

.scenes {
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* ฉากหลัก */
.scene-1 {
    position: relative;
    width: 98%;
    height: 100%;
    margin-top: 1%;
    background-image: url('../../img/MENU_Background1.png');
    background-position: center;
    transform: scale(1.05);
    animation: fadeZoomIn 1.5s ease-in-out forwards;
}

/* ลูกเล่นแสง */
.scene-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: lightSweep 2.5s linear infinite;
    pointer-events: none;
}

@keyframes lightSweep {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

@keyframes fadeZoomIn {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.scene-2 {
    background-image: url("../../img/bg-main.png");
    mask-image: linear-gradient(to right, transparent 47.5%, #fff 52.5%);
    mask-size: 100%;
    mask-position: left;
    /* background-position: center center; */
}

.scenes:is(:hover,
 :focus) .scene-2 {
    mask-position: right;
    transition: -webkit-mask-position 1s linear;
}

/* .scene-3 {
    background-image: url("../../img/main_bg/m3.jpg");
    -webkit-mask-image: linear-gradient(to right, transparent 47.5%, #fff 52.5%);
    -webkit-mask-size: 210%;
    -webkit-mask-position: left;
    background-position: center center;
}

.scenes:is(:hover,
 :focus) .scene-3 {
    -webkit-mask-position: right;
    transition: -webkit-mask-position 1s linear;
}

.scene-4 {
    background-image: url("../../img/main_bg/m4.jpg");
    -webkit-mask-image: linear-gradient(to right, transparent 47.5%, #fff 52.5%);
    -webkit-mask-size: 210%;
    -webkit-mask-position: left;
    background-position: center center;
}

.scenes:is(:hover,
 :focus) .scene-4 {
    -webkit-mask-position: right;
    transition: -webkit-mask-position 1s linear;
} */

/* .scene-3 {
    background-image: url("../../img/mis.png");
    background-position: center center;
}

.scene-4 {
    background-image: url("../../img/carousel/mis1.png");
    -webkit-mask-image: linear-gradient(to right, transparent 47.5%, #fff 52.5%);
    -webkit-mask-size: 210%;
    -webkit-mask-position: left;
    background-position: center center;
}

.scenes:is(:hover,
 :focus) .scene-4 {
    -webkit-mask-position: right;
    transition: -webkit-mask-position 1s linear;
}

.scene-5 {
    background-image: url("../../img/service.png");
    background-position: center center;
}

.scene-6 {
    background-image: url("../../img/carousel/service1.png");
    -webkit-mask-image: linear-gradient(to right, transparent 47.5%, #fff 52.5%);
    -webkit-mask-size: 210%;
    -webkit-mask-position: left;
    background-position: center center;
}

.scenes:is(:hover,
 :focus) .scene-6 {
    -webkit-mask-position: right;
    transition: -webkit-mask-position 1s linear;
}

.scene-7 {
    background-image: url("../../img/people.png");
    background-position: center center;
}

.scene-8 {
    background-image: url("../../img/carousel/people1.png");
    -webkit-mask-image: linear-gradient(to right, transparent 47.5%, #fff 52.5%);
    -webkit-mask-size: 210%;
    -webkit-mask-position: left;
    background-position: center center;
}

.scenes:is(:hover,
 :focus) .scene-8 {
    -webkit-mask-position: right;
    transition: -webkit-mask-position 1s linear;
} */