/* General Styles */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #000;
    color: #FFF;
  }
  
  header {
    width: 100%;
    height: auto; /* เปลี่ยนจาก 50vh เป็น auto เพื่อให้ความสูงของ header ปรับตามเนื้อหาภายใน */
    overflow: hidden;
    position: relative;
  }
  
  header img {
    width: 100%; /* ให้ภาพเต็มความกว้างของ container */
    height: auto; /* ให้ความสูงของภาพปรับตามอัตราส่วนของภาพ */
    object-fit: cover; /* คงอัตราส่วนของภาพโดยไม่ให้ยืดหรือบิดเบี้ยว */
  }
  
  
  
  main {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: auto;
    
  }
  
  .grid-containere {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    width: 100%;
    
    margin: auto;
    text-align: center;
  }

  .grid-containerer {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    width: 20%;
    width: 100%;
    margin: auto;
    text-align: center;
  }

  .grid-containereg {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    width: 20%;
    width: 100%;
    margin: auto;
    
  }

  .grid-item {
    box-sizing: border-box;
  }
  
  .main-content img {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .main-content1 img {
    width: 20%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
  }

  .main-content2 img {
    width: 400px;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
  }

  .main-content h2 {
    font-size: 30px;
    color: yellow;
    text-decoration: underline;
  }
  
  .main-content p {
    font-size: 18px;
    color: #FFF;
  }
  
  footer {
    background-color: #333;
    color: #f2f2f2;
    text-align: center;
    padding: 20px 10%;
    position: relative;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
  }
  
  .footer-section h3 {
    margin-top: 0;
  }
  
  .footer-section a {
    color: #f2f2f2;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    transition: color 0.3s ease;
  }
  
  .footer-section a:hover {
    color: #a762a1;
  }
  
  .footer-bottom {
    margin-top: 20px;
    font-size: 0.9em;
    color: #bfbfbf;
  }
  
  @media screen and (max-width: 800px) {
    footer {
      padding: 20px 5%;
    }
  
    .footer-container {
      flex-direction: column;
      align-items: center;
    }
  
    .footer-section {
      margin: 10px 0;
      text-align: center;
    }
  }
  
  @media (max-width: 768px) {
    .grid-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 480px) {
    .grid-container {
      grid-template-columns: 1fr;
    }
  }
  


  
