/*
Theme Name: Hello Elementor Child
Theme URI: http://your-website.com/hello-elementor-child/
Description: Child theme for Hello Elementor ลูก theme ออกแบบ เพื่อเว็บไซต์ของ www.sarudafortune.com เท่านั้นทั้งระบบ login และ สร้างการซ้อน ระบบใหนหน้าต่างๆเพื่อความปลอดภัยในเว็บไซต์ ลองรับ vertion WordPress 6.4. +++
Author: jirateap charungpan
Author URI: https://gustabe.com
Template: hello-elementor 
Version: 1.0.0
Text Domain: hello-elementor-child

License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: custom theme, Gustabe.com
*/

/* เพิ่ม CSS ของคุณเองที่นี่ */





.service-grid-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.scroll-button {
    background-color: #6a0dad; /* สีเดียวกับ gradient */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-button:hover {
    opacity: 1;
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

.scrollcon {
  /* Existing styles */
  scroll-behavior: smooth; /* Add smooth scrolling */
}





/* 🔥 คอนเทนเนอร์ของ Scroll */
.scrollcon {
    overflow-x: auto; /* เลื่อนแนวนอนได้ */
    padding-bottom: 10px; /* ป้องกัน scrollbar ทับเนื้อหา */
    margin-bottom: 20px;
}

/* 🟣 ตั้งค่า Grid Layout ให้เรียงในแนว X */
.service-grid {
    display: grid;
    grid-auto-flow: column;
    gap: 20px;
}

/* 🔥 ปรับแต่งการ์ดให้ดูสวย */
.service-card {
    position: relative;
    background: #3b024700; /* สีพื้นหลังหลัก */
    color: #5a2d8a;
    border: 0.5px solid #5a2d8a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 250px;
    max-width: 300px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* ป้องกันเส้นขอบเกิน */
    z-index: 1;
}


.service-card:hover {
    transform: translateY(5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 🔥 เพิ่มรูปปก */
.service-thumbnail img {
    width: 60%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px !important;
    margin-bottom: 10px;
}

/* 🔥 ปรับแต่งเนื้อหา */
.service-content h3 {
    font-size: 20px;
    margin: 10px 0;
}

.service-content p {
    font-size: 14px;
    line-height: 1.5;
    height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* แสดงไม่เกิน 5 บรรทัด */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 🔥 ปรับแต่ง Scrollbar */
.scrollcon::-webkit-scrollbar {
    height: 10px;
}

.scrollcon::-webkit-scrollbar-track {
    background: #f2e6ff;
    border-radius: 10px;
}

.scrollcon::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #6a0dad, #a855f7);
    border-radius: 10px;
    border: 2px solid #f2e6ff;
}

.scrollcon::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a009d, #8b33cc);
}






/* ในไฟล์ style.css ของธีม */

