@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+Thai:wght@100..900&display=swap');
body {
    /* background-color: black; */
    font-size: 16px;
    font-family: "Noto Sans Thai", sans-serif;
}

.button-menu {
    padding: 10px;
    background: #183BB7;
    border-radius: 100px;
    color: white;
    border: 1px solid;
}

/* navbar */
.navbar {
    background: black;
    color: white;
}

.nav-link {
    color: white;
}

.nav-link.active {
    color: white;
    --bs-navbar-active-color: white;
    font-weight: 700;
    text-decoration: underline;
}

.nav-link:hover {
    color: white;
    opacity: 0.8;
}

.navbar-toggler {
    background: white;
}

/* footer */
footer {
    color: white;
    background: black;
    padding: 2rem;
}

.icon-black {
    border: 1px solid;
    border-radius: 100%;
    background: #4BA9FF;
    color: black;
}

/* glide */
.outer {
    position: relative;
}

.outer:before {
    display: block;
    content: "";
    width: 100%;
    padding-top: (9 / 16) * 100%;
}

.outer>.inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
}

/* index - board */
.main-board {
    height: 100%;
    position: relative;
}

.main-board>*:not(.bg-board) {
    position: absolute;
}

.in-board {
    left: 48.5%;
    top: 37.1%;
    height: 18.2%;
    width: 16.6%;
    /* border: 2px solid black; */
    z-index: 5;
}

.main-in-board {
    left: 33.9%;
    top: 34.5%;
    height: 31.6%;
}

.title-board {
    left: 36%;
    top: 38%;
    width: 150px;
    max-width: 150px;
    overflow: hidden;
}

.title-board-1 {
    font-size: 18px;
    font-weight: 700;
}

.title-board-2 {
    font-size: 18px;
}

.contact-us-board {
    left: 36%;
    top: 55%;
    padding: 10px;
    border: 2px solid;
    background: #0143C4;
    color: white;
    border-radius: 25px;
    font-size: 12px;
}

.myToggle {
    left: 45%;
    top: 15%;
}

.arrow_left {
    left: 25%;
    top: 44.5%;
    font-size: 34px;
    cursor: pointer;
}

.arrow_right {
    right: 25%;
    top: 44.5%;
    font-size: 34px;
    cursor: pointer;
}

/* section */
.message-title {
    margin-left: auto;
    margin-right: auto;
    top: -40%;
    left: 0;
    right: 0;
    height: 50%;
    width: 50%;
    position: absolute;
    border: 3px solid black;
    border-radius: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    background: black;
    align-content: center;
}

.message-title p {
    margin: 0;
    font-size: 31px;
    text-align: center;
}

.text-yellow {
    color: #FFC31B;
}

.bg-section {
    background: #011D53;
}

.section-2 li {
    font-size: 24px;
}

.toggle {
    display: none;
}

.toggle+label {
    position: relative;
    display: inline-block;
    width: 140px;
    height: 34px;
    cursor: pointer;
    box-sizing: border-box;
    border: 2px solid white;
    border-radius: 2rem;
    background-color: black;
}

.toggle+label:before {
    position: absolute;
    top: 0;
    width: 140px;
    height: 34px;
    content: '';
    transition: all 0.3s ease;
    border-radius: 2rem;
    background-color: black;
}

.toggle+label:after {
    width: 140px;
    text-align: center;
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-overflow: ellipsis;
    overflow: hidden;
}

.toggle:not(:checked)+label {
    background: black;
    text-align: right;
}

.toggle:not(:checked)+label:after {
    content: attr(data-unchecked);
    right: 0;
    left: auto;
    opacity: 1;
    color: white;
}

.toggle:not(:checked)+label:before {
    top: 0;
    left: 0;
    background-color: white;
    width: 33px;
    height: 100%;
    border-radius: 50%;
}

.toggle:checked+label:after {
    content: attr(data-checked);
    left: 0;
    right: auto;
    opacity: 1;
    color: white;
}

