@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

/* โทนสีหลัก */

:root {
  --primary-blue: #1a365d;
  --secondary-blue: #2a528a;
  --light-gray: #f5f5f5;
  --dark-gray: #333;
  --white: #fff;
    --main-col-1: #F16322;
    --main-col-2: #F12222;
    --main-col-3: #ffc400;
    --main-col-4: #ffbb4c;
    --gray-col: #9d9598;
    --white-col: #FFF;
    --bl-col: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: "Bai Jamjuree", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #00000010;
}

select, button, input {
    font-family: inherit;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

header {
    background: #0c0d60;
    height: 70px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #fbbf24;
}

.hd_nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hd_logo {
    display: flex;
    align-items: center;
    width: 100px;
}

.hd_logo img {
    max-width: 80%;
}

.hd_list>ul {
    display: flex;
}

.hd_list>ul>li {
    padding: 0 10px;
}

.hd_list>ul li {
    list-style: none;
}

.menu.has-submenu ul {
    display: none;
}

.menu.has-submenu.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    background: var(--main-col-4);
    padding: 10px;
}

.menu.has-submenu.open ul li {
    padding: 5px;
}

.menu.has-submenu.open ul li:not(:last-child) {
    border-bottom: 1px solid var(--white-col);
}

li.menu a {
    text-decoration: none;
    color: var(--white-col);
}

.hd_icon {
    display: none;
}

.site-toggle {
    height: 50px;
    width: 56px;
    font-size: 10px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.site-toggle b {
    display: block;
    height: 2px;
    background-color: var(--white-col);
    /* fallback สีดำถ้าไม่มีตัวแปร */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* เมื่อคลาส active ถูกเพิ่ม */
.site-toggle.active b:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.site-toggle.active b:nth-child(2) {
    opacity: 0;
}

.site-toggle.active b:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

header a.active {
    font-weight: 600;
}

.admin-link {
  font-weight: bold;
  color: #FFF !important;
}

.hero {
  text-align: center;
  padding: 3rem 0;
  margin: 2rem 0;
  border-radius: 8px;
  height: 160px;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.data-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.chart-container {
  position: relative;
  height: 250px;
  margin: 1rem 0;
}

.btn {
  display: inline-block;
  background: var(--secondary-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
}

.gov-footer {
  background: var(--dark-gray);
  color: var(--white);
  text-align: center;
  padding: 1rem 0;
  margin-top: 57.6px;
}

/* projects.html */
.search-filter {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

#projectSearch {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#statusFilter {
  padding: 0.5rem;
  border-radius: 4px;
}

.project-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.status-badge.รอดำเนินการ {
  background: #fbbf24;
}

.status-badge.ดำเนินการ {
  background: #60a5fa;
}

.status-badge.เสร็จสิ้น {
  background: #34d399;
}

/* meetings.html */
.meetings-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.meeting-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.meeting-summary {
  background: #f3f4f6;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

#calendar {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn.active {
    background-color: #1a365d;
    color: white;
}
.tab-btn {
    padding: 8px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.policies-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.policy-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding: 20px;
}

.policy-category {
    display: inline-block;
    background-color: #fbbf24;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 10px 0;
}

.policy-details {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

main h1 {
    border-left: 8px solid #fbbf24;
    padding-left: 10px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .policies-list {
        grid-template-columns: 1fr;
    }
}

/* .hero-section {
  position: relative;
  background: url(/images/hero-image-bg.svg) no-repeat;
  background-size: cover; /* ปรับขนาดให้เต็ม 
  z-index: 0; /* ต่ำกว่า ::before 
  overflow: hidden; // ป้องกัน ::before ล้น 
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000010; // สีดำโปร่งใส 
  z-index: -1;
} */


@media (max-width: 1200px) {
    .hd_icon {
        display: block;
    }

    .hd_list {
        display: none;
    }

    .hd_list.toggle {
        display: flex;
        width: 100%;
        flex-direction: column;
        position: fixed;
        top: calc(70px);
        left: 0;
        height: calc(100vh - 70px);
        background: #0c0d60;
    }

    li.menu a.admin-link {
        color: #FFF !important;
    }

    .hd_list.toggle > ul {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .hd_list.toggle > ul > li {
        padding: 20px 0;
    }

    .hd_list.toggle > ul > li:not(:last-child) {
        border-bottom: 1px solid var(--white-col);
    }

    .hd_list.toggle > ul > li.has-submenu.open ul {
        position: unset;
        background: #FFFFFF50;
        margin-top: 10px;
        padding: 0;
    }

    /* .hd_list.toggle > ul > li.has-submenu.open li {} */
}
    .search-container {
      width: 100%;
      max-width: 400px;
      margin: 0 auto;
      display: flex;
    }

    .search-input {
      flex: 1;
      padding: 10px 15px;
      border: 2px solid #333;
      border-right: none;
      border-radius: 25px 0 0 25px;
      font-size: 16px;
      outline: none;
    }

    .search-button {
      padding: 10px 20px;
      border: 2px solid #333;
      background-color: #333;
      color: white;
      border-radius: 0 25px 25px 0;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .search-button:hover {
      background-color: #555;
    }
