/* ===== CSS VARIABLES ===== */
:root {
  --green-900: #0D3B1E;
  --green-800: #145A2C;
  --green-700: #1A7A3A;
  --green-600: #1E8E44;
  --green-500: #27AE60;
  --green-400: #4FCB7E;
  --green-300: #82DC9F;
  --green-200: #B8EBC8;
  --green-100: #E0F5E8;
  --green-50: #F0FAF4;
  --gold-600: #B8860B;
  --gold-500: #DAA520;
  --gold-400: #F0C040;
  --gold-300: #F5D670;
  --gold-200: #FAE8A0;
  --gold-100: #FDF5D6;
  --navy-900: #0A1628;
  --navy-800: #132744;
  --navy-700: #1B3A5C;
  --navy-600: #264D78;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --bg-body: #F4F6F8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 40px -12px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
  color: var(--slate-800);
  background: var(--bg-body);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== UTILITY ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== FONT SIZE CLASSES (Accessibility) ===== */
body.font-small { font-size: 14px; }
body.font-normal { font-size: 16px; }
body.font-large { font-size: 18px; }

/* ===== TOP UTILITY BAR ===== */
.top-bar {
  background: var(--navy-900);
  color: var(--slate-300);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.top-bar__left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar__left a {
  color: var(--slate-400);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.top-bar__left a:hover { color: var(--gold-400); }
.top-bar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar__right .font-size-toggle {
  display: flex;
  gap: 4px;
}
.top-bar__right .font-size-toggle span {
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 3px;
  color: var(--slate-400);
  font-weight: 600;
  transition: all 0.2s;
}
.top-bar__right .font-size-toggle span:hover,
.top-bar__right .font-size-toggle span.active {
  background: var(--green-600);
  color: var(--white);
}
.top-bar__right .lang-switch a {
  color: var(--slate-400);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}
.top-bar__right .lang-switch a.active {
  background: var(--gold-500);
  color: var(--navy-900);
}
.top-bar__right .lang-switch a:hover { color: var(--gold-400); }
.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--slate-400);
  font-size: 12px;
  transition: all 0.2s;
}
.social-links a:hover {
  background: var(--green-600);
  color: var(--white);
  transform: translateY(-1px);
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-header__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}
.site-header__logo-fallback {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  box-shadow: 0 2px 8px rgba(26,122,58,0.3);
  flex-shrink: 0;
}
.site-header__text h1 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1.2;
}
.site-header__text p {
  font-size: 12px;
  color: var(--slate-500);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.site-header__search {
  display: flex;
  align-items: center;
  background: var(--slate-100);
  border-radius: 50px;
  padding: 0 4px 0 18px;
  width: 280px;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.site-header__search:focus-within {
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(39,174,96,0.1);
}
.site-header__search input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 0;
  width: 100%;
  outline: none;
  color: var(--slate-700);
}
.site-header__search input::placeholder { color: var(--slate-400); }
.site-header__search button {
  background: var(--green-600);
  border: none;
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.site-header__search button:hover { background: var(--green-700); }

/* ===== NAVIGATION ===== */
.main-nav {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 50%, var(--green-900) 100%);
  position: relative;
}
.main-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-500));
}
.main-nav .container { display: flex; align-items: center; }

/* WordPress Menu Styles */
.main-nav .menu {
  display: flex;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav .menu > li { position: relative; }
.main-nav .menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  transition: all 0.25s;
}
.main-nav .menu > li > a::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 3px;
  background: var(--gold-400);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a {
  background: rgba(255,255,255,0.08);
  color: var(--gold-300);
}
.main-nav .menu > li > a:hover::before,
.main-nav .menu > li.current-menu-item > a::before { width: 70%; }

/* Dropdown / Sub-menu */
.main-nav .menu .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  z-index: 200;
  border-top: 3px solid var(--green-600);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav .menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .menu .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-100);
  transition: all 0.2s;
}
.main-nav .menu .sub-menu li a:hover {
  background: var(--green-50);
  color: var(--green-700);
  padding-left: 26px;
}
.main-nav .menu .sub-menu li:last-child a { border-bottom: none; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 14px 20px;
}

/* ===== ANNOUNCEMENT HERO ===== */
.announcement-hero {
  background:
    linear-gradient(135deg, rgba(13,59,30,0.96), rgba(19,39,68,0.96)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 18px);
  color: var(--white);
  padding: 48px 0;
}
.announcement-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.85fr) minmax(260px, 0.7fr);
  gap: 20px;
  align-items: stretch;
}
.announcement-hero__feature {
  min-height: 330px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.08);
}
.announcement-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  background: rgba(218,165,32,0.18);
  color: var(--gold-300);
  border: 1px solid rgba(240,192,64,0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.announcement-hero__feature h2 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}
