/*** Spinner Start ***/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }

/*** Spinner End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-md-square {
    width: 46px;
    height: 46px;
}

.btn-lg-square {
    width: 58px;
    height: 58px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Button End ***/


/*** Topbar Start ***/

.topbar .top-info {
    letter-spacing: 1px;
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar .top-link a {
    margin-right: 10px;
}

#note {
    width: 500px;
    overflow: hidden;
}

#note small {
    position: relative;
    display: inline-block;
    animation: mymove 5s infinite;
    animation-timing-function: all;
}

@keyframes mymove {
    from {left: -100%;}
    to {left: 100%;}
}

/*** Topbar End ***/


/*** Navbar Start ***/
.navbar .navbar-nav {
    padding: 15px 0;
}

.navbar .navbar-nav .nav-link {
    padding: 10px;
    color: var(--bs-white);
    font-size: 18px;
    outline: none;
    
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "font awesome 5 free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: .5s;
    opacity: 1;
}

/* THEME ORANGE – NAVBAR */
.navbar {
    background: transparent;
}

.navbar .navbar-nav .nav-link {
    padding: 14px 18px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border-radius: 999px;
    transition: background-color .3s, color .3s;
}

/* ลิงก์ hover + หน้า active */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #212121 !important;
}

/* สีแบรนด์ไทยแนนซ์ */
.navbar-brand h1 .text-secondary {
    color: #ffe082 !important; /* เหลืองอ่อน */
}

/* เมนูตอนจอเล็ก ให้พื้นหลังส้มอ่อนหน่อย */
@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        background: #ffb74d;
        border-radius: 0 0 18px 18px;
        padding: 10px 0;
    }
}

/* ORANGE NAVBAR THEME */
.navbar-orange {
    background: #ff8a00; /* สีส้มหลัก */
}

/* โลโก้/ตัวอักษรแบรนด์ให้สมดุลกับเมนู */
.navbar-brand-text {
    font-size: 1.6rem;
    line-height: 1;
}

.text-brand-accent {
    color: #ffe082; /* ส้มอ่อน/เหลืองครีม */
}

/* เมนูด้านขวา */
.navbar .navbar-nav .nav-link {
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    border-radius: 999px;
    transition: background-color .3s, color .3s, transform .15s;
}

/* hover + active เป็น pill สีส้มอ่อน */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: #212121 !important;
    transform: translateY(-1px);
}

/* มือถือ: dropdown เป็นส้มอ่อน */
@media (max-width: 991.98px) {
    .navbar-orange .navbar-collapse {
        background: #ffb74d;
        border-radius: 0 0 18px 18px;
        padding: 0.4rem 0 0.8rem;
    }

    .navbar .navbar-nav .nav-link {
        border-radius: 8px;
        margin: 0 0.5rem 0.3rem;
    }
}

/*** Navbar End ***/


/*** Carousel Start ***/

.carousel-item {
    position: relative;
}

.carousel-item::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .6);
}

