@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');

body {
    color: #383749;
    font-size: 14px;
    line-height: 1.8;
    font-family: 'Roboto', sans-serif;
}

img {
    vertical-align: baseline;
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/
a {
    color: #383749;
}

a:visited {
    color: #757686;
}

a:hover, a:focus, a:active {
    color: #383749;
}

a:focus {
    outline: thin dotted;
}

a:hover, a:active {
    outline: 0;
    list-style: none;
}

/*--------------------------------------------------------------
# Helper Utilities
--------------------------------------------------------------*/
.flex {
    display: flex !important;
}

/*--------------------------------------------------------------
# Site Header
--------------------------------------------------------------*/
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .site-header {
        background: rgba(255,255,255,.1);
    }
}

.top-header-bar {
    background: #fff;
}

/*
# Header Bar Text
--------------------------------*/
.header-bar-text,
.header-bar-email {
    padding: 11px 26px;
}

.header-bar-text .fa,
.header-bar-email .fa {
    margin-right: 12px;
    font-size: 20px;
    color: #19c880;
}

.header-bar-text p {
    margin: 0;
}

/*
# Header Bar Email
--------------------------------*/
.header-bar-email {
    padding-left: 16px;
    border-right: 1px solid #ebebeb;
}

.header-bar-email a {
    color: #383749;
    text-decoration: none;
}

/*
# Header Bar search
--------------------------------*/
.header-bar-search input[type="search"] {
    width: 280px;
    padding: 12px 26px;
    border: 0;
    line-height: 1;
    background: #f3f3f3;
    color: #383749;
}

.header-bar-search input[type="search"]::placeholder {
    color: #757686;
}

.header-bar-search input[type="search"]:focus {
    outline: none;
}

.header-bar-search button[type="submit"] {
    width: 50px;
    height: 50px;
    border: 0;
    color: #fff;
    background: #19c880;
    cursor: pointer;
    outline: none;
}

@media screen and (max-width: 1200px) and (min-width: 992px) {
    .header-bar-search input[type="search"] {
        width: 240px;
    }
}

@media screen and (max-width: 576px) {
    .header-bar-search,
    .header-bar-menu {
        width: 100%;
    }

    .header-bar-search input[type="search"] {
        width: calc(100% - 50px);
    }
}

/*
# Header Bar Menu
--------------------------------*/
.header-bar-menu ul {
    padding: 0 16px 0 32px;
    margin: 0;
    list-style: none;
}

.header-bar-menu li a {
    position: relative;
    display: block;
    padding: 0 6px;
    color: #383749;
}

.header-bar-menu li a::after {
    content: '/';
    position: absolute;
    top: 50%;
    right: -3px;
    width: 6px;
    margin-top: -12px;
}

.header-bar-menu li:nth-last-of-type(1) a::after {
    display: none;
}

/*
# Nav Bar
--------------------------------*/
.nav-bar {
    padding: 10px 0;
    background: rgb(74 74 74);

}

/*
# Site Branding
--------------------------------*/
.site-title {
    padding: 6px 0;
    margin: 0;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    text-align: left !important;
}

.site-title a {
    color: #fff;
    text-decoration: none;
    font-size: 30px;
}

.site-title a span {
    color: #19c880;
}

@media screen and (min-width: 576px){
    /*.site-title {*/
        /*font-size: 112px;*/
    /*}*/
}

/*
  Hamburger Menu
----------------------------------------*/
.hamburger-menu {
    position: relative;
    width: 24px;
    height: 22px;
    margin: 0 auto;
    transition: .5s ease-in-out;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    opacity: 1;
    left: 0;
    transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
    top: 2px;
}

.hamburger-menu span:nth-child(2),
.hamburger-menu span:nth-child(3) {
    top: 10px;
}

.hamburger-menu span:nth-child(4) {
    top: 18px;
}

.hamburger-menu.open span:nth-child(1) {
    top: 18px;
    width: 0;
    left: 50%;
}

.hamburger-menu.open span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger-menu.open span:nth-child(4) {
    top: 18px;
    width: 0;
    left: 50%;
}

/*
# Main Menu
--------------------------------*/

/*
# Menu SHopping Cart
--------------------------------*/
.header-bar-cart {
    margin-left: 40px;
}

.header-bar-cart a {
    width: 48px;
    height: 100%;
}

.header-bar-cart a {
    color: #fff;
    text-decoration: none;
}
/* Footer */

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-content {
    background: url("../images/header1.jpg") no-repeat center;
    background-size: cover;
}

.hero-content-overlay {
    background: rgba(21,20,33,.5);
}

.hero-content-wrap {
    height: 510px;
    padding-top: 130px;
}

.hero-content-wrap h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #19c880;
    letter-spacing: 0.1em;
}

.hero-content-wrap h1 {
    margin-top: 12px;
    font-size: 45px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
}

@media screen and (max-width: 576px){
    .hero-content-wrap h1 {
        font-size: 32px;
    }
}

.hero-content-wrap p {
    margin-top: 8px;
    color: #fff;
}

.hero-content-wrap .read-more {
    margin-top: 40px;
}

.hero-content-wrap .read-more a {
    display: block;
    padding: 12px 40px;
    border: 2px solid #19c880;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.hero-content-wrap .read-more a:hover {
    background: #19c880;
}

/*--------------------------------------------------------------
# Homepage
--------------------------------------------------------------*/


/*
# Icon Box
/* กล่องรวมทั้งหมด */
.icon-box-wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
  padding: 40px 0;
}

/* แต่ละกล่อง */
.icon-box {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 20px;
  border-right: 1px solid #ebebeb;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon-box:last-of-type {
  border-right: none;
}

/* ไอคอนด้านบน */
.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

/* รูปแบบ avatar */
.user-avatar2 {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  background: transparent;
}

.user-avatar2 img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #f1f1f1;
  box-shadow: 0 2px 12px rgba(24, 74, 123, 0.08);
}

/* หัวข้อ */
.entry-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #383749;
}

/* เนื้อหา */
.entry-content p {
  font-size: 12px;
  line-height: 1.8;
  max-width: 200px;
  margin: 0 auto 15px auto;
  color: #757686;
  text-align: justify;
  word-break: break-word;
}



.read-more a .fa {
  position: absolute;
  top: 2px;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s;
}