.announcement-hero__feature h2 a { color: var(--white); }
.announcement-hero__feature h2 a:hover { color: var(--gold-300); }
.announcement-hero__feature p {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  line-height: 1.8;
  max-width: 760px;
  margin-bottom: 18px;
}
.announcement-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  margin-bottom: 24px;
}
.announcement-panel,
.announcement-news {
  background: var(--white);
  color: var(--slate-800);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.announcement-panel__header,
.announcement-news__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--slate-100);
}
.announcement-panel__header h3,
.announcement-news__header h3 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 17px;
  color: var(--green-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.announcement-panel__list {
  display: flex;
  flex-direction: column;
}
.announcement-list-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--slate-100);
}
.announcement-list-item:last-child { border-bottom: none; }
.announcement-list-item:hover .announcement-list-item__title { color: var(--green-700); }
.announcement-list-item__date {
  color: var(--gold-600);
  font-size: 12px;
  font-weight: 800;
}
.announcement-list-item__title {
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.announcement-news {
  display: flex;
  flex-direction: column;
}
.announcement-news__item {
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
}
.announcement-news__item:last-child { border-bottom: none; }
.announcement-news__item span {
  display: block;
  color: var(--slate-400);
  font-size: 12px;
  margin-bottom: 4px;
}
.announcement-news__item strong {
  display: block;
  color: var(--slate-700);
  font-size: 14px;
  line-height: 1.45;
}
.announcement-news__item:hover strong { color: var(--green-700); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
.btn--primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 4px 16px rgba(218,165,32,0.3);
}
.btn--primary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(218,165,32,0.4);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.btn--green {
  background: var(--green-600);
  color: var(--white);
}
.btn--green:hover {
  background: var(--green-700);
  transform: translateY(-2px);
}

/* ===== ANNOUNCEMENT TICKER ===== */
.ticker {
  background: var(--green-50);
  border-bottom: 1px solid var(--green-200);
  padding: 10px 0;
  overflow: hidden;
}
.ticker .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ticker__label {
  flex-shrink: 0;
  background: var(--green-700);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticker__label i { animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.ticker__track { overflow: hidden; flex: 1; }
.ticker__content {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker__content a {
  font-size: 14px;
  color: var(--green-800);
  font-weight: 500;
}
.ticker__content a:hover { color: var(--gold-600); }
.ticker__content a i { margin-right: 6px; color: var(--gold-500); }

/* ===== QUICK LINKS ===== */
.quick-links { padding: 40px 0; background: var(--white); }
.quick-links__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.quick-link-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.quick-link-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green-600);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.quick-link-card:hover {
  border-color: var(--green-300);
  background: var(--green-50);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.quick-link-card:hover::before { transform: scaleX(1); }
.quick-link-card__icon {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s;
}
.quick-link-card:hover .quick-link-card__icon { transform: scale(1.1); }
.quick-link-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 4px;
}
.quick-link-card__desc {
  font-size: 12px;
  color: var(--slate-500);
}

/* Icon color variants */
.icon-green { background: #E8F5E9; color: #2E7D32; }
.icon-blue { background: #E3F2FD; color: #1565C0; }
.icon-orange { background: #FFF3E0; color: #E65100; }
.icon-purple { background: #F3E5F5; color: #7B1FA2; }
.icon-teal { background: #E0F7FA; color: #00838F; }
.icon-amber { background: #FFF8E1; color: #F57F17; }
.icon-red { background: #FCE4EC; color: #C62828; }
.icon-indigo { background: #E8EAF6; color: #283593; }

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-100);
  color: var(--green-700);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title h2 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--green-900);
  margin-bottom: 8px;
}
.section-title p {
  font-size: 15px;
  color: var(--slate-500);
  max-width: 540px;
  margin: 0 auto;
}
.section-title__line {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--gold-500));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ===== NEWS ===== */
.news-section { padding: 60px 0; }
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.news-featured {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}
.news-featured:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.news-featured__image {
  height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
}
.news-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-featured__image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: rgba(255,255,255,0.2);
}
.news-featured__tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}
.news-featured__body { padding: 24px; }
.news-featured__date {
  font-size: 13px;
  color: var(--slate-400);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-featured__title {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-featured__title a { color: inherit; }
.news-featured__title a:hover { color: var(--green-700); }
.news-featured__excerpt {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-600);
  font-weight: 600;
  font-size: 14px;
}
.read-more:hover { color: var(--green-800); gap: 10px; }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  padding: 16px;
  border: 1px solid var(--slate-100);
}
.news-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}
.news-item__thumb {
  width: 110px; height: 90px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
}
.news-item__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.news-item__body { flex: 1; min-width: 0; }
.news-item__cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-600);
  background: var(--green-50);
  padding: 2px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 6px;
}
.news-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.news-item__title a { color: inherit; }
.news-item__title a:hover { color: var(--green-700); }
.news-item__meta {
  font-size: 12px;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== SERVICES ===== */
.services-section { padding: 60px 0; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.service-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: var(--green-300);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--green-100);
  color: var(--green-700);
  transition: all 0.3s;
}
.service-card:hover .service-card__icon {
  background: var(--green-600);
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}
.service-card__title {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 8px;
}
.service-card__desc {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ===== STATS ===== */
.stats-banner {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.stats-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.stat-item { text-align: center; padding: 16px; }
.stat-item__number {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item__label {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.stat-item__sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ===== E-SERVICE ===== */
.eservice-section { padding: 60px 0; }
.eservice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.eservice-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-100);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.eservice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.eservice-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.eservice-card__icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}
.eservice-card__header h3 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--slate-800);
}
.eservice-card__desc {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.7;
  flex: 1;
}

/* ===== LINKS SECTION ===== */
.links-section { padding: 60px 0; background: var(--white); }
.links-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
.links-partners {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.links-partners h3 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.partner-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.partner-logo {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  min-height: 90px;
}
.partner-logo:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.partner-logo__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.partner-logo__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-600);
  line-height: 1.3;
}

/* Sidebar */
.sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--white);
}
.contact-card h3 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item i {
  color: var(--gold-400);
  width: 18px;
  text-align: center;
  margin-top: 3px;
}
.contact-info-item span {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.ita-card {
  background: var(--white);
  border: 2px solid var(--gold-400);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.ita-card__icon {
  font-size: 40px;
  color: var(--gold-500);
  margin-bottom: 10px;
}
.ita-card h3 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 6px;
}
.ita-card p {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 14px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer__brand h3 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.site-footer__brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--green-600);
  color: var(--white);
  transform: translateY(-3px);
}
.site-footer__col h4 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.site-footer__col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 3px;
  background: var(--gold-500);
  border-radius: 2px;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col ul li { margin-bottom: 8px; }
