@charset "UTF-8";
/* CE SSRU Hashtag Explorer — Pure CSS (v1.2.5) — Froala CMS & <base href>-Safe, Zero <script> */

@keyframes ceHtHeroIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ceHtCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Root Shell ===== */
.ce-ht-wrap {
  --ht-ink: #111827;
  --ht-ink-soft: #374151;
  --ht-muted: #6b7280;
  --ht-paper: #ffffff;
  --ht-surface: #f8fafc;
  --ht-warm: #fffbf5;
  --ht-crimson: #b91c1c;
  --ht-crimson-dark: #991b1b;
  --ht-crimson-soft: #fef2f2;
  --ht-crimson-border: #fecaca;
  --ht-amber: #f59e0b;
  --ht-amber-soft: #fffbeb;
  --ht-amber-border: #fde68a;
  --ht-border: #e5e7eb;
  --ht-radius: 14px;

  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 14px 42px;
  font-family: "IBM Plex Sans Thai", "Sarabun", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ht-ink);
  background-color: var(--ht-paper);
  line-height: 1.68;
  text-align: left;
  box-sizing: border-box;
}

.ce-ht-wrap *,
.ce-ht-wrap *::before,
.ce-ht-wrap *::after {
  box-sizing: border-box;
}

/* Invisible Anchors for Pure-CSS :target Filtering (No scroll jump) */
.ce-ht-wrap .ce-ht-anchor {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ===== CSS-Injected Icons (Froala-Safe, No Raw Emoji in HTML) ===== */
.ce-ht-wrap .ce-ht-ico::before {
  display: inline-block;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  margin-right: 0.36em;
  vertical-align: -0.04em;
}

.ce-ht-wrap .ce-ht-ico-hash::before   { content: "#"; font-weight: 800; color: var(--ht-crimson); }
.ce-ht-wrap .ce-ht-ico-cal::before    { content: "\1F4C5"; }
.ce-ht-wrap .ce-ht-ico-pin::before    { content: "\1F4CD"; }
.ce-ht-wrap .ce-ht-ico-photo::before  { content: "\1F5BC\FE0F"; }
.ce-ht-wrap .ce-ht-ico-tag::before    { content: "\1F3F7\FE0F"; }

/* ===== Hero Section ===== */
.ce-ht-wrap .ce-ht-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 22px;
  margin-bottom: 22px;
  border-radius: 16px;
  border: 1px solid var(--ht-amber-border);
  background:
    radial-gradient(circle at 92% 12%, rgba(245, 158, 11, 0.18), transparent 44%),
    radial-gradient(circle at 6% 90%, rgba(185, 28, 28, 0.1), transparent 46%),
    linear-gradient(180deg, #fffbf5 0%, #ffffff 100%);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
  animation: ceHtHeroIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ce-ht-wrap .ce-ht-hero-banner {
  display: none;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.ce-ht-wrap .ce-ht-hero-default {
  display: flex;
}

.ce-ht-wrap .ce-ht-hero-left {
  flex: 1 1 460px;
  min-width: 0;
}

.ce-ht-wrap .ce-ht-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  background-color: var(--ht-amber-soft);
  border: 1px solid var(--ht-amber-border);
  color: #92400e;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.ce-ht-wrap .ce-ht-hero-title {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ht-ink);
  word-break: break-word;
}

.ce-ht-wrap .ce-ht-hash-glyph {
  color: var(--ht-crimson);
  margin-right: 2px;
}

.ce-ht-wrap .ce-ht-hero-desc {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ht-muted);
}

.ce-ht-wrap .ce-ht-hero-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ce-ht-wrap .ce-ht-stat {
  min-width: 92px;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid var(--ht-border);
  text-align: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ce-ht-wrap .ce-ht-stat-num {
  display: block;
  font-family: "Space Grotesk", "IBM Plex Sans Thai", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ht-crimson);
}

.ce-ht-wrap .ce-ht-stat-label {
  display: block;
  font-size: 12px;
  color: var(--ht-muted);
  margin-top: 2px;
}

.ce-ht-wrap .ce-ht-reset-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background-color: var(--ht-crimson);
  border: 1px solid var(--ht-crimson);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ce-ht-wrap .ce-ht-reset-btn:hover,
.ce-ht-wrap .ce-ht-reset-btn:focus-visible {
  background-color: var(--ht-crimson-dark);
  transform: translateY(-1px);
  outline: none;
}

/* ===== Hashtag Directory Bar ===== */
.ce-ht-wrap .ce-ht-dir {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: var(--ht-radius);
  background-color: var(--ht-surface);
  border: 1px solid var(--ht-border);
}

.ce-ht-wrap .ce-ht-dir-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ce-ht-wrap .ce-ht-dir-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ht-ink);
}

