body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #333;
    scroll-behavior: smooth;
  }
  
  header {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 2rem;
  }
  
  .logo {
    width: 80px;
    height: auto;
  }
  
  .tagline {
    font-size: 1.2rem;
    color: #ccc;
  }
  
  .chart-section {
    padding: 2rem 1rem;
    text-align: center;
    background: #fff;
  }
  
  .chart-container {
    max-width: 800px;
    margin: 0 auto;
    height: 600px;
  }
  
  #info-box {
    background: #e0f7fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem auto;
    max-width: 300px;
    font-weight: bold;
  }
  
  #info-box small {
    display: block;
    font-weight: normal;
    font-size: 0.8rem;
    color: #555;
  }
  
  .summary-boxes {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2rem;
  }
  
  .summary-box {
    width: 45%;
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  button.refresh-button {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  button.refresh-button:hover {
    background: #555;
  }
  
  footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
  }
  
  footer a {
    color: #7ee787;
    text-decoration: none;
  }
  
  .chart-table-container {
    max-width: 800px;
    margin: 2rem auto;
    overflow-x: auto;
    font-family: 'Sarabun', sans-serif;
  }
  
  #score-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  #score-table thead {
    background-color: #f3f4f6;
    color: #111;
    font-weight: bold;
  }
  
  #score-table th,
  #score-table td {
    
        padding: 12px 16px;
        border: 1px solid #ccc; /* ✅ เส้นขอบรอบช่อง */
        text-align: center;      /* ✅ จัดข้อความตรงกลาง */
        vertical-align: middle;  /* ✅ จัดกลางแนวตั้ง */
  }
  
  #score-table td:last-child {
    color: #0d6efd;           /* ✅ สีฟ้าตัวเลข */
    font-weight: 600;
    text-align: center;       /* จากเดิม right → center */
    vertical-align: middle;
  }
  
  #score-table td:nth-child(2) {
    text-align: left;
  }
  
  #score-table td:nth-child(3) {
    text-align: center;
    font-weight: 600;
    color: #0d6efd;
  }
  
  #score-table tr:hover {
    background-color: #f9f9f9;
    transition: background 0.2s ease-in-out;
  }

  #score-table tr {
    height: 50px;  /* ล็อกความสูงให้สมดุล */
  }

/* สีตาราง ตามลำดับ */

  #score-table tr.gold {
    background-color: #ffd70066; /* ทอง */
    font-weight: bold;
  }
  #score-table tr.silver {
    background-color: #acacac98; /* เงิน */
    font-weight: bold;
  }
  #score-table tr.bronze {
    background-color: #cd7f3266; /* ทองแดง */
    font-weight: bold;
  }

  /* สีตาราง ตามลำดับ */ 
  
  .social-icons a {
    color: white;
    margin-right: 1rem;
    font-size: 1.4rem;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  
  .social-icons a:hover {
    color: #ccc; /* หรือใช้สีหลักของ ShadowGov */
    transform: scale(1.2);
  }

  .disclaimer {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    padding: 1rem;
    background-color: #fff8e1;
    border-left: 4px solid #ff9800;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }


  
  @media (max-width: 768px) {
    #score-table th,
    #score-table td {
      font-size: 0.9rem;
      padding: 8px 10px;
    }
  }


  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0d141a;
    padding: 1rem 2rem;
  }
  .navbar-logo img {
    height: 40px;
  }
  .navbar-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
  }
  .navbar-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
  }
  .navbar-menu li a:hover, .navbar-menu li a.active {
    color: #ffd700;
  }
  
  .page-header {
    text-align: center;
    padding: 3rem 1rem 1rem;
  }
  .search-bar {
    width: 80%;
    max-width: 400px;
    padding: 0.7rem 1rem;
    border-radius: 30px;
    border: 1px solid #ccc;
    margin-top: 1rem;
    font-size: 1rem;
  }
  
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
  }
  
  .card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  .card:hover {
    transform: translateY(-5px);
  }
  .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  .card-content {
    padding: 1rem;
  }
  .card-content h3 {
    margin-top: 0;
    color: #0d141a;
  }
  .btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #0d141a;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
  }
  .btn:hover {
    background-color: #333;
  }
 
  #main-highlight-img {
    width: 100%;
    max-width: 960px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
  }

  .swiper-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