.icon-box:hover .read-more a .fa {
  left: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .icon-box-wrapper {
    transform: scale(0.85);
    transform-origin: top center;
    overflow-x: auto;
  }

  .user-avatar2 img {
    width: 80px;
    height: 80px;
  }


  .read-more a {
    font-size: 11px;
  }
}


/* --------------------------------*/
.courses-wrap .heading .entry-title {
    margin: 0;
    font-size: 42px;
    font-weight: 400;
}

.courses-wrap .heading .courses-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.courses-wrap .heading .courses-menu li {
    padding-left: 40px;
}

.courses-wrap .heading .courses-menu li:nth-of-type(1) {
    padding-left: 0;
}

.courses-wrap .heading .courses-menu li a {
    border-bottom: 1px solid transparent;
    font-size: 18px;
    line-height: 1;
    color: #383749;
    text-decoration: none;
}

.courses-wrap .heading .courses-menu li a:hover,
.courses-wrap .heading .courses-menu li.active a {
    color: #19c880;
    border-color: #19c880;
}

.mx-m-25 {
    margin-right: -25px !important;
    margin-left: -25px !important;
}

.px-25 {
    padding-right: 25px !important;
    padding-left: 25px !important;
}

.course-content {
    margin-top: 50px;
    transition: all .35s;
    border: 0.7px solid #ebebeb;
}

.course-content:hover {
    box-shadow: 0 24px 38px rgba(81,107,117,.21);
}

.course-thumbnail {
    width: 100%;
    margin: 0;
    object-fit: cover;
}

.course-thumbnail img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.course-content-wrap {
    padding: 26px 20px 20px ;
    border-top: 0;
    background: #ffffff;
}

.course-content .entry-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400;
}

.course-content .entry-title a {
    color: #626262;
}

.course-content .entry-meta {
    margin-top: 4px;
}


.course-thumbnail img {
    filter: none;
}
.course-date {
    position: relative;
    padding-left: 0px;
    margin-left: 0px;
    color: #525252;
    font-size: 14px;
}

.course-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    text-align: center;
}

.course-content .entry-footer {
    margin-top: 14px;
}

.course-cost {
    font-size: 24px;
    font-weight: 400;
    color: #19c880;

}

.course-cost .price-drop {
    margin-left: 10px;
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    color: #c0c1cd;
    text-decoration: line-through
}

.course-cost .free-cost {
    font-size: 24px;
    font-weight: 700;
    color: #f3a90b;
}

.course-ratings {
    font-size: 13px;
    color: #c0c1cd;
}

.course-ratings span {
    margin-left: 1px;
}

.course-ratings .checked {
    color: #f3a90b;
}

.course-ratings .course-ratings-count {
    margin-left: 5px;
}

a.btn {
    padding: 16px 48px;
    border: 2px solid #34d986;
    border-radius: 0;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #383749;
    text-decoration: none;
}

a.btn:hover {
    color: #fff;
    background: #34d986;
}
/* Override for courses-wrap responsive */
.courses-wrap .heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.courses-wrap .heading .entry-title {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 400;
}
.courses-wrap .heading .courses-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.courses-wrap .heading .courses-menu li {
    padding: 0;
}
.courses-wrap .heading .courses-menu li a {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    line-height: 1;
    color: #383749;
    text-decoration: none;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .courses-wrap .heading {
        flex-direction: column;
        align-items: flex-start;
    }
}

/*
# Featured Courses: Horizontal Column
--------------------------------*/
.featured-courses.horizontal-column,
.featured-courses.vertical-column {
    padding: 100px 0;
    background: #fff;
}

.featured-courses.horizontal-column .course-thumbnail {
    width: calc(50% - 30px);
    background: #fff;
}

.featured-courses.horizontal-column .course-thumbnail img {
    height: 100%;
}

.featured-courses.horizontal-column .course-content-wrap {
    width: calc(50% + 30px);
    padding-left: 30px;
    border: 0.7px solid #ebebeb;
    border-left: 0;
}

.featured-courses.horizontal-column .course-ratings {
    margin-bottom: 8px;
}



@media screen and (max-width: 576px){
    .featured-courses.horizontal-column .course-thumbnail {
        width: 100%;
    }

    .featured-courses.horizontal-column .course-content-wrap {
        width: 100%;
        padding: 30px;
        border: 1px solid #ebebeb;
        border-top: 0;
    }
}


/*
# Featured Courses: Vertical Column
--------------------------------*/
.featured-courses.vertical-column {
    background: #f7f7f7;
}

.featured-courses.vertical-column a.btn {
    margin-top: 60px;
}

/*
# About Section
--------------------------------*/
.about-section {
    padding: 100px 0;
    background: #f7f7f7;
}

.about-section .heading {
    padding-right: 80px;
}

.about-section .heading .entry-title {
    margin: 0;
    font-size: 42px;
    font-weight: 400;
}

.about-section .heading  p {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.8;
    color: #757686;
}

.ezuca-stats {
    padding-right: 80px;
}

.ezuca-stats .stats-count {
    width: 50%;
    margin-top: 13px;
    font-size: 30px;
    line-height: 1.2;
    color: #19c880;
}


.ezuca-stats .stats-count span {
    font-size: 30px;
}

.ezuca-stats .stats-count p {
    font-size: 14px;
    color: #757686;
    text-transform: uppercase;
}

/*
# About Section: Video
--------------------------------*/
.ezuca-video {
    width: 100%;
}

.ezuca-video .video-play-btn {
    top: 50%;
    left: -40px;
    z-index: 99;
    width: 80px;
    height: 80px;
    margin-top: -40px;
    cursor: pointer;
}

.material-symbols-outlined{font-family:'Material Symbols Outlined';font-variation-settings:'FILL' 0,'wght' 100,'GRAD' -25,'opsz' 48;font-size:70px;margin:10px}
    .bg-light {
                    background-color: #f2f2f2!important;
     }


