/* ==========================================================
   Frontend Stylesheet — สำนักงานเลขานุการ
   ========================================================== */
:root {
  --primary: #1E718A;
  --primary-dark: #1E3A8A;
  --primary-light: #371E8A;
  --accent: #f59e0b;
  --light-bg: #f1f5f9;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --card-shadow: 0 2px 12px rgba(30,58,138,.08);
  --card-shadow-hover: 0 8px 24px rgba(30,58,138,.15);
}


* { box-sizing: border-box; }
html, body { scroll-behavior: smooth; }
body {
  font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: #ffffff;
}
a { text-decoration: none; transition: all .2s; }
a:hover { color: var(--primary-light); }
 
/* ====== Topbar ====== */
.topbar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
}
.topbar .row > .col-auto { text-align: right; }
 
/* ====== Navbar ====== */
.navbar-brand small { font-size: 0.7rem; letter-spacing: 1px; }
.navbar .nav-link {
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin: 0 2px;
}
.navbar .nav-link:hover { color: var(--primary); background: var(--light-bg); }
.navbar .nav-link.active { color: var(--primary); background: rgba(30,58,138,.08); }
.navbar .nav-link i { margin-right: 0.25rem; }
 
/* ====== Hero ====== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(245,158,11,.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(59,130,246,.2) 0%, transparent 50%);
}
.hero-section .container { position: relative; z-index: 2; }
.hero-title { font-size: 2.2rem; font-weight: 700; line-height: 1.3; }
.hero-subtitle { font-size: 1.1rem; opacity: 0.9; }
.director-photo {
  width: 220px; height: 220px;
  object-fit: cover; object-position: center top;
  border-radius: 1rem;
  border: 4px solid rgba(255,255,255,.3);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.director-photo-placeholder {
  width: 220px; height: 220px;
  background: rgba(255,255,255,.1);
  border: 4px dashed rgba(255,255,255,.3);
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(255,255,255,.4);
}
.welcome-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.2);
}
 
/* ====== Section Title ====== */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-weight: 700;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.section-title p { color: var(--text-muted); margin-top: 0.5rem; }
 
/* ====== News Cards ====== */
.news-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all .3s;
  height: 100%;
  display: flex; flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.news-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  background: var(--light-bg);
}
.news-card-img-ph {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 3rem;
}
.news-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-card-category {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}
.cat-news        { background: #dbeafe; color: #1e40af; }
.cat-activity    { background: #fef3c7; color: #92400e; }
.cat-announcement{ background: #fce7f3; color: #9d174d; }
.news-card-title {
  font-weight: 600; font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  line-height: 1.4;
}
.news-card-title:hover { color: var(--primary); }
.news-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex: 1;
}
.news-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-muted);
  border-top: 1px solid #f1f5f9; padding-top: 0.75rem;
}
 