.site-footer__col ul li a {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.site-footer__col ul li a:hover {
  color: var(--gold-400);
  transform: translateX(4px);
}
.site-footer__bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer__bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.site-footer__bottom-links {
  display: flex;
  gap: 24px;
}
.site-footer__bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.site-footer__bottom-links a:hover { color: var(--gold-400); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--green-700);
  color: var(--white);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s;
  border: none;
  opacity: 0;
  visibility: hidden;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  transform: scale(1.1);
}

/* ===== WORDPRESS CONTENT STYLES ===== */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: 'Noto Sans Thai', sans-serif;
  color: var(--green-900);
  margin-bottom: 16px;
}
.entry-content p { margin-bottom: 16px; }
.entry-content img {
  border-radius: var(--radius-md);
  margin: 16px 0;
}
.entry-content a { color: var(--green-600); }
.entry-content a:hover { color: var(--green-800); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}
.pagination a, .pagination span {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
}
.pagination .current {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}
.pagination a:hover {
  background: var(--green-50);
  border-color: var(--green-300);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .quick-links__grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .eservice-grid { grid-template-columns: repeat(2, 1fr); }
  .links-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .announcement-hero__grid { grid-template-columns: 1fr 1fr; }
  .announcement-hero__feature,
  .announcement-news { grid-column: 1 / -1; }
  .announcement-hero__feature { min-height: auto; }
}
/* ===== NEWS HUB ===== */
.news-hub { padding: 56px 0 40px; }
.news-hub__header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; gap: 16px;
}
.section-title--left { text-align: left; margin-bottom: 0; }
.section-title--left p { margin: 0; }
.btn--sm { padding: 10px 22px; font-size: 14px; }

/* Main News Grid: 1 large + 6 small */
.news-hub__main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: 48px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  transition: all 0.3s;
}
.news-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--green-200);
}
.news-card--large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
.news-card__image-link { display: block; }
.news-card__image {
  position: relative; overflow: hidden;
  height: 200px;
  background: linear-gradient(135deg, var(--green-100), var(--green-200));
}
.news-card--large .news-card__image { height: 100%; min-height: 320px; }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-card__image img { transform: scale(1.05); }
.news-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--slate-300);
}
.news-card__cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--green-700); color: var(--white);
  padding: 3px 12px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
}
.news-card__body { padding: 18px 20px; }
.news-card__date { font-size: 12px; color: var(--slate-400); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.news-card__title {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--slate-800); line-height: 1.5; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card--large .news-card__title { font-size: 19px; -webkit-line-clamp: 3; }
.news-card__title a { color: inherit; }
.news-card__title a:hover { color: var(--green-700); }
.news-card__excerpt {
  font-size: 14px; color: var(--slate-500); line-height: 1.7; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Dual column */
.news-hub__dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.news-hub__column {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
}
.news-hub__col-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 12px;
  border-bottom: 2px solid var(--slate-100);
}
.news-hub__col-header h3 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--slate-800);
  display: flex; align-items: center; gap: 8px;
}

