:root {
  --ink: #1b1330;
  --ink-soft: #4a3f63;
  --violet: #6b2fa6;
  --violet-strong: #55208a;
  --violet-deep: #2e1150;
  --signal: #7cb928;
  --signal-bright: #8fd13f;
  --paper: #f6f3fb;
  --mist: #eee8f6;
  --card: #ffffff;
  --navy: #171933;
  --navy-soft: rgba(239, 231, 251, 0.65);
  --line: rgba(27, 19, 48, 0.12);
  --line-strong: rgba(27, 19, 48, 0.22);
  --shadow: 0 1px 2px rgba(27, 19, 48, 0.06), 0 8px 24px rgba(27, 19, 48, 0.07);
  --font-body: "IBM Plex Sans Thai", "Leelawadee UI", "Sukhumvit Set", "Noto Sans Thai", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1ecfb;
    --ink-soft: #c6bade;
    --violet: #a874de;
    --violet-strong: #c092ea;
    --violet-deep: #1a0c30;
    --signal: #9fe14f;
    --signal-bright: #b3ee6c;
    --paper: #150c26;
    --mist: #1e1233;
    --card: #201432;
    --line: rgba(241, 236, 251, 0.12);
    --line-strong: rgba(241, 236, 251, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --ink: #f1ecfb;
  --ink-soft: #c6bade;
  --violet: #a874de;
  --violet-strong: #c092ea;
  --violet-deep: #1a0c30;
  --signal: #9fe14f;
  --signal-bright: #b3ee6c;
  --paper: #150c26;
  --mist: #1e1233;
  --card: #201432;
  --line: rgba(241, 236, 251, 0.12);
  --line-strong: rgba(241, 236, 251, 0.22);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
}
:root[data-theme="light"] {
  --ink: #1b1330;
  --ink-soft: #4a3f63;
  --violet: #6b2fa6;
  --violet-strong: #55208a;
  --violet-deep: #2e1150;
  --signal: #7cb928;
  --signal-bright: #8fd13f;
  --paper: #f6f3fb;
  --mist: #eee8f6;
  --card: #ffffff;
  --line: rgba(27, 19, 48, 0.12);
  --line-strong: rgba(27, 19, 48, 0.22);
  --shadow: 0 1px 2px rgba(27, 19, 48, 0.06), 0 8px 24px rgba(27, 19, 48, 0.07);
}

* { box-sizing: border-box; }
body { margin: 0; }
.cc-page {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
.cc-tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 500;
}
:where(.cc-page) a { color: inherit; text-decoration: none; }
:where(.cc-page) a:hover, :where(.cc-page) a:focus { text-decoration: none; }
img { max-width: 100%; }
.cc-page h1, .cc-page h2, .cc-page h3 { text-wrap: balance; margin: 0; }

/* layout now uses Bootstrap's .container/.row/.col-* grid instead of a custom .cc-shell */

/* ---------- top bar ---------- */
.cc-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; font-size: 13px; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
}
.cc-topbar-right { display: flex; align-items: center; gap: 20px; }
.cc-topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 767.98px) {
  /* keep only the university name on mobile; phone + Facebook links crowd the
     narrow topbar and duplicate contact info already in the footer */
  .cc-topbar-right { display: none; }
}
/* ---------- header / nav ---------- */
.cc-header { padding: 20px 0 18px; position: relative; font-family: var(--font-body); color: var(--ink); }
.cc-header-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cc-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.cc-mark { width: 46px; height: 46px; flex: none; object-fit: contain; }
.cc-brand-text-th { font-size: 19px; font-weight: 700; letter-spacing: 0.01em; }
.cc-brand-text-en { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; margin-top: 2px; }

.cc-nav { display: flex; align-items: center; gap: 30px; }
.cc-nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }
.cc-nav-links a { text-decoration: none; opacity: 0.82; }
.cc-nav-links a:hover { opacity: 1; }

.cc-nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  align-items: center; justify-content: center; font-size: 19px; cursor: pointer;
}

