/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
@import url("https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,500;0,700;1,100&display=swap");

:root {
    --nav-deep: #072b62; /* พื้นปุ่มหลัก */
    --nav-accent: #127ef9; /* สี hover/active */
    --nav-cyan: #4cd8f6; /* เสริม (ถ้าต้องใช้ต่อ) */
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: #444;
    font-family: "Prompt", sans-serif !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

a {
    color: #007bff;
    transition: 0.5s;
}

a:hover,
a:active,
a:focus {
    color: #0b6bd3;
    outline: none;
    text-decoration: none;
}

p {
    padding: 0;
    margin: 0 0 0px 0;
}

h1,
h2,
h4,
h5,
h6 {
    font-family: "Prompt", sans-serif;
    font-weight: 400;
    margin: 0 0 20px 0;
    padding: 0;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 2rem;
}

h3 {
    font-family: "Prompt", sans-serif;
    font-weight: 300;
    margin: 0 0 20px 0;
    padding: 0;
}

.letter-space-2 {
    letter-spacing: 2px;
}

.fw-400 {
    font-weight: 400;
}

/* Back to top button */

.back-to-top {
    position: fixed;
    display: none;
    background: #a0804a;
    color: #fff;
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 1;
    font-size: 16px;
    border-radius: 50%;
    right: 15px;
    bottom: 15px;
    transition: background 0.5s;
    z-index: 11;
}

.back-to-top i {
    padding-top: 12px;
    color: #fff;
}

/* Prelaoder */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: #fff;
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid #f2f2f2;
    border-top: 6px solid #c9a15c;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    -webkit-animation: animate-preloader 1s linear infinite;
    animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes animate-preloader {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

#header {
    height: 80px;
    transition: all 0.5s;
    z-index: 997;
    transition: all 0.5s;
    padding: 20px 0;
    background: linear-gradient(to bottom, #100746, #1e296b);
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.3);
}

#header.header-scrolled,
#header.header-pages {
    height: 60px;
    padding: 8px 0;
}

#header .logo h1 {
    font-size: 30px;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#header .logo h1 a,
#header .logo h1 a:hover {
    color: #fff;
    text-decoration: none;
}

/* #header .logo img {
    padding: 0;
    margin: -19px 0;
    max-height: 79px;
} */

#header .logo img {
    max-height: 64px;
    margin: -12px 0;
}

.main-pages {
    margin-top: 60px;
}

.main-sec {
    padding: 60px 0;
}

.feature-sec {
    padding: 2rem 1rem;
}

.text-truncate-2line {
    display: -webkit-box;
    width: 100%;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*--------------------------------------------------------------
# Intro Section
--------------------------------------------------------------*/

.wrapper-banner-intro {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.wrapper-banner-intro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-inner-card {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    /* background: rgb(201 201 201); */
    margin: 3rem 1rem 1rem 1rem;
}

.img-inner-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-head {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgb(255, 187, 0);
    position: absolute;
    display: inline-block;
    z-index: 1;
    text-align: center;
    top: -30px;
    left: 50%;
    transform: translate(-50%);
    color: red;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-inner-card-teacher {
    position: relative;
    overflow: hidden;
    padding-top: 115.25%;
    background: rgb(201 201 201);
    margin: 1rem;
}

.img-inner-card-teacher img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-description {
    padding: 1rem;
}

.std_list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
    justify-content: center;
}

.std_list li {
    width: 20%;
    background: #fff;
    height: 150px;
    border: 1px solid #eee;
}

.std_list li img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#intro {
    width: 100%;
    position: relative;
    /* background-image:linear-gradient(to top,rgba(0,0,0,0.7),transparent), url("../img/karamae/Kalamae21.jpg"); */
    background-color: #11aae3;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 70px 0 0px 0;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}
/* === HERO (UI ใหม่) === */
#intro {
    width: 100%;
    position: relative;
    margin-top: 60px; /* เฮดเดอร์ fixed-top */
    padding: 120px 0 40px 0; /* เว้นด้านบนให้โล่ง */
    min-height: 720px; /* สูงพอสำหรับภาพและข้อความ */
    background: #f6fbff url("../img/BG-01.png") no-repeat left top / cover;
    background-attachment: scroll; /* ป้องกัน jitter บางเบราว์เซอร์ */
}

/* เมื่อสโครลจน header หดตัว ให้ padding-top ลดลงนิด */
#header.header-scrolled ~ #intro {
    padding-top: 100px;
}

