/*
Theme Name: AAArch Academic
Theme URI: https://arch.msu.ac.th
Author: ฝ่ายวิชาการ คณะสถาปัตยกรรมศาสตร์ฯ มมส.
Author URI: https://arch.msu.ac.th
Description: WordPress theme สำหรับฝ่ายวิชาการ คณะสถาปัตยกรรมศาสตร์ ผังเมืองและนฤมิตศิลป์ มหาวิทยาลัยมหาสารคาม
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aaarch
Tags: two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready, thai, university, education
*/

/* ===== CSS VARIABLES ===== */
:root {
  --gold: #d4a017;
  --gold-dark: #b8890f;
  --gold-deeper: #8a6508;
  --gold-light: #f0c94c;
  --gold-pale: #fef9e7;
  --amber-tag: #fdf2d0;
  --white: #ffffff;
  --gray-50: #f7f7f8;
  --gray-100: #eeeff1;
  --gray-200: #dfe0e4;
  --gray-300: #c8cad0;
  --gray-400: #9a9ca6;
  --gray-500: #6e707a;
  --gray-600: #4a4c55;
  --gray-700: #33343b;
  --gray-800: #222329;
  --text: #1e1f25;
  --text-mid: #4a4c55;
  --text-light: #8e909a;
  --border: rgba(0,0,0,.08);
  --blue: #4a7fc4;
  --blue-bg: rgba(74,127,196,.08);
  --blue-dark: #3568a0;
  --coral: #c4573a;
  --coral-bg: rgba(196,87,58,.07);
  --teal: #2d8a7a;
  --teal-bg: rgba(45,138,122,.07);
  --purple: #7c5cbf;
  --purple-bg: rgba(124,92,191,.08);
  --container: 1140px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans Thai', 'DM Sans', -apple-system, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--gray-700);
  padding: 6px 0;
  font-size: 12px;
  color: rgba(255,255,255,.65);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-links { display: flex; align-items: center; gap: 2px; }
.topbar-links a {
  color: rgba(255,255,255,.7);
  margin-left: 14px;
  transition: color .2s;
  font-size: 12px;
}
.topbar-links a:hover { color: #fff; }
.topbar-links .lang-sep { color: rgba(255,255,255,.3); margin: 0 2px; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-mark { display: flex; align-items: baseline; }
.logo-aaa {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -1.5px;
  font-family: 'DM Sans', sans-serif;
}
.logo-rch {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: -1.5px;
  font-family: 'DM Sans', sans-serif;
}
.logo-sub {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: .8px;
  margin-top: -2px;
  text-transform: uppercase;
}

/* ===== NAVIGATION ===== */
.nav { display: flex; align-items: center; }
.nav ul { display: flex; gap: 2px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav ul li { position: relative; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all .2s;
  display: block;
}
.nav a:hover,
.nav ul li:hover > a {
  background: var(--gold-pale);
  color: var(--gold-dark);
}
.nav ul li.current-menu-item > a,
.nav ul li.current-menu-ancestor > a,
.nav a.active {
  color: var(--gold-deeper);
  background: var(--gold-pale);
  font-weight: 600;
}

/* Dropdown sub-menu */
.nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  min-width: 180px;
  z-index: 200;
  flex-direction: column;
  gap: 0;
  padding: 6px;
}
.nav ul li:hover > ul { display: flex; }
.nav ul ul li a { padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: .3s;
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  background: var(--white);
  padding: 48px 0 40px;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
}
.hero-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}
.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.hero-left { flex: 1; }
.hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}
.hero h1 span { color: var(--gold-dark); }
.hero-desc {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Search */
.hero-search {
  display: flex;
  max-width: 440px;
}
.hero-search input[type="search"],
.hero-search input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.hero-search input:focus { border-color: var(--gold); }
.hero-search input::placeholder { color: var(--text-light); }
.hero-search button {
  padding: 12px 28px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  white-space: nowrap;
}
.hero-search button:hover { background: var(--gold-dark); }

/* System cards */
.sys-cards { display: flex; gap: 12px; flex-shrink: 0; }
.sys-card {
  width: 180px;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  transition: all .3s;
  border: none;
  position: relative;
  overflow: hidden;
  display: block;
}
.sys-card:hover { transform: translateY(-4px); }
.sys-card-a {
  background: linear-gradient(145deg, #4a7fc4 0%, #6b9ad8 100%);
  box-shadow: 0 4px 20px rgba(74,127,196,.2);
}
.sys-card-a:hover { box-shadow: 0 8px 32px rgba(74,127,196,.3); }
.sys-card-b {
  background: linear-gradient(145deg, #7c5cbf 0%, #9b7dd8 100%);
  box-shadow: 0 4px 20px rgba(124,92,191,.2);
}
.sys-card-b:hover { box-shadow: 0 8px 32px rgba(124,92,191,.3); }
.sys-icon { font-size: 32px; margin-bottom: 10px; }
.sys-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
}
.sys-desc { font-size: 12px; color: rgba(255,255,255,.75); line-height: 1.5; }
.sys-arrow {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 16px;
  color: rgba(255,255,255,.4);
  transition: color .2s;
}
.sys-card:hover .sys-arrow { color: rgba(255,255,255,.8); }

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-title .more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-dark);
  transition: color .2s;
}
.section-title .more:hover { color: var(--gold-deeper); }

/* ===== NEWS SECTION ===== */
.news-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-100);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  cursor: pointer;
  transition: all .3s;
  display: block;
}
.news-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(212,160,23,.1);
  transform: translateY(-2px);
}
.news-img {
  height: 140px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--gray-400);
  overflow: hidden;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-img-gold { background: linear-gradient(135deg, var(--gold-pale) 0%, #fef3d0 100%); }
.news-img-blue { background: linear-gradient(135deg, #e8f0fa 0%, #dce8f5 100%); }
.news-img-teal { background: linear-gradient(135deg, #e6f4ee 0%, #d4efe8 100%); }
.news-img-purple { background: linear-gradient(135deg, #f0ecfa 0%, #e5dff5 100%); }
.news-body { padding: 16px 18px; }
.news-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}
.tag-news { background: var(--amber-tag); color: var(--gold-deeper); }
.tag-event { background: var(--blue-bg); color: var(--blue); }
.tag-announce { background: var(--teal-bg); color: var(--teal); }
.tag-default { background: var(--gray-100); color: var(--gray-600); }
.news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 6px;
}
.news-date { font-size: 12px; color: var(--text-light); }

/* ===== MAIN CONTENT AREA ===== */
.main-content { padding: 40px 0 48px; }
.main-content .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

/* Quick access */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.quick-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all .3s;
}
.quick-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(212,160,23,.1);
  transform: translateY(-2px);
}
.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.qi-1 { background: var(--amber-tag); color: var(--gold-deeper); }
.qi-2 { background: var(--blue-bg); color: var(--blue); }
.qi-3 { background: var(--coral-bg); color: var(--coral); }
.qi-4 { background: var(--gray-100); color: var(--gray-600); }
.quick-title { font-size: 14px; font-weight: 600; color: var(--text); }
.quick-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* Content list items */
.content-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.content-item {
  background: var(--white);
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .2s;
  cursor: pointer;
}
.content-item:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(212,160,23,.08);
}
.item-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.itag-gold { background: var(--amber-tag); color: var(--gold-deeper); }
.itag-blue { background: var(--blue-bg); color: var(--blue-dark); }
.itag-gray { background: var(--gray-100); color: var(--gray-600); }
.item-info { flex: 1; min-width: 0; }
.item-title { font-size: 14px; font-weight: 500; color: var(--text); }
.item-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.item-action {
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s;
  flex-shrink: 0;
}
.content-item:hover .item-action { color: var(--gold-deeper); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sb-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--gray-100);
}
.sb-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-title-icon { font-size: 16px; }

/* Google Calendar embed */
.gcal-wrap {
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px dashed var(--gray-200);
  overflow: hidden;
}
.gcal-wrap iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}
.gcal-placeholder {
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.gcal-placeholder .gcal-icon { font-size: 32px; margin-bottom: 8px; }
.gcal-placeholder strong {
  color: var(--text-mid);
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}
.gcal-placeholder p { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* Announcements */
.announce-item {
  font-size: 13px;
  color: var(--text-mid);
  padding: 8px 0;
  border-bottom: 0.5px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.announce-item:last-child { border: none; }
.announce-item a { color: var(--text-mid); flex: 1; transition: color .2s; }
.announce-item a:hover { color: var(--gold-dark); }
.announce-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  flex-shrink: 0;
}
.badge-new {
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: auto;
  flex-shrink: 0;
}

/* Complaint box */
.complaint-card {
  background: var(--gold-pale);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(212,160,23,.15);
}
.complaint-card .sb-title { border-color: rgba(212,160,23,.2); }
.complaint-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 12px;
}
.complaint-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  text-align: center;
}
.complaint-btn:hover { background: var(--gold-dark); color: var(--white); }
.complaint-note {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 8px;
  text-align: center;
}

/* Faculty zone */
.faculty-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--gray-100);
}
.faculty-card .sb-title { border-color: var(--gray-200); }
.fac-item {
  font-size: 13px;
  color: var(--text-mid);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fac-item a { color: var(--text-mid); transition: color .2s; }
.fac-item a:hover { color: var(--gold-dark); }
.fac-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-400);
  flex-shrink: 0;
}
.fac-link {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 13px;
  margin-top: 10px;
  display: inline-block;
  transition: color .2s;
}
.fac-link:hover { color: var(--gold-deeper); }