.ezuca-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 992px) {
    .about-section .heading {
        padding-right: 0;
    }

    .ezuca-stats {
        padding-right: 0;
    }

    .ezuca-video .video-play-btn {
        left: 50%;
        margin-left: -40px;
    }
}
@media (max-width: 1264px), (max-height: 600px) {
    body {
        overflow-x: hidden !important; /* กันขยับไปข้างขวา */
        width: 100vw;
        min-width: 0;
    }
    .testimonial-section,
    .about-section,
    .featured-courses,
    .container, .row {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .testimonial-slider .swiper-slide,
    .testimonial-slider .row {
        flex-direction: column !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .testimonial-slider .user-avatar {
        margin-bottom: 18px !important;
        margin-top: 0 !important;
    }
    .testimonial-slider .content-wrap {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/*
# About Section: Testimonial
--------------------------------*/
                .testimonial-section {
                    padding: 100px 0;
                }

                .testimonial-slider .swiper-slide .user-avatar {
                    opacity: .3;
                    margin-bottom: 0;
                    margin-left: auto;
                    margin-right: auto;
                }

                .testimonial-slider .swiper-slide.swiper-slide-active .user-avatar {
                    opacity: 1;
                }

                .testimonial-slider .swiper-slide:nth-of-type(2) .user-avatar,
                .testimonial-slider .swiper-slide:nth-of-type(5) .user-avatar {
                    margin-left: calc(50% - 150px);
                }

                .testimonial-slider .swiper-slide:nth-of-type(3) .user-avatar {
                    margin-left: calc(50% - 40px);
                }

                .testimonial-slider .swiper-slide:nth-of-type(1) .user-avatar,
                .testimonial-slider .swiper-slide:nth-of-type(4) .user-avatar {
                    margin-left: calc(50% + 70px);
                }

                .testimonial-slider .swiper-slide-next {
                    opacity: 1 !important;
                }

                .testimonial-slider .user-avatar {
                    width: 100px;
                    height: 100px;
                    border-radius: 50%;
                    overflow: hidden;
                    box-shadow: 0 0 15px rgba(167, 167, 167, 0.5);
                }

                .testimonial-slider .user-avatar img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

                .testimonial-slider .content-wrap {
                    background: #fff;
                    padding: 20px;
                    box-sizing: border-box;
                    min-height: 100px;
                }

                .testimonial-slider .entry-content p {
                    font-size: calc(0.9rem);
                    color: #383749;
                    min-height: 50px;
                    line-height: 1.5;
                }

                .entry-content p:empty::after {
                    content: "\00a0";
                    display: block;
                }

                .entry-footer {
                    margin-top: 10px; 
                    position: relative;
                }

                .testimonial-slider .testimonial-user {
                    display: inline-block;
                    position: relative;
                    font-size: calc(0.9rem + 0.2vw);
                    font-weight: 300;
                    text-transform: uppercase;
                    color: #19c880;
                }

                .testimonial-slider .testimonial-user::after {
                    content: '';
                    position: absolute;
                    top: -12px;
                    right: -100px;
                    width: 38px;
                    height: 32px;
                    background: url("//images/quote-icon.png") no-repeat center;
                    background-size: contain;
                    z-index: 1;
                }

                .testimonial-slider .testimonial-user span {
                    font-size: calc(0.8rem + 0.1vw);
                    color: #c0c1cd;
                    text-transform: initial;
                }

                .swiper-slide {
                    min-height: 200px;
                }

                .testimonial-slider .swiper-pagination-bullet {
                    width: 12px;
                    height: 12px;
                    margin: 0 6px;
                    border: 2px solid #c6adb8;
                    background: transparent;
                    opacity: 1;
                }

                .testimonial-slider .swiper-pagination-bullet.swiper-pagination-bullet-active {
                    background: #19c880;
                    border: transparent;
                }

                @media screen and (max-width: 992px) {
                    .testimonial-slider .entry-content p {
                        font-size: calc(1rem + 0.3vw);
                    }

                    .testimonial-slider .testimonial-user {
                        font-size: calc(0.9rem + 0.1vw);
                    }

                    .testimonial-slider .testimonial-user span {
                        font-size: calc(0.75rem + 0.1vw);
                    }
                }

                @media screen and (max-width: 576px) {
                    .testimonial-section {
                        padding: 60px 10px;
                    }

                    .testimonial-slider .entry-content p {
                        font-size: calc(0.9rem + 0.2vw);
                    }

                    .testimonial-slider .user-avatar {
                        width: 80px;
                        height: 80px;
                    }

                    .testimonial-slider .testimonial-user {
                        font-size: calc(0.8rem );
                    }
                }


                /* #*--------------------------------*/
               /* ระยะขอบของ Section */
.latest-news-events {
    padding: 100px 0;
}

/* หัวข้อหลัก */
.latest-news-events .heading .entry-title {
    margin: 0 0 50px;
    font-size: 30px;
    font-weight: 400;
}

/* ภาพหลักใน featured event */
.latest-news-events .featured-event-content .event-thumbnail img {
    display: block;
    width: 100%;
    height: auto;          /* ปรับเป็น auto เพื่อป้องกันการยืดเพี้ยน */
    object-fit: cover;
}

/* กล่องวัน/เดือนทับบนภาพหลัก */
.latest-news-events .featured-event-content .posted-date {
    bottom: 0;
    left: 0;
    padding: 10px 16px;
    background: #f3a90b;
    color: #fff;
    line-height: 1;
    text-align: center;
}

.latest-news-events .featured-event-content .posted-date .day {
    font-size: 48px;
    font-weight: bold;
}

.latest-news-events .featured-event-content .posted-date .month {
    margin-top: 4px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ข้อมูลใน featured event */
.latest-news-events .featured-event-content {
    padding-right: 20px;
}

.latest-news-events .featured-event-content .entry-title {
    width: 100%;
    margin-top: 32px;
    font-size: 0.9rem;
    font-weight: 400;
    color: #5e5e5e;
    line-height: 1.5;
}

/* ไอคอนในส่วนเวลาและสถานที่ */
.latest-news-events .featured-event-content .event-location .fa,
.latest-news-events .featured-event-content .event-duration .fa {
    margin-right: 6px;
    color: #34d986;
}

.latest-news-events .featured-event-content .event-location,
.latest-news-events .featured-event-content .event-duration {
    margin-top: 8px;
    font-size: 14px;
    text-transform: uppercase;
    color: #c0c1cd;
}

.latest-news-events .featured-event-content .event-location {
    margin-right: 24px;
}

/* กำหนดระยะห่างแต่ละ event item */
.event-content {
    margin-bottom: 30px;
}

/* ปรับเลย์เอาต์ของ event-content ให้คงที่ไม่ wrap */
.latest-news-events .event-content {
    display: flex;
    flex-wrap: nowrap;                /* ไม่ให้ขึ้นบรรทัดใหม่ */
    align-items: flex-start;
    margin-bottom: 30px;
}

/* กำหนดขนาดของกล่องภาพ Thumbnail ให้แน่นอน */
.latest-news-events .event-content .event-thumbnail {
    flex: 0 0 230px;                  /* ความกว้างคงที่ 230px */
    max-width: 230px;
    margin-right: 16px;
    overflow: hidden;
}

/* กำหนดขนาดรูปภาพย่อย */
.latest-news-events .event-content .thumbnail-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ส่วนเนื้อหาข้อมูลที่เหลือเติมเต็มช่องว่างที่เหลือ */
.latest-news-events .event-content .event-content-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

/* ตกแต่งส่วนวันที่และไอคอน */
.latest-news-events .event-content .posted-date {
    font-size: 14px;
    text-transform: uppercase;
    color: #c0c1cd;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.latest-news-events .event-content .posted-date .fa {
    margin-right: 6px;
    color: #34d986;
}

/* ชื่อหัวข้อข่าวย่อย */
.latest-news-events .event-content .entry-title {
    margin: 8px 0 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 400;
}

.latest-news-events .event-content .entry-title a {
    color: #383749;
    text-decoration: none;
}

/* เนื้อหาข่าวย่อย */
.latest-news-events .event-content .entry-content {
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #757686;
}

.latest-news-events .event-content .entry-content p {
    margin: 0;
}

/* ส่วนคอมเมนต์ */
.latest-news-events .event-content .post-comments {
    position: relative;
    padding-left: 12px;
    margin-top: 14px;
    margin-left: 5px;
    color: #757686;
}

.latest-news-events .event-content .post-comments a {
    text-decoration: none;
    color: #757686;
}

/* ปรับเลย์เอาต์บนหน้าจอเล็ก: ซ้อนแนวตั้งแทนแนวนอน */
@media screen and (max-width: 576px) {
    .latest-news-events .event-content {
        flex-direction: column;
    }
    .latest-news-events .event-content .event-thumbnail {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        margin-right: 0;
        margin-bottom: 24px;
    }
    .latest-news-events .event-content .event-content-wrap {
        flex: 1 1 100%;
    }
    .latest-news-events .event-content .entry-title {
        font-size: 18px;
    }
}

/*
# Gallery
--------------------------------*/
.home-gallery {
    overflow: hidden;
}
/* กำหนดพื้นฐานให้กับ section gallery */
.home-gallery {
  width: 100%;
  padding: 1rem 0;
}

.gallery-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 คอลัมน์เท่ากัน */
  grid-auto-rows: 200px;                 /* ความสูงแถวพื้นฐาน */
  gap: 1rem;                             /* ช่องว่างระหว่างภาพ */
}

/* ช่องภาพแต่ละแบบ */
.gallery-grid {
  position: relative;
  overflow: hidden;                      /* ป้องกันภาพล้น */
}

.gallery-grid a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;                     /* ครอบภาพให้เต็มช่องโดยไม่บิดเบี้ยว */
  display: block;
}

/* กำหนดการกินพื้นที่ในกริด */
.gallery-grid1x1 {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-grid2x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-grid2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

/* ปรับสำหรับหน้าจอกลาง */
@media (max-width: 992px) {
  .gallery-wrap {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
}

/* ปรับสำหรับหน้าจอขนาดเล็ก */
@media (max-width: 576px) {
  .gallery-wrap {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
}

.gallery-wrap {
    margin-right: -5px;
    margin-left: -5px;
}

.gallery-grid {
    margin: 5px;
    overflow: hidden;
}

.gallery-grid img {
    display: block;
    max-width: 100%
}

.gallery-grid1x1 {
    width: calc(100% / 8 - 10px);
}

.gallery-grid2x1,
.gallery-grid2x2 {
    width: calc(100% / 4 - 10px);
    margin-bottom: 6px;
}

.gallery-grid2x2 {
    width: calc(100% / 4 - 10px);
    margin-bottom: 7px;
}

@media screen and (max-width: 1200px) {
    .gallery-grid1x1 {
        width: calc(100% / 4 - 10px);
    }

    .gallery-grid2x1,
    .gallery-grid2x2 {
        width: calc(100% / 2 - 10px);
    }

    .gallery-grid2x2 {
        width: calc(100% / 2 - 10px);
    }
}

@media screen and (max-width: 576px) {
    .gallery-grid1x1 {
        width: calc(100% / 2 - 10px);
    }

    .gallery-grid2x1,
    .gallery-grid2x2 {
        width: calc(100% / 1- 10px);
        margin-bottom: 6px;
    }

    .gallery-grid2x2 {
        width: calc(100% / 1 - 10px);
        margin-bottom: 7px;
    }
}

/*
# Clients Logos
--------------------------------*/
.clients-logo {
margin-top: 100px;
background: #f7f7f7;
}

.clients-logo .row {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: nowrap;
overflow: hidden;
}

.clients-logo .logo-wrap {
flex: 1 1 0;
text-align: center;
}

.clients-logo .logo-wrap img {
width: 70%;
max-width: 80px;
height: auto;
display: inline-block;
object-fit: contain;
}

@media (max-width: 768px) {
.clients-logo .logo-wrap img {
width: 60%;
max-width: 60px;
}
}
/*--------------------------------------------------------------
# Courses Page
--------------------------------------------------------------*/
.page-header {
    background-size: cover !important;
}

.courses-page .page-header {
    background: url("images/header.png") no-repeat center;
}

.page-header-overlay {
    background: rgba(21,20,33,.5);
    height: 390px;
    padding-top: 236px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 500;
    color: #fff;
    text-align: center;
}

/*--------------------------------------------------------------
# Breadcrumb
--------------------------------------------------------------*/
.breadcrumbs {
    margin: 30px 0;
}

.breadcrumbs ul {
    list-style: none;
}

.breadcrumbs li {
    position: relative;
    padding-right: 16px;
    margin-right: 10px;
    color: #c0c1cd;
}

.breadcrumbs li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    font-family: 'FontAwesome';
}

.breadcrumbs li:nth-last-of-type(1)::after {
    display: none;
}

.breadcrumbs li a {
    color: #383749;
    text-decoration: none;
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/
.pagination {
    margin-top: 50px;
}

.pagination ul {
    list-style: none;
}

.pagination ul li {
    margin-right: 10px;
}

.pagination ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 38px;
    border: 1px solid #ebebeb;
    color: #757686;
    text-decoration: none;
}

.pagination ul li a .fa {
    color: #383749;
}

.pagination ul li:hover a,
.pagination ul li.active a {
    border-color: transparent;
    background: #19c880;
}

.pagination ul li:hover a,
.pagination ul li.active a,
.pagination ul li:hover a .fa {
    color: #fff;
}

.pagination-results {
    color: #383749;
}

.pagination-results select {
    padding: 6px 10px;
    margin-left: 32px;
    border: 1px solid #ebebeb;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
    padding: 25px;
    margin-top: 50px;
    margin-left: 25px;
    border: 1px solid #ebebeb;
}

@media screen and (max-width: 992px){
    .sidebar {
        margin-left: 0;
    }
}

/*
# Search
--------------------------------*/
.search-widget input[type="search"] {
    width: calc(100% - 48px);
    height: 48px;
    padding: 10px 20px;
    border: 1px solid #ebebeb;
    font-size: 14px;
    background: #f7f7f7;
    color: #383749;
    outline: none;
}

.search-widget input[type="search"]::placeholder {
    color: #c0c1cd;
}

.search-widget button[type="submit"] {
    width: 48px;
    height: 48px;
    border: 0;
    background: #19c880;
    color: #fff;
    cursor: pointer;
    outline: none;
}

/*
# Categories
--------------------------------*/
.cat-links {
    margin-top: 50px;
}

.cat-links h2 {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 400;
}

.cat-links ul {
    list-style: none;
}

.cat-links ul li {
    position: relative;
    padding: 8px 0 8px 24px;
}

.cat-links ul li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 8px;
    height: 100%;
    font-size: 14px;
    font-family: 'FontAwesome';
    color: #c0c1cd;;
}

.cat-links ul li:hover::before {
    color: #19c880;
}

.cat-links ul li a {
    text-decoration: none;
}

/*
# Latest Courses
--------------------------------*/
.latest-courses {
    margin-top: 50px;
}

.latest-courses h2 {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 400;
}

.latest-courses li {
    display: block;
    margin-bottom: 20px;
}

.latest-courses li img {
    width: 84px;
}

.latest-courses .content-wrap {
    width: calc(100% - 108px);
}

.latest-courses .content-wrap h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.latest-courses .content-wrap h3 a {
    color: #383749;
    text-decoration: none;
}

.latest-courses .content-wrap .course-cost {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 500;
}

.latest-courses .content-wrap .course-cost.free-cost {
    color: #f3a90b;
}

/*
# Ads
--------------------------------*/
.ads {
    margin-top: 50px;
}

.ads img {
    max-width: 100%;
}

/*
# Latest Courses
--------------------------------*/
.popular-tags {
    margin-top: 50px;
}

.popular-tags h2 {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 400;
}

.popular-tags ul {
    list-style: none;
}

.popular-tags li a {
    display: block;
    padding: 8px 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #ebebeb;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    color: #595959;
    text-decoration: none;
}

.popular-tags li a:hover {
    color: #383749;
}

/*--------------------------------------------------------------
# Single Courses Page
--------------------------------------------------------------*/
.single-courses-page .page-header {
    background: url("images/single-courses-bg.jpg") no-repeat center;
}

.single-courses-page .page-header-overlay {
    height: 530px;
}

.single-courses-page .page-header-overlay h1 {
    text-transform: uppercase;
}

.single-courses-page .featured-image {
    position: relative;
    margin-top: -80px;
    box-shadow: 0 24px 38px rgba(81,107,117,.21);
}

.single-courses-page .featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-courses-page .featured-image .course-cost {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    padding: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #f3a90b;
    background: #fff;
    text-align: center;
}

@media screen and (max-width: 992px){
    .single-courses-page .featured-image {
        margin-top: 80px;
    }
}

/*
# Course Info
--------------------------------*/
.course-info {
    margin-top: 40px;
}

.course-info label {
    color: #c0c1cd;
}

.course-info .course-author,
.course-info .course-cats,
.course-info .course-students {
    padding-right: 20px;
    margin-right: 20px;
    border-right: 1px solid #ebebeb;
}

.course-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
}

.course-author a {
    color: #19c880;
}

.course-students {
    border: 0;
}

.single-course-cont-section {
    margin-top: 24px;
    color: #757686;
}

.single-course-cont-section h2 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 400;
    color: #383749;
}

ul.green-ticked {
    list-style: none;
}

ul.green-ticked li {
    position: relative;
    padding-left: 24px;
    margin-top: 8px;
}

ul.green-ticked li::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    width: 20px;
    height: 100%;
    font-size: 14px;
    font-family: 'FontAwesome';
    color: #19c880;
}

ul.black-doted {
    list-style: none;
}

.single-course-cont-section ul.black-doted li {
    position: relative;
    padding-left: 24px;
    margin-top: 8px;
}

.single-course-cont-section ul.black-doted li::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    width: 16px;
    height: 100%;
    font-size: 9px;
    font-family: 'FontAwesome';
}