/* ข้อความฝั่งซ้าย */
.hero-xxl {
    font-size: clamp(36px, 5.8vw, 72px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 0.25rem 0;
}
.accent-blue {
    color: #127ef9;
}

#intro .hero-copy h3 {
    color: #fff;
    font-size: clamp(16px, 2.1vw, 28px);
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

/* ปุ่ม “ดูคอร์สทั้งหมด” สไตล์แคปซูลดำ */
.cta-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    background: #0b0b0b;
    color: #fff !important;
    font-weight: 800;
    font-size: clamp(16px, 1.6vw, 20px);
    letter-spacing: 0.2px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.cta-hero:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    opacity: 0.95;
}

/* ภาพฝั่งขวา */
.hero-illustration {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 991.98px) {
    #intro {
        min-height: unset;
        padding-top: 100px;
        background-position: left top;
        background-size: cover;
    }
    .hero-illustration {
        margin-top: 28px;
    }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/

/* Desktop Navigation */

.main-nav {
    /* Drop Down */
    /* Deep Drop Down */
}

.main-nav,
.main-nav * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav > ul > li {
    position: relative;
    white-space: nowrap;
    float: left;
    /* margin-right: 10px; */
    margin-right: 18px;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    box-shadow: none;
}

/* ปุ่มน้ำเงินเข้ม */
.nav-pill--primary {
    background: var(--nav-deep);
    color: #fff !important;
}
.nav-pill--primary:hover,
.nav-pill--primary:focus {
    background: var(--nav-accent);
    color: #fff !important;
}

/* ปุ่มขอบขาว (Login) */
.nav-pill--outlined {
    background: #fff;
    color: #111 !important;
    border-color: #fff;
}
.nav-pill--outlined:hover,
.nav-pill--outlined:focus {
    background: #fff;
    color: var(--nav-accent) !important; /* เน้นตามดีไซน์ */
    border-color: #fff;
}

/* #header.header-scrolled .nav-pill {
    height: 40px;
    padding: 0 18px;
} */

#header.header-pages .nav-pill {
    height: 40px;
    padding: 0 18px;
}

#header {
    background: #0b0b0b; /* หรือใช้ gradient เดิมได้ */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
}

.main-nav a {
    display: block;
    position: relative;
    color: #333;
    padding: 10px 15px;
    transition: 0.3s;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav .active > a,
.main-nav li:hover > a {
    /* color: #fff; */
    color: inherit;
    text-decoration: none;
}

.main-nav .drop-down ul {
    display: block;
    position: absolute;
    left: 0;
    top: calc(100% + 30px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    transition: ease all 0.3s;
}

.main-nav .drop-down:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
}

.main-nav .drop-down li {
    min-width: 180px;
    position: relative;
}

.main-nav .drop-down ul a {
    padding: 10px 20px;
    font-size: 13px;
    color: #004289;
}

.main-nav .drop-down ul a:hover,
.main-nav .drop-down ul .active > a,
.main-nav .drop-down ul li:hover > a {
    color: #007bff;
}

.main-nav .drop-down > a:after {
    content: "\f107";
    font-family: FontAwesome;
    padding-left: 10px;
}

.main-nav .drop-down .drop-down ul {
    top: 0;
    left: calc(100% - 30px);
}

.main-nav .drop-down .drop-down:hover > ul {
    opacity: 1;
    top: 0;
    left: 100%;
}

.main-nav .drop-down .drop-down > a {
    padding-right: 35px;
}

.main-nav .drop-down .drop-down > a:after {
    content: "\f105";
    position: absolute;
    right: 15px;
}

/* Mobile Navigation */

.mobile-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
    left: -260px;
    width: 260px;
    padding-top: 18px;
    background: rgba(19, 39, 57, 0.8);
    transition: 0.4s;
}

