/*
 * CiCC Theme 5.0 — Public presentation polish
 * Loaded last so legacy/template inline styles remain functional while
 * shared public components receive a consistent visual finish.
 */

:root {
  --cicc-focus-ring: 0 0 0 4px rgba(0, 87, 163, .16);
  --cicc-glow-blue: 0 18px 50px rgba(0, 87, 163, .16);
  --cicc-glow-orange: 0 18px 50px rgba(249, 115, 22, .16);
}

/* Global rhythm and selection */
::selection { background: var(--cicc-blue); color: #fff; }
html { scroll-padding-top: calc(var(--total-header-height) + 24px); }
body { text-rendering: optimizeLegibility; }

/* CiCC shell: premium navigation and four-platform ecosystem rail */
.site-header {
  box-shadow: 0 1px 0 rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.04);
  transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}
.site-header.site-header--scrolled,
.site-header.scrolled {
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 30px rgba(15,23,42,.10);
  backdrop-filter: blur(16px);
}
.logo { gap: 10px; }
.logo-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--cicc-orange), var(--cicc-blue));
  box-shadow: 0 6px 16px rgba(0,87,163,.22);
  font-size: 1rem;
}
.logo-text { letter-spacing: -.055em; }
.main-nav .nav-list > .menu-item > a {
  position: relative;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.main-nav .nav-list > .menu-item > a:hover,
.main-nav .nav-list > .menu-item.current-menu-item > a {
  background: var(--cicc-blue-100);
  color: var(--cicc-blue);
}
.mega-menu {
  border: 1px solid rgba(226,232,240,.9);
  border-top: 3px solid var(--cicc-blue);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: 0 24px 60px rgba(15,23,42,.16);
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(18px);
}
.mega-label { color: var(--cicc-blue); letter-spacing: .02em; }
.mega-col a { border-radius: var(--radius-sm); transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast); }
.mega-col a:hover { background: var(--cicc-blue-100); padding-left: 10px; }
.header-actions .btn-header-search,
.header-actions .mobile-toggle { border-radius: var(--radius-full); transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast); }
.header-actions .btn-header-search:hover,
.header-actions .mobile-toggle:hover { transform: translateY(-1px); background: var(--cicc-blue-100); color: var(--cicc-blue); }

.footer-brand-row {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-xl);
  background: linear-gradient(110deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.footer-brand-item { transition: transform var(--transition-base), filter var(--transition-base); }
.footer-brand-item:hover { transform: translateY(-3px); filter: brightness(1.18); opacity: 1; }
.brand-sep { color: rgba(255,255,255,.25); font-weight: 700; }
.footer-col h4 { letter-spacing: -.015em; }
.footer-links a,
.footer-contact-item a { transition: color var(--transition-fast), transform var(--transition-fast); }
.footer-links a:hover,
.footer-contact-item a:hover { transform: translateX(3px); }
.footer-newsletter { border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-lg); padding: 14px; background: rgba(255,255,255,.04); }
.footer-bottom { border-top-color: rgba(255,255,255,.12); }

[data-theme="dark"] .site-header.site-header--scrolled,
[data-theme="dark"] .site-header.scrolled { background: rgba(15,23,42,.94); }
[data-theme="dark"] .mega-menu { background: rgba(15,23,42,.98); border-color: #334155; }
[data-theme="dark"] .mega-col a:hover { background: rgba(255,255,255,.08); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cicc-blue-light);
  outline-offset: 3px;
  box-shadow: var(--cicc-focus-ring);
}

/* Hero: layered depth without extra markup */
.cicc-hero {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.14), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(0,188,212,.18), transparent 30%),
    var(--gradient-hero);
}

.cicc-hero::before,
.cicc-hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
  z-index: -1;
}

.cicc-hero::before {
  width: 28rem;
  height: 28rem;
  right: -10rem;
  top: -14rem;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 0 0 24px rgba(255,255,255,.025), 0 0 0 48px rgba(255,255,255,.018);
}

.cicc-hero::after {
  width: 12rem;
  height: 12rem;
  left: -5rem;
  bottom: -7rem;
  background: rgba(255,255,255,.08);
}

.cicc-hero .container,
.cicc-hero__content { position: relative; z-index: 1; }
.cicc-hero h1,
.cicc-hero__title { letter-spacing: -.035em; text-wrap: balance; }
.cicc-hero p,
.cicc-hero__subtitle { max-width: 46rem; text-wrap: pretty; }