.single-course-accordion-cont h2 {
    width: calc(100% - 280px);
    /*min-width: 320px;*/
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 400;
    color: #383749;
}

.single-course-accordion-cont .number-of-lectures,
.single-course-accordion-cont .lectures-preview,
.single-course-accordion-cont .total-lectures-time {
    font-size: 18px;
    color: #19c880;
}

.single-course-accordion-cont .number-of-lectures,
.single-course-accordion-cont .lectures-preview {
    width: 140px;
}

.single-course-accordion-cont .total-lectures-time,
.single-course-accordion-cont .lectures-time {
    width: 120px;
    text-align: right;
}

.single-course-accordion-cont .accordion-wrap .entry-title {
    padding: 10px 16px 9px;
    margin: 10px 0 0;
    border: 1px solid #ebebeb;
}

.single-course-accordion-cont .accordion-wrap .entry-content {
    padding: 10px 16px;
    border: 1px solid #ebebeb;
    border-top: 0;
}

.single-course-accordion-cont .arrow-d,
.single-course-accordion-cont .arrow-r {
    position: relative;
    padding-right: 10px;
    color: #19c880;
}

.single-course-accordion-cont .entry-title.active .fa-plus {
    display: none;
}

.single-course-accordion-cont .entry-title .fa-minus {
    display: none;
}