/* submenu dropdown: hover-open on desktop */
.cc-nav-dropdown { position: relative; }
.cc-nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; }
.cc-nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 8px; z-index: 40;
  min-width: 210px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); padding: 6px;
}
/* invisible bridge over the gap above the menu, so hover survives the trip from the link down to it */
.cc-nav-dropdown-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px;
}
.cc-nav-dropdown:hover .cc-nav-dropdown-menu { display: block; }
.cc-nav-dropdown-menu a {
  display: block; padding: 9px 12px; font-size: 14px; opacity: 1 !important;
  color: var(--ink); border-radius: 7px;
}
.cc-nav-dropdown-menu a:hover { background: var(--mist); color: var(--violet-strong); }

.cc-lang { position: relative; }
.cc-lang-btn {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  padding: 7px 12px; border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}

/* ---------- hero ---------- */
.cc-hero {
  position: relative; overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.cc-hero-media {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  background: var(--paper);
}
.cc-hero-media[data-empty="true"] { display: none; }
.cc-hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 900px 560px at 78% 8%, color-mix(in srgb, var(--violet) 32%, transparent), transparent 65%),
              linear-gradient(180deg, color-mix(in srgb, var(--paper) 88%, transparent) 0%, color-mix(in srgb, var(--mist) 92%, transparent) 100%);
}
.cc-hero-media[data-empty="true"] ~ .cc-hero-overlay {
  background: radial-gradient(ellipse 900px 560px at 78% 8%, color-mix(in srgb, var(--violet) 32%, transparent), transparent 65%),
              linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
}
.cc-hero-inner { position: relative; z-index: 2; padding: 76px 0 92px; }
.cc-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--violet-strong); margin-bottom: 22px; }
.cc-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 25%, transparent); }
.cc-hero h1 { font-size: 44px; font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; }
.cc-hero h1 em { font-style: normal; color: var(--violet-strong); }
.cc-hero-sub { margin: 22px 0 32px; font-size: 16.5px; color: var(--ink-soft); max-width: 46ch; }

.cc-hero-search { max-width: 440px; margin: 0 0 22px; }
.cc-search-pill {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow); padding: 6px 6px 6px 20px;
  display: flex; align-items: center; gap: 10px;
}
.cc-search-pill input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
}
.cc-search-pill input::placeholder { color: var(--ink-soft); }
.cc-search-submit {
  background: var(--violet); color: #fff; border: none; border-radius: 999px;
  width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.cc-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cc-btn {
  font-size: 14.5px; font-weight: 600; text-decoration: none; padding: 13px 24px;
  border-radius: 9px; display: inline-flex; align-items: center; gap: 8px;
}
.cc-btn-primary { background: color-mix(in srgb, var(--violet) 85%, white 15%); color: #fff; }
.cc-btn-primary:hover { background: var(--violet); color: #fff; }
.cc-btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); background: color-mix(in srgb, var(--card) 70%, transparent); }

.cc-hero-panel { position: relative; }
.cc-signal-art { width: 100%; aspect-ratio: 1 / 1; position: relative; }
.cc-signal-art svg { width: 100%; height: 100%; }
.cc-ring { fill: none; stroke: var(--violet); opacity: 0.35; }
.cc-ring.alt { stroke: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
  .cc-ring-pulse { animation: cc-pulse 3.2s ease-in-out infinite; transform-origin: center; }
  .cc-ring-pulse.d2 { animation-delay: 0.5s; }
  .cc-ring-pulse.d3 { animation-delay: 1s; }
}
@keyframes cc-pulse {
  0%, 100% { opacity: 0.18; transform: scale(0.98); }
  50% { opacity: 0.55; transform: scale(1.02); }
}

.cc-status-chip {
  position: absolute; bottom: 6%; left: 4%;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 12.5px;
}
.cc-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }

/* ---------- section shell ---------- */
.cc-section { padding: 20px 0; }
.cc-section.tight { padding: 20px 0; }
.cc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 10px; flex-wrap: wrap; }
.cc-section-tag { color: var(--violet-strong); margin-bottom: 10px; display: block; }
.cc-section-head h2 { font-size: 20px; font-weight: 700; }
.cc-section-head--flush { margin-bottom: 22px; align-items: center; }
.cc-section-head--flush h2 { font-size: 20px; }
.cc-heading-dot { display: flex; align-items: center; gap: 10px; }
.cc-heading-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: none; }
.cc-section-head p { color: var(--ink-soft); font-size: 14.5px; margin: 8px 0 0; max-width: 44ch; }
.cc-more { font-size: 14px; font-weight: 600; color: var(--violet-strong); text-decoration: none; white-space: nowrap; }

