﻿:root {
    --primary-navy: #0b1f3a;
    --secondary-navy: #102a4c;
    --gold: #c9a24a;
    --light: #f5f7fb;
    --text-dark: #1c1c1c;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================
    สีกรมเข้ม #0B1F3A;
    สีทอง #d4af37;
=================================================== */



/* ==============================
       Animation  reveal  ข้อความ slide up
============================== */
/*.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease-out, transform .7s ease-out;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translate3d(0,0,0);
    transform: translateY(0);
} */
 

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: .8s ease;
} 
.reveal.active {
    opacity: 1;
    transform: none;
}



/* ===================================================
   Responsive
=================================================== */
html {
    height: 100%;
    font-size: 14px;
}  
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}


body {
    font-family: "Segoe UI", sans-serif;
    background: var(--light);
    /* background-color: #0A1930;*/
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color .3s ease, color .3s ease;
}

/*html,
body {
    font-family: "Segoe UI", sans-serif;
    background: var(--light);*/
    /* background-color: #0A1930;*/
    /*transition: background-color .3s ease, color .3s ease;
    color: var(--text-dark);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}*/

main {
    flex: 1;
   /* animation: fadeIn .4s ease-in-out;*/
}



/* ==============================
 Header  Luxury Transparent Navbar
============================== */
 
[data-bs-theme="dark"] .navbar {
    background: rgba(20,20,20,0.75) !important;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
   /* background: transparent;*/
    transition: all .4s ease;
    z-index: 1050;
    padding: 18px 0;
    backdrop-filter: blur(12px);
    /* background: rgba(255,255,255,0.85) !important;*/
    transition: all .3s ease;
}

/*ให้เมนู nav backcolor เป็น transparent*/
.navbar-transparent {
    background: transparent;
}

/*ให้เมนู nav มี backcolor*/
.navbar-light-bg {   
    background: rgba(20,20,20,0.75) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

/* Scroll แล้ว */

.navbar.scrolled {
    /*background: linear-gradient(90deg,#0B1F3A,#153B67);*/
    background: rgba(20,20,20,0.75) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
    /*border-bottom: 2px solid #D4AF37;*/ /* เส้นล่างสีทอง*/
    border-bottom: none;
    padding: 10px 0;
}
/*menu*/
.navbar-brand {
    color: white !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin-left: 10px;
    transition: .3s;
}
.navbar-nav .nav-link-gold {
    color: #d4af37 !important; 
    font-weight: 500;
    margin-left: 10px;
    transition: .3s;
}

.navbar-nav .nav-link:hover {
    color: #D4AF37 !important;
} 

/* ===== Hamburger Mobile ===== */
.navbar-toggler {
    border: none;
    padding: 6px 8px;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* เส้น Hamburger สีขาว */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* ===== Mobile ===== */
@media (max-width: 576px) {
    .nav-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    /* ให้ language ไปอยู่ “บน phone button” */
    .phone-btn {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .lang-menu {
        order: 1;
        width: 100%;
        text-align: right;
    }

    .theme-toggle {
        order: 3;
    }
}
/* ===================================================
company-logo
=================================================== */
.company-logo {
    width: 100%;
    height: 36px;
    object-fit: contain;
}

.company-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.company-subtitle {
    font-size: .8rem;
    color: rgba(255,255,255,.8);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.navbar-solid .company-name {
    color: #1d3557;
}

.navbar-solid .company-subtitle {
    color: #6c757d;
}

/* ===================================================
  Theme toggle button 
=================================================== */
/*.theme-toggle {
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    margin-left: 10px;
}*/

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-gold {
    text-decoration: none;
    color: #d4af37 !important; /* สีทอง */
}

/*.text-gold:hover {
    text-decoration: none;
    color: #ffd700 !important;*/ /* ทองสว่างตอน hover */
/*}*/

/*ขีดขั้น*/
.lang-switch a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 6px;
}

.lang-switch a:hover {
    color: #c9a24a;
}

.lang-switch img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,.2);
    transition: .3s;
}
/*.lang-switch a:hover img {
    transform: scale(1.08);
}*/
 
/*.lang-switch a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 0px;
    border-radius: 6px;
}*/
 
  
.lang-switch a:hover img {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(212,175,55,.35);
}
 
/* ===================================================
   Button
=================================================== */
.btn-outline-primary {
    border: 1px solid white;
    color: white;
}

.btn-outline-primary:hover {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #0B1F3A;
}


/* ==============================
  section-blue 
============================== */
.section-blue {
    position: relative;
    background: #0B1F3A;
   /* padding: 80px 0;*/
}

/*    .section-blue::before {
        content: "";
        position: absolute;
        top: -50px;
        left: 0;
        width: 100%;
        height: 50px;
        background: linear-gradient( to bottom, #07111D 0%, #091827 50%, #0B1F3A 100% );
        pointer-events: none;
    }*/


.painpoint-section { 
    background: #0B1F3A; 
}
.aboutas-section {
    background: #FFFFFF;
}
.service-section {
    background: #F7F9FC;
    --section-bg: 247,249,252;
}
.cta-section {
    background: #0B1F3A;
}



/* ==============================
  section-gradient blue-to-white 
============================== */
.section-gradient-blue-to-white {
    height: 20px;
    /* background: linear-gradient( 180deg, #0B1F3A 0%, #243B5A 35%, #EEF2F6 85%, #FFFFFF 100% );*/
    background: linear-gradient( to bottom, #0B1F3A 0%, #52677F 35%, #D9DEE5 70%, #FFFFFF 100% );
}


/* ==============================
   sitemaphtml
============================== */
#sitemaphtml {
    background: linear-gradient(135deg,#0B1F3A 0%,#163A63 50%,#1F5A99 100%);
    color: #fff;
    border-top: 4px solid #D4AF37;
    padding: 70px 0;
    /* border-image: linear-gradient( 90deg, rgba(212,175,55,0) 0%, rgba(212,175,55,1) 50%, rgba(212,175,55,0) 100% ) 1;*/
}

    #sitemaphtml h5 {
        color: #ffffff;
        font-weight: 700;
        margin-bottom: 20px;
    }

    #sitemaphtml a {
        color: #DDE8F3;
        text-decoration: none;
        transition: .3s;
    }

        #sitemaphtml a:hover {
            color: #D4AF37;
            padding-left: 6px;
        }

    #sitemaphtml p,
    #sitemaphtml li {
        color: #C7D6E5;
        line-height: 1.9;
    }

    .gold-line_gradient_left {
        height: 3px;
        width: 100%;
        background: linear-gradient( 90deg, rgba(201,162,74,1) 0%, rgba(201,162,74,0.6) 40%, rgba(201,162,74,0) 100% );
        border-radius: 5px;
    }

    .gold-line_gradient_center {
        height: 3px;
        width: 100%;
        border-radius: 999px;
        background: linear-gradient( 90deg, rgba(201,162,74,0) 0%, rgba(201,162,74,1) 50%, rgba(201,162,74,0) 100% );
        filter: blur(0.2px);
    }
