.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
    background: #435ebe;
    color: white;
}

.nav-link:hover {
    color: white !important;
}

.bg-none:hover {
    background: none !important;
}

#hero {
    /* background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../img/cover-1.png) !important; */
    background: url(../img/main-bg-2.png) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    /* filter: blur(1px); */
}

.text-shadow {
    text-shadow: 1px 1px 2px #000000a6;
}

.services .icon {
    left: 22px;
    top: 65px;
}

.services .title {
    margin-left: 0px;
}

.services .description {
    margin-left: 75px;
}

.btn-main {
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 12px 32px;
    border-radius: 5px;
    transition: 0.3s;
    line-height: 1;
    -webkit-animation-delay: 0.8s;
    animation-delay: 0.8s;
    margin-top: 6px;
    border: 2px solid #435ebe;
    background: #435ebe;
    color: #fff;
}

.btn-main:hover {
    border: 2px solid #435ebee6;
    background: #435ebee6;
    color: #fff;
    text-decoration: none;
}

.btn-main:active {
    background: #435ebee6;
    color: #fff;
    text-decoration: none;
}

.text-math {
    font: 400 normal 20px/20px "Mitr";
}

.mt-5-rem {
    margin-top: 5rem;
}

.pt-5-rem {
    padding-top: 5rem;
}

.logo-img {
    -webkit-filter: drop-shadow(1px 1px 1px rgba(34, 34, 34, 0.5));
    filter: drop-shadow(1px 1px 1px rgba(34, 34, 34, 0.5));
}

.icon-nav {
    color: #0108b2 !important;
}

.icon-nav:hover {
    color: #0107b27f !important;
}

.icon-nav:active {
    color: #0108b2 !important;
}

body {
    font-family: "Sarabun", sans-serif !important;
}

.main-font {
    /* font-family: 'Kanit', sans-serif !important; */
    font-family: "Sarabun", sans-serif !important;
}

.btn-text-hover {
    color: rgba(69, 69, 69, 0.8);
}

.btn-text-hover:hover {
    color: rgba(255, 255, 255, 1) !important;
}

.text-justify {
    margin: 0;
    text-indent: 2rem;
    text-align: justify;
}

.param-color {
    color: rgba(69, 69, 69, 0.8);
}

.text-course {
    color: #25396f;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.text-mathiphic {
    color: #435ebe !important;
}

.text-Menow {
    color: #e0bf0e !important;
    text-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%);
}

.active {
    color: white !important;
}

.btn-primary,
.btn-primary:active {
    background: #435ebe;
}

.btn-primary:hover {
    background: #435ebee7;
}

.ml-1 {
    margin-left: 0.5rem;
}

.ml-2 {
    margin-left: 1rem;
}

.ml-3 {
    margin-left: 1.5rem;
}

.ml-4 {
    margin-left: 2rem;
}

.ml-5 {
    margin-left: 2.5rem;
}

.ml-6 {
    margin-left: 3rem;
}

.mr-1 {
    margin-right: 0.5rem;
}

.mr-2 {
    margin-right: 1rem;
}

.mr-3 {
    margin-right: 1.5rem;
}

.mr-4 {
    margin-right: 2rem;
}

.mr-5 {
    margin-right: 2.5rem;
}

.mr-6 {
    margin-right: 3rem;
}

.pl-1 {
    padding-left: 0.5rem;
}

.pl-2 {
    padding-left: 1rem;
}

.pl-3 {
    padding-left: 1.5rem;
}

.pl-4 {
    padding-left: 2rem;
}

.pl-5 {
    padding-left: 2.5rem;
}

.pl-6 {
    padding-left: 3rem;
}

.pr-1 {
    padding-right: 0.5rem;
}

.pr-2 {
    padding-right: 1rem;
}

.pr-3 {
    padding-right: 1.5rem;
}

.pr-4 {
    padding-right: 2rem;
}

.pr-5 {
    padding-right: 2.5rem;
}

.pr-6 {
    padding-right: 3rem;
}

.text-mySelf:hover {
    color: #435ebe !important;
}

.active:hover {
    color: white !important;
}

