/*
Theme Name: PSD Royal Elegance
Theme URI: https://psd.pcru.ac.th
Author: PSD PCRU Team
Author URI: https://www.pcru.ac.th
Description: Premium accessible WordPress theme for the Procurement Department of Phetchabun Rajabhat University. Rajabhat purple, wisdom gold, animated hero, quick links, services, counters, dark mode, responsive layouts, and Customizer support.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: psd-royal-elegance
Tags: custom-logo, custom-menu, featured-images, right-sidebar, wide-blocks, theme-options, accessibility-ready
*/

:root {
  --psd-primary: #51189B;
  --psd-primary-dark: #32105f;
  --psd-primary-soft: #efe7ff;
  --psd-accent: #f59e0b;
  --psd-accent-dark: #b45309;
  --psd-ink: #111827;
  --psd-muted: #5b6474;
  --psd-bg: #f8f5ff;
  --psd-surface: #ffffff;
  --psd-surface-2: #fbfaff;
  --psd-border: #e4dff0;
  --psd-container: 1200px;
  --psd-radius: 16px;
  --psd-radius-sm: 10px;
  --psd-shadow: 0 18px 50px rgba(81, 24, 155, .12);
  --psd-shadow-sm: 0 8px 24px rgba(81, 24, 155, .08);
}

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

html {
  background: var(--psd-primary-dark);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--psd-ink);
  background: var(--psd-bg);
  font-family: "Noto Sans Thai", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

