.arrow-up {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid black;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #f00;
}

.arrow-right {
    width: 0;
    height: 0;
    margin: 18.5px 22px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid #2e2f7a;
}

.arrow-left {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid blue;
}

/* ------------------------ Carousel CSS custom -------------------------- */
.carousel-item img {
    width: 100vw;
    height: auto;
}

#carousel_banner_section .under-banner-line {
    content: '.';
    position: absolute;
    width: 100%;
    bottom: 0;
}

#carousel_banner_section .under-banner-line .mint-line {
    background-color: #87d7d0;
    width: 100%;
    height: 2rem;
}

#carousel_banner_section .under-banner-line .brown-line {
    content: '.';
    background-color: #713135;
    width: 100%;
    height: .5rem;
}

#carousel_banner_section .carousel-inner .carousel-item .float-text-banner {
    position: absolute;
    top: 50%;
    transform: translate(15vw, -50%);
}

#carousel_banner_section .carousel-inner .carousel-item .float-text-banner .banner-topic {
    font-size: 2.7rem;
    font-weight: 600;
    color: white;
    line-height: 1.5;
    /* padding-bottom: 1rem; */
}

#carousel_banner_section .carousel-inner .carousel-item .float-text-banner .banner-text {
    font-size: 1.7rem;
    font-weight: 200;
    color: white;
    line-height: 1.5;
}

@media screen and (max-width: 1365.85px) {
    #carousel_banner_section .carousel-inner .carousel-item .float-text-banner {
        transform: translate(10vw, -50%);
    }

    #carousel_banner_section .carousel-inner .carousel-item .float-text-banner .banner-topic {
        font-size: 2.7rem;
    }

    #carousel_banner_section .carousel-inner .carousel-item .float-text-banner .banner-text {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 991.8px) {
    #carousel_banner_section .carousel-inner .carousel-item .float-text-banner .banner-topic {
        font-size: 2.4rem;
    }
}

@media screen and (max-width: 767.8px) {
    #carousel_banner_section .carousel-inner .carousel-item .float-text-banner {
        transform: translate(12vw, -50%);
    }

    #carousel_banner_section .carousel-inner .carousel-item .float-text-banner .banner-topic {
        font-size: 2rem;
    }

    #carousel_banner_section .carousel-inner .carousel-item .float-text-banner .banner-text {
        font-size: 1rem;
    }
}

@media screen and (max-width: 479.8px) {
    #carousel_banner_section .carousel-inner .carousel-item .float-text-banner .banner-topic {
        font-size: 1.4rem;
    }

    #carousel_banner_section .carousel-inner .carousel-item .float-text-banner .banner-text {
        font-size: .8rem;
    }
}

#text-desc-section {
    margin-top: 3rem;
}

#text-desc-section h3{
    font-weight: bold;
    font-size: 2rem;
    color: #2e2f7a;
    text-align: center;
}

#text-desc-section p {
    font-size: 1.3rem;
    color: #2e2f7a;
    text-align: center;
}

/*---- elearning -----*/
.box_elearning {
    padding: 0px;
}

.box_elearning .bg_elearning {
    width: 100%;
    position: relative;
    height: auto;
    background-size: cover;
    background-position: top center;
    float: left;
}

.box_elearning .box_content_1 {
    margin: 10vh auto 5vh auto;
    min-height: 200px;
    /* border: 2px solid red; */
}

.box_elearning .box_content_2 {
    margin: 0vh auto 5vh auto;
    min-height: 200px;
    /* border: 2px solid blue; */
}

.box_elearning .box_content_3 {
    margin: 0vh auto 10vh auto;
    min-height: 200px;
    /* border: 2px solid green; */
}