.bg-1 {
    background-image: url("../img/bg-1.png") !important;
}

@media (max-width: 768px) {
    #hero .carousel-container {
        height: 420px !important;
    }
    .image-h1 {
        width: 100% !important;
    }
    .image-h2 {
        width: 60% !important;
    }
    .image-h3 {
        width: 100% !important;
    }
    .image-h4 {
        width: 100% !important;
    }
    .image-h5 {
        width: 100% !important;
    }
    .image-h6 {
        width: 80% !important;
    }
    .image-h7 {
        width: 50% !important;
    }
    .m-t-70 {
        margin-top: 70px !important;
    }
}

@media (max-width: 991px) {
    .image-h6 {
        width: 60%;
    }
    .image-h7 {
        width: 70%;
    }
}

.m-t-50 {
    margin-top: 50px !important;
}

#hero .carousel-container {
    height: 80vh;
}

.image-h7 {
    width: 30%;
}

.image-h6 {
    width: 40%;
}

.image-h5 {
    width: 90vh;
}

.image-h4 {
    width: 80vh;
}

.image-h3 {
    width: 80vh;
}

.image-h2 {
    width: 50vh;
}

.image-h1 {
    width: 80vh;
}

#heroCarousel > div > div > h2 {
    margin-top: 0;
}

.cta {
    background-image: url("../img/bg/bg-02.png") !important;
    padding: 80px 0;
}

.m-t-0 {
    margin-top: 0 !important;
}

.prevNext {
    width: 150px;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(2px 2px 2px #222);
}

.contact-btn {
    position: fixed;
    visibility: visible;
    opacity: 1;
    right: 15px;
    bottom: 80px;
    z-index: 996;
    background: #435ebe;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    transition: all 0.4s;
    font-size: 20px;
    color: #fff;
    line-height: 0;
    text-shadow: 1px 1px 2px #000000;
}

.contact-line,
.contact-tel,
.contact-email {
    position: fixed;
    visibility: visible;
    opacity: 1;
    z-index: 996;
    background: #435ebe;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    transition: all 0.4s;
    font-size: 20px;
    color: #fff;
    line-height: 0;
    text-shadow: 1px 1px 2px #000000;
}

.contact-line {
    right: 15px;
    bottom: 215px;
    background: #00b900;
}

.contact-tel {
    right: 15px;
    bottom: 170px;
    background: #2fdfd7;
}

.contact-email {
    right: 15px;
    bottom: 125px;
    background: #bf2d9d;
}

.contact-line:hover {
    color: #fff;
    background: #05df05;
}

.contact-tel:hover {
    color: #fff;
    background: #23cbc3;
}

.contact-email:hover {
    color: #fff;
    background: #bf2d9d;
}

.contact-btn:hover {
    color: rgb(212, 212, 212);
    background: #324fb6;
}

.pointer {
    cursor: pointer;
}

@media (max-width: 400px) {
    .cookie-accept {
        left: 5px !important;
        width: 97% !important;
    }
    #cookieAccept > div > ul {
        display: none;
    }
}

.cookie-accept {
    position: fixed;
    visibility: visible;
    opacity: 1;
    left: 15px;
    bottom: 15px;
    z-index: 996;
    border-radius: 10px;
    transition: all 0.4s;
    color: rgb(46, 46, 46);
    width: 350px;
}

.cookie-btn {
    border-radius: 20px;
}

.fs-7 {
    font-size: 0.7rem !important;
}

.fs-8 {
    font-size: 0.8rem !important;
}

.fs-9 {
    font-size: 0.9rem !important;
}

.indent-1 {
    text-indent: 1rem !important;
    /* text-align: justify; */
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
}

.pointer {
    cursor: pointer;
}

.oneline {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    height: 28px;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.twoline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    height: 42px;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.threeline {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    height: 68px;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media screen and (max-width: 540px) {
    .post-cover-img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 20px;
    }
}
@media screen and (min-width: 542px) {
    .post-cover-img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        border-radius: 20px;
    }
}

.main-text {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.3); /* พื้นหลังบาง ๆ */
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
}
.fs-15 {
    font-size: 1.5rem;
}
.h-60 {
    height: 60%;
}