.toggle:checked+label:before {
    right: 0;
    background-color: white;
    width: 33px;
    height: 100%;
    border-radius: 50%;
}

/* image slide */
.section-owl {
    height: 100%;
    max-width: 100%;
    position: relative;

}

.bg-section-owl {
    position: absolute;
    height: 300px;
    width: 100%;
    background: linear-gradient(90deg, #00205E 0%, #0143C4 100%);
    z-index: -1;
}

.section-owl h1 {
    color: white;
}

.section-owl .desc {
    font-size: 20px;
    color: #FFC31B;
}

.owl-item img {
    transform: scale(0.8);
}

.owl-item.active.center img {
    transform: scale(1.1);
}

/* section card */
.section-card {
    position: relative;
}

.bg-section-card {
    bottom: 0;
    position: absolute;
    height: 300px;
    width: 100%;
    background: linear-gradient(90deg, #0143C4 0%, #00205E 100%);
    z-index: -1;
}

.section-card .container {
    display: grid;
    gap: 20px;
    grid-template-columns: auto auto auto;
    justify-content: center;
}

.card-title-white {
    color: #0143C4;
}

.card-title-dark {
    color: #FFC31B;
}

.card-body-dark {
    background-color: black;
}

.card-body-white {
    background-color: white;
}

.card-text-white {
    color: black;
}

.card-text-dark {
    color: white;
}

/* index - contact  */
.contact-us {
    background: white;
}

.contact-us .title {
    font-size: 36px;
}

.border-line {
    background: #00205E;
}

.icon-white {
    border: 1px solid;
    border-radius: 100%;
    background: #4BA9FF;
    color: white;
}

.form-index {
    background: #CAE6FF;
}

.form-index input {
    border-left: none;
    border-right: none;
    border-top: none;
    border-radius: unset;
    border-color: black;
    background: transparent;
}

.form-index textarea {
    border-left: none;
    border-right: none;
    border-top: none;
    border-radius: unset;
    border-color: black;
    background: transparent;
}

.btn-form {
    background: black;
    color: white;
    border-radius: 2rem;
}

.bg-gray {
    background: #DDE2F3;
}

.message-title-bg-dark {
    background: black;
    color: white;
}

.message-title-bg-white {
    background: white;
    color: black;
}

@media only screen and (max-width: 1200px) {
    .section-card .container {
        display: grid;
        gap: 20px;
        grid-template-columns: auto auto;
        justify-content: center;
    }

    .message-title {
        margin-left: auto;
        margin-right: auto;
        top: -30%;
        left: 0;
        right: 0;
        height: 35%;
        width: 75%;
        position: absolute;
        border: 3px solid black;
        border-radius: 2rem;
        padding-left: 2rem;
        padding-right: 2rem;
        align-content: center;
    }

    .message-title p {
        font-size: 28px;

    }

    .myToggle {
        left: 40%;
        top: 10%;
    }
}

@media only screen and (max-width: 768px) {
    .section-card .container {
        display: grid;
        gap: 20px;
        grid-template-columns: auto;
        justify-content: center;
    }

    .message-title {
        margin-left: auto;
        margin-right: auto;
        top: -30%;
        left: 0;
        right: 0;
        height: 40%;
        width: 75%;
        position: absolute;
        border: 3px solid black;
        border-radius: 2rem;
        padding-left: 2rem;
        padding-right: 2rem;
        align-content: center;
    }

    .message-title p {
        font-size: 24px;
    }
    .toggle+label {
        left: -30px;
        top: -10px;
    }
 
}

@media only screen and (max-width: 576px) {
    .message-title {
        margin-left: auto;
        margin-right: auto;
        top: -10%;
        left: 0;
        right: 0;
        height: auto;
        width: 75%;
        position: absolute;
        border: 3px solid black;
        border-radius: 2rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        align-content: center;
    }
    .message-title p {
        font-size: 18px;
    }
    .in-board {
        left: 25%;
        top: 33%;
        height: 35%;
        width: 50%;
    }
}