/* ---------- footer ---------- */
.cc-footer { background: var(--navy); color: #efe7fb; font-family: var(--font-body); }
.cc-footer-top { padding: 30px 0 24px; }
.cc-footer-brand-th { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.cc-footer-desc { font-size: 13.5px; color: rgba(239, 231, 251, 0.68); max-width: 34ch; }
.cc-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: rgba(239, 231, 251, 0.55); margin-bottom: 16px; font-family: var(--font-mono); }
.cc-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;}
.cc-footer a { text-decoration: none; font-size: 13.5px; color: rgba(239, 231, 251, 0.85); }
.cc-footer a:hover { color: #fff; }
.cc-footer-bottom {
  border-top: 1px solid rgba(239, 231, 251, 0.14); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(239, 231, 251, 0.55);
}

/* ---------- language dropdown ---------- */
/* Bootstrap's dropdown.js toggles display via .show; only cosmetic styling lives here. */
.cc-lang-menu {
  min-width: 150px; border-radius: 10px; box-shadow: var(--shadow); padding: 6px;
}
.cc-lang-menu a {
  display: block; padding: 9px 12px; font-size: 14px; color: var(--ink);
  text-decoration: none; border-radius: 7px;
}
.cc-lang-menu a:hover { background: var(--mist); color: var(--violet-strong); }

.cc-post-noimg {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 32px;
  background: linear-gradient(135deg, var(--mist), var(--card));
}

/* ---------- knowledge base + video ---------- */
.cc-kb-list { display: flex; flex-direction: column; gap: 12px; }
.cc-kb-item {
  display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 12px;
  text-decoration: none; color: var(--ink); transition: background 0.15s ease;
}
.cc-kb-item:hover { background: var(--mist); }
.cc-kb-thumb { width: 96px; height: 64px; flex: none; border-radius: 9px; overflow: hidden; background: var(--mist); }
.cc-kb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-kb-thumb .cc-post-noimg { font-size: 22px; }
.cc-kb-title {
  font-size: 14.5px; font-weight: 600; line-height: 1.4; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cc-kb-meta { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-soft); }
.cc-video-frame {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 9; margin-bottom: 16px; background: #000;
}
.cc-video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.cc-video-empty {
  border: 1px dashed var(--line-strong); border-radius: 14px; padding: 48px 20px;
  text-align: center; color: var(--ink-soft);
}
.cc-video-empty i { font-size: 40px; }
.cc-video-empty p { margin: 10px 0 0; font-size: 14px; }

/* ---------- calendar ---------- */
.cc-calendar-frame {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--card);
}
.cc-calendar-frame iframe { display: block; border: 0; }

/* ---------- newsletter grid ---------- */
.cc-newsletter-grid { margin-left: -23px; margin-right: -23px; }
.cc-newsletter-grid > [class*="col-"] { margin-bottom: 32px; padding-left: 23px; padding-right: 23px; }
.cc-newsletter-item { display: block; text-decoration: none; color: var(--ink); }
.cc-newsletter-thumb {
  width: 100%; aspect-ratio: 150 / 210; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--mist); box-shadow: var(--shadow);
}
.cc-newsletter-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.cc-newsletter-item:hover .cc-newsletter-thumb img { transform: scale(1.04); }
.cc-newsletter-name { font-size: 12.5px; font-weight: 600; text-align: center; margin-top: 10px; }

/* ---------- nav search icon ---------- */
.cc-nav-icon-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  background: transparent; text-decoration: none; transition: background 0.15s ease;
}
.cc-nav-icon-btn:hover { background: var(--mist); }

/* ---------- hero illustration ---------- */
.cc-hero-illustration {
  position: relative; width: 100%; max-width: 560px; margin: 0 auto;
}

/* photo sits large, admin-uploadable, no boxed "frame" so it reads as one big illustration */
.cc-hero-photo-frame {
  position: relative; border-radius: 20px; overflow: hidden;
}
.cc-hero-photo { width: 100%; height: auto; display: block; }

