/* ฟอนต์ */
body {
    font-family: "Prompt", "Sarabun", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* สำหรับหน้าจอใหญ่ (PC) */
@media only screen and (min-width: 1025px) {
    .banner-btn{
        font-size: 20px;
    }
    .contact-section {
        min-height: 500px;
    }

    .contact-section-text {
        color: #214082;
        font-size: 16px !important;
        margin-top: 8px;
    }

    .contact-section {
        background-image: url(image/contact-bg.png);
        background-position: center;
        background-size: cover;
    }

    .about-content {
        padding: 32px;
    }

    .about-content-box {
        gap: 32px;
        display: flex;
    }

    .about-section {
        background-image: url(./image/about-image-bg.png);
        background-position: center;
        background-size: cover;
    }

    .course-card img {
        width: 120px;
    }

    .course-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .reason-item,
    .course-card p {
        font-size: 24px;
    }

    .why-section-text {
        font-size: 24px;
    }

    .why-section-text-highlight {
        font-size: 24px !important;
    }

    .why-section-box {
        padding: 32px;
    }

    .why-section-box-content {
        padding: 64px;
    }

    .banner-text {
        width: max-content;
    }

    .why-section-card {
        background-image: url(/image/content-card-bg.png);
        background-repeat: no-repeat;
        /* ไม่ให้รูปซ้ำ */
        background-position: center;
        /* จัดให้อยู่ตรงกลาง */
        background-size: 90%;
        /* ใช้ขนาดจริงของรูป */
    }

    .why-section-image-bg {
        width: 55%;
    }

    .why-section-area {
        padding-bottom: 64px;
    }

    .content-pc {
        display: block;
    }

    .content-mb {
        display: none;
    }

    #home {
        height: 100dvh;
        padding-top: 0px !important;
    }

    .service-card img {
        height: 400px;
    }
}

/* สำหรับ iPad / Tablet (แนวนอนและแนวตั้ง) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .banner-btn{
        font-size: 20px;
    }
    .contact-section {
        min-height: 500px;
    }

    .contact-section-text {
        color: #214082;
        font-size: 16px !important;
        margin-top: 8px;
    }

    .contact-section {
        background-image: url(image/contact-bg.png);
        background-position: center;
        background-size: cover;
    }

    .about-content {
        padding: 28px;
    }

    .about-content-box {
        gap: 32px;
        display: flex;
    }

    .about-section {
        background-image: url(./image/about-image-bg.png);
        background-position: center;
        background-size: cover;
    }

    .course-card img {
        width: 120px;
    }

    .course-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .reason-item,
    .course-card p {
        font-size: 20px;
    }

    .why-section-text-highlight {
        font-size: 24px !important;
    }

    .why-section-text {
        font-size: 24px;
    }

    .why-section-box {
        padding: 32px;
    }

    .why-section-box-content {
        padding: 64px;
    }

    .why-section-card {
        background-image: url(/image/content-card-bg.png);
        background-repeat: no-repeat;
        /* ไม่ให้รูปซ้ำ */
        background-position: center;
        /* จัดให้อยู่ตรงกลาง */
        background-size: 90%;
        /* ใช้ขนาดจริงของรูป */
    }

    .why-section-area {
        padding-bottom: 32px;
    }

    .content-pc {
        display: block;
    }

    .content-mb {
        display: none;
    }

    #home {
        height: 60dvh;
    }

    .service-card img {
        height: 400px;
    }
}