/* Section headers become recognizable visual anchors */
.cicc-section__header,
.section-header { position: relative; }

.cicc-section__header h2,
.section-header h2 { text-wrap: balance; letter-spacing: -.025em; }

.cicc-section__header h2::after,
.section-header h2::after {
  content: '';
  display: block;
  width: 3.25rem;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cicc-blue), var(--cicc-cyan));
}

/* Cards: lift, sheen, and stronger hierarchy */
.cicc-card,
.card,
.feature-card,
.hero-cta-card,
.pillar-card,
.testimonial-card {
  position: relative;
  isolation: isolate;
  backface-visibility: hidden;
}

.cicc-card::after,
.card::after,
.feature-card::after,
.hero-cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,.2), transparent 35%);
  transition: opacity var(--transition-base);
  z-index: -1;
}

.cicc-card:hover::after,
.card:hover::after,
.feature-card:hover::after,
.hero-cta-card:hover::after { opacity: 1; }

.cicc-card,
.feature-card,
.hero-cta-card { transition: transform var(--transition-spring), box-shadow var(--transition-base), border-color var(--transition-base); }

.cicc-card:hover,
.feature-card:hover,
.hero-cta-card:hover { box-shadow: var(--cicc-glow-blue); }

.cicc-card img,
.card img { transition: transform .7s var(--ease-smooth), filter .4s ease; }
.cicc-card:hover img,
.card:hover img { transform: scale(1.045); filter: saturate(1.08); }

/* Buttons feel tactile and action-oriented */
.btn { position: relative; overflow: hidden; transform: translateZ(0); }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-110%) skewX(-18deg);
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transition: transform .65s ease;
}
.btn:hover::before { transform: translateX(220%) skewX(-18deg); }
.btn > * { position: relative; }

/* Readable, premium public content */
.entry-content,
.wp-block-post-content { max-width: 78ch; }

/* Hard fallback for public single posts. Some live cache/theme.json stacks can
 * override custom properties; article text must remain readable regardless. */
.single-post .sp-article .entry-content {
  color: #334155 !important;
  background: #f8fafc !important;
}
.single-post .sp-article .entry-content p,
.single-post .sp-article .entry-content li,
.single-post .sp-article .entry-content span,
.single-post .sp-article .entry-content div,
.single-post .sp-article .entry-content strong,
.single-post .sp-article .entry-content em {
  color: #334155 !important;
}
.single-post .sp-article .entry-content h1,
.single-post .sp-article .entry-content h2,
.single-post .sp-article .entry-content h3,
.single-post .sp-article .entry-content h4,
.single-post .sp-article .entry-content h5,
.single-post .sp-article .entry-content h6 {
  color: #0f172a !important;
}
.single-post .sp-article .entry-content a {
  color: #0057a3 !important;
}