/*---- about_us -----*/
.box_about {
    background-image: url('../images/backgrounds/background-about.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 200px;
    padding: 5em 1em 10em;
}

.box_about .topic {
    color: white;
    font-size: 2.2rem;
    text-align: center;
}

.box_about .desc {
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

/*---- news -----*/
.bg_leaves_news {
    /* border:1px solid red; */
    position: relative;
    width: 100%;
    height: auto;
    float: left;
}

.box_news {
    margin: 5vh auto 10vh auto;
    min-height: 200px;
}

.box_news .row {
    padding-top: 2rem !important;
}

.box_news .card {
    border: none;
    box-shadow: 2.6px 0.9px 4.3px 0 rgba(0, 0, 0, 0.2);
    color: white;
    transition: all 0.4s ease;
}

.box_news .card:hover {
    transform: translate(0px, -5px);
}

.box_news .card .card-img-top {
    width: 100%;
}

.box_news .card .card-img-top img {
    width: 100%;
    height: auto;
    border-radius: 1rem 1rem 0px 0px;
}

.box_news .box-each-news .card {
    border-radius: 1rem;
}

.box_news .box-each-news .card .card-body {
    border-radius: 0rem 0rem 1rem 1rem;
}

.box_news .box-each-news:nth-child(n+1) .card .card-body {
    padding: 1.25em 1.25em 1.25em 1.25em;
    background-color: #E90E8B;
}

.box_news .box-each-news:nth-child(n+2) .card .card-body {
    padding: 1.25em 1.25em 1.25em 1.25em;
    background-color: #74BE45;
}

.box_news .box-each-news:nth-child(n+3) .card .card-body {
    padding: 1.25em 1.25em 1.25em 1.25em;
    background-color: #F69321;
}

.box_news .card .card-body .sm-card-body {
    height: 120px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box_news .card .card-body .card-title {
    font-family: "Kanit", sans-serif;
    font-size: 1.2em;
    line-height: 1.1em;
}

.box_news .card .card-text {
    text-align: left;
    font-size: 1.1em;
    line-height: 1.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box_news .card .card-body .date {
    font-size: 0.95em;
}

.box_news .card .card-body .btn-readmore {
    font-size: 0.95em;
    text-decoration: none;
    padding-bottom: .01rem;
    color: white;
    /* border-bottom: 1px solid white; */
    transition: 0.1s;
}

.box_news .card .card-body .btn-readmore:hover {
    color: black;
    /* border-bottom: 1px solid black; */
}

/*----- End box news ----*/

.box {
    width: 100%;
    height: auto;
    float: left;
    /* border:1px solid red; */
}

.box .content {
    width: 100%;
    height: auto;
    margin: 0px auto;
    /* max-width: 992px; */
    max-width: 1024px;
    position: relative;
    padding: 2% 0px;
}

#msg .topic {
    width: 100%;
    float: left;
    color: #4d4d4d;
    text-align: center;
    font-family: "Kanit", sans-serif;
    font-size: 2em;
    line-height: 1.3em;
}

#msg .sub-topic {
    width: 100%;
    float: left;
    color: #318043;
    text-align: center;
    font-family: "Kanit", sans-serif;
    font-size: 1em;
    line-height: 1.3em;
}

.mob-header {
    width: auto;
    height: auto;
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    padding: 0.3em 2em 0.3em 2em;
    font-size: 2.2em;
    margin-top: -15px;
    font-family: "Kanit", sans-serif;
    color: #fff;
    left: 50%;
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    letter-spacing: 1px;
}

.rc-topic {
    width: auto;
    height: auto;
    position: absolute;
    box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(to right, #5354b8 0%, #2e2f7a 100%);
    padding: 0.3em 1.5em 0.2em 1.5em;
    border-radius: 30px;
    font-size: 1.7em;
    margin: 0px auto;
    font-family: "Kanit", sans-serif;
    color: #fff;
    letter-spacing: 1px;
}

#about_us_section {
    position: relative;
    width: 100%;
    height: auto;
    float: left;
}

.rows {
    width: 100%;
    float: left;
    margin-top: 2rem;
    /* border: 1px solid black; */
}

.rows .lesson-item {
    width: 31.5%;
    float: left;
    border-radius: 1rem 1rem 1rem 1rem;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
    cursor: pointer;
}

.rows a .lesson-item {
    margin: 0px 1.3% 0px 0px;
}

.rows a:last-child .lesson-item {
    margin: 0px 0px 0px 0px;
}

.rows .lesson-item .topic {
    width: 100%;
    float: left;
    color: #666666;
    font-family: "Kanit", sans-serif;
    text-align: center;
    font-size: 1.5em;
    height: 40px;
    margin: 0.5em 0em;
}

.rows .lesson-item .lesson_img {
    width: 100%;
    border-radius: 1rem 1rem 0rem 0rem;
    height: auto;
    float: left;
    transition: all 0.3s ease;
}

.rows .lesson-item:hover .lesson_img {
    filter: brightness(0.9);
}

.rows .lesson-item .desc {
    width: 100%;
    height: 160px;
    float: left;
    border-radius: 0rem 0rem 1rem 1rem;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    line-height: 1.5em;
    color: white;
    position: relative;
    text-align: left;
    transition: all .4s ease;
}

.rows .lesson-item .desc p{
  padding: 0px;
  margin: 0px 0px .5rem 0px;
}

.rows a:nth-child(n+1) .lesson-item .desc {
    background-color: #E90E8B;
}

.rows a:nth-child(n+2) .lesson-item .desc {
    background-color: #74BE45;
}

.rows a:nth-child(n+3) .lesson-item .desc {
    background-color: #F69321;
}

.rows .lesson-item:hover .desc {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.16);
}

.rows .lesson-item .desc .topic-desc {
    /* height: 65px; */
    float: left;
    /* padding: 20px; */
    font-size: 1.15em;
    font-weight: 400;
    /* line-height: 1.5em; */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rows .lesson-item .desc .sub-desc {
    /* padding-top: 10px; */
    /* margin-top: 15px; */
    font-size: .8rem;
    font-weight: 300;
    text-align: left;
    line-height: 1.3;
    height: 80px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* .rows .lesson-item:first-child {
    width: 24%;
    float: left;
    margin: 0px 0px 0px 0.5%;
    box-sizing: border-box;
}
.rows .lesson-item:last-child {
    width: 24%;
    float: left;
    margin: 0px 0px 0px 1%;
    box-sizing: border-box;
} */

.rows .lesson-item .desc .circle {
    width: 50px;
    height: 50px;
    position: absolute;
    box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.3);
    background-color: #fff;
    border-radius: 25px;
    margin: 0px auto;
    left: 50%;
    bottom: 0;
    -ms-transform: translate(-50%, 50%);
    transform: translate(-50%, 50%);
}

.rows .lesson-item .desc .btn_news_more {
    width: auto;
    position: absolute;
    box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(to right, #5354b8 0%, #2e2f7a 100%);
    border-radius: 5px;
    padding: 0.4em 1.2em 0.2em 1.2em;
    margin: 0px auto;
    left: 50%;
    font-size: 0.9em;
    bottom: 0;
    color: #fff;
    -ms-transform: translate(-50%, -40%);
    transform: translate(-50%, -40%);
}

.rows_btn {
    width: 100%;
    padding-top: 3.5em;
}

.btn_more {
    box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.3);
    font-size: 1.3em;
    padding: 0.6rem 3rem 0.65rem 3rem;
    margin: 0px auto;
    font-weight: 400;
    transition: 0.3s;
}

.btn_more:hover {
    box-shadow: 2px 3px 5px 0.5px rgba(0, 0, 0, 0.3);
    transform: translate(-1px, -1px);
}

/* ----------------------- about_us_section ------------------------- */
#about_us_section {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0rem 0rem 0rem 0rem;
    float: left;
}

#about_us_section .graphic {
    position: absolute;
    top: -15vw;
    width: calc(100% + 20px);
    left: -5px;
    z-index: -1;
}