.ce-ht-wrap .ce-ht-dir-hint {
  font-size: 13px;
  color: var(--ht-muted);
}

.ce-ht-wrap .ce-ht-pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ce-ht-wrap .ce-ht-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ht-border);
  background-color: #ffffff;
  color: var(--ht-ink-soft) !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-ht-wrap .ce-ht-pill:hover,
.ce-ht-wrap .ce-ht-pill:focus-visible {
  border-color: var(--ht-crimson-border);
  background-color: var(--ht-crimson-soft);
  color: var(--ht-crimson) !important;
  transform: translateY(-1px);
  outline: none;
}

.ce-ht-wrap .ce-ht-pill-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background-color: #f3f4f6;
  color: var(--ht-muted);
  font-family: "Space Grotesk", "IBM Plex Sans Thai", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
}

/* Default Active State for "All" Pill */
.ce-ht-wrap .ce-ht-pill-all {
  background-color: var(--ht-crimson);
  border-color: var(--ht-crimson);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.22);
}

.ce-ht-wrap .ce-ht-pill-all .ce-ht-pill-cnt {
  background-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

/* ===== Posts Grid ===== */
.ce-ht-wrap .ce-ht-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ce-ht-wrap .ce-ht-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid var(--ht-border);
  border-radius: var(--ht-radius);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  animation: ceHtCardIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ce-ht-wrap .ce-ht-card:hover {
  transform: translateY(-3px);
  border-color: #fcd34d;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.ce-ht-wrap .ce-ht-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: #f3f4f6;
  overflow: hidden;
}

.ce-ht-wrap .ce-ht-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-ht-wrap .ce-ht-card:hover .ce-ht-card-media img {
  transform: scale(1.04);
}

.ce-ht-wrap .ce-ht-source-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(17, 24, 39, 0.8);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.ce-ht-wrap .ce-ht-source-badge--sw {
  background-color: rgba(185, 28, 28, 0.9);
}

.ce-ht-wrap .ce-ht-photo-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background-color: rgba(17, 24, 39, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.ce-ht-wrap .ce-ht-card-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ce-ht-wrap .ce-ht-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ht-muted);
}

.ce-ht-wrap .ce-ht-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: var(--ht-amber-soft);
  border: 1px solid var(--ht-amber-border);
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
}

.ce-ht-wrap .ce-ht-card-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ht-ink);
}

.ce-ht-wrap .ce-ht-card-excerpt {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ht-muted);
}

.ce-ht-wrap .ce-ht-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 14px;
}

.ce-ht-wrap .ce-ht-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--ht-crimson-border);
  background-color: var(--ht-crimson-soft);
  color: var(--ht-crimson) !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ce-ht-wrap .ce-ht-card-tag:hover,
.ce-ht-wrap .ce-ht-card-tag:focus-visible {
  background-color: var(--ht-crimson);
  border-color: var(--ht-crimson);
  color: #ffffff !important;
  transform: translateY(-1px);
  outline: none;
}

/* ===== Pure-CSS <details> Expandable Post Reader (Zero <script>, <base>-Safe) ===== */
.ce-ht-wrap .ce-ht-more {
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

.ce-ht-wrap .ce-ht-more > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 9px;
  background-color: var(--ht-ink);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ce-ht-wrap .ce-ht-more > summary::-webkit-details-marker {
  display: none;
}

.ce-ht-wrap .ce-ht-more > summary::marker {
  content: "";
  display: none;
}

.ce-ht-wrap .ce-ht-more > summary:hover {
  background-color: var(--ht-crimson);
}

.ce-ht-wrap .ce-ht-more-chev {
  display: inline-block;
  font-size: 11px;
  transition: transform 0.25s ease;
}

.ce-ht-wrap .ce-ht-more[open] > summary {
  background-color: var(--ht-crimson);
}

.ce-ht-wrap .ce-ht-more[open] > summary .ce-ht-more-chev {
  transform: rotate(180deg);
}

.ce-ht-wrap .ce-ht-more-body {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background-color: var(--ht-warm);
  border: 1px solid var(--ht-amber-border);
  font-size: 14px;
  color: var(--ht-ink-soft);
}

.ce-ht-wrap .ce-ht-more-body p {
  margin: 0 0 10px;
}

.ce-ht-wrap .ce-ht-more-list {
  margin: 0 0 12px;
  padding-left: 18px;
}

.ce-ht-wrap .ce-ht-more-list li {
  margin-bottom: 5px;
}

.ce-ht-wrap .ce-ht-mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0 12px;
}