/* สำหรับมือถือ (Mobile) */
@media only screen and (max-width: 767px) {
    .banner-btn{
        font-size: 20px;
    }
    .banner-text{
        font-size: 24px !important;
    }
    .contact-section {
        background-image: url(image/contact-bg-mb.png);
        background-position: center;
        background-size: cover;
    }

    .about-content {
        padding: 16px;
    }

    .about-section {
        background-image: url(./image/about-image-bg-mb.png);
        background-position: center;
        background-size: cover;
    }

    .about-section {
        padding: 2rem 1rem;
    }

    .about-content h2 {
        font-size: 1.4rem;
    }

    .about-content h3 {
        font-size: 1.1rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .about-philosophy {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .course-card img {
        width: 200px;
    }

    .course-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .col-md-12-unpadding {
        padding: 0px !important;
    }

    .reason-item {
        font-size: 16px;
    }

    .course-card p {
        font-size: 20px;
    }

    .why-section-text-highlight {
        font-size: 18px !important;
    }

    .why-section-text {
        font-size: 18px;
    }

    .why-section-box {
        padding: 8px;
    }

    .why-section-box-content {
        padding: 12px;
    }

    .nav {
        display: none;
    }

    #mainHeader .py-2 {
        min-height: 70px;
    }

    .why-section-area {
        padding-bottom: 16px;
    }

    .content-pc {
        display: none;
    }

    .content-mb {
        display: block;
    }

    #home {
        height: 80dvh;
    }

    .why-section-card {
        position: relative;
        overflow: hidden;
        /* กันรูปเกิน */
    }

    .why-section-card::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200%;
        height: 200%;
        background: url("/image/content-card-bg.png") no-repeat center;
        background-size: 90%;
        transform: translate(-50%, -50%) rotate(45deg);
        /* ใส่เพื่อไม่ให้เด่นเกินไป ปรับตามต้องการ */
        z-index: 0;
    }

    /* เนื้อหาข้างในการ์ดให้ลอยอยู่เหนือพื้นหลัง */
    .why-section-card>* {
        position: relative;
        z-index: 1;
    }

    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .service-card img {
        height: 280px;
    }
}

/* Hero Section */
section.bg-light {
    background: #FFE7C2 !important;
    /* โทนครีมอ่อน */
}

/* Heading */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    color: #5084CB;
    /* โทนน้ำตาลเข้ม */
}

/* ปุ่ม */
.btn-dark {
    background-color: #5084CB;
    border: none;
    border-radius: 100px;
    min-width: 150px;
}

.btn-dark:hover {
    background-color: #214082;
}

.btn-outline-dark {
    border-color: #5084CB;
    color: #5084CB;
    border-radius: 100px;
    min-width: 150px;
}

.btn-outline-dark:hover {
    background-color: #5084CB;
    color: #fff;
}

/* Section spacing */
section {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Why choose us icons */
#why .p-3 {
    border-radius: 16px !important;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

#why .p-3:hover {
    transform: translateY(-5px);
}

/* Steps */
.list-group-item {
    border: none;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: #FFE7C2;
    border-radius: 8px;
}

.list-group-numbered>li::marker {
    font-weight: bold;
    color: #e48c15;
    /* ส้มทอง */
}

/* Services Card */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: #5084CB;
    font-weight: 600;
}

/* Footer */
footer {
    background: #FFE7C2;
    color: #5084CB;
}

footer a {
    color: #5084CB;
}

footer a:hover {
    text-decoration: underline;
}

/* Header เริ่มต้น */
#mainHeader {
    transition: all 0.3s ease;
    /* สีเดียวกับ banner */
}

/* ตอน scroll ลง */
#mainHeader.scrolled {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-item .nav-link {
    color: #214082;
    transition: 0.3s;
}

.nav-item .nav-link:hover {
    font-weight: 500;
    transition: 0.3s;
}

.banner-text {
    font-weight: 600;
}

.banner-text span {
    font-weight: 400;
    color: #FF914D;
}

#why {
    padding-bottom: 0px !important;
}