#about .lf {
    width: 40%;
    margin-right: 2.5%;
    float: left;
    box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.3);
}

#about .rf {
    width: 50%;
    float: left;
}

#about .rf .topic {
    width: 100%;
    height: auto;
    padding-bottom: 0px;
    border-bottom: 2px solid #2e2f7a;
    color: #2e2f7a;
    /* color:#fff; */
    /* color: #666666; */
    font-family: "Kanit", sans-serif;
    font-size: 2.5em;
    float: left;
}

#about .rf .desc {
    /* color:#fff; */
    /* color: #666666; */
    color: #2e2f7a;
    width: 100%;
    height: auto;
    /* font-family: 'Noto Sans Thai', sans-serif; */
    font-family: "Kanit", sans-serif;

    font-size: 1.3em;
    line-height: 1.2em;
    letter-spacing: normal;
    margin-top: 12px;
    float: left;
}

@media only screen and (max-width: 1200px) {
    .box .content {
        max-width: 900px;
    }

    #msg .topic {
        font-size: 1.8em;
    }

    .mob-header {
        font-size: 2em;
    }

    .box_about {
        padding: 1.5em 1em;
    }

    .rows .lesson-item .desc {
        font-size: 1.1em;
    }

    .box_news .card .card-text {
        font-size: 1.05em;
    }

    .box_news .card .card-body .btn-readmore {
        font-size: 0.85em;
    }
}