.carousel-caption {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-item p {
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.carousel-control-prev {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 0;
    background: var(--bs-primary);
    border-radius: 0 50px 50px 0;
    opacity: 1;
}

.carousel-control-prev:hover {
    background: var(--bs-secondary);
    transition: .8s;
}

.carousel-control-next {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    right: 0;
    background: var(--bs-primary);
    border-radius: 50px 0 0 50px;
    opacity: 1;
}

.carousel-control-next:hover {
    background: var(--bs-secondary);
    transition: .8s;
}

.carousel-caption .carousel-content a button.carousel-content-btn1 {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn1:hover {
    background: var(--bs-primary);
    color: #ffffff;
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2 {
    background: var(--bs-primary);
    color: var(--bs-white);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2:hover {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

#carouselId .carousel-indicators li {
    width: 30px;
    height: 10px;
    background: var(--bs-primary);
    margin: 10px;
    border-radius: 30px;
    opacity: 1;
}

#carouselId .carousel-indicators li:hover {
    background: var(--bs-secondary);
    opacity: 1;
}

@media (max-width: 992px) {
    .carousel-item {
        min-height: 500px;
    }
    
    .carousel-item img {
        min-height: 500px;
        object-fit: cover;
    }

    .carousel-item h1 {
        font-size: 40px !important;
    }

    .carousel-item p {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        min-height: 400px;
    }
    
    .carousel-item img {
        min-height: 400px;
        object-fit: cover;
    }

    .carousel-item h1 {
        font-size: 28px !important;
    }

    .carousel-item p {
        font-size: 14px !important;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-white);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-white);
}

/*** Carousel End ***/


/*** Services Start ***/

.services .services-item {
    box-shadow: 0 0 60px rgba(0, 0, 0, .2);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 10px 0;
    position: relative;
}


.services-content::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-radius: 10px 10px 0 0;
    background: rgba(3, 43, 243, 0.8);
    transition: .5s;
}

.services-content::after {
    top: 0;
    bottom: auto;
    border-radius: 10px 10px 10px 10px;
}

.services-item:hover .services-content::after {
    height: 100%;
    opacity: 1;
    transition: .5s;
}

.services-item:hover .services-content-icon {
    position: relative;
    z-index: 2;
}

.services-item .services-content-icon i,
.services-item .services-content-icon p {
    transition: .5s;
}

.services-item:hover .services-content-icon i {
    color: var(--bs-secondary) !important;
}

.services-item:hover .services-content-icon p {
    color: var(--bs-white);
}

/* การ์ดคุณสมบัติลูกค้า */
.customer-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
    position: relative;
    overflow: hidden;
}

/* ไล่สีมุมการ์ดเล็ก ๆ เพิ่มมิติ */
.customer-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 153, 0, 0.10), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

/* แท็กบนหัวการ์ด */
.customer-tag {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 500;
    display: inline-block;
}

/* รายการคุณสมบัติ */
.feature-list {
    margin-top: 8px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #4b5563;
}

/* จุดเช็กสีเขียวแทน bullet ปกติ */
.feature-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #22c55e;
    position: relative;
    flex-shrink: 0;
}

.feature-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 4px;
    border-left: 2px solid #22c55e;
    border-bottom: 2px solid #22c55e;
    transform: rotate(-45deg);
    left: 3px;
    top: 4px;
}

/* hover ยกการ์ดขึ้นเล็กน้อย */
.customer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    transition: all 0.25s ease;
}


/*** Services End ***/


/*** Blog Start ***/
.blog-item .blog-btn {
    z-index: 2;
}

.blog-btn .blog-btn-icon {
    height: 50px;
    position: relative;
    overflow: hidden;
}

.blog-btn-icon .blog-icon-2 {
    display: flex;
    position: absolute;
    top: 6px;
    left: -140px;
    
}

.blog-btn-icon:hover .blog-icon-2 {
    transition: 1s;
    left: 5px;
    top: 6px;
    padding-bottom: 5px;
}
.blog-icon-1 {
    position: relative;
    top: -4px;
}
.blog-btn-icon:hover .blog-icon-1 {
    top: 0;
    right: -140px;
    transition: 1s;
}
/*** Blog End ***/


/*** Contact Start ***/
.contact-detail::before {
    position: absolute;
    content: "";
    height: 50%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgb(210, 243, 235, 1), rgba(230, 250, 245, .3)), url(../img/background.jpg) center center no-repeat;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}

.contact-map {
    background: #26d48c;
}

.contact-form {
    background: #26d48c;
}

/*** Contact End ***/


/*** Footer Start ***/

.footer .short-link a,
.footer .help-link a,
.footer .contact-link a {
    transition: .5s;
}

.footer .short-link a:hover,
.footer .help-link a:hover,
.footer .contact-link a:hover {
    letter-spacing: 1px;
}