.why-section-box {
    background-image: url(./image/first-content-bg.png);
    background-position: center;
    background-size: cover;

    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.why-section-image {
    width: 100%;
    max-width: 240px;
    margin-bottom: 16px;
}

.why-section-text {
    color: #214082;
    font-weight: 400;
}

.why-section-text span {
    font-weight: 600;
    color: #FF914D;
}

.why-section-text-highlight {
    text-decoration: underline;
    color: #214082 !important;
    font-weight: 600 !important;
}

.why-section-area .col-md-6 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-section-card .col-md-4 img {
    width: 100%;
}

.why-section-card .col-md-4 p {
    color: #5084CB;
    font-size: 20px;
    font-weight: 600;
}

.step-list .list-group-item {
    color: #214082;
    counter-increment: step;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background: #f9f9f9;
    margin-bottom: 10px;
    position: relative;
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* เพิ่ม transition */
    cursor: pointer;
    /* ให้รู้ว่าคลิกได้ */
}

.step-list .list-group-item::before {
    content: counter(step);
    font-size: 36px;
    font-weight: bold;
    color: #f2c896;
    /* เลขสีทองอ่อน */
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    transition: color 0.3s ease;
    /* เลขเปลี่ยนสีด้วย */
}

/* Hover ปกติ */
.step-list .list-group-item:hover {
    background: #ffe8c2;
    font-weight: 600;
    /* สีครีมอ่อน */
    transform: translateY(-2px);
    /* เด้งขึ้นเล็กน้อย */
}

/* Hover เลขเปลี่ยนสี */
.step-list .list-group-item:hover::before {
    color: #e67e22;

    /* สีส้มเข้ม */
}

/* Step สุดท้าย highlight */
.step-list .highlight {
    background: #f59e0b;
    color: #fff;

}

.step-list .highlight::before {
    color: #fff;
}

/* Hover เฉพาะ highlight */
.step-list .highlight:hover {
    background: #d97706;
    color: #fff;
    font-weight: 600;
    /* ส้มเข้มขึ้น */
}

.step-list .highlight:hover::before {
    color: #fff;
}

.step-section-title span {
    font-weight: 300 !important;
    font-size: 20px !important;
}

.step-noted-title {
    padding: 8px 32px;
    width: fit-content;
    border-radius: 100px;
    font-weight: 600;
    background-color: #FFE7C2;
    color: #214082;
    margin-top: 32px;
    pointer-events: none;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.service-card h5 {
    color: #fff;
    text-align: left;
}

.service-card img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.service-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    background: linear-gradient(to top,
            rgba(143, 67, 54, 0.7),
            /* สีน้ำตาลเข้ม 70% */
            rgba(143, 67, 54, 0)
            /* โปร่งใส */
        );
}

.service-card h5 {
    font-weight: bold;
    margin-bottom: 8px;
}

.service-card p {
    text-align: left;
    font-size: 14px;
    margin: 0;
}

.btn-foonter {
    padding: 8px 32px;
}

.btn-foonter:hover {
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    /* ครีมอ่อน */
    color: #214082;
    /* น้ำตาลเข้ม */
}

.contact-section .logo-text {
    font-size: 48px;
    margin: 5px 0;
}

.contact-section .logo-text .jp {
    font-size: 18px;
    margin-left: 6px;
}

.contact-section p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-section a {
    color: #214082;
    text-decoration: none;
}

.contact-section a:hover {
    color: #000;
}

/* Footer Bottom */
.footer-bottom {
    background: #000;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

/* Mobile Layout */
@media (max-width: 767.98px) {
    .contact-section .row {
        flex-direction: column;
    }

    .contact-section .col-md-6 {
        margin-bottom: 20px;
    }
}


/* Sticky QR Box */
.qr-box {
    position: fixed;
    bottom: 80px;
    /* ขยับขึ้นมาให้ไม่ชนกับปุ่ม scroll */
    right: 20px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.qr-box img {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.qr-box .close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #6b3e2e;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 30px;
    line-height: 12px;
}

/* Scroll to top button */
.scroll-top {
    bottom: 20px;
    right: 20px;
    background: #6b3e2e;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 18px;
    display: none;
    z-index: 10000;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.contact-section-logo {
    width: 240px;
}

.footer-icon-image img {
    width: 30px;
}

.footer-icon-image-text {
    line-height: 2.5 !important;
}

.contact-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    /* เรียงแนวตั้ง */
    gap: 15px;
    z-index: 999;
}

.contact-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    /* เรียงแนวตั้ง */
    align-items: center;
    gap: 15px;
    /* ระยะห่างแต่ละปุ่ม */
    z-index: 999;
}

.contact-icons .icon {
    width: 55px;
    height: 55px;
    color: #214082;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
    border: none;
    padding: 0;
}

.contact-icons .icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.contact-icons .icon:hover {
    transform: scale(1.1);
}

.scroll-top {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    display: none;
    /* ซ่อนก่อน รอให้ JS แสดง */
}

.main-banner-bg {
    position: absolute;
    z-index: -1;
    padding: 0px;
}

.main-banner-box {
    position: relative;
}

.why-section-box-content {
    background: rgba(255, 255, 255, 0.3);
    /* white with 30% opacity */
    backdrop-filter: blur(10px);
    /* blur effect on background */
    -webkit-backdrop-filter: blur(10px);
    /* for Safari support */
    border-radius: 12px;
    border: 1.3px solid #fff;
}

/* Section Background */
.reason-section {
    background: linear-gradient(to bottom, #ffffff, #E9F3FD);
    padding: 4rem 2rem;
}

/* Title */
.reason-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #FF914D;
    margin-bottom: 2rem;
}

.reason-title span {
    color: #5084CB;
}

.ecoart {
    color: #FF914D;
}

/* Content Flex */
.reason-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.reason-image img {
    max-width: 220px;
}

.reason-list {
    flex: 1;
}

.reason-item {
    text-align: left;
    background: rgba(255, 255, 255, 0.3);
    /* white with 30% opacity */
    backdrop-filter: blur(10px);
    /* blur effect on background */
    -webkit-backdrop-filter: blur(10px);
    /* for Safari support */
    border-radius: 12px;
    border: 1.3px solid #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #214082;
    transition: 0.5s;
    cursor: pointer;
}

.reason-item:hover {
    background-color: #5084CB;
    color: #fff;
    border: 1.3px solid #5084CB;
}

.reason-content-section {
    padding: 16px;
    background: #FFFFFF;
    background: linear-gradient(179deg, rgba(255, 255, 255, 1) 0%, rgba(233, 243, 253, 1) 47%, rgba(148, 190, 237, 1) 100%);
}

.reason-title-image {
    width: 100%;
    max-width: 280px;
}

/* Section */
.course-section {
    padding-top: 0px !important;
    /* พื้นหลังฟ้าอ่อนตามภาพ */
    text-align: center;
    border-radius: 12px;
}

/* Title */
.course-title {
    background: rgba(255, 255, 255, 0.3);
    /* white with 30% opacity */
    backdrop-filter: blur(10px);
    /* blur effect on background */
    -webkit-backdrop-filter: blur(10px);
    /* for Safari support */
    border-radius: 12px;
    border: 1.3px solid #fff;

    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
}

.course-title span {
    display: block;
    color: #FFF37B;
    /* สีเหลือง */
    font-weight: bold;
}

/* Grid */
.course-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Card */
.course-card {
    background: rgba(255, 255, 255, 0.3);
    /* white with 30% opacity */
    backdrop-filter: blur(10px);
    /* blur effect on background */
    -webkit-backdrop-filter: blur(10px);
    /* for Safari support */
    border-radius: 12px;
    border: 1.3px solid #fff;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.course-card:hover {
    background: rgba(255, 255, 255, 0.5);
}

.course-card img {
    height: auto;
    margin-bottom: 1rem;
}

.course-card p {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Button */
.course-card button {
    background: #FF914D;
    color: #fff;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 100px;
    font-weight: 400;
    cursor: pointer;
    transition: 0.3s;
}

.course-card button:hover {
    background: #e67832;
    font-weight: 600;
}

.course-section-box {
    background: #94BEED;
    padding: 16px;
    padding-bottom: 64px;
}

.about-section {
    padding: 3rem 1.5rem;
}

.about-container {
    margin: 0 auto;
    text-align: center;
    color: #333;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.about-content-box .about-image.content-pc img {
    max-width: 300px;
}

.about-content h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff7b3f;
    /* สีส้ม */
}

.about-content h3 {
    font-size: 1.4rem;
    margin: 0.5rem 0 1rem;
}

.about-content .ecoart {
    color: #2bb673;
    /* สีเขียว */
    font-weight: bold;
}

.about-content p {
    font-size: 20px;
    line-height: 1.8;
    max-width: 800px;
    color: #214082;
    margin: 0 auto 2rem;
}

.about-philosophy {
    text-align: left;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
}

.about-philosophy h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff7b3f;
    margin-bottom: 1rem;
}

.about-philosophy ul {
    list-style: none;
    padding: 0;
}

.about-philosophy ul li {
    margin-bottom: 0.8rem;
    font-size: 20px;
    position: relative;
    padding-left: 1.2rem;
    color: #214082;
}

.about-philosophy ul li::before {
    content: "•";
    color: #2bb673;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.about-content-logo-text {
    width: 100%;
    max-width: 300px;
    margin-bottom: 16px;
}

.contact-section-box {
    background: rgba(255, 255, 255, 0.5);
    /* white with 30% opacity */
    backdrop-filter: blur(10px);
    /* blur effect on background */
    -webkit-backdrop-filter: blur(10px);
    /* for Safari support */
    border-radius: 12px;
    border: 1.3px solid #fff;
    padding: 16px;
}

.contact-section-title {
    color: #FF914D;
}
.banner-btn:hover{
    font-weight: 600;
}