/* Reset margin/padding */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-family: 'Arial', sans-serif; 
    
}
/* fade-out และ fade-in body */
/* fade-out และ fade-in */
body, #main-content {
  opacity: 1;
  transition: opacity 0.4s ease;
}

body.fade-out, #main-content.fade-out {
  opacity: 0;
}

body {
  animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* Hero section */
.hero {
    width: 100%;
  height: 80vh; 
    background-image: url('../image/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    box-shadow: #000;
    transition: background-image 1s ease-in-out;
}
.hero button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.4);
  color: #000000;
  border: none;
  padding: 10px 20px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;

}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }



/* Content section (Navbar + Main) */
.content {

    z-index: 2;
    padding-top: 90px; /* ช่องว่างเท่าความสูง navbar */
  position: relative; /* สำคัญมาก ให้วิดีโออยู่ด้านหลัง */
  min-height: 100vh;
  overflow: hidden;   /* ซ่อนส่วนเกินของวิดีโอ */
  background-color: rgba(238, 238, 238, 0.804); /* สีจางทับวิดีโอ */

}


.content.scrolled {
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.2);
  transform: translateY(-6px); /* ขยับขึ้นนิดนึง */
}

/* Scroll effect: เลื่อน content ขึ้นทับ Hero */
.content.overlay {
    transform: translateY(-40vh);
    padding-top: 70px; /* เพิ่มช่องว่างเท่าความสูง navbar */
}
/* Navbar fixed */

/* Hero ขยับขึ้นเมื่อ scroll */
.hero.scrolled {
    position: relative;
    top: -40vh; /* เลื่อน Hero ขึ้นไปด้านบน */
    transition: top 0.5s ease;
}
.bg-video {
  position: absolute; /* อยู่ใน #content */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* ด้านหลังเนื้อหา */
  opacity: 0.10; /* ทำให้จาง */
}


/* Container เนื้อหา */ห
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    color: #000;
}


/* Responsive มือถือ */


/* Grid container */
.grid-content {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 คอลัมน์เท่ากัน */
    gap: 20px;
    align-items: start;
  max-width: 1200px; /* ความกว้างของเนื้อหา */
  margin: 0 auto;    /* จัดกลางแนวนอน */
  padding: 20px;     /* เผื่อระยะขอบซ้ายขวา */
  box-sizing: border-box;
  

}
/* ซ้าย: carousel scroll แนวนอน */
.left-carousel {
    width: 100%;
    max-width: 700px;          /* กำหนดขนาด carousel */
    position: relative;
}

.carousel-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;       /* กำหนดอัตราส่วน */
    border: 2px solid #ccc;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
        box-shadow: 10px 15px 10px rgba(1, 1, 1, 0.269);
}
.carousel-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.carousel-images img.active {
  opacity: 1;
}
.card-row {
  display: flex;
  flex-wrap: wrap;       /* เลื่อนลงบรรทัดใหม่เมื่อหน้าจอเล็ก */
  gap: 20px;             /* ระยะห่างระหว่าง Card */
  justify-content: center; /* จัดให้อยู่กลางแถว */
  margin: 20px 0;
}

.card-row .card {
  flex: 1 1 18rem;       /* ให้ Card ขยายตัวได้ แต่มีขนาดเริ่มต้น 18rem */
  max-width: 18rem;      /* จำกัดความกว้างสูงสุด */
}



/* ปุ่มเลื่อนซ้ายขวา */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}


/* ขวา: ลิงก์ */

.right-links {
    width: 100%;
    max-width: 400px;          /* กำหนดขนาด carousel */
    position: relative;
    margin-top: 150px;
    margin-bottom: 20px;
    
    
    

}
.right-links h1 {
  margin-bottom: 10px;
  color: #000000;
  display: inline-block;
  padding-bottom: 5px;
}

/* เมื่อชี้ */

.right-text { /* เนื้อหาจริง */
  position: relative;
  max-width: 1200px;
  padding: 28px 24px;
  background: white;
  border-radius: 28px;
  z-index: 2;
  box-sizing: border-box;
  overflow: visible;
  margin-left: 0px;
  margin-bottom: 20px;
}








.right-links ul {
    list-style: none;
    padding: 0;
}

.right-links ul li a  {
    display: block;
    padding: 8px 0;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
      transition: transform 0.3s ease;
}

.right-links ul li a:hover {
    color: #176790;
      transform: scale(1.1); /* ขยายขึ้น 10% */
}
.carousel-caption p {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #ffffff; /* สีเด่น */
    padding-top: 20px;
    
}