.mobile-nav * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav a {
    display: block;
    position: relative;
    color: #fff;
    padding: 10px 20px;
    font-weight: 500;
}

.mobile-nav li {
    margin-bottom: 5px;
}

.mobile-nav a:hover,
.mobile-nav .active > a,
.mobile-nav li:hover > a {
    color: #c9a15c;
    text-decoration: none;
}

.mobile-nav .drop-down > a:after {
    content: "\f078";
    font-family: FontAwesome;
    padding-left: 10px;
    position: absolute;
    right: 15px;
}

.mobile-nav .active.drop-down > a:after {
    content: "\f077";
}

.mobile-nav .drop-down > a {
    padding-right: 35px;
}

.mobile-nav .drop-down ul {
    display: none;
    overflow: hidden;
}

.mobile-nav .drop-down li {
    padding-left: 20px;
}

.mobile-nav-toggle {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9998;
    border: 0;
    background: none;
    font-size: 24px;
    transition: all 0.4s;
    outline: none !important;
    line-height: 1;
    cursor: pointer;
    text-align: right;
}

.mobile-nav-toggle i {
    margin: 18px 18px 0 0;
    color: #004289;
}

.mobile-nav-overly {
    width: 100%;
    height: 100%;
    z-index: 9997;
    top: 0;
    left: 0;
    position: fixed;
    background: rgba(19, 39, 57, 0.8);
    overflow: hidden;
    display: none;
}

.mobile-nav-active {
    overflow: hidden;
}

.mobile-nav-active .mobile-nav {
    left: 0;
}

.mobile-nav-active .mobile-nav-toggle i {
    color: #fff;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/

/* Sections Header
--------------------------------*/

.section-header h3 {
    font-size: 36px;
    color: #283d50;
    text-align: center;
    font-weight: 500;
    position: relative;
}

.section-header p {
    text-align: center;
    margin: auto;
    font-size: 15px;
    padding-bottom: 60px;
    color: #556877;
    width: 50%;
}

/* Section with background
--------------------------------*/

.section-bg {
    background: #c9a15c;
}

/* Attr Karamae Section */
#attr-karamae {
    background: linear-gradient(to top, #c9a15c63, #ffffff);
    padding: 60px 0px 130px;
    position: relative;
}

#attr-karamae .karame-extra {
    padding-top: 60px;
}

.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.wave-bottom .shape-fill {
    fill: #ffffff;
}

/* About Us Section
--------------------------------*/

#h-about {
    background: #eeee;
    padding: 60px 0;
}

#about {
    background: linear-gradient(to top, #c9a15c63, #ffffff);
    padding: 60px 0;
}

#about .about-container .background {
    margin: 20px 0;
}

#about .about-container .content {
    background: #fff;
}

#about .about-container .title {
    color: #333;
    font-weight: 700;
    font-size: 32px;
}

#about .about-container p {
    line-height: 26px;
}

#about .about-container p:last-child {
    margin-bottom: 0;
}

#about .about-container .icon-box {
    background: #fff;
    background-size: cover;
    padding: 0 0 30px 0;
}

#about .about-container .icon-box .icon {
    float: left;
    background: #fff;
    width: 64px;
    height: 64px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
    border-radius: 50%;
    border: 2px solid #007bff;
    transition: all 0.3s ease-in-out;
}

#about .about-container .icon-box .icon i {
    color: #007bff;
    font-size: 24px;
}

#about .about-container .icon-box:hover .icon {
    background: #007bff;
}

#about .about-container .icon-box:hover .icon i {
    color: #fff;
}

#about .about-container .icon-box .title {
    margin-left: 80px;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 18px;
}

#about .about-container .icon-box .title a {
    color: #283d50;
}

