/* ตัวอย่างสีเขียวแถบเมนู - ปรับได้ตามต้องการ */
:root {
    --brand-green: #7CBD43; /* ตัวอย่างสีเขียว */
    --brand-dark: #025f0e; /* เขียวเข้มขึ้น สำหรับ hover */
    --text-light: #ffffff;
    --text-dark: #333333;
  }
  
  /* Reset หรือตั้งค่าพื้นฐาน */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Kanit', 'Sarabun', sans-serif;
  }
  
  /* ===== ส่วน .topbar ===== */
  .topbar {
    background-color: #f5f5f5;
    padding: 5px 0;
  }
  .topbar .container23 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }
  .topbar-left {
    color: var(--text-dark);
  }
  .topbar-right a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 10px;
  }
  .topbar-right a:hover {
    text-decoration: underline;
  }
  
  /* ===== ส่วน .navbar ===== */
  .navbar {
    background-color: var(--brand-green);
  }
  .navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }
  
  /* โลโก้ */
  .logo img {
    height: 50px; /* ปรับขนาดโลโก้ได้ตามต้องการ */
    width: auto;
  }
  
  /* เมนูหลัก */
  .navbar-menu {
    list-style: none;
    display: flex;
    gap: 20px; /* ระยะห่างแต่ละเมนู */
  }
  .navbar-menu li {
    position: relative; /* สำหรับ dropdown */
  }

  .navbar-menu li:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0 15px;
  }

  .navbar-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    padding-right: 15px;
    transition: color 0.3s;
  }
  .navbar-menu a:hover {
    color: #eef9e3;
  }
  
  /* Dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* เริ่มจากด้านล่างของปุ่ม dropdown */
  left: 0;
  margin-top: -10px; /* เลื่อนขึ้นทับเมนูหลักเล็กน้อย */
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 4px;
  z-index: 999;
}
  
  .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
  }

  .dropdown-content li {
    list-style: none;
  }
  .dropdown-content a {
    color: var(--text-dark);
    padding: 10px;
    display: block;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
  }
  .dropdown-content a:hover {
    background-color: #f0f0f0;
  }
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* ===== ฝั่งขวา - login หรือ username ===== */
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .login-btn {
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    text-decoration: none; 
    color: #fff;
  }

  .login-btn img {
    margin-right: 5px; /* เว้นระยะห่างระหว่างรูปกับข้อความ */
  }
  
  /* user-dropdown (เมื่อ login แล้ว) */
  .user-dropdown {
    position: relative;
  }
  .user-dropdown {
    background-color: transparent;
    display: flex;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 0;
    font-family: 'Kanit', 'Sarabun', sans-serif;
    align-items: center;

  }
  .dropbtn {
    display: inline-flex;
    align-items: center;
    font-family: 'Kanit', sans-serif; /* กำหนดฟอนต์ที่ต้องการ */
    font-size: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff; /* เปลี่ยนสีตามต้องการ */
  }
  .dropbtn img {
    margin-right: 5px; /* เว้นระยะระหว่างไอคอนกับข้อความ */
  }

  .user-dropdown .dropdown-content {
    display: none;
    position: absolute;
    right: 0; /* ลอยไปทางขวา */
    top: 30px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    min-width: 160px;
    z-index: 1000;
  }
  .user-dropdown .dropdown-content a {
    display: block;
    padding: 10px;
    color: var(--text-dark);
    text-decoration: none;
  }
  .user-dropdown .dropdown-content a:hover {
    background-color: #f0f0f0;
  }
  .user-dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* ===== Container Utility ===== */
  .container23 {
    max-width: 1200px;
    margin: 0 auto;
  }
  