.footer .hightech-link a:hover {
    background: var(--bs-secondary);
    border: 0;
}

/*** Footer Orange Theme Override ***/

.footer {
    background: radial-gradient(circle at top left, #3b1c00 0%, #1a0a02 45%, #000000 100%);
    position: relative;
    overflow: hidden;
}

/* วงกลมไฮไลต์สีส้มด้านหลังเบา ๆ */
.footer::before,
.footer::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 0, 0.32) 0%, transparent 65%);
    z-index: 0;
}
.footer::before {
    width: 260px;
    height: 260px;
    top: -80px;
    left: -60px;
}
.footer::after {
    width: 220px;
    height: 220px;
    bottom: -60px;
    right: -40px;
}

/* ทำให้เนื้อหาข้างในอยู่เหนือแสงเล่น ๆ ด้านหลัง */
.footer .container {
    position: relative;
    z-index: 1;
}

/* หัวข้อสีส้มอ่อน */
.footer h3.text-secondary,
.footer h1 .text-secondary {
    color: #ffb74d !important;
}

/* ลิงก์ใน footer ให้เป็นสีขาว อ่านง่าย */
.footer .short-link a,
.footer .help-link a,
.footer .contact-link a {
    color: #f5f5f5;
}

/* ไอคอนลูกศร / ไอคอนหน้าข้อความใช้สีส้ม */
.footer .short-link a i,
.footer .help-link a i,
.footer .contact-link i {
    color: #ffb74d !important;
}

/* hover แล้วให้มีพื้นหลังส้มจาง ๆ เลื่อนตัวหนังสือไปนิดนึง */
.footer .short-link a:hover,
.footer .help-link a:hover,
.footer .contact-link a:hover {
    background: rgba(255, 138, 0, 0.12);
    border-radius: 6px;
    padding-left: 6px;
}

/* เส้นคั่นด้านล่างให้เป็นสีส้มอ่อน */
.footer hr.text-light {
    border-color: rgba(255, 183, 77, 0.6) !important;
}

/* ปุ่ม Social ที่ footer ให้เป็นโทนส้มครีม */
.footer .hightech-link .btn-light {
    background: #fff3e0;
    border: 0;
}
.footer .hightech-link .btn-light:hover {
    background: #ffb74d;
}

/* ข้อความเครดิตด้านล่างใช้สีเทาอ่อน+ส้ม */
.footer span.text-light a.text-secondary {
    color: #ffb74d !important;
}
.footer span.text-light {
    color: #e0e0e0 !important;
}


/****************************************/
/* THEME ORANGE OVERRIDE                */
/****************************************/

/* เปลี่ยนค่าสีหลักของ Bootstrap ให้เป็นโทนส้ม */
:root {
    --bs-primary: #ff8a00;      /* ส้มหลัก */
    --bs-secondary: #ffe082;    /* ส้มอ่อน/เหลืองครีม */
    --bs-dark: #212121;
}

/* ปุ่มทั่วไป */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-primary:hover {
    background-color: #e67600;
    border-color: #e67600;
}

.btn-secondary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: #3b3b3b;
}
.btn-secondary:hover {
    background-color: #ffd54f;
    border-color: #ffd54f;
    color: #000;
}

/****************************************/
/* SECTION BACKGROUNDS                  */
/****************************************/