/* Same protection for Gutenberg/page and custom-post-type content areas. */
.page .entry-content,
.single-knowledge .entry-content,
.single-project .entry-content,
.single-event .entry-content,
.single-location .entry-content,
.single-media .entry-content,
.single-glossary .entry-content,
.single-khoa_hoc .entry-content,
.single-course .entry-content {
  color: #334155 !important;
}
.page .entry-content p,
.page .entry-content li,
.page .entry-content strong,
.single-knowledge .entry-content p,
.single-knowledge .entry-content li,
.single-project .entry-content p,
.single-project .entry-content li,
.single-event .entry-content p,
.single-event .entry-content li,
.single-location .entry-content p,
.single-location .entry-content li,
.single-media .entry-content p,
.single-media .entry-content li,
.single-glossary .entry-content p,
.single-glossary .entry-content li,
.single-khoa_hoc .entry-content p,
.single-khoa_hoc .entry-content li,
.single-course .entry-content p,
.single-course .entry-content li { color: #334155 !important; }
.page .entry-content h1,
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4,
.single-knowledge .entry-content h1,
.single-knowledge .entry-content h2,
.single-knowledge .entry-content h3,
.single-project .entry-content h1,
.single-project .entry-content h2,
.single-project .entry-content h3,
.single-event .entry-content h1,
.single-event .entry-content h2,
.single-event .entry-content h3,
.single-location .entry-content h1,
.single-location .entry-content h2,
.single-location .entry-content h3,
.single-media .entry-content h1,
.single-media .entry-content h2,
.single-media .entry-content h3,
.single-glossary .entry-content h1,
.single-glossary .entry-content h2,
.single-glossary .entry-content h3,
.single-khoa_hoc .entry-content h1,
.single-khoa_hoc .entry-content h2,
.single-khoa_hoc .entry-content h3,
.single-course .entry-content h1,
.single-course .entry-content h2,
.single-course .entry-content h3 { color: #0f172a !important; }
.entry-content > h2,
.entry-content > h3,
.wp-block-post-content > h2,
.wp-block-post-content > h3 { text-wrap: balance; scroll-margin-top: 7rem; }
.entry-content img,
.wp-block-post-content img { border-radius: var(--radius-lg); }
.entry-content blockquote,
.wp-block-post-content blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.75rem 1.5rem 2rem;
  border-left: 4px solid var(--cicc-orange);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: linear-gradient(135deg, var(--gray-50), #fff);
  box-shadow: var(--shadow-sm);
}
.entry-content table,
.wp-block-post-content table { border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* Forms and conversion surfaces */
.form-input,
.form-select,
.form-textarea {
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover { border-color: var(--gray-400); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--cicc-blue); box-shadow: var(--cicc-focus-ring); }
.form-group label { font-weight: 650; letter-spacing: -.01em; }

/* Archive controls: turn filters into a clear, tactile navigation rail */
.cicc-filter,
.cicc-hero__filters {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}
.cicc-filter__btn,
.cicc-filter-btn,
.region-tab {
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.cicc-filter__btn:hover,
.cicc-filter-btn:hover,
.region-tab:hover { transform: translateY(-1px); }
.cicc-filter__btn--active,
.cicc-filter-btn.active,
.region-tab--active {
  box-shadow: 0 6px 18px rgba(0,87,163,.18);
}
.cicc-pagination a,
.cicc-pagination span {
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.cicc-pagination a:hover { transform: translateY(-2px); }

/* Content-type accents */
.media-card:hover { box-shadow: var(--cicc-glow-blue); }
.media-card .media-play-btn { transition: transform var(--transition-base), box-shadow var(--transition-base); }
.media-card:hover .media-play-btn { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255,255,255,.14); }
.cicc-training-card { transition: transform var(--transition-spring), box-shadow var(--transition-base); }
.cicc-training-card:hover { transform: translateY(-7px); box-shadow: var(--cicc-glow-blue); }
.cicc-training-card__thumb { overflow: hidden; }
.cicc-training-card__thumb img { transition: transform .7s var(--ease-smooth); }
.cicc-training-card:hover .cicc-training-card__thumb img { transform: scale(1.06); }
.cicc-stat { transition: transform var(--transition-base), box-shadow var(--transition-base); }
.cicc-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

@media (max-width: 768px) {
  .cicc-filter,
  .cicc-hero__filters { overflow-x: auto; scrollbar-width: none; }
  .cicc-filter::-webkit-scrollbar,
  .cicc-hero__filters::-webkit-scrollbar { display: none; }
  .cicc-filter__btn,
  .cicc-filter-btn,
  .region-tab { white-space: nowrap; }
}

.cicc-cta {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 25%), var(--gradient-cta);
}
.cicc-cta::after {
  content: '';
  position: absolute;
  width: 24rem;
  height: 24rem;
  right: -10rem;
  bottom: -15rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255,255,255,.025), 0 0 0 48px rgba(255,255,255,.018);
  pointer-events: none;
}

/* Homepage signature layer: make the four-platform ecosystem feel like one product. */
#hero .hero-content-wrapper { position: relative; z-index: 2; }
#hero .cicc-hero__tag { box-shadow: 0 10px 28px rgba(0,0,0,.18); }
#hero .cicc-hero__stat {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: .8rem .9rem;
  backdrop-filter: blur(10px);
  transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}
#hero .cicc-hero__stat:hover { transform: translateY(-4px); background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); }
.hero-cta-card { position: relative; overflow: hidden; }
.hero-cta-card::after {
  content: '';
  position: absolute;
  width: 9rem;
  height: 9rem;
  right: -4rem;
  bottom: -5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .08;
  pointer-events: none;
}
#ecosystem .cicc-grid--4 { align-items: stretch; }
#ecosystem .cicc-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-spring), box-shadow var(--transition-base), border-color var(--transition-fast);
}
#ecosystem .cicc-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cicc-blue), var(--cicc-purple), var(--cicc-orange));
  opacity: .35;
}
#ecosystem .cicc-card:hover { transform: translateY(-8px); box-shadow: var(--cicc-glow-blue), var(--shadow-lg); }
#ecosystem .cicc-card h3 { letter-spacing: -.02em; }
#ecosystem .cicc-card .btn { transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
#ecosystem .cicc-card:hover .btn { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(0,87,163,.15); }