#about .about-container .icon-box .description {
    margin-left: 80px;
    line-height: 24px;
    font-size: 14px;
}

#about .about-extra {
    padding-top: 60px;
}

#about .about-extra h4 {
    font-weight: 600;
    font-size: 24px;
}

.wrapper-img-hover {
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    position: relative;
}

.wrapper-img-hover img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1.2s ease-in-out;
}

.wrapper-img-hover img:hover {
    transform: scale(1.2);
}

/* Services Section
--------------------------------*/

#services {
    padding: 60px 0 40px 0;
    box-shadow: inset 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
}

#services .box {
    padding: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 10px 40px 10px;
    background: #fff;
    box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
}

#services .box:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
}

#services .icon {
    /* position: absolute;
  left: -10px;
  top: calc(50% - 32px); */
}

#services .icon i {
    font-size: 64px;
    line-height: 1;
    transition: 0.5s;
}

#services .title {
    margin-left: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 18px;
}

#services .title a {
    color: #111;
}

#services .box:hover .title a {
    color: #007bff;
}

#services .description {
    font-size: 14px;
    margin-left: 40px;
    line-height: 24px;
    margin-bottom: 0;
}

@media screen and (max-width: 600px) {
    #services .box {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #services .title {
        margin-left: 0;
        font-weight: 700;
        margin-bottom: 15px;
        font-size: 18px;
        margin-top: 1rem;
        line-height: 160%;
    }
}

/* Portfolio Section
--------------------------------*/

#portfolio {
    padding: 60px 0;
    /* box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1); */
}

#portfolio #portfolio-flters {
    padding: 0;
    margin: 5px 0 35px 0;
    list-style: none;
    text-align: center;
}

#portfolio #portfolio-flters li {
    cursor: pointer;
    margin: 15px 15px 15px 0;
    display: inline-block;
    padding: 6px 20px;
    font-size: 12px;
    line-height: 20px;
    color: #007bff;
    border-radius: 50px;
    text-transform: uppercase;
    background: #ecf5ff;
    margin-bottom: 5px;
    transition: all 0.3s ease-in-out;
}

#portfolio #portfolio-flters li:hover,
#portfolio #portfolio-flters li.filter-active {
    background: #007bff;
    color: #fff;
}

#portfolio #portfolio-flters li:last-child {
    margin-right: 0;
}

#portfolio .portfolio-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

#portfolio .portfolio-item .portfolio-wrap {
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    margin: 0;
    padding-top: 56.25%;
}

#portfolio .portfolio-item .portfolio-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#portfolio .portfolio-item .portfolio-wrap:hover img {
    opacity: 0.4;
    transition: 0.3s;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
    opacity: 0;
    transition: 0.2s linear;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4 {
    font-size: 22px;
    line-height: 1px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 0;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4 a {
    color: #fff;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4 a:hover {
    color: #c9a15c;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info p {
    padding: 0;
    margin: 0;
    color: #e2effe;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details {
    display: inline-block;
    line-height: 1;
    text-align: center;
    width: 36px;
    height: 36px;
    background: #c9a15c;
    border-radius: 50%;
    margin: 10px 4px 0 4px;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview i,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details i {
    padding-top: 6px;
    font-size: 22px;
    color: #fff;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview:hover,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details:hover {
    background: #ddad5b;
}

#portfolio
    .portfolio-item
    .portfolio-wrap
    .portfolio-info
    .link-preview:hover
    i,
#portfolio
    .portfolio-item
    .portfolio-wrap
    .portfolio-info
    .link-details:hover
    i {
    color: #fff;
}

#portfolio .portfolio-item .portfolio-wrap:hover {
    background: #c9a15c;
}

#portfolio .portfolio-item .portfolio-wrap:hover .portfolio-info {
    opacity: 1;
}

/* Clients Section
--------------------------------*/

#clients {
    padding: 60px 0;
    box-shadow: inset 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
}

#clients .clients-wrap {
    border-top: 1px solid #d6eaff;
    border-left: 1px solid #d6eaff;
    margin-bottom: 30px;
}