/* พื้นหลังทั้งเซกชันบริการ */
.container-fluid.services {
    background: radial-gradient(circle at top left, #fff3e0 0%, #ffffff 45%, #ffe0b2 100%);
}

/* กล่องบริการ */
.services .services-item {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    background-color: #ffffff;
}

/* แถบ hover ด้านในการ์ดบริการเป็นสีส้ม */
.services-content::after {
    border-radius: 18px;
    background: rgba(255, 138, 0, 0.85);
}

/* เวลา hover ไอคอน/ข้อความในการ์ดบริการ */
.services-item:hover .services-content-icon i {
    color: #ffe082 !important;
}
.services-item:hover .services-content-icon p,
.services-item:hover .services-content-icon h4 {
    color: #ffffff;
}

/* พื้นหลังส่วน คุณสมบัติลูกค้า */
.container-fluid.services .pt-5.mt-4 {
    background: linear-gradient(180deg, #fff8ef 0%, #ffffff 50%, #ffe8c2 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
}

/* การ์ดคุณสมบัติลูกค้า */
.container-fluid.services .bg-light {
    background-color: #ffffff !important;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
}

/* พื้นหลังส่วน FAQ */
.container-fluid.blog {
    background: linear-gradient(180deg, #ffffff 0%, #fff4e3 100%);
}

/* Accordion FAQ ให้ดูฟุ้งนิด ๆ */
.blog .accordion-item {
    border-radius: 18px !important;
    background-color: #ffffff;
}

/* Header accordion */
.blog .accordion-button {
    background-color: #fff8ef;
    color: #333;
}
.blog .accordion-button:not(.collapsed) {
    background-color: #ffe0b2;
    color: #000;
}

/* พื้นหลัง Contact ด้านหลังการ์ด */
.container-fluid.py-5.mb-5:last-of-type {
    background: radial-gradient(circle at top, #fff3e0 0%, #ffffff 45%, #ffe8c2 100%);
}

/* กล่อง contact detail (การ์ดแต่ละใบ) */
.container-fluid.py-5.mb-5:last-of-type .bg-light {
    background-color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
}

/* แถบด้านบน contact (รูปพื้นหลังเดิม) เปลี่ยนเป็นโทนส้มอมเหลือง */
.contact-detail::before {
    background: linear-gradient(rgba(255, 183, 77, 1), rgba(255, 243, 224, 0.7)),
                url(../img/background.jpg) center center no-repeat;
    background-size: cover;
}

/* กล่อง map / form สีส้มอ่อนแทนเขียว */
.contact-map,
.contact-form {
    background: #ffb74d;
}

/****************************************/
/* COMPONENTS เล็ก ๆ ให้เข้าธีมส้ม     */
/****************************************/

/* ลูกศร carousel */
.carousel-control-prev,
.carousel-control-next {
    background: var(--bs-primary);
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--bs-secondary);
}

/* indicator ด้านล่าง carousel */
#carouselId .carousel-indicators li {
    background: var(--bs-primary);
}
#carouselId .carousel-indicators li:hover {
    background: var(--bs-secondary);
}

/* ปุ่ม back-to-top */
.back-to-top {
    background-color: var(--bs-primary);
    color: #fff;
    border-radius: 50%;
}
.back-to-top:hover {
    background-color: #e67600;
    color: #fff;
}

/*** Footer End ***/

/* การ์ดข่าวสาร */
.news {
    position: relative;
    overflow: hidden;
    background: #f9fafb;        /* พื้นสีเทาอ่อน */
}

/* gradient + ลายจุดด้านหลัง */
.news::before,
.news::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;                /* เอาไปอยู่หลังเนื้อหา */
}

/* ไล่สีฟ้า–ชมพูที่มุมจอ */
.news::before {
    background:
        radial-gradient(circle at top left,  #dbeafe 0,  #f9fafb 55%),
        radial-gradient(circle at bottom right, #fee2e2 0, #f9fafb 60%);
    opacity: 0.7;
}

/* ลายจุดบาง ๆ */
.news::after {
    background-image: radial-gradient(circle, rgba(148,163,184,.22) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.18;
}

/* ดึง container ด้านในขึ้นมาไว้หน้าสุด */
.news > .container {
    position: relative;
    z-index: 1;
}

/* กล่องข่าวให้ดูเป็นการ์ดลอย ๆ */
.news-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.10);
    border: 1px solid rgba(148,163,184,0.25);
    transition: all .25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(15,23,42,0.16);
}

/* รูปข่าวให้สูงเท่ากันทุกใบ */
.news-img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}



