body {
    font-family: 'Kanit', sans-serif;
    /* เลือกใช้ฟอนต์ Kanit ที่เพิ่มเข้ามา */
    margin: 0;
    padding: 0;
    background-color: rgb(255, 255, 255);
    box-sizing: border-box;
} 
.bodyproduct01 {
    font-family: 'Kanit', sans-serif;
    /* เลือกใช้ฟอนต์ Kanit ที่เพิ่มเข้ามา */
    margin: 0;
    padding: 0;
    background-color: rgb(49,171,239);
    box-sizing: border-box;
}
.bodyproduct02 {
    font-family: 'Kanit', sans-serif;
    /* เลือกใช้ฟอนต์ Kanit ที่เพิ่มเข้ามา */
    margin: 0;
    padding: 0;
    background-color: rgb(151,219,241);
    box-sizing: border-box;
}  
.bodyproduct03 {
    font-family: 'Kanit', sans-serif;
    /* เลือกใช้ฟอนต์ Kanit ที่เพิ่มเข้ามา */
    margin: 0;
    padding: 0;
    background-color: rgb(217,240,248);
    box-sizing: border-box;
}
.bodycontact {
    background-color: rgb(0,188,242); 
    font-family: 'Kanit', sans-serif;
    /* เลือกใช้ฟอนต์ Kanit ที่เพิ่มเข้ามา */
    margin: 0;
    padding: 0; 
    box-sizing: border-box; 
    position: relative;
    text-align: center;
}
.bodycontact img {
    width: 100%;
    height: auto;
}

.bodycontact .bodycontact-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.item-product-hd01 {
    width: fullscreen ;
    text-align: center;
    text-decoration: none; 
} 

.item-product-hd01 img {
    width: 100%;
    height: auto; /* เพื่อรักษาสัดส่วนของภาพ */
    display: block; /* เพื่อป้องกันช่องว่างขนาดเล็กข้างใต้ภาพ */
  }
.systems-menu {
    text-align: center; 
    background-color: rgb(233, 246, 250);
    border-radius: 10px;
    margin: 50px;
}
.systems-menu h2 {
    margin-bottom: 20px;
    color: #00796b;
}
/* main {
    padding: 20px 40px; ปรับระยะห่างจากขอบเพจ 
}*/

.text-section {
    text-align: left;
}

