/*
Theme Name: ราชการแบบที่ 7 - โทนสีฟ้า (SiteOrigin Ready)
Theme URI: https://example.com/
Author: ทีมพัฒนาเว็บไซต์องค์กร
Author URI: https://example.com/
Description: ธีมเว็บไซต์หน่วยงานราชการโทนสีฟ้า ออกแบบ UX/UI รองรับทุกอุปกรณ์ (Responsive) และสร้างโครงสร้างมาเพื่อใช้งานร่วมกับปลั๊กอิน SiteOrigin Page Builder โดยเฉพาะ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thaigov-blue
Tags: blue, responsive-layout, siteorigin-ready, thai-gov, flexible-header
*/

/* STREAMING_CHUNK:นำเข้าฟอนต์ Sarabun และตั้งค่าพื้นฐาน */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;

400;500;600;700&display=swap');

body {
  font-family: 'Sarabun', sans-serif;
  background-color: #f4f7f6;
  background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
  background-attachment: fixed;
  color: #333333;
  line-height: 1.6;
}

/* STREAMING_CHUNK:สไตล์กล่อง Widget (so-widget-box) /
/ แนะนำให้นำคลาส 'so-widget-box' ไปใส่ใน Widget Class ของ SiteOrigin (เมนู Design -> Widget Class) */

.so-widget-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.so-widget-box:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* STREAMING_CHUNK:สไตล์หัวข้อกล่อง Widget /
.so-widget-header {
background-color: #165a8a; / สีฟ้าหลัก */

color: white;
padding: 12px 20px;
font-weight: 600;
font-size: 1.1rem;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 2px solid #0f4063;
}


.so-widget-header.header-gray {
  background-color: #546e7a;
  border-bottom-color: #455a64;
}

.so-widget-header.header-green {
  background-color: #689f38;
  border-bottom-color: #558b2f;
}

.so-widget-content {
  padding: 20px;
}

/* STREAMING_CHUNK:สไตล์สำหรับรายการข่าวประกาศ (List News) */

.list-news {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-news li {
  border-bottom: 1px solid #f1f5f9;
  padding: 12px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  transition: background-color 0.2s;
}

.list-news li:last-child {
  border-bottom: none;
}

.list-news li:hover {
  background-color: #f8fafc;
}

.list-news li i.fa-caret-right {
  color: #2980b9;
  margin-top: 5px;
  margin-right: 12px;
  font-size: 1.1rem;
}

.list-news a {
  color: #165a8a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.list-news a:hover {
  color: #2980b9;
}

.list-news .news-meta {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 4px;
  display: flex;
  align-items: center;
}

/* STREAMING_CHUNK:สไตล์สำหรับเมนูด้านข้าง (Sidebar Menu) */

.menu-sidebar a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #eaf2f8;
  color: #165a8a;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.menu-sidebar a:hover {
  background-color: #eaf2f8;
  padding-left: 24px;
}

.menu-sidebar a:last-child {
  border-bottom: none;
}

/* STREAMING_CHUNK:สไตล์ตัวช่วยต่างๆ (Utility Classes) /
/ ตัดคำให้อยู่ใน 2 บรรทัด (สำหรับชื่อข่าวที่ยาวเกินไป) */

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ป้าย Tag สถิติหรือสถานะ */

.badge-status {
  background-color: #1abc9c;
  color: white;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}