/* ===== SINGLE POST / PAGE ===== */
.page-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--gray-100);
}
.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.post-meta a { color: var(--gold-dark); }
.post-meta .post-category-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--amber-tag);
  color: var(--gold-deeper);
}
.single-content-wrap {
  padding: 40px 0 48px;
}
.single-content-wrap .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}
.entry-featured-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
  max-height: 420px;
}
.entry-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.entry-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 20px; font-weight: 700; margin: 1.5em 0 .6em; color: var(--text); }
.entry-content h3 { font-size: 17px; font-weight: 600; margin: 1.3em 0 .5em; color: var(--text); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--gold-deeper); }
.entry-content img { border-radius: var(--radius-sm); margin: 1em 0; }
.entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-mid);
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--gray-200); text-align: left; font-size: 14px; }
.entry-content th { background: var(--gray-50); font-weight: 600; }
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--text-light);
  max-width: 48%;
}
.post-nav-link a { font-size: 14px; font-weight: 500; color: var(--gold-dark); margin-top: 4px; }
.post-nav-next { text-align: right; }

/* WordPress alignment classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { clear: both; display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 6px; }

/* ===== ARCHIVE / SEARCH ===== */
.archive-header {
  padding: 32px 0 0;
}
.archive-header h1 { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.archive-header p { font-size: 14px; color: var(--text-light); }
.archive-content { padding: 32px 0 48px; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.no-results-box {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.no-results-box .no-results-icon { font-size: 48px; margin-bottom: 12px; }
.no-results-box h2 { font-size: 20px; font-weight: 600; color: var(--text-mid); margin-bottom: 8px; }
.no-results-box p { font-size: 14px; }
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.pagination .page-numbers {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font-size: 14px;
  color: var(--text-mid);
  transition: all .2s;
  background: var(--white);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ===== 404 ===== */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}
.error-404 .error-code { font-size: 96px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.error-404 h1 { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.error-404 p { font-size: 15px; color: var(--text-light); margin-bottom: 24px; }
.btn-back {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s;
}
.btn-back:hover { background: var(--gold-dark); color: var(--white); }

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  padding: 24px 0;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
}
.footer-links { display: flex; align-items: center; gap: 0; }
.footer-links a {
  color: var(--gold-dark);
  font-weight: 500;
  margin-left: 16px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold-deeper); }

/* WordPress widget reset */
.widget { margin: 0; }
.widget-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero .container { flex-direction: column; }
  .sys-cards { width: 100%; }
  .sys-card { flex: 1; }
  .main-content .container,
  .single-content-wrap .container { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 12px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    z-index: 99;
  }
  .nav.open ul { flex-direction: column; width: 100%; }
  .nav.open ul ul { position: static; box-shadow: none; border: none; padding-left: 12px; }
  .menu-toggle { display: block; }
  .header .container { position: relative; }
  .hero h1 { font-size: 22px; }
  .sys-cards { flex-direction: column; }
  .sys-card { width: 100%; }
  .news-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .post-navigation { flex-direction: column; }
  .post-nav-link { max-width: 100%; }
  .post-nav-next { text-align: left; }
  .footer .container { flex-direction: column; gap: 8px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .topbar .container { flex-direction: column; gap: 4px; text-align: center; }
  .topbar-links { justify-content: center; }
}