#clients .client-logo {
    padding: 64px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    border-right: 1px solid #d6eaff;
    border-bottom: 1px solid #d6eaff;
    overflow: hidden;
    background: #fff;
    height: 160px;
}

#clients .client-logo:hover img {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

#clients img {
    transition: all 0.4s ease-in-out;
}

/* Contact Section
--------------------------------*/

#contact {
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.1);
    padding: 60px 0;
    overflow: hidden;
}

#contact .section-header {
    padding-bottom: 30px;
}

#contact .contact-about h3 {
    font-size: 36px;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #007bff;
}

#contact .contact-about p {
    font-size: 14px;
    line-height: 24px;
    font-family: "Montserrat", sans-serif;
    color: #888;
}

#contact .social-links {
    padding-bottom: 20px;
}

#contact .social-links a {
    font-size: 18px;
    display: inline-block;
    background: #fff;
    color: #007bff;
    line-height: 1;
    padding: 8px 0;
    margin-right: 4px;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
    border: 1px solid #007bff;
}

#contact .social-links a:hover {
    background: #007bff;
    color: #fff;
}

#contact .info {
    color: #283d50;
}

#contact .info i {
    font-size: 32px;
    color: #007bff;
    float: left;
    line-height: 1;
}

#contact .info p {
    padding: 0 0 10px 36px;
    line-height: 28px;
    font-size: 14px;
}

#contact .form #sendmessage {
    color: #007bff;
    border: 1px solid #007bff;
    display: none;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

#contact .form #errormessage {
    color: red;
    display: none;
    border: 1px solid red;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

#contact .form #sendmessage.show,
#contact .form #errormessage.show,
#contact .form .show {
    display: block;
}

#contact .form .validation {
    color: red;
    display: none;
    margin: 0 0 20px;
    font-weight: 400;
    font-size: 13px;
}

#contact .form input,
#contact .form textarea {
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
}

#contact .form button[type="submit"] {
    background: #007bff;
    border: 0;
    border-radius: 20px;
    padding: 8px 30px;
    color: #fff;
    transition: 0.3s;
}

#contact .form button[type="submit"]:hover {
    background: #0067d5;
    cursor: pointer;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

#footer {
    background: #111c55;
    padding: 0 0 30px 0;
    color: #eee;
    font-size: 14px;
}

#footer .footer-top {
    background: #111c55;
    padding: 60px 0 30px 0;
}

#footer .footer-top .footer-info {
    margin-bottom: 30px;
}

#footer .footer-top .footer-info h3 {
    font-size: 34px;
    margin: 0 0 20px 0;
    padding: 2px 0 2px 0;
    line-height: 1;
    font-family: "Montserrat", sans-serif;
    color: #fff;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#footer .footer-top .footer-info p {
    font-size: 13px;
    line-height: 24px;
    margin-bottom: 0;
    font-family: "Montserrat", sans-serif;
    color: #ecf5ff;
}

#footer .footer-top .social-links a {
    font-size: 18px;
    display: inline-block;
    background: #007bff;
    color: #fff;
    line-height: 1;
    padding: 8px 0;
    margin-right: 4px;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
    background: #0067d5;
    color: #fff;
}

#footer .footer-top h4 {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

#footer .footer-top .footer-links {
    margin-bottom: 30px;
}

#footer .footer-top .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-top .footer-links ul li {
    padding: 8px 0;
}

#footer .footer-top .footer-links ul li:first-child {
    padding-top: 0;
}

#footer .footer-top .footer-links ul a {
    color: #ecf5ff;
}

#footer .footer-top .footer-links ul a:hover {
    color: #74b5fc;
}

#footer .footer-top .footer-contact {
    margin-bottom: 30px;
}

#footer .footer-top .footer-contact p {
    line-height: 26px;
}

#footer .footer-top .footer-newsletter {
    margin-bottom: 30px;
}

#footer .footer-top .footer-newsletter input[type="email"] {
    border: 0;
    padding: 6px 8px;
    width: 65%;
}