#wpadminbar {
  position: fixed;
}
body.psd-dark {
  --psd-ink: #f8fafc;
  --psd-muted: #c7d2e0;
  --psd-bg: #10091f;
  --psd-surface: #19102c;
  --psd-surface-2: #21143a;
  --psd-border: #382650;
  --psd-shadow: 0 18px 50px rgba(0, 0, 0, .38);
  --psd-shadow-sm: 0 8px 24px rgba(0, 0, 0, .3);
}
a { color: var(--psd-primary); text-decoration: none; }
a:hover { color: var(--psd-accent-dark); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--psd-accent); outline-offset: 3px; }
.psd-container { width: min(calc(100% - 32px), var(--psd-container)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.screen-reader-text:focus {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.psd-topbar {
  position: relative;
  top: 0;
  z-index: 60;
  display: block;
  width: 100%;
  margin: 0;
  min-height: 38px;
  padding: 8px 0;
  background: linear-gradient(135deg, var(--psd-primary-dark), var(--psd-primary), var(--psd-primary-dark));
  background-size: 200% 200%;
  color: #fff;
  font-size: .8125rem;
  line-height: 1.35;
}
body > .psd-topbar:first-child {
  margin-top: 0 !important;
}
.psd-topbar__inner {
  min-height: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.psd-topbar a {
  color: rgba(255, 255, 255, .9);
  font-size: .8125rem;
  text-decoration: none;
}
.psd-topbar a:hover { color: var(--psd-accent); }
.psd-topbar__items { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.psd-topbar__item {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.psd-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--psd-surface) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--psd-border) 80%, transparent);
}
/* เมื่อ admin bar แสดง (admin login) ให้ sticky header อยู่ใต้ admin bar */
.admin-bar .psd-site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .psd-site-header { top: 46px; }
}

.psd-header__inner {
  min-height: 82px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.psd-brand {
  display: flex;
  flex: 0 1 360px;
  gap: 14px;
  align-items: center;
  min-width: 220px;
}
.psd-brand .custom-logo { max-width: 72px; max-height: 72px; object-fit: contain; }
.psd-site-title { margin: 0; font-weight: 900; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.2; }
.psd-site-title a { color: var(--psd-ink); }
.psd-site-description { margin: 3px 0 0; color: var(--psd-muted); font-size: .9rem; }
.psd-navigation {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  overflow: visible;
}
.psd-primary-menu, .psd-footer-menu, .psd-social-menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.psd-primary-menu {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  row-gap: 4px;
}
.psd-primary-menu li {
  position: relative;
  margin: 0;
}
.psd-primary-menu a {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 8px 11px; border-radius: 999px;
  color: var(--psd-ink); font-weight: 700; font-size: .92rem;
  white-space: nowrap;
  text-decoration: none;
}
.psd-primary-menu > li > a {
  padding-bottom: 11px;
}
.psd-primary-menu > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--psd-primary), var(--psd-accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .24s ease;
}
.psd-primary-menu a:hover,
.psd-primary-menu .current-menu-item > a,
.psd-primary-menu .current-menu-ancestor > a {
  background: var(--psd-primary-soft);
  color: var(--psd-primary);
}
.psd-primary-menu > li > a:hover::after,
.psd-primary-menu > .current-menu-item > a::after,
.psd-primary-menu > .current-menu-ancestor > a::after {
  transform: scaleX(1);
}
.psd-primary-menu .menu-icon {
  color: var(--psd-accent);
  font-size: .9rem;
  line-height: 1;
  transition: transform .24s ease, color .24s ease;
}
.psd-primary-menu > li > a:hover .menu-icon,
.psd-primary-menu > .current-menu-item > a .menu-icon,
.psd-primary-menu > .current-menu-ancestor > a .menu-icon {
  color: var(--psd-primary);
  transform: translateY(-2px);
}
.psd-primary-menu .menu-text {
  display: inline-block;
}
.psd-primary-menu .sub-menu,
.psd-primary-menu .children {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  display: block;
  visibility: hidden;
  opacity: 0;
  min-width: 240px;
  max-width: 320px;
  margin: 0;
  padding: 14px 10px 10px;
  list-style: none;
  border: 1px solid color-mix(in srgb, var(--psd-primary) 18%, var(--psd-border));
  border-radius: 16px;
  background: var(--psd-surface);
  box-shadow: 0 22px 55px rgba(81, 24, 155, .18);
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.psd-primary-menu .sub-menu::before,
.psd-primary-menu .children::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -7px;
  width: 16px;
  height: 16px;
  z-index: 0;
  pointer-events: none;
  border-left: 1px solid color-mix(in srgb, var(--psd-primary) 18%, var(--psd-border));
  border-top: 1px solid color-mix(in srgb, var(--psd-primary) 18%, var(--psd-border));
  background: var(--psd-surface);
  transform: rotate(45deg);
}
.psd-primary-menu li:hover > .sub-menu,
.psd-primary-menu li:focus-within > .sub-menu,
.psd-primary-menu li:hover > .children,
.psd-primary-menu li:focus-within > .children {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.psd-primary-menu .sub-menu .sub-menu,
.psd-primary-menu .children .children {
  top: -14px;
  left: 100%;
  padding-left: 14px;
}
.psd-primary-menu > li:last-child > .sub-menu,
.psd-primary-menu > li:nth-last-child(2) > .sub-menu,
.psd-primary-menu > li:last-child > .children,
.psd-primary-menu > li:nth-last-child(2) > .children {
  right: 0;
  left: auto;
}
.psd-primary-menu > li:last-child > .sub-menu::before,
.psd-primary-menu > li:nth-last-child(2) > .sub-menu::before,
.psd-primary-menu > li:last-child > .children::before,
.psd-primary-menu > li:nth-last-child(2) > .children::before {
  right: 18px;
  left: auto;
}
.psd-primary-menu .sub-menu .sub-menu::before,
.psd-primary-menu .children .children::before {
  left: -7px;
  top: 20px;
}
.psd-primary-menu .sub-menu li,
.psd-primary-menu .children li {
  position: relative;
  z-index: 1;
  width: 100%;
}
.psd-primary-menu .sub-menu a,
.psd-primary-menu .children a {
  position: relative;
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--psd-ink);
  font-size: .93rem;
  font-weight: 650;
  line-height: 1.45;
  white-space: normal;
}
.psd-primary-menu .sub-menu a::after,
.psd-primary-menu .children a::after {
  display: none;
}
.psd-primary-menu .sub-menu a:hover,
.psd-primary-menu .children a:hover,
.psd-primary-menu .sub-menu .current-menu-item > a,
.psd-primary-menu .children .current_page_item > a {
  background: linear-gradient(135deg, color-mix(in srgb, var(--psd-primary) 12%, transparent), color-mix(in srgb, var(--psd-accent) 16%, transparent));
  color: var(--psd-primary);
}
.psd-nav-actions { display: flex; gap: 8px; align-items: center; }
.psd-icon-button,
.psd-nav-toggle {
  width: 42px; height: 42px; border: 1px solid var(--psd-border); border-radius: 999px;
  color: var(--psd-ink); background: var(--psd-surface); cursor: pointer;
  display: inline-grid; place-items: center;
}
.psd-nav-toggle { display: none; }

.psd-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(245,158,11,.46), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(167,139,250,.45), transparent 32%),
    linear-gradient(135deg, #32105f, #51189B 48%, #7c3aed);
  background-size: 160% 160%;
  animation: psd-gradient-shift 14s ease-in-out infinite;
}
.psd-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 92px;
  background: url("assets/hero-wave.svg") bottom center / cover no-repeat;
  opacity: .78;
}
.psd-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 36px;
  align-items: center;
  padding: 72px 0 110px;
}
.psd-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.psd-particle { position: absolute; border-radius: 50%; background: rgba(255,255,255,.38); animation: psd-particle-float 7s ease-in-out infinite; }
.psd-hero__kicker {
  display: inline-flex; gap: 10px; align-items: center;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff8e7; font-weight: 800;
}
.psd-hero h1 {
  margin: 18px 0 12px;
  max-width: 860px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: 0;
}
.psd-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.9); font-size: clamp(1rem, 2vw, 1.2rem); }
.psd-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.psd-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  background: var(--psd-primary); color: #fff; font-weight: 800; cursor: pointer;
  box-shadow: var(--psd-shadow-sm);
}
.psd-button:hover { color: #fff; transform: translateY(-1px); }
.psd-button--accent { background: var(--psd-accent); color: #241300; }
.psd-button--light { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.32); color: #fff; }
.psd-hero-search {
  margin-top: 26px;
  display: flex;
  width: min(100%, 680px);
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(0,0,0,.2);
}
.psd-hero-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: #111827;
  padding: 0 16px; outline: none;
}
.psd-hero-search button { border: 0; }
.psd-hero-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 22px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0,0,0,.24);
}
.psd-hero-card h2 { margin: 0 0 18px; font-size: 1.35rem; }
.psd-hero-card__flower {
  width: 78px; height: 78px; margin-bottom: 18px; border-radius: 28px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, rgba(245,158,11,.9), rgba(124,58,237,.92));
}
.psd-hero-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.psd-hero-card li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border-radius: 14px; background: rgba(255,255,255,.12);
}
.psd-hero-card li i { margin-top: 4px; color: #fbbf24; }
.psd-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.psd-hero-stat {
  padding: 14px; border-radius: 16px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
.psd-stat-number { display: block; font-size: 1.6rem; line-height: 1; font-weight: 900; color: #fbbf24; }
.psd-stat-label { display: block; margin-top: 6px; font-size: .86rem; color: rgba(255,255,255,.86); }

.psd-main { padding: 54px 0; }
.psd-section { padding: 46px 0; }
.psd-section-header { max-width: 760px; margin-bottom: 24px; }
.psd-section-kicker { color: var(--psd-accent-dark); font-weight: 900; text-transform: uppercase; font-size: .82rem; }
.psd-section-title, .psd-page-title, .psd-single-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; color: var(--psd-ink); }
.psd-section-lead { margin: 8px 0 0; color: var(--psd-muted); }
.psd-grid { display: grid; gap: 18px; }
.psd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.psd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.psd-card,
.psd-widget,
.psd-comment {
  background: var(--psd-surface);
  border: 1px solid var(--psd-border);
  border-radius: var(--psd-radius);
  box-shadow: var(--psd-shadow-sm);
}
.psd-icon-card {
  position: relative; min-height: 100%;
  padding: 22px;
  color: var(--psd-ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.psd-icon-card:hover { transform: translateY(-3px); box-shadow: var(--psd-shadow); border-color: color-mix(in srgb, var(--psd-primary) 35%, var(--psd-border)); }
.psd-icon-card__icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(135deg, var(--psd-primary), #7c3aed); color: #fff; font-size: 1.25rem;
}
.psd-icon-card h3 { margin: 16px 0 6px; font-size: 1.12rem; }
.psd-icon-card p { margin: 0; color: var(--psd-muted); }
.psd-service-card { padding: 26px; }
.psd-service-card .psd-icon-card__icon { background: linear-gradient(135deg, var(--psd-accent), #fbbf24); color: #2a1500; }

.psd-stats-band {
  width: min(calc(100% - 32px), var(--psd-container));
  max-width: 1200px;
  margin: 28px auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 36px 36px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--psd-primary), #32105f);
  color: #fff;
  box-shadow: var(--psd-shadow);
}
.psd-stats-band .psd-section-title, .psd-stats-band .psd-section-lead { color: #fff; }
.psd-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: 22px;
  margin-bottom: 0;
}
.psd-stat-card {
  min-width: 0;
  min-height: 132px;
  height: 100%;
  margin: 0;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
.psd-stat-card .psd-stat-number { font-size: 2.2rem; }

.psd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.psd-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  grid-template-areas: "content sidebar";
  gap: 30px;
  align-items: start;
}
.psd-single-column {
  grid-area: content;
  min-width: 0;
}
.psd-sidebar {
  grid-area: sidebar;
  min-width: 0;
}
.psd-layout--full { grid-template-columns: 1fr; }
.psd-post-list { display: grid; gap: 18px; }
.psd-post-card { overflow: hidden; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.psd-post-card__thumb {
  min-height: 190px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--psd-primary-soft), color-mix(in srgb, var(--psd-accent) 14%, #fff));
}
.psd-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.psd-post-card__placeholder {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  color: var(--psd-primary);
  font-size: 1.8rem;
}
.psd-post-card__body { padding: 22px; }
.psd-entry-title { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.35; }
.psd-entry-title a { color: var(--psd-ink); }
.psd-entry-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--psd-muted); font-size: .9rem; }
.psd-meta-item { display: inline-flex; gap: 7px; align-items: center; }
.psd-entry-summary, .psd-entry-content { color: var(--psd-ink); }
.psd-entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.psd-page, .psd-single { padding: 28px; }
.psd-single__featured { margin: 22px 0; overflow: hidden; border-radius: 18px; }
.psd-post-navigation {
  display: flex;
  gap: 16px;
  align-items: stretch;
  justify-content: space-between;
  margin-top: 22px;
}
.psd-post-navigation__item {
  flex: 1 1 0;
  min-width: 0;
}
.psd-post-navigation__item--next {
  text-align: right;
}
.psd-post-navigation__item:empty {
  visibility: hidden;
}
.psd-post-navigation__item a {
  display: block;
  height: 100%;
  min-height: 94px;
  padding: 16px 18px;
  border: 1px solid var(--psd-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--psd-surface) 88%, var(--psd-bg));
  color: var(--psd-ink);
  text-decoration: none;
  box-shadow: var(--psd-shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.psd-post-navigation__item a:hover {
  border-color: color-mix(in srgb, var(--psd-primary) 34%, var(--psd-border));
  box-shadow: var(--psd-shadow);
  transform: translateY(-2px);
}
.psd-post-navigation__direction {
  display: block;
  margin-bottom: 6px;
  color: var(--psd-muted);
  font-size: .88rem;
  font-weight: 800;
}
.psd-post-navigation__title {
  display: block;
  color: var(--psd-primary);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.psd-pagination { margin-top: 28px; }
.psd-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; background: var(--psd-surface); border: 1px solid var(--psd-border); }
.psd-pagination .current { background: var(--psd-primary); color: #fff; }
.psd-widget { padding: 20px; margin-bottom: 18px; }
.widget-title { margin: 0 0 12px; font-size: 1.1rem; }
.psd-search-page {
  display: grid;
  gap: 26px;
}
.psd-search-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: center;
  padding: 26px;
}
.psd-search-header__text {
  margin: 8px 0 0;
  color: var(--psd-muted);
}
.psd-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--psd-border);
  border-radius: 999px;
  background: var(--psd-surface-2);
}
.psd-search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--psd-ink);
  background: transparent;
}
.psd-search-form .psd-button {
  flex: 0 0 auto;
  min-height: 42px;
}
.psd-search-results {
  min-width: 0;
}
.psd-search-page .psd-post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.psd-search-page .psd-post-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}
.psd-search-page .psd-post-card__body {
  min-width: 0;
}
.psd-search-page .psd-entry-title,
.psd-search-page .psd-entry-summary {
  overflow-wrap: anywhere;
}
.psd-sidebar .psd-widget ul,
.psd-sidebar .widget ul,
.psd-sidebar .wp-block-latest-posts,
.psd-sidebar .widget_recent_entries ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc outside;
}
.psd-sidebar .psd-widget li,
.psd-sidebar .widget li,
.psd-sidebar .wp-block-latest-posts li,
.psd-sidebar .widget_recent_entries li {
  display: list-item;
  margin: 0;
  padding: 6px 0;
  line-height: 1.65;
}
.psd-sidebar .psd-widget li::marker,
.psd-sidebar .widget li::marker,
.psd-sidebar .wp-block-latest-posts li::marker,
.psd-sidebar .widget_recent_entries li::marker {
  color: var(--psd-accent);
}
.psd-sidebar .psd-widget li + li,
.psd-sidebar .widget li + li,
.psd-sidebar .wp-block-latest-posts li + li,
.psd-sidebar .widget_recent_entries li + li {
  border-top: 1px solid color-mix(in srgb, var(--psd-border) 72%, transparent);
}
.psd-sidebar .psd-widget li a,
.psd-sidebar .widget li a,
.psd-sidebar .wp-block-latest-posts li a,
.psd-sidebar .widget_recent_entries li a {
  color: var(--psd-ink);
  font-weight: 650;
  line-height: inherit;
}
.psd-sidebar .psd-widget li a:hover,
.psd-sidebar .widget li a:hover,
.psd-sidebar .wp-block-latest-posts li a:hover,
.psd-sidebar .widget_recent_entries li a:hover {
  color: var(--psd-primary);
}