.content2 {
    position: relative;
  z-index: 2; 
    transition: transform 0.3s ease;
    min-height: 100vh; 
      background: #f4fbff; /* โปร่ง */
  backdrop-filter: blur(6px);        /* ฟิล์มเบลอแบบ glass effect */
  border-radius: 8px;                /* โค้งน้อยๆ */
  box-shadow: none;  
    margin-left: 0;
    
  
}

.grid-content2 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* ซ้าย-ขวา */
    gap: 0px;
    align-items: start;
    min-height: 70vh;
      position: relative; /* ให้ child absolute อ้างอิง container นี้ */
    
}

.left_text_about {
    width: 65%;
    max-width: 700px;          /* กำหนดขนาด carousel */
    position: relative;
    margin: 5px auto 0 auto;
    margin-right: 50px;
      background: #ffffffda;
  padding: 20px;
  border-radius: 20px;
    box-shadow: 10PX 10px 15px 10px rgba(1, 1, 1, 0.269);
  /* ขยับลงมา 40px จากบน */
}

.left_text_about h1{
    display: inline-block; 
      z-index: 2;
    padding-bottom: 5px;  
}


.right-imag_about {
   position: relative; /* video absolute ภายในนี้ */
  width: 100%;
  height: 100%;       /* ครอบเต็ม container */
  overflow: hidden;
}

/* วิดีโอ absolute ภายใน container ขวา */
.bg-video1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;        /* ครอบ container ขวา */
  height: 100%;
  object-fit: cover;   /* ครอบ container */
  z-index: -1;
}

/* เริ่มต้น: มองไม่เห็นและเลื่อนลงเล็กน้อย */
.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ตอนมองเห็น: ปรากฏแบบ smooth */
.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
/* เริ่มต้น: มองไม่เห็นและอยู่ทางซ้าย */
.scroll-slide-right {
  opacity: 0;
  transform: translateX(-50px); /* เริ่มจากซ้าย */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ตอน element ปรากฏ */
.scroll-slide-right.visible {
  opacity: 1;
  transform: translateX(0); /* กลับมาที่ตำแหน่งปกติ */
}
/* เริ่มต้น: มองไม่เห็นและอยู่ทางขวา */
.scroll-slide-left {
  opacity: 0;
  transform: translateX(50px); /* เริ่มจากขวา 50px */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ตอน element ปรากฏ */
.scroll-slide-left.visible {
  opacity: 1;
  transform: translateX(0); /* กลับตำแหน่งปกติ */
}

/* เริ่มต้น: มองไม่เห็นและเลื่อนลงเล็กน้อย */
.scroll-slide-up {
  opacity: 0;
  transform: translateY(30px); /* เริ่มจากด้านล่าง */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ตอน element ปรากฏ */
.scroll-slide-up.visible {
  opacity: 1;
  transform: translateY(0); /* กลับตำแหน่งปกติ */
}

/* ปุ่มเปิดเสียง */
.sound-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px 12px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}
.sound-btn:hover {
  background: rgba(0,0,0,0.7);
}


.image-frame {
  width: 100%;     /* ให้เฟรมเต็มพื้นที่ฝั่งขวา */
  height: 100vh;   /* ให้เฟรมสูงเท่าหน้าจอ */
  overflow: hidden;
  position: relative;
  
}

.highlight-img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 120%;   /* ให้รูปใหญ่กว่าเฟรม */
  top: 0;
  object-fit: cover;
  transition: top 0.1s linear;
}

.content3 {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    min-height: 80vh; 
    padding-top: 60px;
    width: 100%;
    background-color: #f5f5f5;
    text-align: center; /* จัดหัวข้อกลาง */
}


.product-title h1 {
  margin-bottom: 40px;
  display: inline-block; 
  padding-bottom: 5px; 
}

.grid-content3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 3 คอลัมน์ */
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto; /* กลางจอ */
  
  
}

.company-info {
  grid-column: 1 / -1; /* กินเต็ม grid */
  display: flex;
  align-items: center;  /* จัดแนวกลางแนวตั้ง */
  gap: 40px;           /* ช่องว่างระหว่างรูปกับข้อความ */
  background-color: #e2e2e269;
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin-top: 100px;
  margin-bottom: 80px;
  max-width: 900px;
  justify-self: center; 
      box-shadow: 10px 10px 15px 10px rgba(65, 65, 65, 0.269);
  

}
.company-info img {
  width: 400px;
  height: 400px;      
  object-fit: cover;   
  border-radius: 10px; 
}
.company-info .company-text {
  display: block; 
}