#footer .footer-top .footer-newsletter input[type="submit"] {
    background: #007bff;
    border: 0;
    width: 35%;
    padding: 6px 0;
    text-align: center;
    color: #fff;
    transition: 0.3s;
    cursor: pointer;
}

#footer .footer-top .footer-newsletter input[type="submit"]:hover {
    background: #0062cc;
}

#footer .copyright {
    text-align: center;
    padding-top: 30px;
}

#footer .credits {
    text-align: center;
    font-size: 13px;
    color: #f1f7ff;
}

#footer .credits a {
    color: #bfddfe;
}

#footer .credits a:hover {
    color: #f1f7ff;
}

.list_certification {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    width: 95%;
    margin: auto;
}

.list_certification li {
    width: 16.66%;
    /* padding: .8rem; */
    align-items: center;
    justify-content: center;
    display: flex;
}

.list_certification li img {
    width: 60%;
    height: auto;
}

.blue_team_row .col img {
    scale: 0.85;
}

.hover_btn {
    transition: transform 0.3s ease !important;
    -webkit-transition: transform 0.3s ease !important;
    -moz-transition: transform 0.3s ease !important;
    -ms-transition: transform 0.3s ease !important;
    -o-transition: transform 0.3s ease !important;
}

.hover_btn:hover {
    transform: translateY(-3px) !important;
    -webkit-transform: translateY(-3px) !important;
    -moz-transform: translateY(-3px) !important;
    -ms-transform: translateY(-3px) !important;
    -o-transform: translateY(-3px) !important;
}

/* Chat Toggle Pop-up CSS */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 9999;
    border-radius: 50px;
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    box-shadow: 0 3px 6px rgb(0 0 0 / 25%);
}

.chat-button:hover {
    background-color: #004289;
}

.chat-button:focus {
    outline: none;
}

.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 35px;
    width: fit-content;
    height: fit-content;
    display: none;
    z-index: 999999;
}

.telephone-button {
    display: inline-flex;
    padding: 10px;
    background-color: #03e78b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    font-size: 24px;
    box-shadow: 0 3px 6px rgb(0 0 0 / 25%);
}

.messenger-button {
    display: inline-flex;
    padding: 10px;
    background-color: #326ff3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    font-size: 24px;
    box-shadow: 0 3px 6px rgb(0 0 0 / 25%);
}

/* === Feature Hero (new) === */
.feature-hero {
    background: url("../img/BG-02.png") no-repeat right top / cover;
    padding: 48px 0 0px;
}

.feature-heading {
    color: #1b1b1b;
    font-weight: 500;
    font-size: clamp(22px, 3.2vw, 42px);
    margin-bottom: 0.5rem;
}

.feature-quote {
    color: #151515;
    font-weight: 800;
    line-height: 1.2;
    font-size: clamp(26px, 4.2vw, 35px);
    margin: 0;
}

.teacher-wrap {
    position: relative;
    display: flex;
    justify-content: end;
}
.teacher-img {
    max-height: 520px;
    width: auto;
}