/* Compact news item with thumb */
.news-compact {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
  transition: all 0.2s;
}
.news-compact:last-child { border-bottom: none; }
.news-compact:hover { padding-left: 6px; }
.news-compact__thumb {
  width: 72px; height: 54px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0;
  background: var(--green-100); display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--green-400);
}
.news-compact__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-compact__body h4 {
  font-size: 14px; font-weight: 600; color: var(--slate-700); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
.news-compact:hover h4 { color: var(--green-700); }
.news-compact__date { font-size: 12px; color: var(--slate-400); }

/* List item with date box */
.news-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--slate-100);
  transition: all 0.2s;
}
.news-list-item:last-child { border-bottom: none; }
.news-list-item:hover { padding-left: 6px; }
.news-list-item__date-box {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--green-50); border: 1px solid var(--green-200);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.news-list-item__day { font-size: 18px; font-weight: 800; color: var(--green-700); line-height: 1; }
.news-list-item__month { font-size: 10px; font-weight: 600; color: var(--green-500); text-transform: uppercase; }
.news-list-item__body { flex: 1; min-width: 0; }
.news-list-item__body h4 {
  font-size: 14px; font-weight: 600; color: var(--slate-700); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-list-item:hover h4 { color: var(--green-700); }
.news-list-item__arrow { color: var(--slate-300); font-size: 12px; transition: all 0.2s; }
.news-list-item:hover .news-list-item__arrow { color: var(--green-500); transform: translateX(3px); }
.news-list-item__cat {
  font-size: 11px; color: var(--slate-400); margin-top: 2px; display: block;
}

/* Media grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.media-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  transition: all 0.3s;
  display: block;
}
.media-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.media-card__image {
  position: relative; height: 160px; overflow: hidden;
  background: var(--slate-200);
}
.media-card__image img { width: 100%; height: 100%; object-fit: cover; }
.media-card__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25); opacity: 0; transition: opacity 0.3s;
}
.media-card:hover .media-card__play { opacity: 1; }
.media-card__play i {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-500); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; padding-left: 3px;
}
.media-card__title {
  padding: 12px 14px 4px; font-size: 14px; font-weight: 600;
  color: var(--slate-700); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.media-card__date { padding: 0 14px 12px; font-size: 12px; color: var(--slate-400); }

/* ===== RESPONSIVE v2 ===== */
@media (max-width: 1024px) {
  .quick-links__grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .eservice-grid { grid-template-columns: repeat(2, 1fr); }
  .links-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .announcement-hero__grid { grid-template-columns: 1fr 1fr; }
  .announcement-hero__feature,
  .announcement-news { grid-column: 1 / -1; }
  .announcement-hero__feature { min-height: auto; }
  .news-hub__main-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card--large { grid-column: 1 / -1; grid-row: auto; }
  .news-card--large .news-card__image { min-height: 240px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  .site-header .container { height: 64px; }
  .site-header__search { width: 160px; }
  .site-header__text h1 { font-size: 16px; }
  .menu-toggle { display: block; }
  .main-nav .menu { display: none; flex-direction: column; width: 100%; }
  .main-nav .menu.active { display: flex; }
  .main-nav .menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: none; border-radius: 0; background: rgba(255,255,255,0.05);
  }
  .main-nav .menu .sub-menu li a { color: rgba(255,255,255,0.7); }
  .announcement-hero { padding: 32px 0; }
  .announcement-hero__grid { grid-template-columns: 1fr; }
  .announcement-hero__feature { padding: 24px; }
  .announcement-hero__feature h2 { font-size: 24px; }
  .announcement-panel,
  .announcement-news { padding: 20px; }
  .announcement-list-item { grid-template-columns: 52px 1fr; }
  .news-hub__main-grid { grid-template-columns: 1fr; }
  .news-hub__dual { grid-template-columns: 1fr; }
  .news-hub__header { flex-direction: column; align-items: flex-start; }
  .news-grid { grid-template-columns: 1fr; }
  .quick-links__grid { grid-template-columns: repeat(2, 1fr); }
  .eservice-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .partner-logos { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .site-footer__bottom-links { flex-wrap: wrap; justify-content: center; }
}