.company-info .company-text h2 {
  margin: 0 0 10px 0; /* ห่างจาก p เล็กน้อย */
  font-size: 1.8rem;
}

.company-info .company-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}


.card {
    border: 2px solid #94949458; /* สีกรอบเมื่อชี้เมาส์ */
  background-color: #e2e2e269;
  border-radius: 0px;
  box-shadow: 10px 10px 10px rgba(132, 132, 132, 0.269);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s;
  cursor: pointer;
  text-decoration: none; /* เอาเส้นใต้ลิงก์ออก */
  color: inherit
  
}
.card:hover {
  border: 2px solid #94949458; /* สีกรอบเมื่อชี้เมาส์ */
  transform: scale(1.03); /* ขยายเบา ๆ */
}

.card:hover h3 {
  text-decoration: underline;
  text-decoration-color: #D89216; /* สีเส้นใต้ */
  text-underline-offset: 5px; /* ระยะห่างระหว่างเส้นกับตัวอักษร */
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card h3 {
  margin: 15px 0 10px 0;
  color: #2c3d80;
}

.card p {
  padding: 0 15px 15px 15px;
  font-size: 0.95rem;
  color: #555;
}

/* Hover effect */
.card:hover {
  transform: translateY(-10px);
}

.content4 {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    min-height: 35vh; 
    padding-top: 5px;
    width: 100%;
    background-color: #343b49f8;
    text-align: center; /* จัดหัวข้อกลาง */
}

.card4 {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 รูปต่อแถว */
  gap: 12px;
  justify-items: center;
  width: 100%;
  box-sizing: border-box;
}

.card4 img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 10px rgba(0,0,0,0.1);
}


.product-title h4 {
  color: #ccc;
  font-size: 28px;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.7);

  
}


/* ค่าเริ่มต้น: เส้นหายไป (scaleX(0)) */
.right-links h1,
.left_text_about h1,
.product-title h1,
.contact-header h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.right-links h1::after,
.left_text_about h1::after,
.product-title h1::after,
.contact-header h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #D89216;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.0s ease;
}

/* ตอน active: เส้นค่อยๆ โผล่มาจากซ้ายไปขวา */
.right-links h1.active::after,
.left_text_about h1.active::after,
.product-title h1.active::after,
.contact-header h1.active::after {
  transform: scaleX(1);
}



  /* ที่เหลือย้ายมาได้ทั้งหมด */




@media (max-width: 768px) {

   .hero {
    background-size: contain;     /* ไม่ตัดรูป */
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 60px;
    height: 45vh;                 /* 🔥 ลดจากเดิม */
    max-height: 320px;            /* กันไม่ให้ยาวเกิน */
  }

  .grid-content,
  .grid-content2 {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .left-carousel,
  .right-links,
  .left_text_about {
    width: 100%;
    max-width: 90%;
    margin: 0 auto 15px auto;
  }
    .grid-content3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .right-links h1,
  .left_text_about h1,
  .product-title h1 {
    font-size: 1.4rem;
  }
  .right-wrapper {
    display: flex;
    flex-wrap: wrap;      /* สำคัญมาก */
    gap: 20px;
  }

  .right-links {
    width: 50%;           /* อยู่ด้านบน ซ้าย (หรือกลาง) */
  }

  .right-text {
    width: 100%;          /* ลงบรรทัดใหม่ ยาวเต็ม */
  }



  .product-title h4 {
    font-size: 1.2rem;
  }

  .card img {
    height: 180px;
  }

  .card4 img {
    height: 50px;
  }

  .card h3 {
    font-size: 1.05rem;
  }

  .card p {
    font-size: 0.85rem;
  }


.right-imag_about {
  width: 100%;
  aspect-ratio: 16 / 9;   /* ปรับตามวิดีโอจริง */
  overflow: hidden;
  position: relative;
}

.right-imag_about video {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* ❗ ไม่ตัด */
  display: block;
}
.company-info {
  display: flex;
  flex-direction: row;      /* ⬅️ ซ้าย → ขวา */
  align-items: center;      /* จัดกึ่งกลางแนวตั้ง */
  text-align: left;         /* ตัวหนังสือชิดซ้าย */
  gap: 12px;
}
.company-info img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  flex-shrink: 0;           /* รูปไม่ถูกบีบ */
}

.company-text {
  flex: 1;                  /* ให้พื้นที่ข้อความยืด */
}

.company-text h2 {
  font-size: 10px;
  font-weight: 600;
  text-align: center;   /* ⬅️ จัดตัวหนังสือกึ่งกลาง */
  margin: 0 0 4px 0;
}


.company-text p {
  font-size: 10px;
  line-height: 1.4;
  margin: 0;
    text-align: center;  
}


  .card4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 รูปต่อแถว */
    gap: 12px;
    justify-items: center;
  }

  .card4 img {
    width: 150px;
    height: auto;
  }