@media only screen and (max-width: 992px) {
    .box .content {
        max-width: 800px;
        padding: 25px 50px;
    }

    #msg .topic {
        font-size: 1.6em;
    }

    .mob-header {
        font-size: 1.7em;
        margin-top: -12px;
    }

    .box_elearning .box_content_1 {
        margin: 10vh auto 5vh auto;
    }

    .rc-topic {
        font-size: 1.55em;
    }

    .rows .lesson-item .topic {
        font-size: 1.6em;
    }

    .rows .lesson-item {
        width: 47.5%;
    }

    .rows a .lesson-item {
        margin: 0px 3% 0px 0px;
    }

    .rows a:nth-child(even) .lesson-item {
        margin: 0px 0px 0px 0px;
    }

    .rows .lesson-item .desc {
        font-size: 0.8em;
        padding: 20px;
    }

    .rows .lesson-item .desc .btn_news_more {
        bottom: 5px;
    }

    .box .box_about {
        padding: 1em;
    }

    #about .rf {
        padding-left: 20px;
    }

    #about .rf .topic {
        font-size: 1.7em;
    }

    #about .rf .desc {
        font-size: 1em;
    }

    /*------ news ------*/
    .box_news .card .card-text {
        font-size: 1.05em;
    }

    .box_news .card .card-body .btn-readmore {
        font-size: 0.95em;
    }
}

@media only screen and (max-width: 767px) {
    .box .content {
        max-width: 500px;
        padding: 2% 5%;
    }

    .box #msg {
        padding: 25px 0px;
    }

    #msg .topic {
        font-size: 1.4em;
    }

    .rc-topic {
        font-size: 1.4em;
        padding: 0.3em 1em 0.2em 1em;
    }

    .rows .lesson-item .topic {
        font-size: 1.8em;
    }

    .rows .lesson-item {
        width: 100%;
    }

    .rows .lesson-item:first-child {
        width: 100%;
    }

    .rows .lesson-item:last-child {
        width: 100%;
    }

    .rows .lesson-item .desc {
        font-size: 0.9em;
        padding: 20px;
        height: 170px;
    }

    #about .lf {
        width: 100%;
        margin-right: 0;
        float: left;
    }

    #about .rf {
        width: 100%;
        margin-right: 0;
        padding-left: 0px;
        float: left;
        margin-top: 15px;
    }

    #about .rf .topic {
        font-size: 1.8em;
    }

    #about .rf .desc {
        font-size: 1.1em;
    }

    /*------ news ------*/

    .box_news .card .card-body {
        padding: 1.25em;
    }

    .box_news .card .card-text {
        font-size: 1.2em;
        /* height: 80px; */
    }

    .box_news .card .card-body .btn-readmore {
        font-size: 1.05em;
    }
}

