
body {
    background-color: #f4f4f4;
    margin: 0;
    
}

.top-bar {
    background-color: #003d6b;
    color: yellow;
    padding: 5px 0;
    text-align: center;
    font-size: 14px;
    width: 100%;
}

.container_header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
  }
 
.menu-toggle {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    margin: 10px;
    display: none;
  } 

.header-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
  }

.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f7ee;
    padding: 2px 2px;
    width: 100%;
    transition: background-color 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
}

.header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #005bb5;
    color: white;
    z-index: 1000;
    
}

.logo {
    max-height: 50px;
    height: auto;
    margin-right: 20px;
    }

.logo_line {
    max-height: 50px; /* ใช้ขนาดเดิม */
    height: auto;
    margin-left: 10px;
    }
.logo2_facebook {
    max-height: 50px; 
    height: auto;
    padding-left: 10px;
}

.nav {
    display: flex;
    gap: 15px;
}

.nav a {
    color: black;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s;
}

.header.fixed .nav a {
    color: white;
}

.nav a:hover {
    color: #ffcc00;
}

.nav a.active {
    color: #ffcc00;
    border-bottom: 2px solid #ffcc00;
}


@media (max-width: 768px) {
    .header-group {
      flex-direction: column;
      align-items: center;
    }
  
    .menu-toggle {
      display: none !important; /* ❌ ไม่แสดงปุ่มอีกต่อไป */
    }
  
    .nav {
      display: flex !important; /* ✅ แสดงตลอดเวลา */
      flex-direction: row;
      justify-content: center;
      gap: 3px;
      position: static; /* ✅ ยกเลิก fixed/absolute */
      width: auto;
      background-color: transparent;
      box-shadow: none;
      padding: 0;
    }
  
    .nav a {
      font-size: 11px !important;
      padding: 2px 5px !important;
    }
  
    .download-link {
    display: none !important; /* ✅ ซ่อนเฉพาะลิงก์นี้ */
  }

    .social-icons {
      display: none !important; /* ✅ ซ่อนไอคอนโลโก้ */
    }
  
    .logo,
    .logo_line,
    .logo2_facebook {
      display: none !important;
    }
  }
  
  @media (max-width: 400px) {
  .nav a {
    font-size: 10px;
    padding: 2px 4px;
  }
}