/* ==============================
  Sticky Footer
============================== */  

/* ให้เนื้อหาขยายเต็มพื้นที่ */
.main-content {
    flex: 1;
}

/* ==============================
 layout footer
============================== */ 
/*layout footer*/
/*.footer-bottom {
    background: #081527;
    color: #cfd8e3;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.08);
} 
    .footer-bottom a {
        color: #cfd8e3;
        text-decoration: none;
    } 
        .footer-bottom a:hover {
            color: #D4AF37;
        }*/

.footer-bottom {
    background: #0A1930;
    color: #d6dde7;
    border-top: 3px solid rgba(255,255,255,.08);
    padding: 14px 0;
    font-size: .85rem;
} 
.footer-bottom a {
    color: #d6dde7;
    text-decoration: none;
    transition: .3s;
}

.footer-bottom a:hover {
    color: #D4AF37;
}


/* ==============================
 serice icon
============================== */ 

.practice-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #D7B46A;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #C69C4A;
    font-size: 34px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

 

/* ==============================
social-icon
============================== */
 
.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f6f1;
    color: #555;
    font-size: 22px;
    text-decoration: none;
    transition: all .3s ease;
}


    /* Facebook */
    .social-icon .fa-facebook-f {
        color: #1877F2;
    }


    /* Line */
    .social-icon .fa-line {
        color: #06C755;
    }


    /* Phone */
    .social-icon .fa-phone {
        color: #0d6efd;
    }


    /* Youtube */
    .social-icon .fa-youtube {
        color: #FF0000;
    }



    .social-icon:hover {
        transform: translateY(-3px);
        background: #b08d57;
    } 
        .social-icon:hover i {
            color: white;
        }




/* ==============================

  ------ ⚖ -----------

============================== */

/* เส้นทอง + icon */
.law-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.law-divider span {
    width: 45px;
    height: 1px;
    background: #c8a45d;
}

.law-icon { 
 
    bottom: -25px;
    left: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: white;
    border: 2px solid #c8a45d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8a45d;
    font-size: 24px;
}

/* ==============================

  ------ ปุ่ม contactus และ โทร -----------

============================== */
.contact-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* จอเล็กให้ขึ้นบรรทัดใหม่ */
}

.btn-contact,
.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
}

/* Contact Us */
.btn-contact {
    background: #c8a45d;
    color: #fff;
    border: 2px solid #c8a45d;
}

    .btn-contact:hover {
        background: #fff;
        color: #c8a45d;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,.15);
    }

/* Phone */
.btn-phone {
    background: transparent;
    color: #333;
    border: 2px solid #c8a45d;
}

    .btn-phone:hover {
        background: #c8a45d;
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,.15);
    }


/* pagination */
.pagination .page-link {
    color: #0d2c54;
    border-radius: 6px;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background: #0d2c54;
    border-color: #0d2c54;
}

.pagination .page-link:hover {
    background: #c9a45b;
    color: #fff;
    border-color: #c9a45b;
}








/* Floating Contact Button */

.floating-contact {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}


.contact-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    /*transition: all .3s ease;*/
}

    .contact-btn:hover,
    .contact-btn:focus,
    .contact-btn:active {
        transform: translateY(-3px);
        color: #fff;
        text-decoration: none;
    }


    /* Phone */
    .contact-btn.TelOffice {
        background: #198754;
    }


    /* Line */
    .contact-btn.Line {
        background: #06C755;
    }


    /* Facebook */
    .contact-btn.Facebook {
        background: #1877f2;
    }


/* Mobile */
@media(max-width:768px) {

    .floating-contact {
        right: 15px;
    }

    .contact-btn {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }
}