.psd-footer {
  color: #f8fafc;
  background: #160927;
  margin-top: 38px;
}
.psd-footer-main { padding: 46px 0 32px; }
.psd-footer-info {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 24px;
  margin-bottom: 28px;
}
.psd-footer h2, .psd-footer h3, .psd-footer h4 { color: #fff; margin-top: 0; }
.psd-footer p, .psd-footer address { color: #d8d2e5; }
.psd-footer a { color: #fff; }
.psd-footer-panel {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.psd-footer-contact { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.psd-footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: #e9e2f5; }
.psd-footer-social, .psd-social-menu { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.psd-footer-social a, .psd-social-menu a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
}
.psd-footer-widgets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0; }
.psd-footer-column .widget { padding: 0; background: transparent; border: 0; box-shadow: none; }
.psd-footer-column ul { margin: 0; padding-left: 18px; }
.psd-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.psd-footer-bottom__inner { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.psd-footer-menu a { color: #e9e2f5; padding: 4px 8px; }

.psd-animate-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.psd-animate-on-scroll.psd-visible { opacity: 1; transform: none; }

@keyframes psd-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes psd-particle-float {
  0%, 100% { transform: translate3d(0,0,0); opacity: .35; }
  50% { transform: translate3d(12px,-22px,0); opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 980px) {
  .psd-nav-toggle { display: inline-grid; }
  .psd-brand { flex: 1 1 auto; min-width: 0; }
  .psd-navigation {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 8px);
    display: none; padding: 14px; border: 1px solid var(--psd-border); border-radius: 16px;
    background: var(--psd-surface); box-shadow: var(--psd-shadow);
  }
  .psd-navigation.is-open { display: block; }
  .psd-primary-menu {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }
  .psd-primary-menu a { border-radius: 12px; width: 100%; }
  .psd-primary-menu .sub-menu,
  .psd-primary-menu .children {
    position: static;
    visibility: visible;
    opacity: 1;
    max-width: none;
    min-width: 0;
    margin: 4px 0 6px 14px;
    padding: 6px;
    border-radius: 12px;
    box-shadow: none;
    transform: none;
    background: color-mix(in srgb, var(--psd-primary) 7%, var(--psd-surface));
  }
  .psd-primary-menu .sub-menu::before,
  .psd-primary-menu .children::before {
    display: none;
  }
  .psd-primary-menu .sub-menu .sub-menu,
  .psd-primary-menu .children .children {
    margin-left: 10px;
  }
  .psd-header__inner { min-height: 72px; }
  .psd-hero__inner { grid-template-columns: 1fr; min-height: auto; padding: 54px 0 96px; }
  .psd-grid--4, .psd-grid--3, .psd-footer-widgets, .psd-footer-info { grid-template-columns: 1fr; }
  .psd-post-card { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .psd-layout,
  .psd-single-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "sidebar";
  }
  .psd-search-header {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .psd-search-form {
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .psd-search-form .psd-button {
    width: 100%;
  }
  .psd-search-page .psd-post-card {
    grid-template-columns: 1fr;
  }
  .psd-search-page .psd-post-card__thumb {
    min-height: 160px;
  }
  .psd-post-navigation {
    flex-direction: column;
  }
  .psd-post-navigation__item--next {
    text-align: left;
  }
  .psd-post-navigation__item:empty {
    display: none;
  }
  .psd-stats-band {
    height: auto;
    padding: 28px 22px 40px;
  }
  .psd-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 0;
  }
  .psd-stat-card {
    width: 100%;
    min-height: 116px;
  }
}
@media (max-width: 640px) {
  .psd-container { width: min(calc(100% - 24px), var(--psd-container)); }
  .psd-topbar__inner, .psd-footer-bottom__inner { align-items: flex-start; flex-direction: column; }
  .psd-hero-search { border-radius: 18px; flex-direction: column; gap: 8px; }
  .psd-hero-search input { min-height: 44px; }
  .psd-hero-stats { grid-template-columns: 1fr; }
  .psd-stats-band {
    width: min(calc(100% - 24px), var(--psd-container));
    padding: 24px 18px 40px;
  }
}

/* Staff profile cards */
.person-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  justify-content: center !important;
  align-items: stretch !important;
  margin: 0 auto 30px;
}

#team-section .elementor-container:has(.person-card),
#team-section .elementor-widget-wrap:has(.person-card),
#team-section .e-con-inner:has(.person-card),
#team-section .e-con:has(.person-card),
.psd-home-shortcode-slot .elementor-container:has(.person-card),
.psd-home-shortcode-slot .elementor-widget-wrap:has(.person-card),
.psd-home-shortcode-slot .e-con-inner:has(.person-card),
.psd-home-shortcode-slot .e-con:has(.person-card),
.elementor-section:has(.person-card) > .elementor-container,
.elementor-container:has(.person-card),
.elementor-widget-wrap:has(.person-card),
.e-con-inner:has(.person-card) {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 24px !important;
}

#team-section .elementor-widget:has(.person-card),
.psd-home-shortcode-slot .elementor-widget:has(.person-card),
.elementor-widget:has(.person-card) {
  width: 280px !important;
  max-width: 280px !important;
  flex: 0 1 280px !important;
  margin: 0 !important;
}

.person-card {
  display: block !important;
  vertical-align: top !important;
  width: 280px !important;
  max-width: 280px !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  padding: 30px 20px !important;
  margin: 0 12px 25px !important;
  border: 1px solid rgba(70, 112, 127, 0.08) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.person-grid .person-card {
  margin: 0 !important;
}

#team-section {
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: #f7fafc;
  text-align: center;
}

#team-section .container {
  width: min(calc(100% - 32px), 1200px);
  margin-left: auto;
  margin-right: auto;
}

#team-section .mb-5 {
  margin-bottom: 3rem;
}

#team-section .mb-4 {
  margin-bottom: 1.5rem;
}

#team-section .row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 24px 0;
  margin-left: -12px;
  margin-right: -12px;
}

#team-section .justify-content-center {
  justify-content: center !important;
}

#team-section [class*="col-"] {
  width: 100%;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
  display: flex;
  justify-content: center;
}