#contact-section {
  min-height: 80px;
  padding: 20px 0;

  display: flex;
  flex-direction: column;   /* ⬇️ เรียงลงมา */
  align-items: center;      /* จัดกึ่งกลางแนวนอน */
  gap: 10px;                /* ระยะห่างแต่ละแถว */
}

}


/* 🟢 Mobile */
/* ---------------- Mobile XS (320px) ---------------- */


/* ---------------- Mobile S (375px) ---------------- */
/* @media  (max-width: 375px) {


  .hero {
    height: 55vh;
  }

  .grid-content,
  .grid-content2,
  .grid-content3 {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }

  .left-carousel,
  .right-links,
  .left_text_about {
    width: 100%;
    max-width: 95%;
    margin: 0 auto 12px auto;
  }

  .right-links h1,
  .left_text_about h1,
  .product-title h1 {
    font-size: 1.3rem;
  }

  .product-title h4 {
    font-size: 1.1rem;
  }

  .card img {
    height: 160px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.8rem;
  }

.right-imag_about {
  width: 100%;       /* เต็ม container */


/* ---------------- Mobile M (425px) ---------------- */
@media (max-width: 425px) {
  .hero {
    background-size: contain;     /* ไม่ตัดรูป */
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 50px;
    height: 45vh;                 /* 🔥 ลดจากเดิม */
    max-height: 220px;            /* กันไม่ให้ยาวเกิน */
  }


  .grid-content,
  .grid-content2,
  .grid-content3 {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

.left-carousel,
.right-links {
  width: 90%;
  max-width: 100%;

      padding: 0 12px;  
}


.right-links,
  .left_text_about {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;          /* คุมพื้นที่แทน */
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .left_text_about h1,
.left_text_about h2,
.left_text_about p {
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: 14px;
}
  .right-links h1,
  .left_text_about h1,
  .product-title h1 {
    font-size: 1.4rem;
  }

  .product-title h4 {
    font-size: 1.2rem;
  }

  .card img {
    height: 180px;
  }

  .card4 img {
    height: 20px;
  }

  .card h3 {
    font-size: 1.05rem;
  }

  .card p {
    font-size: 0.85rem;
  }

.right-imag_about {
  width: 100%;
  aspect-ratio: 16 / 9;   /* ปรับตามวิดีโอจริง */
  overflow: hidden;
  position: relative;
}

.right-imag_about video {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* ❗ ไม่ตัด */
  display: block;
}


  .company-info {
    flex-direction: column !important;
    gap: 6px !important;
    align-items: center !important;
  }

  .company-info img {
    width: 200px !important;
    height: 200px !important;
  }

  .company-text h2,
  .company-text p {
    font-size: 14px !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .card4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 รูปต่อแถว */
    gap: 12px;
    justify-items: center;
  }

  .card4 img {
    width: 120px !important;
    height: auto !important;
  }
}

@media (max-width: 375px) {

  .hero {
    height: 55vh;
  }

  .grid-content,
  .grid-content2,
  .grid-content3 {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }

  .left-carousel,
  .right-links,
  .left_text_about {
    width: 100%;
    max-width: 95%;
    margin: 0 auto 12px auto;
  }

  .right-links h1,
  .left_text_about h1,
  .product-title h1 {
    font-size: 1.3rem;
  }

  .product-title h4 {
    font-size: 1.1rem;
  }

  .card img {
    height: 160px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.8rem;
  }

/* video */
.carousel-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* ปุ่ม */
.prev,
.next {
  position: absolute;   /* ⭐ ลอยบนวิดีโอ */
  top: 20%;
  transform: translateY(-50%);
  z-index: 10;

  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.5);
  color: #fff;
  cursor: pointer;
}

/* ซ้าย */
.prev {
  left: 12px;
}

/* ขวา */
.next {
  right: 12px;
}




  .company-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .company-info img {
    width: 180px;
    height: 180px;
  }

  .company-text h2 {
    font-size: 10px;
  }

  .company-text p {
    font-size: 10px;
  }

  .card4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    justify-items: center;
  }

  .card4 img {
    width: 100px !important;
    height: auto !important;
  }

} 
/* ---------------- Tablet (768px) ---------------- */
@media (max-width: 320px) {

  .hero {
    height: 0vh;
    background-size: cover;
  }

  .grid-content,
  .grid-content2,
  .grid-content3 {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .carousel-wrapper {
    aspect-ratio: 16 / 9;
  }

  .left-carousel,
  .right-links,
  .left_text_about {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 10px auto;
    padding: 5px;
  }

  .right-links h1,
  .left_text_about h1,
  .product-title h1 {
    font-size: 1.2rem;
  }

  .product-title h4 {
    font-size: 1rem;
  }

  .card img {
    height: 150px;
  }

  .card h3 {
    font-size: 0.9rem;
  }

  .card p {
    font-size: 0.75rem;
  }

  .right-imag_about {
    height: 200px;
  }

  .company-info {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .company-info img {
    width: 150px;
    height: 150px;
  }

.company-text h2 {
  font-size: 10px;
}

.company-text p {
  font-size: 10px;
}
  .card4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px;
    justify-items: center;
  }

  .card4 img {
    width: 60px;
    height: auto;
  }
}



/* 
@media (min-width: 1024px) {
  body { font-size: 16px; }

  .hero {
    height: 45vh;
    max-height: 320px;
  }

  .grid-content,
  .grid-content2 {
    grid-template-columns: 1fr;
  }

  .left-carousel { font-size: 24px; }

  .left_text_about {
    width: 100%;
    max-width: 90%;
    margin: 0 auto 15px auto;
    font-size: 30px
  }

  .grid-content3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .left_text_about h1,
  .product-title h1 {
    font-size: 30px;
  }
    .right-links h1 {
    font-size: 36px;
  }

  .right-links ul li a {
    font-size: 24px;
  }

  .right-wrapper {
    display: flex;
    flex-wrap: wrap;      
  }

.right-links {
  width: auto;
  max-width: 900px;
  margin: 0 auto;
}

  .right-text {
    width: 80%;     
    font-size: 24px;  
    justify-self :center;  



  .product-title h4 {
    font-size: 1.2rem;
  }

  .card img {
    height: 400px;
  }

  .card4 img {
    height: 50px;
  }

  .card h3 {
    font-size: 1.05rem;
  }

  .card p {
    font-size: 0.85rem;
  }

  .right-imag_about {
    height: 800px;
  }

.company-info {
  display: flex;
  flex-direction: row;     
  align-items: center;     
  text-align: left;     
  gap: 12px;
}
.company-info img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  flex-shrink: 0;         
}

.company-text {
  flex: 1;                 
}

.company-text h2 {
  font-size: 10px;
  font-weight: 600;
  text-align: center; 
  margin: 0 0 4px 0;
}


.company-text p {
  font-size: 10px;
  line-height: 1.4;
  margin: 0;
    text-align: center;  
}


  .card4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }

  .card4 img {
    width: 150px;
    height: auto;
  }

}

@media (min-width: 1440px) {
    .hero {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 60px;
    height: 80vh;
    max-height: 420px;
  }

  .grid-content,
  .grid-content2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .left-carousel { font-size: 30px; }

  .left_text_about {
    width: 100%;
    max-width: 90%;
    margin: 0 auto 15px auto;
    font-size: 24px
  }

  .grid-content3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .left_text_about h1,
  .product-title h1 {
    font-size: 30px;
  }
    .right-links h1 {
    font-size: 30px;
  }

  .right-links ul li a {
    font-size: 30px;
  }

  .right-wrapper {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
  }
.right-links {
  width: auto;
  max-width: 900px;
  margin: 0 auto;
}
  .right-text {
    width: 80%;     
    font-size: 32px;  
    justify-self :center;  
  }


  .product-title h4 {
    font-size: 1.2rem;
  }

  .card img {
    height: 400px;
  }

  .card4 img {
    height: 50px;
  }

  .card h3 {
    font-size: 1.05rem;
  }

  .card p {
    font-size: 0.85rem;
  }

  .right-imag_about {
    height: 800px;
  }

.company-info {
  display: flex;
  flex-direction: row;     
  align-items: center;     
  text-align: left;        
  gap: 12px;
}
.company-info img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  flex-shrink: 0;         
}

.company-text {
  flex: 1;                  
}

.company-text h2 {
  font-size: 10px;
  font-weight: 600;
  text-align: center;   
  margin: 0 0 4px 0;
}


.company-text p {
  font-size: 10px;
  line-height: 1.4;
  margin: 0;
    text-align: center;  
}


  .card4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px;
    justify-items: center;
  }

  .card4 img {
    width: 150px;
    height: auto;
  }

}
} */