@media (max-width: 768px) {
  #hero .cicc-hero__stat { padding: .7rem .55rem; }
  #ecosystem .cicc-card { min-height: 0; }
}

[data-theme="dark"] #ecosystem .cicc-card { background: #111827 !important; border-color: #334155 !important; }
[data-theme="dark"] .hero-cta-card { background: #111827 !important; }

/* Content hubs: consistent reading surfaces across every CPT without touching markup/content. */
.cicc-card__thumb { position: relative; overflow: hidden; }
.cicc-card__thumb img { transition: transform .7s var(--ease-smooth), filter var(--transition-base); }
.cicc-card:hover .cicc-card__thumb img { transform: scale(1.055); filter: saturate(1.08); }
.cicc-card__body { min-height: 11rem; display: flex; flex-direction: column; }
.cicc-card__body > p { flex: 1; }
.cicc-card__footer { margin-top: auto; }
.cicc-card__link { font-weight: 700; letter-spacing: -.01em; }
.cicc-card__badges { z-index: 1; }
.cicc-filter { position: relative; z-index: 2; }

/* Single content layouts: improve scanability and keep long-form content calm. */
.single-project .entry-content,
.single-event .entry-content,
.single-location .entry-content,
.single-media .entry-content,
.single-knowledge .entry-content,
.single-khoa_hoc .entry-content,
.single-course .entry-content {
  max-width: 860px;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.82;
}
.single-project .entry-content h2,
.single-event .entry-content h2,
.single-location .entry-content h2,
.single-media .entry-content h2,
.single-knowledge .entry-content h2,
.single-khoa_hoc .entry-content h2,
.single-course .entry-content h2 { margin-top: 2.25em; }
.single-project .social-share,
.single-event .social-share,
.single-media .social-share,
.single-knowledge .social-share,
.single-khoa_hoc .social-share { padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.wiki-entry { box-shadow: var(--shadow-card); }
.cicc-khoa-hoc-grid { align-items: stretch; }
.cicc-khoa-hoc-grid > * { min-width: 0; }
.event-gallery-grid img,
.media-gallery-grid img { transition: transform .6s var(--ease-smooth), filter var(--transition-base); }
.event-gallery-grid a:hover img,
.media-gallery-grid a:hover img { transform: scale(1.04); filter: saturate(1.08); }

@media (max-width: 820px) {
  .cicc-khoa-hoc-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .wiki-layout { grid-template-columns: 1fr !important; gap: 20px !important; }
  .wiki-sidebar, .wiki-aside { position: static !important; max-height: none !important; }
  .event-gallery-grid, .media-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
  .event-gallery-grid, .media-gallery-grid { grid-template-columns: 1fr !important; }
  .cicc-card__body { min-height: 0; }
  .single-project .entry-content,
  .single-event .entry-content,
  .single-location .entry-content,
  .single-media .entry-content,
  .single-knowledge .entry-content,
  .single-khoa_hoc .entry-content,
  .single-course .entry-content { font-size: 1rem; line-height: 1.72; }
}

[data-theme="dark"] .wiki-entry { background: #111827 !important; border-color: #334155 !important; }

/* Unified single-template reading system. */
:where(.single-post, .single-project, .single-event, .single-location, .single-media, .single-knowledge, .single-khoa_hoc, .single-course, .single-glossary) .entry-content > :first-child { margin-top: 0; }
:where(.single-post, .single-project, .single-event, .single-location, .single-media, .single-knowledge, .single-khoa_hoc, .single-course, .single-glossary) .entry-content > :last-child { margin-bottom: 0; }
:where(.single-post, .single-project, .single-event, .single-location, .single-media, .single-knowledge, .single-khoa_hoc, .single-course, .single-glossary) .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
:where(.single-post, .single-project, .single-event, .single-location, .single-media, .single-knowledge, .single-khoa_hoc, .single-course, .single-glossary) .entry-content figure { margin: 2rem 0; }
:where(.single-post, .single-project, .single-event, .single-location, .single-media, .single-knowledge, .single-khoa_hoc, .single-course, .single-glossary) .entry-content figcaption {
  margin-top: .65rem;
  color: var(--gray-500);
  font-size: .875rem;
  text-align: center;
}
:where(.single-post, .single-project, .single-event, .single-location, .single-media, .single-knowledge, .single-khoa_hoc, .single-course, .single-glossary) .entry-content a:not(.btn) {
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
:where(.single-post, .single-project, .single-event, .single-location, .single-media, .single-knowledge, .single-khoa_hoc, .single-course, .single-glossary) .entry-content pre {
  overflow-x: auto;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #0f172a;
  color: #e2e8f0;
  font-size: .875rem;
  line-height: 1.65;
}
:where(.single-post, .single-project, .single-event, .single-location, .single-media, .single-knowledge, .single-khoa_hoc, .single-course, .single-glossary) .entry-content :not(pre) > code {
  padding: .12em .35em;
  border-radius: .3em;
  background: var(--gray-100);
  color: var(--cicc-purple);
  font-size: .9em;
}
:where(.single-post, .single-project, .single-event, .single-location, .single-media, .single-knowledge, .single-khoa_hoc, .single-course, .single-glossary) .entry-content table { display: block; max-width: 100%; overflow-x: auto; }
:where(.single-post, .single-project, .single-event, .single-location, .single-media, .single-knowledge, .single-khoa_hoc, .single-course, .single-glossary) .entry-content blockquote { margin-inline: 0; }

@media (max-width: 820px) {
  :where(.single-post, .single-project, .single-event, .single-location, .single-media, .single-knowledge, .single-khoa_hoc, .single-course, .single-glossary) .entry-content h2 { font-size: clamp(1.35rem, 5vw, 1.8rem); }
  :where(.single-post, .single-project, .single-event, .single-location, .single-media, .single-knowledge, .single-khoa_hoc, .single-course, .single-glossary) .entry-content h3 { font-size: clamp(1.15rem, 4vw, 1.4rem); }
}

/* Release-quality interaction details. */
html { scroll-padding-top: 5.5rem; }
:where(a, button, input, select, textarea) { touch-action: manipulation; }
:where(button, .btn, .cicc-filter__btn, .cicc-filter-btn):disabled { cursor: not-allowed; opacity: .62; }
@media (pointer: coarse) {
  :where(button, .btn, .cicc-filter__btn, .cicc-filter-btn, .mobile-toggle, .btn-header-search) {
    min-height: 2.75rem;
  }
}
@media (forced-colors: active) {
  :where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid CanvasText;
    outline-offset: 3px;
  }
}

/* Public motion: only elements that already opt into reveal classes */
.fade-in,
.fade-in-left,
.fade-in-right,
.scale-in { will-change: opacity, transform; }

@media (max-width: 768px) {
  .cicc-section__header h2::after,
  .section-header h2::after { margin-top: .75rem; }
  .cicc-hero::before { width: 18rem; height: 18rem; right: -9rem; top: -8rem; }
  .entry-content blockquote,
  .wp-block-post-content blockquote { padding: 1.25rem 1.25rem 1.25rem 1.5rem; }
}

[data-theme="dark"] .entry-content blockquote,
[data-theme="dark"] .wp-block-post-content blockquote { background: linear-gradient(135deg, #1e293b, #0f172a); }
[data-theme="dark"] .single-post .sp-article .entry-content {
  color: #cbd5e1 !important;
  background: #1e293b !important;
}
[data-theme="dark"] .single-post .sp-article .entry-content p,
[data-theme="dark"] .single-post .sp-article .entry-content li,
[data-theme="dark"] .single-post .sp-article .entry-content span,
[data-theme="dark"] .single-post .sp-article .entry-content div,
[data-theme="dark"] .single-post .sp-article .entry-content strong,
[data-theme="dark"] .single-post .sp-article .entry-content em { color: #cbd5e1 !important; }
[data-theme="dark"] .cicc-filter,
[data-theme="dark"] .cicc-hero__filters { background: rgba(30,41,59,.86); border-color: var(--surface-border); }

@media (prefers-reduced-motion: reduce) {
  .cicc-card img,
  .card img,
  .btn::before { transition: none; }
}
