/* =========================================
   MASTER CODE: HEADER & SYMMETRIC BUTTONS (HOVER EFFECT) เมนูห้ามแก้
   ========================================= */

/* 1. แถบเมนูกระจกใสและขยายพื้นที่ชิดขอบ */
.site-header {
    background: rgba(255, 255, 255, 0.4) !important; 
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    width: 100% !important; 
    z-index: 9999 !important;
    border-radius: 0 0 15px 15px !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.4s ease-in-out !important;
}

.site-header .s-container {
    max-width: 98% !important; 
    width: 98% !important;
}

/* 2. จัดระยะห่างโลโก้กับเมนูให้ดูโปร่ง */
.site-navigation {
    margin-left: 60px !important;
    flex-grow: 1 !important;
}

/* 3. ดีไซน์ปุ่มคู่ (ผอมเพรียว + ตัวหนังสือไม่ซ้อน) */
.s-nav > li.nav-button-quote, 
.s-nav > li.nav-button-line {
    margin-left: 10px !important;
    display: flex !important;
    align-items: center !important;
}

.s-nav > li.nav-button-quote > a,
.s-nav > li.nav-button-line > a {
    white-space: nowrap !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 5px 15px !important; /* ปรับให้ซ้ายขวาพอดีคำ */
    line-height: 1.2 !important;
    height: auto !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    display: inline-block !important;
    text-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    
    /* เงาปกติแบบเบาๆ */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important; /* สปริงตัวให้นุ่มนวล */
}

/* --- แยกสีพื้นหลัง --- */
.s-nav li.nav-button-quote a { background-color: #051325 !important; color: #fff !important; }
.s-nav li.nav-button-line a { background-color: #06C755 !important; color: #fff !important; }

/* =========================================
   เพิ่มเอฟเฟกต์ "ชี้แล้วนูนลอย" (Hover)
   ========================================= */
.s-nav li.nav-button-quote a:hover,
.s-nav li.nav-button-line a:hover {
    transform: translateY(-3px) !important; /* สั่งให้ปุ่มลอยขึ้น 3 พิกเซล */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important; /* เงาเข้มและกว้างขึ้นเพื่อให้ดูนูน */
    opacity: 0.95 !important;
}

/* 4. เคลียร์พื้นที่ส่วนเกิน */
.site-header-space, .top-bar { display: none !important; }
body.home { padding-top: 0 !important; }

/* =========================================
/* คอนเทนเนอร์หลัก */
.stat-container-wrapper {
    display: flex;
    flex-wrap: wrap; /* ให้ขึ้นบรรทัดใหม่เมื่อเนื้อที่หมด */
    justify-content: center;
    gap: 20px;
    padding: 60px 10px;
    width: 100%;
    box-sizing: border-box;
}

/* สไตล์กล่องสี่เหลี่ยม */
.stat-box {
    background-color: #ffffff;
    flex: 1; /* แบ่งพื้นที่เท่าๆ กัน */
    min-width: 250px; /* ความกว้างขั้นต่ำของแต่ละกล่อง */
    max-width: 300px;
    padding: 35px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(0,0,0,0.02) !important;
}

/* ชี้แล้วนูน */
.stat-box:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12) !important;
}

/* ข้อความหัวกล่อง */
.stat-label {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #888888;
    margin: 0 0 10px 0 !important;
    min-height: 40px; /* ล็อกความสูงกันกล่องเบี้ยวจากบรรทัดไม่เท่ากัน */
    display: flex;
    align-items: center;
}

/* ตัวเลข */
.stat-number {
    font-size: 56px !important;
    font-weight: 800 !important;
    color: #051325;
    line-height: 1 !important;
    margin-bottom: 15px !important;
}

.plus-sign {
    color: #06C755; /* เขียว Line */
}

/* ข้อความท้ายกล่อง */
.stat-text {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #333333;
    margin: 0 !important;
}


/* =========================================2
   แก้ไข: STAT SECTION FULL WIDTH & SEAMLESS GRADIENT (DEEP DIMENSION)
   ========================================= */