@media (min-width: 576px) {
  #team-section .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  #team-section .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  #team-section .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 1200px) {
  #team-section .col-xl-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

#team-section .person-card {
  text-align: center;
}

.person-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(70, 112, 127, 0.12) !important;
}

.profile-image-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px auto;
}

.profile-image-wrapper img {
  width: 130px !important;
  height: 130px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: 4px solid #f4f7f9 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05) !important;
  margin: 0 auto 15px auto !important;
  display: block !important;
}

.name-title {
  font-family: "Noto Sans Thai", sans-serif;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #1a3644 !important;
  margin-bottom: 8px !important;
}

.position-text {
  font-family: "Noto Sans Thai", sans-serif;
  font-size: 14px !important;
  color: #467077 !important;
  line-height: 1.5 !important;
  margin-bottom: 5px !important;
  height: 42px;
}

.phone-text {
  font-family: "Noto Sans Thai", sans-serif;
  font-size: 13px !important;
  color: #718093 !important;
  font-weight: 500;
  margin-bottom: 15px !important;
}

.card-social-icons {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
}

.social-icon {
  display: inline-flex !important;
  width: 34px !important;
  height: 34px !important;
  background-color: #f1f2f6 !important;
  border-radius: 50% !important;
  align-items: center !important;
  justify-content: center !important;
  color: #57606f !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.social-icon:hover {
  background-color: #46707f !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

#team-section h2::after {
  content: "" !important;
  display: block !important;
  width: 50px !important;
  height: 3px !important;
  background: #46707f !important;
  margin: 10px auto 0 auto !important;
  border-radius: 2px !important;
}