/* ====== Org Structure Tree ====== */
.org-tree { padding: 2rem 0; overflow-x: auto; }
.org-node {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--card-shadow);
  display: inline-block;
}
.work-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary);
  transition: all .3s;
}
.work-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.work-card-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}
.work-card-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  flex-shrink: 0;
}
.work-card-title { font-weight: 700; color: var(--primary); margin-bottom: 0; }
.work-card-units { padding-left: 1rem; }
.unit-item {
  padding: 0.5rem 0.75rem;
  background: var(--light-bg);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.unit-item i { color: var(--accent); margin-right: 0.5rem; }
 
/* ====== Personnel Cards ====== */
.personnel-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: all .3s;
  height: 100%;
}
.personnel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.personnel-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover; object-position: center top;
  background: var(--light-bg);
}
.personnel-photo-ph {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 4rem;
}
.personnel-body { padding: 1rem; }
.personnel-name { font-weight: 600; color: var(--text-dark); margin-bottom: 0.25rem; font-size: 1rem; }
.personnel-position { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.personnel-contact { font-size: 0.8rem; color: var(--text-muted); }
.personnel-contact div { margin-bottom: 0.2rem; }
.personnel-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}
.badge-director       { background: #fee2e2; color: #991b1b; }
.badge-work_head      { background: #dbeafe; color: #1e40af; }
.badge-work_assistant { background: #cffafe; color: #155e75; }
.badge-unit_head      { background: #dcfce7; color: #166534; }
.badge-staff          { background: #f1f5f9; color: #475569; }
 
/* Director card (จุดศูนย์กลาง) */
.personnel-card.director-card {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, #fff 0%, #fef3c7 100%);
}
.personnel-card.director-card .personnel-photo,
.personnel-card.director-card .personnel-photo-ph {
  aspect-ratio: 4 / 5;
}
 
/* ====== About Page ====== */
.about-content {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  line-height: 1.8;
}
.about-content h4, .about-content h5 { color: var(--primary); font-weight: 700; }
 
/* ====== News List ====== */
.news-list-item {
  display: flex; gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
  transition: all .2s;
}
.news-list-item:hover { box-shadow: var(--card-shadow-hover); transform: translateX(2px); }
.news-list-img {
  width: 150px; height: 100px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}
.news-list-img-ph {
  width: 150px; height: 100px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 2rem;
  flex-shrink: 0;
}
 
/* ====== News Detail ====== */
.news-detail-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 1rem;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.album-thumb {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform .2s;
}
.album-thumb:hover { transform: scale(1.03); }
 
/* ====== Footer ====== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  padding-top: 1rem;
}
.site-footer h6 { color: #fff; font-weight: 700; }
.site-footer a  { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--accent); }
.site-footer .social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%; font-size: 1.1rem;
}
.site-footer .social-links a:hover { background: var(--accent); color: var(--primary-dark); }
.footer-bottom {
  background: rgba(0,0,0,.2);
  color: rgba(255,255,255,.7);
}
 
/* ====== Responsive ====== */
@media (max-width: 991.98px) {
  .navbar-nav { padding-top: 0.5rem; }
  .navbar .nav-link { padding: 0.5rem 0.75rem; }
}
@media (max-width: 767.98px) {
  .hero-section { padding: 2.5rem 0 3rem; text-align: center; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 1rem; }
  .director-photo, .director-photo-placeholder { width: 160px; height: 160px; margin: 0 auto 1.5rem; }
  .director-photo-placeholder { font-size: 3rem; }
  .section-title h2 { font-size: 1.3rem; }
  .work-card-header { flex-direction: column; text-align: center; }
  .news-list-item { flex-direction: column; }
  .news-list-img, .news-list-img-ph { width: 100%; height: 180px; }
}
@media (max-width: 575.98px) {
  .personnel-card .personnel-body { padding: 0.75rem; }
  .personnel-name { font-size: 0.9rem; }
}
 
/* ============================================================
   LINK CATEGORIES (หน้าแรก)
   ============================================================ */
.link-cat-card {
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 2px 10px rgba(15,23,42,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.link-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(15,23,42,.10);
}
.link-cat-header {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.link-cat-header i {
  font-size: 1.85rem;
  background: rgba(255,255,255,.18);
  width: 48px; height: 48px;
  border-radius: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.link-cat-header h5 { font-size: 1.05rem; font-weight: 700; }
 
.link-list {
  list-style: none;
  margin: 0; padding: 0.5rem 0;
  flex: 1;
}
.link-list li { border-bottom: 1px solid #f1f5f9; }
.link-list li:last-child { border-bottom: none; }
 
.link-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: #334155;
  transition: background .15s;
}
.link-item:hover {
  background: #eff6ff;
  color: #1e3a8a;
}
.link-item > i:first-child {
  font-size: 1.15rem;
  color: #3b82f6;
  width: 28px; text-align: center;
  flex-shrink: 0;
}
.link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.link-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-desc {
  color: #94a3b8;
  font-size: 0.78rem;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-icon-ext {
  color: #cbd5e1;
  font-size: 0.85rem;
  transition: transform .15s, color .15s;
  flex-shrink: 0;
}
.link-item:hover .link-icon-ext {
  color: #1e3a8a;
  transform: translateX(3px);
}
 
@media (max-width: 575.98px) {
  .link-cat-header { padding: 0.75rem 1rem; }
  .link-cat-header h5 { font-size: 0.95rem; }
  .link-cat-header i { width: 40px; height: 40px; font-size: 1.5rem; }
  .link-item { padding: 0.6rem 1rem; }
  .link-title { font-size: 0.9rem; }
}
 
/* ============================================================
   CUSTOM PAGE CONTENT (page.php)
   ============================================================ */
.page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #1e293b;
}
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5 {
  color: #1e3a8a;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
}
.page-content h2 { font-size: 1.6rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 0.4rem; }
.page-content h3 { font-size: 1.3rem; }
.page-content h4 { font-size: 1.1rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul,
.page-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.35rem; }
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.page-content table th,
.page-content table td {
  padding: 0.65rem;
  border: 1px solid #e2e8f0;
}
.page-content table th { background: #f1f5f9; font-weight: 600; }
.page-content blockquote {
  border-left: 4px solid #3b82f6;
  padding: 0.5rem 1rem;
  background: #eff6ff;
  margin: 1rem 0;
  color: #1e293b;
  font-style: italic;
}
.page-content a { color: #2563eb; text-decoration: underline; }
.page-content a:hover { color: #1e40af; }
 
/* ============================================================
   ENTITY DETAIL PAGES (personnel/work/unit)
   ============================================================ */
.entity-hero {
  background: linear-gradient(135deg, #1E718A, #1E3A8A);
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.entity-hero-work {
  background: linear-gradient(135deg, #1E718A, #1E3A8A);
}
.entity-hero-unit {
  background: linear-gradient(135deg, #1E718A, #1E3A8A);
}
 
.entity-hero .breadcrumb a { text-decoration: none; }
.entity-hero .breadcrumb a:hover { color: #fff !important; }
 
.entity-hero-photo {
  /*width: 110px; height: 130px;*/
  width: 200px; height: 220px;
  border-radius: 0.75rem;
  object-fit: cover;
  object-position: top center;
  border: 3px solid rgba(255,255,255,.3);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  background: #fff;
  flex-shrink: 0;
}
.entity-hero-photo-ph {
  /*width: 110px; height: 130px;*/
  width: 200px; height: 220px;
  border-radius: 0.75rem;
  background: rgba(255,255,255,.18);
  border: 3px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-size: 3rem; color: rgba(255,255,255,.5);
  flex-shrink: 0;
}
 
.entity-hero-icon {
  width: 72px; height: 72px;
  border-radius: 0.85rem;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}
 
.entity-hero-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}
.entity-hero-position {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 1rem;
}
.entity-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  font-size: 0.95rem;
}
.entity-hero-meta i { margin-right: 0.3rem; opacity: 0.85; }
.entity-hero-meta a { color: #fef3c7; text-decoration: none; }
.entity-hero-meta a:hover { color: #fff; text-decoration: underline; }
 
/* ===== Tabs Card ===== */
.entity-tabs-card {
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 4px 16px rgba(15,23,42,.08);
  overflow: hidden;
}
.entity-tabs-nav {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
}
.entity-tabs-nav::-webkit-scrollbar { height: 4px; }
.entity-tabs-nav::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
 
.entity-tabs-nav .nav-link {
  border: none;
  border-radius: 0;
  color: #64748b;
  font-weight: 600;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  background: transparent;
  flex-shrink: 0;
}
.entity-tabs-nav .nav-link i { font-size: 1.15rem; }
.entity-tabs-nav .nav-link:hover {
  color: #1e3a8a;
  background: #fff;
}
.entity-tabs-nav .nav-link.active {
  color: #1e3a8a;
  background: #fff;
  border-bottom-color: #1e3a8a;
}
.entity-tabs-content {
  padding: 2rem;
  min-height: 200px;
}
 
@media (max-width: 575.98px) {
  .entity-hero { padding: 2rem 0 1.75rem; }
  .entity-hero-name { font-size: 1.5rem; }
  .entity-hero-photo,
  .entity-hero-photo-ph { width: 72px; height: 88px; font-size: 2.2rem; border-radius: 0.5rem; }
  .entity-hero-icon { width: 58px; height: 58px; font-size: 1.8rem; }
  .entity-tabs-nav .nav-link { padding: 0.75rem 1rem; font-size: 0.9rem; }
  .entity-tabs-nav .nav-link span {
    display: none;
  }
  .entity-tabs-nav .nav-link.active span {
    display: inline;
  }
  .entity-tabs-content { padding: 1.25rem; }
}
 
/* ===== Sidebar person link ===== */
.entity-person-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: 0.5rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
  color: #1e293b;
  transition: background .15s;
}
.entity-person-link:hover {
  background: #f1f5f9;
  color: #1e3a8a;
}
.person-mini-photo {
  width: 80px; height: 100px;
  border-radius: 0%;
  object-fit: cover;
  flex-shrink: 0;
}
.person-mini-ph {
  width: 80px; height: 100px;
  border-radius: 0%;
  background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 1.3rem;
  flex-shrink: 0;
}
 
/* personnel-card as link */
a.personnel-card {
  color: inherit;
  display: block;
}
a.personnel-card:hover .personnel-name { color: #1e3a8a; }
 
/* ============================================================
   HOME PAGE — HERO BANNER
   ============================================================ */
.home-hero {
  position: relative;
  min-height: 340px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
}
/* กรณีมีรูป */
.home-hero.has-bg-image {
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center center;
}
.home-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    /*
    rgba(15, 23, 66, 0.78) 0%,
    rgba(15, 23, 66, 0.55) 60%,
    rgba(15, 23, 66, 0.35) 100%
*/
    rgba(15, 23, 66, 0.5) 0%,
    rgba(15, 23, 66, 0.3) 60%,
    rgba(15, 23, 66, 0.1) 100%
  );
}
.home-hero-inner {
  position: relative; z-index: 2;
  padding: 4rem 0;
}
.home-hero-text { max-width: 660px; }
.home-hero-title {
  font-size: 2.6rem; font-weight: 800;
  line-height: 1.2; margin-bottom: .75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.home-hero-subtitle {
  font-size: 1.15rem; opacity: .9; margin-bottom: 1.75rem;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.home-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.home-hero-actions .btn { font-weight: 600; border-radius: .6rem; }
 
@media (max-width: 575.98px) {
  .home-hero { min-height: 260px; }
  .home-hero-inner { padding: 2.5rem 0; }
  .home-hero-title { font-size: 1.7rem; }
  .home-hero-subtitle { font-size: .95rem; }
  .home-hero-actions .btn { font-size: .9rem; padding: .5rem 1rem; }
}
 
/* ============================================================
   HOME PAGE — DIRECTOR CARD (new)
   ============================================================ */
.director-card-new {
  background: transparent;
  display: flex; flex-direction: column;
}
.director-card-new-header {
  color: #1e3a8a;
  font-weight: 700;
  font-size: .92rem;
  padding: 0 0 .75rem 0;
  display: flex; align-items: center;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: .1rem;
}
.director-card-new-body {
  padding: 1.25rem 0 0 0;
  display: flex;
  gap: 1.5rem;
  flex: 1;
  align-items: flex-start;
}
.director-photo-wrap { flex-shrink: 0; }
.director-photo-new {
  width: 160px; height: 195px;
  object-fit: cover; object-position: top center;
  border-radius: .75rem;
  box-shadow: 0 6px 18px rgba(15,23,42,.15);
  display: block;
}
.director-photo-new-ph {
  width: 160px; height: 195px;
  background: #f1f5f9;
  border-radius: .75rem;
  border: 2px dashed #cbd5e1;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: #94a3b8;
}
.director-info { flex: 1; min-width: 0; }
.director-name-link {
  font-size: 1.2rem; font-weight: 700;
  color: #1e3a8a; text-decoration: none;
  display: block; line-height: 1.3; margin-bottom: .35rem;
}
.director-name-link:hover { color: #1e40af; text-decoration: underline; }
.director-position {
  font-size: .88rem; color: #64748b; margin-bottom: .75rem;
}
.director-contact {
  font-size: .85rem; color: #475569; margin-bottom: .35rem;
  display: flex; align-items: center; gap: .4rem;
}
.director-contact a { color: #2563eb; text-decoration: none; }
.director-contact a:hover { text-decoration: underline; }
.director-quote {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  border-radius: 0 .5rem .5rem 0;
  padding: .65rem .9rem;
  font-size: .87rem; color: #334155;
  margin: .85rem 0 0;
  font-style: italic;
  line-height: 1.6;
}
 
@media (max-width: 575.98px) {
  .director-card-new-body { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .director-photo-new, .director-photo-new-ph { width: 120px; height: 148px; }
  .director-contact { justify-content: center; }
}
 
/* ============================================================
   HOME PAGE — STAT CARDS (new)
   ============================================================ */
.home-stat-card {
  background: #fff;
  border-radius: .75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(15,23,42,.05);
  padding: .85rem .65rem;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.home-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(15,23,42,.10);
}
.home-stat-icon {
  width: 38px; height: 38px; border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: #fff; margin-bottom: .5rem;
}
.home-stat-num {
  font-size: 1.6rem; font-weight: 800; line-height: 1;
  margin-bottom: .2rem;
}
.home-stat-label {
  font-size: .75rem; color: #64748b; margin-bottom: .5rem;
}
.home-stat-link {
  font-size: .72rem; font-weight: 600;
  text-decoration: none; margin-top: auto;
}
.home-stat-link:hover { text-decoration: underline; }
 
/* colour variants */
.stat-blue  .home-stat-icon { background: #3b82f6; }
.stat-blue  .home-stat-num  { color: #1d4ed8; }
.stat-blue  .home-stat-link { color: #3b82f6; }
 
.stat-green .home-stat-icon { background: #22c55e; }
.stat-green .home-stat-num  { color: #15803d; }
.stat-green .home-stat-link { color: #22c55e; }
 
.stat-orange .home-stat-icon { background: #f59e0b; }
.stat-orange .home-stat-num  { color: #b45309; }
.stat-orange .home-stat-link { color: #f59e0b; }
 
.stat-cyan  .home-stat-icon { background: #06b6d4; }
.stat-cyan  .home-stat-num  { color: #0e7490; }
.stat-cyan  .home-stat-link { color: #06b6d4; }
 
/* ============================================================
   HOME PAGE — QUICK NAVIGATION BUTTONS
   ============================================================ */
.home-quick-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .35rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: .85rem .5rem;
  text-decoration: none;
  color: #334155;
  font-size: .82rem; font-weight: 600;
  transition: background .15s, border-color .15s, transform .15s;
}
.home-quick-btn i { font-size: 1.35rem; color: #3b82f6; }
.home-quick-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e3a8a;
  transform: translateY(-2px);
}