/* 1. คอนเทนเนอร์หลัก: ขยายเต็มจอ + ไล่สีให้สัมพันธ์กับภาพด้านบน */
.stat-container-wrapper {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 25px; /* เพิ่มช่องว่างเล็กน้อยให้ดูไม่แน่น */
    padding: 120px 5%; /* เพิ่มพื้นที่ให้กล่องที่ลอยสูงขึ้น */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    background: linear-gradient(180deg, #000000 0%, #051325 25%, #051325 100%) !important;
    margin-top: -10px !important; 
    position: relative;
    z-index: 10;
}

/* 2. สไตล์กล่องสี่เหลี่ยม: ทุกกล่องจะดูลอยเด่นขึ้นมาตั้งแต่แรก */
.stat-box {
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    flex: 1; 
    min-width: 250px; 
    max-width: 300px;
    padding: 50px 25px; /* เพิ่มความสูงกล่อง */
    border-radius: 24px; /* มนสวยพรีเมียม */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    
    /* แก้ไขจุดนี้: สั่งให้ทุกลูกลอยขึ้นและมีเงาลึกทันที */
    transform: translateY(-15px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 3. พิเศษ! สั่งให้กล่อง "ตรงกลาง" หรือกล่องที่เราต้องการ (เช่น ตัวเลข 1.5K) เด่นกว่ากล่องอื่น */
/* (ใน HTML ให้ใส่ class เพิ่มที่กล่องนั้นว่า 'featured-box' หรือใช้ลำดับที่ 2 แบบนี้ครับ) */
.stat-box:nth-child(2) {
    transform: translateY(-30px) scale(1.05) !important; /* ลอยสูงกว่าและใหญ่กว่า */
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid #06C755 !important; /* ขอบเขียวเน้นๆ เหมือนรูป IMG_5379 */
    box-shadow: 0 35px 70px rgba(6, 199, 85, 0.2) !important;
    z-index: 15;
}

/* 4. ข้อความหัวกล่อง */
.stat-label {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #a0aec0 !important;
    margin: 0 0 12px 0 !important;
    min-height: 40px; 
    display: flex;
    align-items: center;
}

/* 5. ตัวเลข: สีขาวเด่น */
.stat-number {
    font-size: 58px !important;
    font-weight: 850 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    margin-bottom: 15px !important;
}

.plus-sign {
    color: #06C755;
}

/* 6. ข้อความท้ายกล่อง */
.stat-text {
    font-size: 17px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

/* =========================================
   Responsive: มือถือ
   ========================================= */
@media (max-width: 1100px) {
    .stat-box { flex: 1 1 40%; }
    .stat-box:nth-child(2) { transform: translateY(-15px) !important; } /* มือถือให้ลอยเท่ากันเพื่อความเป็นระเบียบ */
}

@media (max-width: 600px) {
    .stat-container-wrapper { padding: 60px 20px; }
    .stat-box { flex: 1 1 100%; max-width: 100%; margin-bottom: 20px; }
    .stat-number { font-size: 50px !important; }
}

/* =========================================
   GREEN BANNER: ADJUSTABLE FONT & FULL WIDTH บริการให้คำปรึกษาด้านไอที
   ========================================= */

/* ปรับขนาดตัวอักษรที่นี่ */
.proone-green-banner h4 {
    font-size: 48px !important; /* ปรับขนาดตามต้องการ (เช่น 28px, 36px, 42px) */
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

/* คอนเทนเนอร์หลัก (ลิงก์) */
a.proone-green-banner-wrapper {
    text-decoration: none !important;
    display: block; 
    width: 100%;
    margin-top: -40px !important; /* ดันขึ้นไปเกยทับ Section บน (Overlap) */
    margin-bottom: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 10;
}

/* แถบสีเขียว */
.proone-green-banner {
    background-color: #06C755 !important;
    padding: 50px 20px; /* ปรับความหนาของแถบ (บน-ล่าง) */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* ทำขอบบนมนเพื่อทำลายเส้นตรง (เพิ่มมิติ) */
    border-radius: 40px 40px 0 0 !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

/* เอฟเฟกต์ตอน Hover (ชี้แล้วเปลี่ยนสี/ขยาย) */
.proone-green-banner-wrapper:hover .proone-green-banner {
    background-color: #05b34c !important; /* เข้มขึ้นเล็กน้อย */
}

.proone-green-banner-wrapper:hover h4 {
    transform: scale(1.05); /* ตัวหนังสือขยายขึ้นเล็กน้อยตอนชี้ */
}

/* สำหรับมือถือ (Responsive) */
@media (max-width: 600px) {
    .proone-green-banner h4 {
        font-size: 20px !important; /* ลดขนาดฟอนต์บนมือถือ */
    }
    .proone-green-banner {
        padding: 40px 15px;
        border-radius: 30px 30px 0 0 !important;
    }
}