body.psd-dark .person-card {
  border-color: rgba(70, 112, 127, 0.22) !important;
}

body.psd-dark .social-icon {
  background-color: #f1f2f6 !important;
  color: #57606f !important;
}

@media (max-width: 640px) {
  #team-section .elementor-container:has(.person-card),
  #team-section .elementor-widget-wrap:has(.person-card),
  #team-section .e-con-inner:has(.person-card),
  #team-section .e-con:has(.person-card),
  .psd-home-shortcode-slot .elementor-container:has(.person-card),
  .psd-home-shortcode-slot .elementor-widget-wrap:has(.person-card),
  .psd-home-shortcode-slot .e-con-inner:has(.person-card),
  .psd-home-shortcode-slot .e-con:has(.person-card),
  .elementor-section:has(.person-card) > .elementor-container,
  .elementor-container:has(.person-card),
  .elementor-widget-wrap:has(.person-card),
  .e-con-inner:has(.person-card),
  .person-grid {
    flex-direction: column !important;
    align-items: center !important;
  }

  #team-section .elementor-widget:has(.person-card),
  .psd-home-shortcode-slot .elementor-widget:has(.person-card),
  .elementor-widget:has(.person-card),
  .person-card {
    width: min(100%, 280px) !important;
    max-width: 280px !important;
    flex-basis: auto !important;
  }
}