.single-course-accordion-cont .entry-title.active .fa-minus {
    display: block;
}

.single-course-accordion-cont h3 {
    font-size: 16px;
    font-weight: 400;
    color: #757686;
}

.single-course-accordion-cont .lecture-group-title {
    width: calc(100% - 300px);
}

.single-course-accordion-cont ul {
    list-style: none;
    color: #757686;
}

.single-course-accordion-cont ul li {
    margin-top: 8px;
}

.single-course-accordion-cont .lecture-title {
    width: calc(100% - 280px);
    color: #757686;
}

.single-course-accordion-cont .lectures-preview,
.single-course-accordion-cont .lectures-time {
    color: #757686;
}

.instructors-info {
    margin-top: 50px;
}

.instructors-info .entry-heading h2 {
    padding-bottom: 16px;
    margin-bottom: 50px;
    border-bottom: 1px solid #ebebeb;
    font-size: 24px;
    font-weight: 400;
    color: #383749;
}

.instructors-stats {
    width: 200px;
    margin-right: 30px;
}

.instructors-stats img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid #ebebeb;
}

.instructors-stats ul {
    list-style: none;
}

.instructors-stats li {
    margin-top: 10px;
}

.instructors-stats .fa {
    margin-right: 2px;
    font-size: 14px;
    font-family: 'FontAwesome';
    color: #19c880;
}