@media only screen and (max-width: 576px) {
    .box .content {
        max-width: 450px;
        padding: 2% 3%;
    }

    .mob-header {
        font-size: 1.4em;
        margin-top: -10px;
    }

    #msg .topic {
        font-size: 1.25em;
    }

    .rc-topic {
        font-size: 1.25em;
    }

    .rows .lesson-item .topic {
        font-size: 1.6em;
    }

    .rows .lesson-item .desc {
        font-size: 0.85em;
        padding: 20px;
    }

    .rows .lesson-item:first-child {
        margin-top: -20px;
    }

    /*------ news ------*/

    .box_news .card .card-body {
        padding: 1.25em;
    }

    .box_news .card .card-text {
        font-size: 1.1em;
    }

    .box_news .card .card-body .btn-readmore {
        font-size: 0.95em;
    }
}

@media only screen and (max-width: 476px) {
    .box #msg {
        padding: 25px 10px;
    }

    .mob-header {
        font-size: 1.4em;
        margin-top: -10px;
        padding: 0.3em 1.5em 0.3em 1.5em;
    }
}

@media only screen and (max-width: 400px) {
    /* .box .content {
        padding: 25px 40px;
    } */
}

/* Google map section CSS */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

@media screen and (max-width: 1199.8px) {
    .map-responsive {
        overflow: hidden;
        padding-bottom: 70%;
        position: relative;
        height: 0;
    }
}

@media screen and (max-width: 991.8px) {
    .map-responsive {
        overflow: hidden;
        padding-bottom: 110%;
        position: relative;
        height: 0;
    }
}

/* Contact section style CSS */
@media screen and (max-width: 767.8px) {
    .map-responsive {
        overflow: hidden;
        padding-bottom: 56.25%;
        position: relative;
        height: 0;
    }
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

.footer-container {
    font-size: 1em;
    font-weight: 400;
}
.text-sub-footer {
    color: #FFF !important;
    font-weight: 200;
}

/* Earth edit */
.bg-oecd-dark { background-color: #1a3c5a; }
        .bg-oecd-blue { background-color: #2c6390; }
        .text-oecd-green { color: #8ec641; }
        .btn-oecd-outline { border: 1px solid #ccc; border-radius: 25px; padding: 8px 25px; color: #333; text-decoration: none; }
        .btn-oecd-green { background-color: #8ec641; border-radius: 25px; padding: 8px 25px; color: white; text-decoration: none; border: none; }
        .nav-pills .nav-link.active { background-color: white; color: #1a3c5a; border-radius: 20px; }
        .nav-pills .nav-link { color: white; }
        .course-card { border-radius: 15px; border: 1px solid #eee; transition: transform 0.3s; }
        .course-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
        .course-card.active-card { border-color: #8ec641; }


/* พื้นหลังเนื้อหาส่วนล่าง */
        .bg-guide-theme { 
            background-color: #fdf6e7; 
        }

        /* ตั้งค่าแบนเนอร์ให้มีขอบมนและจัดสัดส่วน */
        .banner-guide {
            border-radius: 20px; 
            object-fit: cover;
            width: 100%;
            height: 320px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* เพิ่มเงาบางๆ ให้รูปดูลอยขึ้นจากพื้นขาว */
        }
        .text-guide-title { color: #1a3c5a; font-weight: 700; font-size: 2rem; }
        
        /* ปุ่มดาวน์โหลด */
        .btn-download { background-color: #8ec641; border-radius: 30px; padding: 10px 45px; color: white; text-decoration: none; border: none; font-weight: 500; font-size: 1.1rem; }
        .btn-download:hover { background-color: #7ab332; color: white; }
        
        /* กล่องจำลองหนังสือ */
        .book-main-preview { background-color: #ffffec; border-radius: 4px; min-height: 450px; width: 100%; max-width: 380px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
        .book-thumbnail { background-color: #f2e3cd; border-radius: 4px; height: 110px; width: 80px; cursor: pointer; transition: transform 0.2s; }
        .book-thumbnail:hover { transform: translateY(-3px); }
        
        /* ปุ่มลูกศรซ้าย-ขวา */
        .nav-arrow { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; border: none; transition: 0.2s; }
        .nav-arrow-left { background-color: #d1cbc2; }
        .nav-arrow-right { background-color: #9ad4ca; }
        .nav-arrow:hover { filter: brightness(0.9); }