.ce-ht-wrap .ce-ht-mini-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--ht-border);
}

.ce-ht-wrap .ce-ht-ext-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 8px;
  background-color: var(--ht-crimson);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.ce-ht-wrap .ce-ht-ext-btn:hover {
  background-color: var(--ht-crimson-dark);
}

/* ===== Footer ===== */
.ce-ht-wrap .ce-ht-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--ht-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--ht-muted);
}

.ce-ht-wrap .ce-ht-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ce-ht-wrap .ce-ht-footer-links a {
  color: var(--ht-ink-soft) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.ce-ht-wrap .ce-ht-footer-links a:hover {
  color: var(--ht-crimson) !important;
  text-decoration: underline !important;
}

/* ==========================================================================
 * PURE-CSS HASHTAG FILTER ENGINE via :has(#tag-xxx:target)
 * Works on page load when arriving from any news/student-works hashtag link,
 * and switches instantly when clicking any hashtag pill on this page!
 * ========================================================================== */

/* When ANY specific tag is targeted, deactivate the default Hero & "All" pill */
.ce-ht-wrap:has(.ce-ht-anchor-tag:target) .ce-ht-hero-default {
  display: none;
}

.ce-ht-wrap:has(.ce-ht-anchor-tag:target) .ce-ht-pill-all {
  background-color: #ffffff;
  border-color: var(--ht-border);
  color: var(--ht-ink-soft) !important;
  box-shadow: none;
}

.ce-ht-wrap:has(.ce-ht-anchor-tag:target) .ce-ht-pill-all .ce-ht-pill-cnt {
  background-color: #f3f4f6;
  color: var(--ht-muted);
}

/* 1. #SSRU */
.ce-ht-wrap:has(#tag-ssru:target) .ce-ht-card:not(.t-ssru) { display: none; }
.ce-ht-wrap:has(#tag-ssru:target) .ce-ht-hb-ssru { display: flex; }
.ce-ht-wrap:has(#tag-ssru:target) .ce-ht-pill-ssru,
.ce-ht-wrap:has(#tag-ssru:target) .ce-ht-card-tag.ce-ht-pill-ssru {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-ssru:target) .ce-ht-pill-ssru .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 2. #EITSSRU */
.ce-ht-wrap:has(#tag-eitssru:target) .ce-ht-card:not(.t-eitssru) { display: none; }
.ce-ht-wrap:has(#tag-eitssru:target) .ce-ht-hb-eitssru { display: flex; }
.ce-ht-wrap:has(#tag-eitssru:target) .ce-ht-pill-eitssru,
.ce-ht-wrap:has(#tag-eitssru:target) .ce-ht-card-tag.ce-ht-pill-eitssru {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-eitssru:target) .ce-ht-pill-eitssru .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 3. #สวนสุนันทา */
.ce-ht-wrap:has(#tag-suansunandha:target) .ce-ht-card:not(.t-suansunandha) { display: none; }
.ce-ht-wrap:has(#tag-suansunandha:target) .ce-ht-hb-suansunandha { display: flex; }
.ce-ht-wrap:has(#tag-suansunandha:target) .ce-ht-pill-suansunandha,
.ce-ht-wrap:has(#tag-suansunandha:target) .ce-ht-card-tag.ce-ht-pill-suansunandha {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-suansunandha:target) .ce-ht-pill-suansunandha .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 4. #SDG_SSRU */
.ce-ht-wrap:has(#tag-sdg-ssru:target) .ce-ht-card:not(.t-sdg-ssru) { display: none; }
.ce-ht-wrap:has(#tag-sdg-ssru:target) .ce-ht-hb-sdg-ssru { display: flex; }
.ce-ht-wrap:has(#tag-sdg-ssru:target) .ce-ht-pill-sdg-ssru,
.ce-ht-wrap:has(#tag-sdg-ssru:target) .ce-ht-card-tag.ce-ht-pill-sdg-ssru {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-sdg-ssru:target) .ce-ht-pill-sdg-ssru .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 5. #มหาวิทยาลัยราชภัฏสวนสุนันทา */
.ce-ht-wrap:has(#tag-ssru-full:target) .ce-ht-card:not(.t-ssru-full) { display: none; }
.ce-ht-wrap:has(#tag-ssru-full:target) .ce-ht-hb-ssru-full { display: flex; }
.ce-ht-wrap:has(#tag-ssru-full:target) .ce-ht-pill-ssru-full,
.ce-ht-wrap:has(#tag-ssru-full:target) .ce-ht-card-tag.ce-ht-pill-ssru-full {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-ssru-full:target) .ce-ht-pill-ssru-full .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 6. #คณะวิศวกรรมศาสตร์และเทคโนโลยีอุตสาหกรรม */
.ce-ht-wrap:has(#tag-eit-th:target) .ce-ht-card:not(.t-eit-th) { display: none; }
.ce-ht-wrap:has(#tag-eit-th:target) .ce-ht-hb-eit-th { display: flex; }
.ce-ht-wrap:has(#tag-eit-th:target) .ce-ht-pill-eit-th,
.ce-ht-wrap:has(#tag-eit-th:target) .ce-ht-card-tag.ce-ht-pill-eit-th {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-eit-th:target) .ce-ht-pill-eit-th .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 7. #วิศวะสวนสุนัน */
.ce-ht-wrap:has(#tag-eng-ssru:target) .ce-ht-card:not(.t-eng-ssru) { display: none; }
.ce-ht-wrap:has(#tag-eng-ssru:target) .ce-ht-hb-eng-ssru { display: flex; }
.ce-ht-wrap:has(#tag-eng-ssru:target) .ce-ht-pill-eng-ssru,
.ce-ht-wrap:has(#tag-eng-ssru:target) .ce-ht-card-tag.ce-ht-pill-eng-ssru {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-eng-ssru:target) .ce-ht-pill-eng-ssru .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 8. #SuanSunandhaRajabhatUniversity */
.ce-ht-wrap:has(#tag-ssru-en:target) .ce-ht-card:not(.t-ssru-en) { display: none; }
.ce-ht-wrap:has(#tag-ssru-en:target) .ce-ht-hb-ssru-en { display: flex; }
.ce-ht-wrap:has(#tag-ssru-en:target) .ce-ht-pill-ssru-en,
.ce-ht-wrap:has(#tag-ssru-en:target) .ce-ht-card-tag.ce-ht-pill-ssru-en {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-ssru-en:target) .ce-ht-pill-ssru-en .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 9. #ComputerEngineeringSSRU */
.ce-ht-wrap:has(#tag-ce-ssru-full:target) .ce-ht-card:not(.t-ce-ssru-full) { display: none; }
.ce-ht-wrap:has(#tag-ce-ssru-full:target) .ce-ht-hb-ce-ssru-full { display: flex; }
.ce-ht-wrap:has(#tag-ce-ssru-full:target) .ce-ht-pill-ce-ssru-full,
.ce-ht-wrap:has(#tag-ce-ssru-full:target) .ce-ht-card-tag.ce-ht-pill-ce-ssru-full {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-ce-ssru-full:target) .ce-ht-pill-ce-ssru-full .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 10. #EECON49 */
.ce-ht-wrap:has(#tag-eecon49:target) .ce-ht-card:not(.t-eecon49) { display: none; }
.ce-ht-wrap:has(#tag-eecon49:target) .ce-ht-hb-eecon49 { display: flex; }
.ce-ht-wrap:has(#tag-eecon49:target) .ce-ht-pill-eecon49,
.ce-ht-wrap:has(#tag-eecon49:target) .ce-ht-card-tag.ce-ht-pill-eecon49 {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-eecon49:target) .ce-ht-pill-eecon49 .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 11. #CESSRU */
.ce-ht-wrap:has(#tag-cessru:target) .ce-ht-card:not(.t-cessru) { display: none; }
.ce-ht-wrap:has(#tag-cessru:target) .ce-ht-hb-cessru { display: flex; }
.ce-ht-wrap:has(#tag-cessru:target) .ce-ht-pill-cessru,
.ce-ht-wrap:has(#tag-cessru:target) .ce-ht-card-tag.ce-ht-pill-cessru {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-cessru:target) .ce-ht-pill-cessru .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 12. #วิศวะสวนสุนันทา */
.ce-ht-wrap:has(#tag-eng-ssru-ta:target) .ce-ht-card:not(.t-eng-ssru-ta) { display: none; }
.ce-ht-wrap:has(#tag-eng-ssru-ta:target) .ce-ht-hb-eng-ssru-ta { display: flex; }
.ce-ht-wrap:has(#tag-eng-ssru-ta:target) .ce-ht-pill-eng-ssru-ta,
.ce-ht-wrap:has(#tag-eng-ssru-ta:target) .ce-ht-card-tag.ce-ht-pill-eng-ssru-ta {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-eng-ssru-ta:target) .ce-ht-pill-eng-ssru-ta .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 13. #วิดวะสวนนัน */
.ce-ht-wrap:has(#tag-widwa:target) .ce-ht-card:not(.t-widwa) { display: none; }
.ce-ht-wrap:has(#tag-widwa:target) .ce-ht-hb-widwa { display: flex; }
.ce-ht-wrap:has(#tag-widwa:target) .ce-ht-pill-widwa,
.ce-ht-wrap:has(#tag-widwa:target) .ce-ht-card-tag.ce-ht-pill-widwa {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-widwa:target) .ce-ht-pill-widwa .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 14. #FITSSRU */
.ce-ht-wrap:has(#tag-fitssru:target) .ce-ht-card:not(.t-fitssru) { display: none; }
.ce-ht-wrap:has(#tag-fitssru:target) .ce-ht-hb-fitssru { display: flex; }
.ce-ht-wrap:has(#tag-fitssru:target) .ce-ht-pill-fitssru,
.ce-ht-wrap:has(#tag-fitssru:target) .ce-ht-card-tag.ce-ht-pill-fitssru {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-fitssru:target) .ce-ht-pill-fitssru .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 15. #คณะเทคโนโลยีอุตสาหกรรมมหาวิทยาลัยราชภัฏสวนสุนันทา */
.ce-ht-wrap:has(#tag-fit-full:target) .ce-ht-card:not(.t-fit-full) { display: none; }
.ce-ht-wrap:has(#tag-fit-full:target) .ce-ht-hb-fit-full { display: flex; }
.ce-ht-wrap:has(#tag-fit-full:target) .ce-ht-pill-fit-full,
.ce-ht-wrap:has(#tag-fit-full:target) .ce-ht-card-tag.ce-ht-pill-fit-full {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-fit-full:target) .ce-ht-pill-fit-full .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 16. #คณะวิศวกรรมศาสตร์และเทคโนโลยีอุตสาหกรรมมหาวิทยาลัยราชภัฏสวนสุนันทา */
.ce-ht-wrap:has(#tag-eit-full:target) .ce-ht-card:not(.t-eit-full) { display: none; }
.ce-ht-wrap:has(#tag-eit-full:target) .ce-ht-hb-eit-full { display: flex; }
.ce-ht-wrap:has(#tag-eit-full:target) .ce-ht-pill-eit-full,
.ce-ht-wrap:has(#tag-eit-full:target) .ce-ht-card-tag.ce-ht-pill-eit-full {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-eit-full:target) .ce-ht-pill-eit-full .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* 17. #CEMINICON'1 */
.ce-ht-wrap:has(#tag-ceminicon1:target) .ce-ht-card:not(.t-ceminicon1) { display: none; }
.ce-ht-wrap:has(#tag-ceminicon1:target) .ce-ht-hb-ceminicon1 { display: flex; }
.ce-ht-wrap:has(#tag-ceminicon1:target) .ce-ht-pill-ceminicon1,
.ce-ht-wrap:has(#tag-ceminicon1:target) .ce-ht-card-tag.ce-ht-pill-ceminicon1 {
  background-color: var(--ht-crimson); border-color: var(--ht-crimson); color: #ffffff !important;
}
.ce-ht-wrap:has(#tag-ceminicon1:target) .ce-ht-pill-ceminicon1 .ce-ht-pill-cnt { background-color: rgba(255,255,255,0.24); color: #ffffff; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .ce-ht-wrap {
    padding: 14px 10px 32px;
  }

  .ce-ht-wrap .ce-ht-hero {
    padding: 20px 16px 18px;
  }

  .ce-ht-wrap .ce-ht-grid {
    grid-template-columns: 1fr;
  }

  .ce-ht-wrap .ce-ht-mini-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ce-ht-wrap *,
  .ce-ht-wrap *::before,
  .ce-ht-wrap *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