.teacher-badge {
    position: absolute;
    bottom: -10px;
    left: 22%;
    transform: translateX(-22%);
    background: linear-gradient(90deg, #21b2e8 0%, #127ef9 100%);
    color: #fff;
    border-radius: 22px;
    padding: 18px 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    min-width: 320px;
}
.teacher-badge .badge-title {
    font-weight: 700;
    font-size: clamp(16px, 2.1vw, 24px);
}
.teacher-badge .badge-sub {
    opacity: 0.95;
    font-weight: 600;
    font-size: clamp(12px, 1.6vw, 16px);
}
.teacher-badge .badge-desc {
    margin-top: 6px;
    font-size: clamp(12px, 1.4vw, 14px);
    line-height: 1.45;
    opacity: 0.95;
}

/* Org CTA */
/* --- Org CTA (match design) --- */
.org-cta {
    background: #fff;
    padding: 28px 0 24px;
}

.org-title {
    text-align: center;
    font-weight: 900;
    color: #1b1b1b;
    letter-spacing: 0.2px;
    font-size: clamp(26px, 3.2vw, 44px);
    margin-bottom: 14px;
}

.org-desc {
    text-align: center;
    color: #282828;
    line-height: 1.8;
    font-size: clamp(16px, 1.9vw, 26px);
    margin: 10px auto 6px;
}

.org-emph {
    color: #127ef9; /* โทนฟ้าตามภาพ */
    font-weight: 900; /* หนักชัด */
}

.org-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* padding: clamp(12px, 1.6vw, 8px) clamp(22px, 3vw, 36px); */
    padding:  clamp(0px, 1vw, 0px) clamp(22px, 3vw, 23px);
    border-radius: 999px;
    background: linear-gradient(90deg, #4cd8f6 0%, #127ef9 100%);
    color: #fff !important;
    font-weight: 900;
    font-size: clamp(18px, 2.5vw, 36px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
    /*เงากลมตามภาพ*/
    border: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    -webkit-transition: transform 0.15s ease, box-shadow 0.15s ease,
        opacity 0.15s ease;
    -moz-transition: transform 0.15s ease, box-shadow 0.15s ease,
        opacity 0.15s ease;
    -ms-transition: transform 0.15s ease, box-shadow 0.15s ease,
        opacity 0.15s ease;
    -o-transition: transform 0.15s ease, box-shadow 0.15s ease,
        opacity 0.15s ease;
}
.org-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
    opacity: 0.96;
}

.org-note {
    text-align: center;
    color: #303840;
    font-size: clamp(14px, 1.6vw, 22px);
}

/* App row */
.app-row {
    background: #eaf6ff;
    padding: 18px 0 26px;
}
.app-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}
.store-btn {
    height: 55px;
    width: auto;
}

/* Certification section spacing (reuse) */
.cert-sec .img-fluid {
    display: block;
    margin: 0 auto;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .teacher-img {
        max-height: 440px;
    }
    .teacher-badge {
        position: static;
        transform: none;
        margin-top: 10px;
    }
    .feature-quote {
        font-size: clamp(24px, 5vw, 40px);
    }
}
@media (max-width: 575.98px) {
    .app-logo {
        height: 56px;
    }
    .store-btn {
        height: 48px;
    }
}

/* ===== Courses (New Design) ===== */
.course-area {
    background: #fff; /* แยกจากพื้นเดิม */
    padding: 30px 0 80px;
}

.courses-wrap {
    position: relative;
    margin: 0 12px;
    padding: 48px 18px 32px;
    border-radius: 36px;
    background: linear-gradient(90deg, #4cd8f6 0%, #127ef9 100%);
}

/* หัวข้อใหญ่สีขาวกึ่งกลาง */
.courses-title {
    text-align: center;
    color: #fff;
    font-weight: 900;
    margin: 0 0 24px;
    letter-spacing: 0.5px;
    font-size: clamp(28px, 4.2vw, 64px);
}

/* การ์ดคอร์ส */
.course-card {
    background: #fff;
    border: 3px solid #29a7f5; /* ขอบฟ้า */
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 86, 157, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-thumb {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #f4f6f8;
}
.course-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-body {
    padding: 20px 22px 26px;
}

.course-name {
    font-weight: 900;
    color: #0f2454;
    line-height: 1.35;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.course-desc {
    color: #2b2b2b;
    line-height: 1.7;
    min-height: 88px; /* ให้ความสูงสม่ำเสมอ */
}

/* ปุ่มลิงก์ READ MORE */
.course-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: #127ef9;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .courses-wrap {
        border-radius: 26px;
    }
    .course-desc {
        min-height: auto;
    }
}

.ai-bg {
    background: url(../img/BG-AI.png) no-repeat center top / cover;
    position: absolute;
    height: 100%;
    width: 100%;
}
.img-ai{
    border-radius: 5%;
    border: solid 1px #29a7f5;
    box-shadow: 0 .5rem 1rem #29a7f5 !important;
}


