* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    background-color: #eaf8e6; 
    color: #333;
  }
  
  /*LOGO BOI*/
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 15px;
  }
  
  .logo h1 {
      font-size: 1.5rem;
  }
  
  .h1 {
    color: #fff;
  }
  
  .logo a {
    text-decoration: none;
    color: #fff;
  }
  
  .navbar-container {
    display: flex;
    align-items: center;
  }
  
  .logo-link {
    display: flex;
    align-items: center;
  }
  
  .navbar-container img {
    max-width: 40px;
    margin-right: 10px;
  }
  
  /*nav bar mobile friendly*/
  /* Navbar Styles */
  .navbar {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
  }
  
  .navbar .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    /* position: relative; */
  }
  
  .navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    margin-left: 12px;
  }
  
  .logo h1 {
    color: #fff;
  }
  
  .navbar .menu-toggle {
    display: none;
    font-size: 1.5em;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    margin-right: 2px;
  }
  
  .navbar .nav-links a {
    text-decoration: none;
    color: #fff;
    padding: 5px 10px;
    transition: background-color 0.3s;
  }
  
  .navbar .nav-links a:hover {
    background-color: #575757;
    border-radius: 5px;
  }
  
  /* Mobile Styles */
  @media (max-width: 768px) {
    .navbar .menu-toggle {
      display: block;
    }
  
    .navbar .nav-links {
      display: none;
      flex-direction: column;
      background-color: #333;
      position: absolute;
      top: 60px;
      right: 0;
      width: 100%;
      padding: 10px 0;
    }
  
    .navbar .nav-links.active {
      display: flex;
    }
  
   
  }
  
  /**/
  /* CAlCulator */
  
  .cal {
    /* display: flex; */
    /* justify-content: center;
    align-items: center; */
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease-in-out;
    /*  */
    padding-top: 60px; /* ขยับลงให้ไม่ทับ Navbar */
    padding-bottom: 60px; /* ขยับขึ้นให้ไม่ทับ Footer */
    overflow: hidden; */
  }
  
  /**/
  /* FAQ container */
  .faq-container {
    width: 90%;
    max-width: 600px;
    background: #fff;
    padding: 20px;
    /* margin-bottom: 100px; */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideUp 0.6s ease-in-out;
    /*  */
    max-height: calc(100vh - 120px); /* ปรับความสูงให้อยู่ใน viewport */
    overflow-y: auto; /* ถ้ามีเนื้อหาเกิน ให้ scroll แทน */
    padding-bottom: 10px;
    
    /**/
    /* position: relative; */
    /* top: -vh;  */
  }
  
  /* Title */
  
  /* FAQ items */
  .faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
    overflow: hidden;
  }
  
  /* FAQ question */
  .faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease-in-out;
  }
  
  /* Hover effect */
  .faq-question:hover {
    background: #f0f0f0;
  }
  
  /* Arrow icon animation */
  .faq-question .arrow {
    transition: transform 0.3s ease;
  }
  
  /* Rotate arrow when active */
  .faq-question.active .arrow {
    transform: rotate(180deg);
  }
  
  /* FAQ answer */
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
    font-size: 16px;
    padding: 0 10px;
    background: #fafafa;
    border-radius: 5px;
    opacity: 0;
    /*  */
    /* max-height: 500px; กำหนดความสูงสูงสุด */
    overflow-y: auto; /* ให้มี scroll ถ้าเกินขนาด */
    transition: max-height 0.3s ease-in-out; /* เพิ่ม animation เปิด/ปิด */
  }
  
  /* Show answer with animation */
  .faq-question.active + .faq-answer {
    opacity: 1;
    padding: 10px;
  }
  
  /* Keyframe Animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  /* Responsive design */
  @media (max-width: 480px) {
    /* h1 {
        font-size: 30px;
    } */
    .faq-question {
        font-size: 22px;
    }
    .faq-answer {
        font-size: 20px;
    }
    body {
        height: auto;
  
    }
  }
  
  /**/
  
  footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: white;
  }
  
  footer a {
    text-decoration: none;
    color: #fff;
  }
  
  /* Responsive Design */
  @media (max-width: 480px) {
    .menu-toggle {
      display: block;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: #333;
      position: absolute;
      top: 100%;
      right: 0;
      width: 200px;
    }
  
    .nav-links li {
      text-align: center;
      padding: 1rem 0;
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .product {
      width: 100%;
      max-width: 300px;
    }
  
    .logo a {
        font-size: 16px;
    }
  
  }
  
  @media (max-width: 380px) {
    .menu-toggle {
        display: block;
      }
    
      .nav-links {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
      }
    
      .nav-links li {
        text-align: center;
        padding: 1rem 0;
      }
    
      .nav-links.show {
        display: flex;
      }
    
      .product {
        width: 100%;
        max-width: 200px;
      }
  
      .logo a {
          font-size: 14px;
      }
  
      /* .faq-container {
        bottom: 200vh;
      } */
    
  
  }
  
  
  
  /* Cookie 4 */

  /* Cookie Consent Container */
  .cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    /* backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1); */
    padding: 20px;
    transition: bottom 0.2s ease-in-out;
    z-index: 1000;
  }

  .cookie-content a {
    color: #00cc00;
    text-decoration: underline;
  }
  
  .cookie-consent.show {
    bottom: 0;
  }
  
  .cookie-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }
  
  .cookie-content p {
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.5;
    /* color: #6e6e73; */
    color: #fff;
  }
  
  .cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .cookie-button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .cookie-button.accept {
    /* background: #007aff; */
    background: #00cc00;
    color: #000;
  }
  
  .cookie-button.reject {
    /* background: transparent; */
    background: #e63946;
    color: #000;
    /* border: 1px solid #007aff; */
  }
  
  .cookie-button.accept:hover {
    transform: scale(1.05);
    background: #009900;
  }

  .cookie-button.reject:hover {
    transform: scale(1.05);
    background: #c92c3a;
  }
  
  /* Responsive Design */
  @media (max-width: 600px) {
    .cookie-content {
      padding: 0 15px;
    }
  
    .cookie-buttons {
      flex-direction: column;
      gap: 10px;
    }
  
    .cookie-button {
      width: 100%;
    }
  }