.instructors-details {
    width: calc(100% - 230px);
}

.instructors-details .ratings {
    color: #c0c1cd;
}

.instructors-details .ratings .fa-star-o {
    color: #c0c1cd;
}

.instructors-details .ratings span {
    margin-left: 4px;
}

.instructors-details h2 {
    font-size: 30px;
    font-weight: 400;
    color: #383749;
}

.instructors-details .course-teacher {
    color: #c0c1cd;
}

.instructors-details .course-teacher a {
    color: #19c880;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: navajowhite;
}

.instructors-details .entry-content {
    color: #757686;
    line-height: 1.8;
}

.related-courses {
    margin-top: 50px;
}

.related-courses .entry-heading {
    padding-bottom: 16px;
    border-bottom: 1px solid #ebebeb;
}

.related-courses .entry-heading h2 {
    font-size: 24px;
    font-weight: 400;
    color: #383749;
}

.related-courses .entry-heading a {
    color: #19c880;
    text-decoration: underline;
}

@media screen and (max-width: 992px){
    .single-course-accordion-cont .lecture-group-title {
        width: calc(100% - 24px);
        margin-bottom: 12px;
    }

    .single-course-accordion-cont h2,
    .single-course-accordion-cont .lecture-title {
        width: 100%;
    }

    .single-course-accordion-cont ul li {
        margin-top: 24px;
    }

    .single-course-accordion-cont .total-lectures-time,
    .single-course-accordion-cont .lectures-time,
    .single-course-accordion-cont .number-of-lectures,
    .single-course-accordion-cont .lectures-preview {
        width: auto;
        text-align: left;
    }

    .instructors-details {
        margin-top: 50px;
        width: 100%;
    }
}

/*--------------------------------------------------------------
# Ratings
--------------------------------------------------------------*/
.ratings {
    font-size: 13px;
    color: #fff;
}

.ratings .fa {
    margin-right: 2px;
}

.ratings .fa-star {
    margin-right: 2px;
    color: #f3a90b;
}

.ratings .fa-star-o {
    color: #fff;
}

/*--------------------------------------------------------------
# Post Share
--------------------------------------------------------------*/
.post-share {
    margin-top: 130px;
}

.post-share h3 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: #757686;
    text-align: center;
}

.post-share ul {
    list-style: none;
}

.post-share ul li {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.post-share .fa {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
}
 .post-share .fa-facebook {
    background: #4b6cd0;
}

.post-share .fa-google-plus {
    background: #f03b3b;
}

.post-share .fa-twitter {
    background: #49a7f3;
}

.post-share .fa-line {
    background: url('/images/line.png') no-repeat center center;
    background-size: contain;
    width: 32px;
    height: 32px;
    display: inline-block;
    content: ''; /* ล้างเนื้อหาไอคอนเดิม */
}
.post-share .fa-thumb-tack {
    background: #f0c605;
}

@media screen and (max-width: 992px){
    .post-share {
        margin-top: 50px;
    }

    .post-share h3 {
        text-align: left;
    }

    .post-share ul li {
        margin: 0 5px;
    }
}

/*--------------------------------------------------------------
# About Page
--------------------------------------------------------------*/
.about-page .page-header {
    background: url(images/courses-header.jpg) no-repeat center;
}

.about-heading,
.team-heading {
    margin-top: 80px;
    text-align: center;
}

.about-heading h2,
.team-heading h2 {
    font-size: 42px;
    font-weight: 400;
    color: #383749;
}

.about-heading p,
.team-heading p {
    margin-top: 20px;
    color: #757686;
}

.about-stories,
.about-values {
    color: #757686;
}

.about-stories h3,
.about-values h3 {
    margin-top: 48px;
    font-size: 24px;
    font-weight: 400;
    color: #383749;
}

.about-stories p,
.about-values p {
    line-height: 1.6;
}

.about-page .about-section {
    margin-top: 100px;
}

.about-page .testimonial-section {
    border-bottom: 1px solid #ebebeb;
}

.team-heading {
    text-align: center;
}

.team-member {
    padding: 32px 40px;
    margin-top: 48px;
    border: 1px solid #ebebeb;
    text-align: center;
    transition: all .35s;
}

.team-member:hover {
    box-shadow: 0 0 38px rgba(81,107,117,.21);
}

.team-member img {
    width: 180px;
    max-width: 100%;
    border-radius: 50%;
}

.team-member h3 {
    margin-top: 24px;
    font-size: 20px;
    font-weight: 400;
    color: #383749;
}

.team-member h4 {
    font-size: 16px;
    font-weight: 400;
    color: #19c880;
}

.team-member ul {
    margin-top: 24px !important;
    list-style: none;
}

.team-member ul li {
    margin: 0 10px ;
}

.team-member ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #ebebeb;
    border-radius: 50%;
    text-decoration: none;
    transition: all .35s;
}

.team-member ul li .fa {
    font-size: 18px;
    font-family: 'FontAwesome';
    color: #c0c1cd;
}

.team-member ul li a:hover {
    border-color: transparent;
    background: #19c880;
}

.team-member ul li a:hover .fa {
    color: #fff;
}

