/* ========== Global Styles ========== */

.cropped-image {
    width: 100%;
    aspect-ratio: 6 / 4;
    overflow: hidden;
    position: relative;
}

.cropped-image img,
.cropped-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.background-news {
    background-image: var(--bg-content-4);
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 30%;
    position: relative;
}

.background-news::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-content-4);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: -1;
}

.button-des {
    background: #101d36 !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
    outline: 0 !important;
    box-shadow: 0 0 0 .25rem rgb(255 255 255 / 0%) !important;
    border: 1px solid #FFF !important;
}

.button-des:hover {
    background: #FFFFFF !important;
    color: #101D36 !important;
}

.p-title-c5 {
    color: #000000;
    font-weight: 600;
    padding: 30px;
    font-size: 32px;
}

.p-des-c5 {
    color: #222222;
    font-weight: 400;
    padding: 0 25px;
    font-size: 24px;
}

.custom>.carousel-indicators [data-bs-target] {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background-color: #c2c7cd !important;
}

.custom>.carousel-indicators .active {
    background-color: #1E3052 !important;
}

.f-input::placeholder {
    color: rgba(0, 0, 0, 0.2) !important;
}

.f-text-dark {
    color: #000000 !important;
}

/* ========== Home Section Styles ========== */

.Home .content1 {}

.Home .content1 .background {
    object-fit: cover !important;
    z-index: -1;
}

.Home .content1 .title,
.Home .content1 .title * {
    font-family: Srisakdi;
    font-weight: 700;
    line-height: 1.2;
    font-size: 4vw;
}

.Home .content1 .subTitle {
    font-family: Srisakdi;
    font-weight: 400;
    line-height: 1.2;
    font-size: 3.5vw;
}

.Home .content2 {}

.Home .content2 .sectionTitle {
    margin-bottom: 30px;
}

.Home .content2 h2,
.Home .content2 .h2 {
    font-size: 30px;
}

.Home .content2 h4 {
    font-weight: 300;
    line-height: 52.24px;
}

.Home .content3 {
    padding: 60px 0;
}

.Home .content3 .button,
.Home .content4 .button {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    border-radius: 5px 0px 0px 5px;
}

.Home .content3 .button:hover,
.Home .content4 .button:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
}

.Home .content3 h2 {
    font-size: 36px;
}

.Home .content3 h4 {
    font-size: 22px;
}

.Home .content3 .fa-arrow-right,
.Home .content4 .fa-arrow-right {
    display: flex;
    align-items: center;
    border-radius: 0px 5px 5px 0px;
}

.Home .content4 {
    background-size: cover;
    background-image: var(--bg-content-4);
    background-position: center;
}

.Home .content4 .background {
    height: 200%;
}

.Home .content4 .background img {
    position: absolute;
    top: -50%;
    object-fit: cover;
}

.Home .content4 .content4_content {
    border-radius: 20px;
    transition: all 1s ease;
}

.Home .content4 .content4_content:hover {
    scale: 1.05;
    box-shadow: 10px 9px 16px 4px rgba(0,0,0,0.7);
}

.Home .content4-custom .w-custom {
    width: 95%;
}

.Home .content4-custom .line-first {
    position: relative;
}

.Home .content4-custom .line-first::before {
    content: "";
    height: 100%;
    width: 1px;
    background-color: white;
    position: absolute;
    left: -1rem;
    top: 0;
    z-index: 2;
}

.Home .content4-custom .title * {
    font-family: Srisakdi !important;
    font-weight: 700 !important;
    color: #494036 !important;
}

.Home .content4 .bg-title,
.Home .content4 .bg-title * {
    font-family: Srisakdi;
    font-weight: 700;
    font-size: 4rem;
    line-height: 6rem;
}

.Home .content4 .bg-subTitle,
.Home .content4 .bg-subTitle * {
    font-family: Srisakdi;
    font-weight: 700;
    font-size: 6rem;
    line-height: 6rem;
    padding-right: 20rem;
}



.Home .homeFooter {}

/* ========== Responsive ========== */

@media (max-width: 390px) {

    .responsive-image {
        /* width: 100%;              ขยายเต็มความกว้าง container */
        /* max-width: 250px !important;*/
        min-width: 250px ;
        min-height: 250px ;
        
    }
    
    .Home .content1 .title,
    .Home .content1 .title * {
        font-size: 8.5vw;
    }

    .Home .content1 .subTitle {
        font-size: 6vw;
    }
}

@media (max-width: 767.98px) {
    .img-fluid {
        width: 100%;
    }
}

@media (min-width: 576px) {
    

    .Home .content2 h4 {
        font-size: 24px;
        line-height: 36.29px;
    }

    .Home .content1 .title,
    .Home .content1 .title * {
        font-size: 4vw;
    }

    
}

@media (min-width: 768px) {
    .Home .content1 .title,
    .Home .content1 .title * {
        font-size: 4.5vw;
    }

    .Home .content1 .subTitle {
        font-size: 4vw;
    }

    .Home .content4-custom .w-custom {
        width: 25rem;
    }
}

@media (min-width: 992px) {
    .img-fluid {
        width: auto;
    }

    .Home .content1 .title,
    .Home .content1 .title * {
        font-size: 3vw;
    }

    .Home .content1 .subTitle {
        font-size: 2.5vw;
    }

    .Home .content4 {
        min-height: 860px;
        display: flex;
        align-items: center;
    }

    .Home .content4 .content4_content {
        max-width: 561px;
    }

    .Home .content4-custom .w-custom {
        width: 30rem;
    }
}

@media (min-width: 1400px) {
    .Home .content4 {
        min-height: 900px;
    }
}