/* small floating badges kept as code (icofont icons, not admin-editable, rarely change) */
.cc-illus-badge {
  position: absolute; z-index: 2;
  background: color-mix(in srgb, var(--card) 45%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--card) 55%, transparent);
  border-radius: 13px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  color: var(--violet-strong); font-size: 20px;
}
.cc-illus-badge.round { border-radius: 50%; }
.cc-illus-badge.b1 { left: 80%; top: -5%; width: 14%; aspect-ratio: 1; font-size: 22px; }
.cc-illus-badge.b2 { left: -5%; top: 10%; width: 16%; aspect-ratio: 1; font-size: 22px; color: var(--signal); }
.cc-illus-badge.b3 { left: -4%; top: 72%; width: 12%; aspect-ratio: 1; font-size: 18px; }
.cc-illus-badge.b4 { left: 84%; top: 76%; width: 12%; aspect-ratio: 1; font-size: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .cc-illus-float { animation: cc-illus-float 4s ease-in-out infinite; transform-origin: center; }
  .cc-illus-float.d2 { animation-delay: 0.6s; }
  .cc-illus-float.d3 { animation-delay: 1.2s; }
  .cc-hero-photo-frame { animation: cc-illus-float 5s ease-in-out infinite; transform-origin: center; }
}
@keyframes cc-illus-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- quick-link strip ---------- */
.cc-quicklinks {
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  margin-top: -46px; position: relative; z-index: 3; box-shadow: var(--shadow);
  overflow: hidden;
}
.cc-quicklink {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 22px !important;
  border-right: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: background 0.15s ease;
}
.cc-quicklink:last-child { border-right: none; }
.cc-quicklink:hover { background: var(--mist); }
.cc-quicklink-icon {
  width: 54px; height: 54px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--violet);
  color: #fff; font-size: 21px;
  transition: background 0.15s ease, color 0.15s ease;
}
.cc-quicklink:hover .cc-quicklink-icon { background: var(--violet-strong); color: #fff; }
.cc-quicklink-title { font-size: 14.5px; font-weight: 700; }
.cc-quicklink-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* quicklink dividers match Bootstrap's own md/sm breakpoints (col-md-6 / col-sm-6 in the blade) */
@media (max-width: 991.98px) {
  .cc-quicklink:nth-child(2) { border-right: none; }
  .cc-quicklink:nth-child(1), .cc-quicklink:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
  .cc-quicklink { border-right: none !important; border-bottom: 1px solid var(--line); }
  .cc-quicklink:last-child { border-bottom: none; }
}

/* ---------- mission grid ---------- */
.cc-mission-grid > [class*="col-"] { margin-bottom: 16px; }
.cc-mission-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 22px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 14px; height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cc-mission-card:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: var(--shadow); }
.cc-mission-icon {
  width: 48px; height: 48px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--violet) 12%, transparent);
  color: var(--violet-strong); font-size: 23px; overflow: hidden;
}
.cc-mission-icon img { width: 100%; height: 100%; object-fit: cover; }
.cc-mission-card:nth-child(2n) .cc-mission-icon {
  background: color-mix(in srgb, var(--signal) 16%, transparent);
  color: color-mix(in srgb, var(--signal) 70%, var(--ink));
}
.cc-mission-title { font-size: 15.5px; font-weight: 700; }
.cc-mission-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.cc-mission-link { font-size: 13px; font-weight: 600; color: var(--violet-strong); }