/*--------------------------------------------------------------
# Blog Page
--------------------------------------------------------------*/
.blog-page .page-header {
    background: url("images/courses-header.jpg") no-repeat center;
}

.blog-posts {
    margin-top: 50px;
}

.blog-post-content {
    margin-bottom: 30px;
}

.blog-post-content .blog-post-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content .posted-date {
    bottom: 0;
    left: 0;
    padding: 8px 16px;
    background: #f3a90b;
    color: #fff;
    line-height: 1;
    text-align: center;
}

.blog-post-content .posted-date .day {
    font-size: 36px;
    font-weight: bold;
}

.blog-post-content .posted-date .month {
    margin-top: 4px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-post-content-wrap .entry-title {
    margin: 24px 0 0;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 400;
}

.blog-post-content-wrap .post-author {
    margin-top: 12px;
}

.blog-post-content-wrap .post-author a {
    font-style: italic;
    color: #19c880;
    text-decoration: none;
}

.blog-post-content-wrap .post-comments {
    position: relative;
    padding-left: 12px;
    margin-top: 12px;
    margin-left: 5px;
}

.blog-post-content-wrap .post-comments a {
    text-decoration: none;
    color: #757686;
}

.blog-post-content-wrap .post-comments::before {
    content: '/';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    text-align: center;
}

.blog-post-content-wrap .entry-content {
    margin-top: 12px;
    margin-bottom: 0;
    color: #757686;
}

/*--------------------------------------------------------------
# Single Blog Post
--------------------------------------------------------------*/
.single-blog-post .page-header {
    background: url("images/single-courses-bg.jpg") no-repeat center;
}

.single-blog-post .page-header-overlay {
    height: 530px;
}

.single-blog-post .page-header .post-author a {
    font-style: italic;
    color: #19c880;
    text-decoration: none;
}

.single-blog-post .page-header .post-comments {
    position: relative;
    padding-left: 12px;
    margin-left: 5px;
}

.single-blog-post .page-header .post-comments::before {
    content: '/';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    text-align: center;
    color: #fff;
}

.single-blog-post .page-header .post-comments a {
    text-decoration: none;
    color: #fff;
}

.single-blog-post .featured-image {
    position: relative;
    margin-top: -80px;
    box-shadow: 0 24px 38px rgba(81,107,117,.21);
}

.single-blog-post .featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-blog-post .featured-image .posted-date {
    bottom: 0;
    left: 0;
    padding: 10px 16px;
    background: #f3a90b;
    color: #fff;
    line-height: 1;
    text-align: center;
}

.single-blog-post .featured-image .posted-date .day {
    font-size: 48px;
    font-weight: bold;
}

.single-blog-post .featured-image .posted-date .month {
    margin-top: 4px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.single-post-wrap {
    padding-bottom: 24px;
    margin-top: 50px;
    border-bottom: 1px solid #ebebeb;
    color: #757686;
}

.single-post-wrap blockquote {
    position: relative;
    padding-left: 68px;
    margin-top: 24px;
    margin-bottom: 32px;
    font-size: 20px;
    font-weight: 300;
    color: #383749;
}

.single-post-wrap blockquote::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 26px;
    height: 20px;
    background: url("images/quote.png") no-repeat;
}

.single-post-wrap blockquote span {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #19c880;
}

.single-post-wrap img {
    max-width: 100%;
}

.single-post-wrap h3 {
    font-size: 24px;
    font-weight: 400;
    color: #383749;
}

.tags-links ul {
    list-style: none;
}

.tags-links li {
    margin-right: 10px;
}

.tags-links li a {
    display: block;
    padding: 10px 24px;
    font-size: 12px;
    line-height: 1;
    color: #595959;
    text-transform: uppercase;
    background: #f3f3f3;
}

@media screen and (max-width: 992px){
    .single-blog-post .featured-image {
        margin-top: 80px;
    }
}

.related-blog-posts {
    margin-top: 50px;
}

.related-blog-posts .entry-heading {
    padding-bottom: 16px;
    border-bottom: 1px solid #ebebeb;
}

.related-blog-posts .entry-heading h2 {
    font-size: 24px;
    font-weight: 400;
    color: #383749;
}

.related-blog-posts .entry-heading a {
    color: #19c880;
    text-decoration: underline;
}

.related-blog-posts .blog-post-content {
    margin-top: 50px;
}

.author-box {
    padding-top: 60px;
    margin-top: 60px;
    border-top: 1px solid #ebebeb;
}

.author-avatar {
    width: 160px;
    margin-right: 30px;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid #ebebeb;
}
 ul.author-social-profile {
    list-style: none;
}

ul.author-social-profile li {
    margin: 0 10px;
}

ul.author-social-profile .fa {
    font-size: 18px;
    font-family: 'FontAwesome';
    color: #c0c1cd;
}

ul.author-social-profile li:hover .fa {
    color: #19c880;
}

.author-details {
    width: calc(100% - 190px);
}

@media screen and (max-width: 576px) {
    .author-details {
        width: 100%;
        margin-top: 32px;
    }
}

.author-details h3 {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    color: #19c880;
}

.author-details h3 span {
    display: block;
    margin-top: 6px;
    text-transform: capitalize;
    color: #c0c1cd;
}

.author-details p {
    color: #757686;
    line-height: 1.8;
}

/*
# Comments
--------------------------------*/
.post-comments-wrap .post-comments {
    margin-top: 40px;
    padding-top: 50px;
    padding-bottom: 50px;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}

.comments-title,
.comment-reply-title {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 400;
    color: #383749;
}

.post-comments-wrap .comment-list {
    padding: 0;
    margin: 0;
    list-style: none
}

.post-comments-wrap .comment-author-avatar {
    float: left;
    width: 70px;
    height: 70px;
    margin-top: 36px;
    margin-right: 22px;
    margin-bottom: 0;
    border-radius: 50%;
    overflow: hidden;
}

.post-comments-wrap .comment-author-avatar img {
    width: 100%;
    height: auto;
}

.post-comments-wrap .comment-wrap {
    float: right;
    width: calc(100% - 92px);
    margin-top: 32px;
}

.post-comments-wrap .comment-author .fn {
    display: block;
    margin-top: 4px;
}

.post-comments-wrap .comment-author .fn a {
    font-size: 18px;
    color: #383749;
}

.post-comments-wrap .comment-author .comment-meta a {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #19c880;
}

.post-comments-wrap p {
    margin-top: 5px;
    color: #757686;
}

.post-comments-wrap .reply {
    margin-top: 8px;
}

.post-comments-wrap .reply a {
    display: inline-block;
    padding: 8px 18px;
    margin-right: 10px;
    border: 1px solid #d2d2d4;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: #383749;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
}

.post-comments-wrap .reply a:hover {
    border-color: transparent;
    color: #fff;
    background: #19c880;
}

.post-comments-wrap ol.children {
    padding: 0;
    margin-left: 92px;
    list-style: none;
}

.post-comments-wrap ol.children .comment-author-avatar {
    margin-top: 40px;
    margin-right: 22px;
}

.post-comments-wrap ol.children .comment-wrap {
    margin-top: 36px;
    width: calc(100% - 92px);
}

/*
# Comment Form
--------------------------------*/
.comments-form {
    margin-top: 50px;
}

.comment-reply-title {
    margin-bottom: 16px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 24px;
    margin-top: 20px;
    border: 1px solid #e5e5e5;
    line-height: 1;
    color: #383749;
    outline: none;
}

.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
.comment-form input[type="url"]::placeholder,
.comment-form textarea::placeholder {
    color: #c0c1cd;
}

.comment-form textarea {
    line-height: 1.4;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #19c880;
}

.comment-form input[type="submit"] {
    padding: 16px 32px;
    margin-top: 40px;
    margin-bottom: 10px;
    border: 0;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1rem;
    outline: none;
    cursor: pointer;
    background: #19c880;
}

/*--------------------------------------------------------------
# Contact Page
--------------------------------------------------------------*/
.contact-page .page-header {
    background: url(images/courses-header.jpg) no-repeat center;
}

.contact-page .contact-gmap {
    margin-top: 60px;
    box-shadow: 0 24px 38px rgba(81,107,117,.21);
}

.contact-page .contact-gmap iframe {
    display: block;
    width: 100%;
    height: 540px;
}

.contact-form,
.contact-info {
    margin-top: 80px;
}

.contact-form h3,
.contact-info h3 {
    margin-bottom: 12px;
    font-size: 36px;
    font-weight: 400;
    color: #383749;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 20px;
    margin-top: 18px;
    border: 1px solid #ebebeb;
    background: #f7f7f7;
    color: #383749;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: #c0c1cd;
}

.contact-form input[type="submit"] {
    padding: 16px 32px;
    margin-top: 40px;
    margin-bottom: 10px;
    border: 0;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1rem;
    outline: none;
    cursor: pointer;
    background: #19c880;
}

.contact-info p {
    margin-top: 24px;
    line-height: 1.8;
    color: #757686;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-top: 32px;
    font-size: 24px;
    color: #383749;
}

.contact-info li span {
    display: block;
    font-size: 18px;
    color: #c0c1cd;
}

.contact-info li a {
    color: #636363;
    text-decoration: navajowhite;
}

@media screen and (min-width: 992px) {
    .contact-form {
        padding-right: 40px;
    }

    .contact-info {
        padding-left: 40px;
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer-widgets {
    padding: 60px 0;
    color: #757686;
}


.foot-about p {
    margin-top: 26px;
    font-size: 13px;
    line-height: 1.8;
    color: #757686;
}

/* สำหรับจอเล็ก (Tablet/มือถือ) */
@media (max-width: 991.98px) {
  .foot-about p {
    font-size: 11px;
  }
}



p.footer-copyright {
    color: #c0c1cd;
}

.footer-widgets h2 {
    margin-bottom: 40px;
    font-size: 20px;
    color: #383749;
}

.footer-widgets ul {
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 13px;
}

.footer-widgets ul li {
    margin-bottom: 10px;
}

.footer-widgets ul li a {
    color: #757686;
    text-decoration: none;
}

.footer-widgets ul li a:hover {
    color: #34d986;
}

.footer-widgets .follow-us .fa {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
}

.footer-widgets .follow-us .fa-facebook {
    background: #0591c9;
}

.footer-widgets .follow-us .fa-whatsapp {
    background: #20c344;
}

.footer-widgets .follow-us .fa-line {
    background: url('images/line.png') no-repeat center center;
    background-size: contain;
    width: 40px;
    height: 40px;
    display: inline-block;
    content: '';
    margin-top: 10px; /* ขยับลงมา 10px (สามารถปรับค่าได้ตามต้องการ) */
    border-radius: 50%; /* ทำให้เป็นวงกลม */
}

.footer-widgets .follow-us .fa-twitter {
    background: #2396f5;
}

.footer-bar {
    padding: 30px 0;
    border-top: 1px solid #ebebeb;
}

.footer-bar .download-apps a {
    display: block;
    margin-right: 10px;
}

.footer-bar .download-apps a img {
    display: block;
}

.footer-bar-nav ul {
    padding: 0;
    margin: 0;
    font-size: 13px;
    list-style: none;
}

.footer-bar-nav ul li {
    margin-left: 30px;
}

@media screen and (max-width: 992px) {
    .footer-bar-nav ul li {
        margin-left: 15px;
        margin-right: 15px;
        font-size: 12px;
    }
}

.footer-bar-nav ul li a {
    color: #757686;
    text-decoration: none;
}

.footer-bar-nav ul li a:hover {
    color: #34d986;
}

@media (max-width: 768px) {
  footer.site-footer {
    transform: scale(0.85);
    transform-origin: top center;
  }

  /* ล็อค layout ไม่ให้แนวตั้ง */
  .footer-widgets .row,
  .footer-bar .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-widgets .col-12,
  .footer-bar .col-12 {
    flex: 1 1 0%;
    max-width: 100%;
    margin-top: 0 !important;
  }

  /* ลดขนาดข้อความลงเล็กน้อย */
  .footer-widgets h2,
  .foot-about p,
  .footer-widgets ul li,
  .footer-bar-nav ul li {
    font-size: 11px !important;
  }

  /* ไอคอนโซเชียลเล็กลง */
  .footer-widgets .fa {
    width: 28px;
    height: 28px;
  }

  .footer-widgets .fa-line {
    width: 28px;
    height: 28px;
    margin-top: 5px;
  }

  /* Container ต้องไม่เกินขอบจอ */
  .footer-widgets .container,
  .footer-bar .container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
}
.footer-widgets .container,
.footer-bar .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
}