.text-section p {
    text-indent: 50px; /* เพิ่มย่อหน้า */
    margin-bottom: 20px; /* เพิ่มระยะห่างระหว่างย่อหน้า */
}
.systems-menu-product {
    text-align: center;
    padding: 20px;
    background-color: rgb(251, 255, 255);
    border-radius: 10px;
    margin: 50px;
}
.systems-menu-product h2 {
    margin-bottom: 20px;
    color: #00796b;
}
.system-items-product {
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}
.system-item-product {
    width: 250px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.system-item-product img { 
    width: 100%;
    border-radius: 20px; /* ขอบกรมของ item product */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.system-items-contact {
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; 
}
.system-items {
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}
.system-item {
    width: 270px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.system-item img { 
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.system-items-big {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px;
}
.system-item-big {    /* ปรับขนาด block system-pic-type */
    width: 330px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.system-item-big img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.system-items-small {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.system-item-small {
    width: 270px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.system-item-small img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.system-item-main img {
    width: 80%;
    border-radius: 10px;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: block; /* ทำให้ภาพเป็น block element */
    margin: 0 auto; /* จัดกึ่งกลาง */
}
 
.system-caption {
    background-color: #459be0;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: -10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 95%; /* ปรับตามที่ต้องการ */
    margin: 0 auto; /* จัดกึ่งกลาง */
}

.system-item:hover .system-caption {
    background-color: #0056b3;
}
.system-item-product:hover .system-caption {
    background-color: #0056b3;
}  
.system-item-big:hover .system-caption {
    background-color: #0056b3;
}

footer {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 20px 0;
}
.full-width-section {
    margin: 0 1in; /* เว้นจากขอบซ้ายขวาประมาณ 1 นิ้ว */
   /* text-align: justify;  จัดข้อความให้อยู่เต็มบรรทัด */
}

.full-width-section h2, .full-width-section p {
    margin-bottom: 1em; /* เพิ่มช่องว่างระหว่างหัวข้อและข้อความ */
}

.full-width-section p {
    line-height: 1.6; /* ปรับความสูงของบรรทัดเพื่อให้อ่านง่ายขึ้น */
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 200px;
    text-align: left;
    margin: 10px;
}

.contact-info img {
    vertical-align: middle;
    margin-right: 10px;
}

.social-media {
    flex: 1;
    min-width: 150px;
    text-align: center;
    margin: 10px;
}

.social-media a {
    margin: 0 10px;
}

.social-media img {
    width: 30px;
    height: 30px;
}

.facebook-page {
    flex: 1;
    min-width: 360px; 
    text-align: right;
    margin: 10px;
} 
input[type=text], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }

header {
    background-color: #03a9f4;
    color: white;    
    padding: 0px 0; /* ปรับความสูงของแถบสีฟ้า */ 
}

/* เพิ่มสไตล์ให้กับรูปภาพและปุ่ม */
header .search-and-cart {
    display: flex;
    align-items: center;
    gap: 0px; /* เพิ่มช่องว่างระหว่างองค์ประกอบ */
}

header .additional-image {
    height: 30px; /* ปรับขนาดของรูปภาพให้เหมาะสม */
}

header .btn {
    padding: 5px 5px; /* ปรับขนาดของปุ่ม */
    background-color: #f9fcfd; /* สีพื้นหลังของปุ่ม */
    color: white; /* สีข้อความของปุ่ม */
    border: none;
    border-radius: 10px; /* มุมปุ่ม */
    cursor: pointer; /* เปลี่ยนเคอร์เซอร์เมื่อวางเมาส์ */
    font-size: 0.9rem; /* ขนาดฟอนต์ของปุ่ม */
}

header .btn:hover {
    background-color: #03a9f4; /* สีพื้นหลังเมื่อวางเมาส์ */
}

header .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f6f7f8; /* Blue background */
    padding: 8px 15px;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {    
    width: 100px; /* ปรับขนาดโลโก้ให้กว้าง 150px หรือขนาดที่คุณต้องการ */
    margin-right: 10px;
}
.search-and-cart .btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

.search-and-cart .icon {
    width: 30px;
    height: 30px;
}

header .search-and-cart {
    display: flex;
    align-items: center;
}

header .search-and-cart input {
    padding: 5px;
    margin-right: 10px;
}

header .search-and-cart img {
    height: 35px;
}

/* Change the site title color to blue */
.site-title {
    color: #1e4d80; /* Blue color for the title */
    margin: 0;
}

nav {
    background-color: #0056b3;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin-right: 2px; /* Increase space between menu items  แถบเมนู header*/
}
nav ul li:last-child {
    margin-right: 0; /* No margin on the last item */
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: color 0.3s, background-color 0.3s; /* Smooth transition for hover effect */
    padding: 5px 10px;
    border-radius: 5px;
}
nav ul li a:hover {
    background-color: #698ebb; /* Darker blue background on hover */
    color: #fff; /* White text on hover */
}

.hero {
    position: relative;
    text-align: center;
}

.hero img {
    width: 100%;
    height: auto;
}

.hero .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}
#systems {
    padding: 20px;
    background-color: #e0f7fa;
    border-radius: 8px;
    margin: 20px 0;
}

#systems h2 {
    text-align: center;
    color: #00796b;
    margin-bottom: 20px;
}

.system {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.system img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    border-radius: 8px;
}

.system h3 {
    color: #00796b;
    margin: 0 0 5px 0;
}

.system p {
    margin: 0;
}
 