/* ---------- news + popular services two-column ---------- */
.cc-newsrow-list { display: flex; flex-direction: column; gap: 4px; }
.cc-newsrow-list--columns { display: block; column-count: 2; column-gap: 28px; }
.cc-newsrow-list--columns .cc-newsrow { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 767.98px) { .cc-newsrow-list--columns { column-count: 1; } }
.cc-newsrow {
  display: flex; align-items: center; gap: 18px; padding: 16px 12px;
  border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: background 0.15s ease;
}
.cc-newsrow:hover { background: var(--mist); }
.cc-newsrow-date {
  flex: none; width: 50px; height: 58px; border-radius: 12px;
  background: color-mix(in srgb, var(--violet) 10%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cc-newsrow-day { font-size: 18px; font-weight: 700; color: var(--violet-strong); line-height: 1; }
.cc-newsrow-month { font-size: 10.5px; color: var(--violet-strong); margin-top: 2px; }
.cc-newsrow-thumb {
  flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  background: var(--mist);
}
.cc-newsrow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-newsrow-thumb .cc-post-noimg { font-size: 20px; }
.cc-newsrow-body { min-width: 0; }
.cc-newsrow-title { font-size: 14.5px; font-weight: 600; line-height: 1.5; margin: 0 0 4px; }
.cc-newsrow-excerpt {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cc-newsrow-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-newsrow-views { font-size: 12px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ---------- "new" badge (news/kb items) ---------- */
.cc-badge-new {
  display: inline-block; vertical-align: middle; margin-right: 6px;
  background: var(--signal); color: #14380a; font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px;
}
.cc-newsrow-more { font-size: 12.5px; font-weight: 600; color: var(--violet-strong); }

.cc-popular-panel {
  background: var(--mist); border-radius: 16px; padding: 24px;
}
.cc-popular-grid > [class*="col-"] { margin-bottom: 12px; }
.cc-popular-item {
  background: transparent; border: 1px solid transparent; border-radius: 13px;
  padding: 14px 10px 16px; text-align: center; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* ---------- homepage news cards (image-on-top card grid) ---------- */
.cc-newscard-grid > [class*="col-"] { margin-bottom: 5px; }
.cc-newscard {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cc-newscard:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: var(--shadow); }
.cc-newscard-thumb {
  position: relative; aspect-ratio: 4 / 3; background: var(--mist);
  /* aspect-ratio alone isn't reliable on a flex-column item once the child
     image participates in normal flow — position it absolutely so it can
     never override the ratio and every card ends up the same height */
  overflow: hidden;
}
.cc-newscard-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-newscard-thumb .cc-post-noimg { position: absolute; inset: 0; font-size: 26px; }
.cc-newscard-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--signal); color: #14380a; font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; padding: 3px 9px; border-radius: 999px;
}
.cc-newscard-date {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--violet-deep); color: #fff; text-align: center; line-height: 1.1;
  padding: 7px 12px 8px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.cc-newscard-date-day { display: block; font-size: 18px; font-weight: 800; }
.cc-newscard-date-month { display: block; font-size: 10.5px; font-weight: 600; opacity: 0.85; margin-top: 1px; }
.cc-newscard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cc-newscard-title {
  font-size: 14.5px; font-weight: 700; line-height: 1.5; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cc-newscard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-newscard-more { font-size: 12.5px; font-weight: 600; color: var(--violet-strong); }
.cc-newscard-views { font-size: 12px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.cc-popular-item:hover {
  background: var(--card); border-color: var(--violet); transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cc-popular-thumb {
  width: 124px; height: 124px; border-radius: 16px; overflow: hidden;
 background: var(--card); 
  box-shadow: 0 3px 8px rgba(27, 19, 48, 0.1);
  display: flex; align-items: center; justify-content: center;
}
.cc-popular-thumb img { width: 68%; height: 68%; object-fit: contain; }
.cc-popular-label { font-size: 12px; font-weight: 600; line-height: 1.4; }
.cc-popular-viewall {
  display: block; margin: 18px auto 4px; width: fit-content;
  background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet-strong);
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  padding: 10px 22px; border-radius: 999px; transition: background 0.15s ease;
}

@media (max-width: 575.98px) {
    .cc-popular-item {
        padding: 10px 4px 12px;
    }
}
.cc-popular-viewall:hover { background: color-mix(in srgb, var(--violet) 20%, transparent); }

/* ---------- CTA banner ---------- */
.cc-cta-banner {
  background: url('/assets/website/images/ask_ad.png') center / cover no-repeat;
  border-radius: 18px; padding: 60px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: #fff; position: relative; overflow: hidden;
}
.cc-cta-banner::after {
  content: ""; position: absolute; top: -50%; right: -6%; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--signal) 35%, transparent), transparent 70%);
  pointer-events: none;
}
.cc-cta-text { position: relative; z-index: 1; }
.cc-cta-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.cc-cta-sub { font-size: 13.5px; color: rgba(255,255,255,0.82); margin: 0; }
.cc-cta-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.cc-cta-btn {
  background: #fff; color: var(--violet-strong); text-decoration: none; font-weight: 700;
  font-size: 14px; padding: 12px 24px; border-radius: 999px; white-space: nowrap;
  transition: transform 0.15s ease;
}
.cc-cta-btn:hover { transform: translateY(-2px); }
.cc-cta-icon {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

@media (max-width: 980px) {
  .cc-nav-toggle { display: flex; order: -1; margin-right: 6px; }
  .cc-header-row { flex-wrap: wrap; }
  .cc-nav { flex: 1 1 auto; justify-content: flex-end; }
  .cc-nav-links {
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0; margin-top: 18px;
    background: var(--card); border-top: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 16px 20px 20px; z-index: 39;
  }
  .cc-nav-links.open { display: flex; }
  .cc-nav-links a { padding: 10px 2px; border-bottom: 1px solid var(--line); opacity: 1; }
  .cc-nav-links a:last-child { border-bottom: none; }
  .cc-nav-dropdown-menu {
    display: none; position: static; box-shadow: none; border: none; margin: 0 0 0 14px; padding: 0;
  }
  .cc-nav-dropdown:hover .cc-nav-dropdown-menu { display: none; }
  .cc-nav-dropdown.open .cc-nav-dropdown-menu { display: block; }
  .cc-nav-dropdown-menu a { border-bottom: none; padding: 8px 2px; font-size: 13.5px; color: var(--ink-soft); }
  .cc-hero-panel { display: none; }
}

@media (max-width: 560px) {
  .cc-cta-banner { flex-direction: column; align-items: flex-start; }
}
.cc-hero-carousel-frame { position: relative; }
.cc-hero-carousel-frame .carousel-inner {
  	position: relative; border-radius: 0px;
	overflow: hidden; box-shadow: var(--shadow);
  	aspect-ratio: 3 / 1; background: var(--mist);
}
/* height:100% cascaded through .carousel-item > a > img isn't reliable against an
   aspect-ratio-derived parent height (same issue found on the news cards) — take the
   image fully out of flow instead so every slide is forced to the exact same box,
   regardless of the uploaded image's own dimensions. */
/* height only — do NOT set display here, Bootstrap's own .carousel-item{display:none}
   default (only .active gets display:block) must stay in control, or every slide
   renders stacked on top of each other at once instead of just the active one */
.cc-hero-carousel-frame .carousel-item { height: 100%; }
.cc-hero-carousel-frame .carousel-item a { display: block; height: 100%; }
.cc-hero-carousel-frame .carousel-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- sitemap page ---------- */
.cc-sitemap-section { padding: 48px 0 72px; }
.cc-sitemap-header { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.cc-sitemap-title { font-size: 26px; font-weight: 700; color: var(--ink); margin: 10px 0 0; }
.cc-sitemap-sub { color: var(--ink-soft); font-size: 14.5px; margin: 10px 0 0; }
.cc-sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cc-sitemap-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; box-shadow: var(--shadow); }
.cc-sitemap-card-icon {
  width: 40px; height: 40px; border-radius: 10px; font-size: 18px;
  background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet-strong);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.cc-sitemap-card-title { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.cc-sitemap-card-title a { color: var(--ink); text-decoration: none; }
.cc-sitemap-card-title a:hover { color: var(--violet-strong); }
.cc-sitemap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cc-sitemap-list a { color: var(--ink-soft); text-decoration: none; font-size: 13.5px; line-height: 1.5; display: inline-block; }
.cc-sitemap-list a:hover { color: var(--violet-strong); text-decoration: underline; }

/* ---------- sub-about document page ---------- */
.cc-doc-section { padding: 48px 0 72px; }
.cc-doc-card { max-width: 860px; margin: 0 auto; }
.cc-doc-title { font-size: 26px; font-weight: 700; text-align: center; color: var(--ink); margin: 0; }
.cc-doc-date {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink-soft); font-size: 13px; margin: 14px 0 36px;
}
.cc-doc-body h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 28px 0 12px; }
.cc-doc-body h4:first-child { margin-top: 0; }
.cc-doc-body table.table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.cc-doc-body table.table td { border: none; padding: 6px 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.cc-doc-body table.table a { color: var(--ink-soft); text-decoration: none; }
.cc-doc-body table.table a:hover { color: var(--violet-strong); text-decoration: underline; }
.cc-doc-body p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

/* ---------- cookie consent banner ---------- */
.cc-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9997;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; padding: 16px 28px; background: var(--violet-deep); color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body); font-size: 13.5px; line-height: 1.6;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}
.cc-cookie-banner[hidden] { display: none; }
.cc-cookie-text { flex: 1 1 480px; min-width: 260px; }
.cc-cookie-text a { color: #fff; text-decoration: underline; }
.cc-cookie-text a:hover { color: var(--signal-bright); }
.cc-cookie-link-btn {
  background: none; border: none; padding: 0; margin: 0; color: #fff; text-decoration: underline;
  font: inherit; cursor: pointer;
}
.cc-cookie-link-btn:hover { color: var(--signal-bright); }
.cc-cookie-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.cc-cookie-btn {
  border: none; border-radius: 999px; padding: 10px 22px; font-size: 13.5px; font-weight: 600;
  font-family: var(--font-body); cursor: pointer; white-space: nowrap; transition: opacity 0.15s ease;
}
.cc-cookie-btn:hover { opacity: 0.88; }
.cc-cookie-btn-accept { background: #fff; color: var(--violet-deep); }
.cc-cookie-btn-settings { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
@media (max-width: 767.98px) {
  .cc-cookie-banner { padding: 16px 20px; }
  .cc-cookie-actions { width: 100%; justify-content: flex-end; }
}

/* ---------- servicesall audience filter ---------- */
.cc-audience-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cc-audience-filter-item {
  display: inline-flex; align-items: center; padding: 8px 20px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cc-audience-filter-item:hover { border-color: var(--violet); color: var(--violet-strong); }
.cc-audience-filter-item.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }

/* ---------- accessibility.css override ----------
   #accessibility-wrapper h1..h6 { font-size: ... !important; } forces a fixed
   size on every heading tag site-wide (originally sized for the old page's
   headings). It out-specifies plain h1/h2/h6 rules above, so this design's
   headings need matching #accessibility-wrapper-scoped !important rules to
   actually take effect. */
#accessibility-wrapper .cc-hero h1 { font-size: 44px !important; }
#accessibility-wrapper .cc-section-head h2 { font-size: 20px !important; }
#accessibility-wrapper .cc-section-head--flush h2 { font-size: 20px !important; }
#accessibility-wrapper .cc-newsrow-title { font-size: 14.5px !important; }
#accessibility-wrapper .cc-kb-title { font-size: 14.5px !important; }
#accessibility-wrapper .cc-footer h4 { font-size: 12px !important; }
#accessibility-wrapper .cc-sitemap-title { font-size: 26px !important; }
#accessibility-wrapper .cc-sitemap-card-title { font-size: 16px !important; }
#accessibility-wrapper .cc-doc-title { font-size: 26px !important; }
#accessibility-wrapper .cc-doc-body h4 { font-size: 16px !important; }

/* ---------- floating Facebook contact button ---------- */
.cc-fab-facebook {
  position: fixed; right: 24px; bottom: 24px; z-index: 9998;
  width: 54px; height: 54px; border-radius: 50%;
  background: #1877f2; color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cc-fab-facebook:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(24, 119, 242, 0.5); }
@media (max-width: 560px) { .cc-fab-facebook { right: 16px; bottom: 16px; width: 48px; height: 48px; font-size: 22px; } }
/* ---------- servicesall page ---------- */
.cc-servicesall-section { padding: 48px 0 72px; }
.cc-servicesall-header { text-align: center; margin-bottom: 24px; }
.cc-servicesall-title { font-size: 24px; font-weight: 700; color: var(--ink); margin: 0; }
.cc-servicesall-grid { row-gap: 20px; margin-top: 32px; }
.cc-servicesall-grid > [class*="col-"] { margin-bottom: 20px; }
.cc-servicesall-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding:10px; text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cc-servicesall-card:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: var(--shadow); }
.cc-servicesall-icon {
  width: 164px; height: 164px; border-radius: 8px; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  /*background: color-mix(in srgb, var(--violet) 12%, transparent);*/
}
.cc-servicesall-icon img { width: 74%; height: 74%; object-fit: contain; }
.cc-servicesall-card:nth-child(2n) .cc-servicesall-icon { background: color-mix(in srgb, var(--signal) 16%, transparent); }
.cc-servicesall-label { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.cc-servicesall-arrow {
  position: absolute; right: 18px; bottom: 18px;
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--violet) 10%, transparent); color: var(--violet-strong);
  transition: background 0.15s ease, color 0.15s ease;
}
.cc-servicesall-card:hover .cc-servicesall-arrow { background: var(--violet); color: #fff; }


/* ---------- search page ---------- */
.cc-search-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.cc-search-form { display: flex; gap: 12px; flex-wrap: wrap; }
.cc-search-input-wrap {
  flex: 1 1 320px; min-width: 0; display: flex; align-items: center;
  background: var(--card); border-radius: 999px; box-shadow: var(--shadow); padding: 4px 10px 4px 22px;
}
.cc-search-input-icon { color: var(--violet-strong); font-size: 18px; margin-right: 12px; flex: none; }
.cc-search-input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 15px; color: var(--ink); padding: 14px 0;
}
.cc-search-clear {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: none;
  background: var(--mist); color: var(--ink-soft); font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cc-search-submit {
  flex: none; border: none; background: var(--violet); color: #fff; font-weight: 700;
  font-size: 14.5px; padding: 0 28px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s ease;
}
.cc-search-submit:hover { background: var(--violet-strong); }
.cc-search-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.cc-search-popular-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.cc-search-popular-tag {
  display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; color: var(--ink-soft); text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cc-search-popular-tag i { font-size: 11px; color: var(--violet-strong); }
.cc-search-popular-tag:hover { border-color: var(--violet); color: var(--violet-strong); }

@media (min-width: 992px) { .cc-search-quote { display: block; } }

.cc-search-results-card {
  position: relative; z-index: 1; margin-top: -14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.cc-search-results-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 26px; border-bottom: 1px solid var(--line);
}
.cc-search-results-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--ink); }
.cc-search-results-title i { color: var(--violet-strong); font-size: 18px; }
.cc-search-sort { font-size: 13px; color: var(--ink-soft); }
.cc-search-sort strong { color: var(--ink); }
.cc-search-result-list { display: flex; flex-direction: column; }
.cc-search-result-row {
  display: flex; align-items: center; gap: 16px; padding: 18px 26px; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--line); transition: background 0.15s ease;
}
.cc-search-result-row:last-child { border-bottom: none; }
.cc-search-result-row:hover { background: var(--mist); }
.cc-search-result-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px; font-size: 18px;
  background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet-strong);
  display: flex; align-items: center; justify-content: center;
}
.cc-search-result-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.cc-search-result-date { flex: none; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.cc-search-result-arrow {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--violet-strong); font-size: 13px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cc-search-result-row:hover .cc-search-result-arrow { background: var(--violet); border-color: var(--violet); color: #fff; }
.cc-search-empty { text-align: center; padding: 64px 20px; color: var(--ink-soft); }
.cc-search-empty i { display: inline-block; font-size: 46px; color: var(--violet); opacity: 0.5; margin-bottom: 16px; }
.cc-search-empty h5 { font-size: 16px; font-weight: 700; color: var(--violet-strong); margin: 0 0 6px; }
.cc-search-empty p { font-size: 13.5px; margin: 0; }
@media (max-width: 575.98px) {
  /* flex-basis (the "320px" in flex:1 1 320px) applies to the cross axis once
     flex-direction switches to column — without resetting it here that 320px
     becomes a *height*, not a width, and the pill turns into a huge circle */
  .cc-search-form { flex-direction: column; }
  .cc-search-input-wrap { flex: none; width: 100%; }
  .cc-search-submit { width: 100%; justify-content: center; padding: 14px; }
  .cc-search-results-head { flex-direction: column; align-items: flex-start; }
  .cc-search-result-date { display: none; }
}