/**
 * HT Mega 2026 — Blog / Posts Section Widget
 * File: assets/css/widgets/htm25-blog.css
 *
 * BEM component: .htm25-blog
 * Requires htm25-tokens.css (design token system)
 * Zero hardcoded colours — all values via var(--htm25-*)
 */

/* =========================================================
   SECTION WRAPPER
   ========================================================= */
.htm25-blog {
  position: relative;
  overflow: hidden;
  padding-block: var(--htm25-section-py);
  padding-inline: var(--htm25-section-px);
  background-color: var(--htm25-bg-section);
}

/* ── Background decoration (glass + aurora) ── */
.htm25-blog__bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.htm25-blog__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: htm25-blogblob-drift 22s ease-in-out infinite alternate;
}

.htm25-blog__blob--1 {
  width: 55vw;
  height: 40vw;
  max-width: 800px;
  max-height: 600px;
  top: -20%;
  right: -5%;
  background: radial-gradient(circle, var(--htm25-accent-primary) 0%, transparent 70%);
  animation-delay: 0s;
}

.htm25-blog__blob--2 {
  width: 45vw;
  height: 35vw;
  max-width: 660px;
  max-height: 500px;
  bottom: -15%;
  left: -8%;
  background: radial-gradient(circle, var(--htm25-accent-primary) 0%, transparent 70%);
  animation-delay: -9s;
}

@keyframes htm25-blogblob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-3%, 4%) scale(1.06); }
  100% { transform: translate(3%, -3%) scale(0.96); }
}

/* =========================================================
   INNER WRAPPER
   ========================================================= */
.htm25-blog__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--htm25-container-xl);
  margin-inline: auto;
}

/* =========================================================
   SECTION HEADER
   ========================================================= */
.htm25-blog__header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--htm25-space-16);
}

.htm25-blog .htm25-blog__section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--htm25-space-2);
  font-size: var(--htm25-text-xs);
  font-weight: var(--htm25-weight-semibold);
  letter-spacing: var(--htm25-tracking-wider);
  text-transform: uppercase;
  color: var(--htm25-section-label-color, var(--htm25-accent-primary));
  margin-bottom: var(--htm25-space-5);
}

.htm25-blog .htm25-blog__headline {
  font-family: var(--htm25-font-heading);
  font-size: var(--htm25-text-4xl);
  font-weight: var(--htm25-weight-heading, var(--htm25-weight-bold));
  line-height: var(--htm25-leading-heading, var(--htm25-leading-tight));
  letter-spacing: var(--htm25-tracking-heading, var(--htm25-tracking-tight));
  color: var(--htm25-section-title-color, var(--htm25-text-heading));
  margin-top: 0;
  margin-bottom: var(--htm25-space-5);
}

/* Base — always clip to text so Elementor gradient/color controls render as text, not a box */
.htm25-blog .htm25-blog__headline-accent {
  background-color: var(--htm25-accent-primary);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Glass + Aurora: gradient text */
.htm25-style--glass .htm25-blog__headline-accent,
.htm25-style--aurora .htm25-blog__headline-accent {
  background-color: transparent;
  background-image: var(--htm25-gradient-text, var(--htm25-gradient-btn));
}

.htm25-blog .htm25-blog__description {
  font-size: var(--htm25-text-lg);
  line-height: var(--htm25-leading-normal);
  color: var(--htm25-section-body-color, var(--htm25-text-muted));
  margin: 0;
  max-width: 56ch;
  margin-inline: auto;
}

/* =========================================================
   GRID
   ========================================================= */
.htm25-blog__grid {
  display: grid;
  gap: var(--htm25-space-8);
}

.htm25-blog__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.htm25-blog__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Featured: hero card spans full width ── */
.htm25-blog--featured .htm25-blog__card--hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.htm25-blog--featured .htm25-blog__card--hero .htm25-blog__card-image-link {
  height: 100%;
}

.htm25-blog--featured .htm25-blog__card--hero .htm25-blog__card-image-wrap {
  height: 100%;
  aspect-ratio: unset;
  border-radius: var(--htm25-radius-2xl) 0 0 var(--htm25-radius-2xl);
}

.htm25-blog--featured .htm25-blog__card--hero .htm25-blog__card-body {
  padding: var(--htm25-space-10) var(--htm25-space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.htm25-blog--featured .htm25-blog__card--hero .htm25-blog__card-title {
  font-size: var(--htm25-text-3xl);
}

.htm25-blog--featured .htm25-blog__card--hero .htm25-blog__card-excerpt {
  font-size: var(--htm25-text-base);
  max-width: 52ch;
}

/* ── List layout ── */
.htm25-blog--list .htm25-blog__grid {
  grid-template-columns: 1fr;
  gap: var(--htm25-space-5);
}

.htm25-blog--list .htm25-blog__card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  align-items: stretch;
}

.htm25-blog--list .htm25-blog__card-image-link {
  height: 100%;
}

.htm25-blog--list .htm25-blog__card-image-wrap {
  height: 100%;
  aspect-ratio: unset;
  min-height: 200px;
  border-radius: var(--htm25-radius-2xl) 0 0 var(--htm25-radius-2xl);
}

.htm25-blog--list .htm25-blog__card-image-wrap--placeholder {
  border-bottom: none;
  border-right: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
}

.htm25-blog--list .htm25-blog__card-body {
  padding: var(--htm25-space-6) var(--htm25-space-8);
}

.htm25-blog--list .htm25-blog__card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* =========================================================
   CARD BASE
   ========================================================= */
.htm25-blog__card {
  background-color: var(--htm25-bg-card);
  border: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
  border-radius: var(--htm25-radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.htm25-blog__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--htm25-shadow-lg);
}

/* ── Image wrap ── */
.htm25-blog__card-image-link {
  display: block;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}

.htm25-blog__card-image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--htm25-bg-subtle);
}

.htm25-blog__card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.htm25-blog__card:hover .htm25-blog__card-image-wrap img {
  transform: scale(1.04);
}

/* ── Image placeholder ── */
.htm25-blog__card-image-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--htm25-text-muted);
  border-bottom: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
}

/* ── Card body ── */
.htm25-blog__card-body {
  padding: var(--htm25-space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Meta top row (category + read time) ── */
.htm25-blog__card-meta-top {
  display: flex;
  align-items: center;
  gap: var(--htm25-space-3);
  margin-bottom: var(--htm25-space-3);
  flex-wrap: wrap;
}

.htm25-blog__card-category {
  display: inline-block;
  font-size: var(--htm25-text-xs);
  font-weight: var(--htm25-weight-semibold);
  letter-spacing: var(--htm25-tracking-wider);
  text-transform: uppercase;
  color: var(--htm25-accent-primary);
  background-color: var(--htm25-accent-primary-lt, var(--htm25-bg-subtle));
  padding: 2px var(--htm25-space-3);
  border-radius: var(--htm25-radius-full);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.htm25-blog__card-category:hover {
  background-color: var(--htm25-accent-primary);
  color: var(--htm25-swatch-white, #fff);
}

.htm25-blog__card-read-time {
  font-size: var(--htm25-text-xs);
  color: var(--htm25-text-muted);
}

/* ── Title ── */
.htm25-blog .htm25-blog__card-title {
  font-family: var(--htm25-font-heading);
  font-size: var(--htm25-text-lg);
  font-weight: var(--htm25-weight-bold);
  line-height: var(--htm25-leading-snug, 1.35);
  color: var(--htm25-text-heading);
  margin: 0 0 var(--htm25-space-3) 0;
}

.htm25-blog__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.htm25-blog__card-title a:hover {
  color: var(--htm25-accent-primary);
}

/* ── Excerpt ── */
.htm25-blog .htm25-blog__card-excerpt {
  font-size: var(--htm25-text-sm);
  line-height: var(--htm25-leading-normal);
  color: var(--htm25-text-muted);
  margin: 0 0 var(--htm25-space-5) 0;
  flex: 1;
}

/* ── Footer (byline + read more) ── */
.htm25-blog__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--htm25-space-4);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--htm25-space-4);
  border-top: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
}

.htm25-blog__card-byline {
  display: flex;
  align-items: center;
  gap: var(--htm25-space-2);
  flex-wrap: wrap;
}

.htm25-blog__card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-sizing: border-box;
  flex-shrink: 0;
}

.htm25-blog__card-author {
  font-size: var(--htm25-text-xs);
  font-weight: var(--htm25-weight-medium);
  color: var(--htm25-text-body);
}

.htm25-blog__card-byline-sep {
  color: var(--htm25-text-muted);
  font-size: var(--htm25-text-xs);
}

.htm25-blog__card-date {
  font-size: var(--htm25-text-xs);
  color: var(--htm25-text-muted);
}

/* ── Read more link ── */
.htm25-blog__card-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--htm25-space-2);
  font-size: var(--htm25-text-sm);
  font-weight: var(--htm25-weight-semibold);
  color: var(--htm25-accent-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.15s ease, color 0.15s ease;
}

.htm25-blog__card-read-more:hover {
  gap: var(--htm25-space-3);
}

.htm25-blog__card-read-more svg {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.htm25-blog__card-read-more:hover svg {
  transform: translateX(3px);
}

/* ── Empty state ── */
.htm25-blog__empty {
  text-align: center;
  padding: var(--htm25-space-16);
  color: var(--htm25-text-muted);
  border: var(--htm25-border-width) dashed var(--htm25-border-color-strong);
  border-radius: var(--htm25-radius-2xl);
}

/* =========================================================
   STYLE: BENTO
   ========================================================= */
.htm25-style--bento .htm25-blog__card {
  box-shadow: var(--htm25-shadow-card);
}

.htm25-style--bento .htm25-blog__card:hover {
  box-shadow: var(--htm25-shadow-lg);
}

/* =========================================================
   STYLE: GLASS + AURORA — frosted cards
   ========================================================= */
.htm25-blog.htm25-style--glass,
.htm25-blog.htm25-style--aurora {
  background: var(--htm25-gradient-hero);
}

.htm25-style--glass .htm25-blog__card,
.htm25-style--aurora .htm25-blog__card {
  background: var(--htm25-glass-bg, var(--htm25-bg-card));
  -webkit-backdrop-filter: var(--htm25-glass-blur, none);
          backdrop-filter: var(--htm25-glass-blur, none);
}

/* =========================================================
   STYLE: GLASS + AURORA + DARK — read-more link colours
   Purple accent (#786EFF) is too muted on dark glass bg;
   lime/pink accents already pop but need explicit hover.
   ========================================================= */

/* Glass: accent-primary (#786EFF) — inherits from base, explicit hover */
.htm25-blog.htm25-style--glass .htm25-blog__card-read-more:hover {
  color: #fff;
}

/* Dark Minimal: lime accent → white on hover */
.htm25-blog.htm25-style--dark .htm25-blog__card-read-more {
  color: var(--htm25-accent-primary);
}

.htm25-blog.htm25-style--dark .htm25-blog__card-read-more:hover {
  color: #fff;
}

/* Aurora: pink accent → white on hover */
.htm25-blog.htm25-style--aurora .htm25-blog__card-read-more {
  color: var(--htm25-accent-primary);
}

.htm25-blog.htm25-style--aurora .htm25-blog__card-read-more:hover {
  color: #fff;
}

/* =========================================================
   STYLE: NEO-BRUTALIST
   ========================================================= */
.htm25-style--neo .htm25-blog__card {
  border: 3px solid var(--htm25-border-color);
  border-radius: 0;
  box-shadow: var(--htm25-shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.htm25-style--neo .htm25-blog__card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--htm25-shadow-btn);
}

.htm25-style--neo .htm25-blog__card-image-wrap {
  border-radius: 0;
}

.htm25-blog.htm25-style--neo.htm25-blog--featured .htm25-blog__card--hero .htm25-blog__card-image-wrap,
.htm25-blog.htm25-style--neo.htm25-blog--list .htm25-blog__card-image-wrap {
  border-radius: 0;
}

/* Neo: category — solid yellow badge, black text, neo border */
.htm25-style--neo .htm25-blog__card-category {
  border-radius: 0;
  background-color: var(--htm25-accent-primary);
  color: #000;
  border: 2px solid #000;
  font-weight: var(--htm25-weight-bold);
}

.htm25-style--neo .htm25-blog__card-category:hover {
  background-color: #000;
  color: var(--htm25-accent-primary);
}

/* List layout: suppress Y-lift hover (full-width card looks odd lifting) */
.htm25-blog--list .htm25-blog__card:hover {
  transform: none;
  box-shadow: var(--htm25-shadow-card-hover);
}

/* Issue #2 — Neo: dot-grid background decoration */


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .htm25-blog__grid--cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .htm25-blog--featured .htm25-blog__card--hero {
    grid-template-columns: 1fr;
  }

  .htm25-blog--featured .htm25-blog__card--hero .htm25-blog__card-image-wrap {
    border-radius: var(--htm25-radius-2xl) var(--htm25-radius-2xl) 0 0;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .htm25-blog--featured .htm25-blog__card--hero .htm25-blog__card-body {
    padding: var(--htm25-space-6);
  }

  .htm25-blog--list .htm25-blog__card {
    grid-template-columns: 1fr;
  }

  .htm25-blog--list .htm25-blog__card-image-wrap {
    border-radius: var(--htm25-radius-2xl) var(--htm25-radius-2xl) 0 0;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: unset;
  }

  .htm25-blog__grid--cols-2,
  .htm25-blog__grid--cols-3 {
    grid-template-columns: 1fr;
  }

  .htm25-blog .htm25-blog__headline {
    font-size: var(--htm25-text-3xl);
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .htm25-blog__blob {
    animation: none;
  }

  .htm25-blog__card,
  .htm25-blog__card-image-wrap img,
  .htm25-blog__card-category,
  .htm25-blog__card-title a,
  .htm25-blog__card-read-more,
  .htm25-blog__card-read-more svg {
    transition: none;
  }
}
/**
 * HT Mega 2026 — Services Section
 * BEM component: .htm25-services
 *
 * All token names match htm25-tokens.css exactly:
 *   font sizes   → --htm25-text-*
 *   font weights → --htm25-weight-*
 *   line heights → --htm25-leading-*
 *   tracking     → --htm25-tracking-*
 *   surfaces     → --htm25-bg-*
 *   borders      → --htm25-border-*
 *   radius       → --htm25-radius-*
 *   shadows      → --htm25-shadow-*
 *   buttons      → --htm25-btn-*  (py / px / primary-text)
 *   spacing      → --htm25-space-*
 *   sections     → --htm25-section-py / --htm25-section-px
 *
 * Design styles applied via: .htm25-style--{bento|glass|dark|aurora|neo}
 * Layouts applied via: .htm25-services--{grid|list|centered}
 */

/* ── Base wrapper ─────────────────────────────────────────────── */

.htm25-services {
    position: relative;
    overflow: hidden;
    padding-block: var(--htm25-section-py);
    padding-inline: var(--htm25-section-px);
    background-color: var(--htm25-bg-section);
    color: var(--htm25-text-body);
}

/* Glass / Aurora get their full gradient hero background */
.htm25-services.htm25-style--glass,
.htm25-services.htm25-style--aurora {
    background: var(--htm25-gradient-hero);
}

/* ── Background decorations ───────────────────────────────────── */

.htm25-services__bg-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: var(--htm25-z-below, -1);
}

.htm25-services__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: htm25-blob-drift 14s ease-in-out infinite alternate;
    will-change: transform;
}

/* Glass blobs */
.htm25-style--glass .htm25-services__blob--1 {
    width: 520px; height: 520px;
    top: -160px; right: -60px;
    background: radial-gradient(circle, rgba(120,110,255,0.40), transparent 70%);
    animation-duration: 18s;
}
.htm25-style--glass .htm25-services__blob--2 {
    width: 440px; height: 440px;
    bottom: -100px; left: -80px;
    background: radial-gradient(circle, rgba(6,182,212,0.30), transparent 70%);
    animation-duration: 22s;
    animation-direction: alternate-reverse;
}

/* Aurora blobs */
.htm25-style--aurora .htm25-services__blob--1 {
    width: 580px; height: 580px;
    top: -200px; left: -100px;
    background: radial-gradient(circle, rgba(255,60,172,0.35), transparent 70%);
    animation-duration: 20s;
}
.htm25-style--aurora .htm25-services__blob--2 {
    width: 480px; height: 480px;
    bottom: -120px; right: -80px;
    background: radial-gradient(circle, rgba(43,134,197,0.28), transparent 70%);
    animation-duration: 24s;
    animation-direction: alternate-reverse;
}

@keyframes htm25-blob-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.08); }
}


/* ── Inner container ──────────────────────────────────────────── */

.htm25-services__inner {
    position: relative;
    z-index: var(--htm25-z-base, 0);
    max-width: var(--htm25-container-xl, 1280px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--htm25-space-12, 3rem);
}

/* ── Section header ───────────────────────────────────────────── */

.htm25-services__header {
    display: flex;
    flex-direction: column;
    gap: var(--htm25-space-4, 1rem);
    max-width: 52ch;
}

/* Centered layout: centre the header */
.htm25-services--centered .htm25-services__header {
    align-items: center;
    text-align: center;
    max-width: 60ch;
    margin-inline: auto;
}

.htm25-services--centered .htm25-services__section-label {
    align-self: center;
}

/* ── Section label ────────────────────────────────────────────── */

.htm25-services .htm25-services__section-label {
    margin: 0;
    font-size: var(--htm25-text-xs);
    font-weight: var(--htm25-weight-semibold);
    letter-spacing: var(--htm25-tracking-wider);
    text-transform: uppercase;
    color: var(--htm25-section-label-color, var(--htm25-accent-primary));
}

/* ── Headline ─────────────────────────────────────────────────── */

.htm25-services .htm25-services__headline {
    white-space: pre-line;

    margin: 0;
    font-size: var(--htm25-text-3xl);
    font-weight: var(--htm25-weight-bold);
    line-height: var(--htm25-leading-tight);
    letter-spacing: var(--htm25-tracking-tight);
    color: var(--htm25-text-heading);
}

/* Base — always clip to text so Elementor gradient/color controls render as text, not a box */
.htm25-services .htm25-services__headline-accent {
    background-color: var(--htm25-accent-primary);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Glass + Aurora: gradient text */
.htm25-style--glass .htm25-services__headline-accent,
.htm25-style--aurora .htm25-services__headline-accent {
    background-color: transparent;
    background-image: var(--htm25-gradient-text, var(--htm25-gradient-btn));
}

/* ── Description ──────────────────────────────────────────────── */

.htm25-services .htm25-services__description {
    margin: 0;
    font-size: var(--htm25-text-lg);
    line-height: var(--htm25-leading-normal);
    color: var(--htm25-text-muted);
    max-width: 52ch;
}

.htm25-services--centered .htm25-services__description {
    max-width: 60ch;
}

/* ── Cards container ──────────────────────────────────────────── */

.htm25-services .htm25-services__cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--htm25-space-6, 1.5rem);
}

/* Grid layout columns */
.htm25-services--grid.htm25-services--grid .htm25-services__cards--cols-2 { grid-template-columns: repeat(2, 1fr); }
.htm25-services--grid.htm25-services--grid .htm25-services__cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
.htm25-services--grid.htm25-services--grid .htm25-services__cards--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Centered layout: auto-fill wrapping grid */
.htm25-services--centered .htm25-services__cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* List layout: single column stack */
.htm25-services--list .htm25-services__cards {
    grid-template-columns: 1fr;
    gap: var(--htm25-space-4, 1rem);
}

/* ── Individual service card ──────────────────────────────────── */

.htm25-services__card {
    display: flex;
    flex-direction: column;
    gap: var(--htm25-space-4, 1rem);
    padding: var(--htm25-space-8, 2rem);
    border-radius: var(--htm25-radius-card);
    background: var(--htm25-bg-card);
    border: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
    box-shadow: var(--htm25-shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.htm25-services__card:hover {
    box-shadow: var(--htm25-shadow-card-hover);
    transform: translateY(-3px);
}

/* List layout: horizontal card */
.htm25-services--list .htm25-services__card {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--htm25-space-6, 1.5rem);
    padding: var(--htm25-space-6, 1.5rem);
    transform: none;   /* no lift on list cards */
}

.htm25-services--list .htm25-services__card:hover {
    transform: none;
}

/* Centered layout: centre-align card content */
.htm25-services--centered .htm25-services__card {
    align-items: center;
    text-align: center;
}

/* Glass card */
.htm25-style--glass .htm25-services__card {
    background: var(--htm25-glass-bg);
    -webkit-backdrop-filter: var(--htm25-glass-blur);
            backdrop-filter: var(--htm25-glass-blur);
    border-color: var(--htm25-border-color);
}

/* Dark card */
.htm25-style--dark .htm25-services__card {
    background: var(--htm25-bg-card);
    border-color: var(--htm25-border-color);
}

/* Aurora card */
.htm25-style--aurora .htm25-services__card {
    background: var(--htm25-bg-card);
    border-color: var(--htm25-border-color);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}

/* Neo-Brutalist card */
.htm25-style--neo .htm25-services__card {
    border-width: 2px;
    border-color: var(--htm25-border-color);
    box-shadow: 3px 3px 0 var(--htm25-border-color);
    border-radius: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.htm25-style--neo .htm25-services__card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--htm25-border-color);
}

/* Neo: list layout re-override (no translate on hover) */
.htm25-style--neo.htm25-services--list .htm25-services__card:hover {
    transform: none;
    box-shadow: 5px 5px 0 var(--htm25-border-color);
}

/* Neo: solid yellow wrap + black icon */
.htm25-style--neo .htm25-services__card-icon-wrap {
    background: #FFE500;
    border: 2px solid #000000;
    border-radius: 0;
}
.htm25-style--neo.htm25-services .htm25-services__card-icon,
.htm25-style--neo.htm25-services .htm25-services__card-icon svg,
.htm25-style--neo.htm25-services .htm25-services__card-icon i {
    color: #000000;
}
.htm25-style--neo.htm25-services .htm25-services__card-icon svg path {
    fill: #000000;
}

/* ── Icon wrapper ─────────────────────────────────────────────── */

.htm25-services__card-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: var(--htm25-radius-icon, var(--htm25-radius-md));
    background: var(--htm25-accent-primary-lt);
}

/* Slightly larger icon box in grid layout */
.htm25-services--grid .htm25-services__card-icon-wrap {
    width: 3.25rem;
    height: 3.25rem;
}

/* List layout: don't shrink the icon box */
.htm25-services--list .htm25-services__card-icon-wrap {
    margin-top: 0.125rem; /* optical alignment with title text */
}

/* ── Icon itself ──────────────────────────────────────────────── */

.htm25-services .htm25-services__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.2rem;
    color: var(--htm25-accent-primary);
}

.htm25-services .htm25-services__card-icon svg,
.htm25-services .htm25-services__card-icon i {
    display: block;
    color: var(--htm25-accent-primary);
}

.htm25-services .htm25-services__card-icon svg {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
}

/* ── Card body ────────────────────────────────────────────────── */

.htm25-services__card-body {
    display: flex;
    flex-direction: column;
    gap: var(--htm25-space-2, 0.5rem);
    flex: 1;
}

/* Centered layout: centre the body text */
.htm25-services--centered .htm25-services__card-body {
    align-items: center;
}

/* ── Card title ───────────────────────────────────────────────── */

.htm25-services .htm25-services__card-title {
    margin: 0;
    font-size: var(--htm25-text-lg);
    font-weight: var(--htm25-weight-semibold);
    line-height: var(--htm25-leading-snug);
    color: var(--htm25-text-heading);
}

/* ── Card description ─────────────────────────────────────────── */

.htm25-services .htm25-services__card-description {
    margin: 0;
    font-size: var(--htm25-text-sm);
    line-height: var(--htm25-leading-normal);
    color: var(--htm25-text-muted);
}

/* ── Card link ────────────────────────────────────────────────── */

.htm25-services__card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--htm25-space-1, 0.25rem);
    margin-top: var(--htm25-space-2, 0.5rem);
    font-size: var(--htm25-text-sm);
    font-weight: var(--htm25-weight-semibold);
    color: var(--htm25-text-link);
    text-decoration: none;
    transition: color 0.15s ease, gap 0.15s ease;
}

.htm25-services__card-link:hover {
    color: var(--htm25-text-link-hover);
    gap: var(--htm25-space-2, 0.5rem);
}

.htm25-services__card-link-arrow {
    display: inline-flex;
    transition: transform 0.15s ease;
}

.htm25-services__card-link:hover .htm25-services__card-link-arrow {
    transform: translateX(3px);
}

/* ── Bottom CTA ───────────────────────────────────────────────── */

.htm25-services__cta-wrap {
    display: flex;
    justify-content: center;
    padding-top: var(--htm25-space-4, 1rem);
}

.htm25-services__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--htm25-space-2, 0.5rem);
    padding: var(--htm25-btn-py) var(--htm25-btn-px);
    font-size: var(--htm25-btn-font-size, var(--htm25-text-sm));
    font-weight: var(--htm25-btn-font-weight, var(--htm25-weight-semibold));
    line-height: 1;
    border-radius: var(--htm25-btn-radius);
    background: var(--htm25-btn-primary-bg);
    color: var(--htm25-btn-primary-text);
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.htm25-services__cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: var(--htm25-shadow-btn);
}

.htm25-services__cta-icon {
    display: inline-flex;
    align-items: center;
    font-size: 0.875em;
    transition: transform 0.15s ease;
}

.htm25-services__cta-icon i   { display: block; line-height: 1; }
.htm25-services__cta-icon svg { display: block; width: 1em; height: 1em; fill: currentColor; }

.htm25-services__cta:hover .htm25-services__cta-icon {
    transform: translateX(3px);
}

/* ── Responsive ───────────────────────────────────────────────── */

/* 4-col → 2-col on large tablet */
@media (max-width: 1200px) {
    .htm25-services--grid .htm25-services__cards--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3-col → 2-col on tablet */
@media (max-width: 1024px) {
    .htm25-services--grid .htm25-services__cards--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* All grids → 1-col on small tablet, list stays row */
@media (max-width: 640px) {
    .htm25-services--grid .htm25-services__cards--cols-2,
    .htm25-services--grid .htm25-services__cards--cols-3,
    .htm25-services--grid .htm25-services__cards--cols-4 {
        grid-template-columns: 1fr;
    }

    /* List: stack vertically on mobile */
    .htm25-services--list .htm25-services__card {
        flex-direction: column;
    }

    .htm25-services__cta {
        width: 100%;
        justify-content: center;
    }
}

/* ── Reduced motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .htm25-services__blob {
        animation: none;
    }

    .htm25-services__card,
    .htm25-services__cta,
    .htm25-services__cta-icon,
    .htm25-services__card-link,
    .htm25-services__card-link-arrow {
        transition: none;
    }
}
/**
 * HT Mega 2026 — Stats / Counter Widget
 * File: assets/css/widgets/htm25-stats.css
 *
 * BEM component: .htm25-stats
 * Requires htm25-tokens.css (design token system)
 * Zero hardcoded colours — all values via var(--htm25-*)
 */

/* =========================================================
   SECTION WRAPPER
   ========================================================= */
.htm25-stats {
  position: relative;
  overflow: hidden;
  padding-block: var(--htm25-section-py);
  padding-inline: var(--htm25-section-px);
  background-color: var(--htm25-bg-section);
}

/* ── Background decoration (glass + aurora) ── */
.htm25-stats__bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.htm25-stats__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: htm25-stblob-drift 20s ease-in-out infinite alternate;
}

.htm25-stats__blob--1 {
  width: 50vw;
  height: 40vw;
  max-width: 720px;
  max-height: 560px;
  top: -20%;
  right: -5%;
  background: radial-gradient(circle, var(--htm25-accent-primary) 0%, transparent 70%);
  animation-delay: 0s;
}

.htm25-stats__blob--2 {
  width: 40vw;
  height: 30vw;
  max-width: 600px;
  max-height: 440px;
  bottom: -15%;
  left: -5%;
  background: radial-gradient(circle, var(--htm25-accent-secondary, var(--htm25-accent-primary)) 0%, transparent 70%);
  animation-delay: -9s;
}

@keyframes htm25-stblob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-3%, 5%) scale(1.07); }
  100% { transform: translate(2%, -3%) scale(0.96); }
}


/* =========================================================
   INNER WRAPPER
   ========================================================= */
.htm25-stats__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--htm25-container-xl);
  margin-inline: auto;
}

/* =========================================================
   SECTION HEADER (optional — Grid / Bento layouts)
   ========================================================= */
.htm25-stats__header {
  text-align: center;
  margin-bottom: var(--htm25-space-12);
}

.htm25-stats .htm25-stats__section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--htm25-space-2);
  font-size: var(--htm25-text-xs);
  font-weight: var(--htm25-weight-semibold);
  letter-spacing: var(--htm25-tracking-wider);
  text-transform: uppercase;
  color: var(--htm25-section-label-color, var(--htm25-accent-primary));
  margin-bottom: var(--htm25-space-4);
}

.htm25-stats .htm25-stats__headline {
    white-space: pre-line;

  font-family: var(--htm25-font-heading);
  font-size: var(--htm25-text-4xl);
  font-weight: var(--htm25-weight-heading, var(--htm25-weight-bold));
  line-height: var(--htm25-leading-heading, var(--htm25-leading-tight));
  letter-spacing: var(--htm25-tracking-heading, var(--htm25-tracking-tight));
  color: var(--htm25-section-title-color, var(--htm25-text-heading));
  margin-top: 0;
  margin-bottom: var(--htm25-space-5);
}

/* Base — always clip to text so Elementor gradient/color controls render as text, not a box */
.htm25-stats .htm25-stats__headline-accent {
  background-color: var(--htm25-accent-primary);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Glass + Aurora: gradient text */
.htm25-style--glass .htm25-stats__headline-accent,
.htm25-style--aurora .htm25-stats__headline-accent {
  background-color: transparent;
  background-image: var(--htm25-gradient-text, var(--htm25-gradient-btn));
}

/* Neo: black accent text (readable on neo bg); user gradient clips to text same as other styles */
.htm25-style--neo .htm25-stats__headline-accent {
  background-color: var(--htm25-swatch-black, #000);
  background-image: none;
}

.htm25-stats .htm25-stats__description {
  font-size: var(--htm25-text-lg);
  line-height: var(--htm25-leading-normal);
  color: var(--htm25-section-body-color, var(--htm25-text-muted));
  max-width: 52ch;
  margin-inline: auto;
  margin-top: 0;
  margin-bottom: 0;
}

/* =========================================================
   GRID — shared across layouts
   ========================================================= */
.htm25-stats__grid {
  display: grid;
  gap: var(--htm25-space-6);
}

/* ─── ROW layout — all items in one horizontal strip ─── */
.htm25-stats--row .htm25-stats__grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
  border-radius: var(--htm25-radius-card);
  overflow: hidden;
  background-color: var(--htm25-bg-card);
  box-shadow: var(--htm25-shadow-card);
}

.htm25-style--glass .htm25-stats--row .htm25-stats__grid,
.htm25-style--aurora .htm25-stats--row .htm25-stats__grid {
  background: var(--htm25-glass-bg, var(--htm25-bg-card));
  -webkit-backdrop-filter: var(--htm25-glass-blur, none);
          backdrop-filter: var(--htm25-glass-blur, none);
}

.htm25-style--neo .htm25-stats--row .htm25-stats__grid {
  border-width: var(--htm25-border-width-thick, 3px);
  box-shadow: var(--htm25-shadow-card);
  border-radius: 0;
}

/* ─── GRID layout — card-based ─── */
.htm25-stats--grid .htm25-stats__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.htm25-stats--grid .htm25-stats__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.htm25-stats--grid .htm25-stats__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── BENTO layout — first item spans 2 cols ─── */
.htm25-stats--bento .htm25-stats__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.htm25-stats--bento .htm25-stats__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.htm25-stats--bento .htm25-stats__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.htm25-stats--bento .htm25-stats__item--featured {
  grid-column: span 2;
}

/* =========================================================
   STAT ITEM — shared base
   ========================================================= */
.htm25-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--htm25-space-3);
  padding: var(--htm25-space-8) var(--htm25-space-6);
  position: relative;
}

/* ─── ROW item: vertical divider between items ─── */
.htm25-stats--row .htm25-stats__item {
  padding: var(--htm25-space-10) var(--htm25-space-8);
}

.htm25-stats__item-divider {
  display: none;
}

.htm25-stats--row .htm25-stats__item-divider {
  display: block;
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: var(--htm25-divider-width);
  background-color: var(--htm25-divider-color);
}

/* Hide divider on last child */
.htm25-stats--row .htm25-stats__item:last-child .htm25-stats__item-divider {
  display: none;
}

/* ─── GRID / BENTO item: card style ─── */
.htm25-stats--grid .htm25-stats__item,
.htm25-stats--bento .htm25-stats__item {
  background-color: var(--htm25-bg-card);
  border: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
  border-radius: var(--htm25-radius-card);
  box-shadow: var(--htm25-shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.htm25-stats--grid .htm25-stats__item:hover,
.htm25-stats--bento .htm25-stats__item:hover {
  box-shadow: var(--htm25-shadow-card-hover);
  transform: translateY(-2px);
}

/* Glass / Aurora card backgrounds */
.htm25-style--glass .htm25-stats--grid .htm25-stats__item,
.htm25-style--glass .htm25-stats--bento .htm25-stats__item,
.htm25-style--aurora .htm25-stats--grid .htm25-stats__item,
.htm25-style--aurora .htm25-stats--bento .htm25-stats__item {
  background: var(--htm25-glass-bg, var(--htm25-bg-card));
  -webkit-backdrop-filter: var(--htm25-glass-blur, none);
          backdrop-filter: var(--htm25-glass-blur, none);
}

.htm25-style--glass .htm25-stats--grid .htm25-stats__item:hover,
.htm25-style--glass .htm25-stats--bento .htm25-stats__item:hover,
.htm25-style--aurora .htm25-stats--grid .htm25-stats__item:hover,
.htm25-style--aurora .htm25-stats--bento .htm25-stats__item:hover {
  background: var(--htm25-glass-bg-hover, var(--htm25-bg-card-alt));
}

/* Neo card */
.htm25-style--neo .htm25-stats--grid .htm25-stats__item,
.htm25-style--neo .htm25-stats--bento .htm25-stats__item {
  border-width: var(--htm25-border-width-thick, 3px);
  border-radius: 0;
  box-shadow: var(--htm25-shadow-card);
}

.htm25-style--neo .htm25-stats--grid .htm25-stats__item:hover,
.htm25-style--neo .htm25-stats--bento .htm25-stats__item:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--htm25-shadow-card-hover);
}

/* ─── Featured item (bento first) ─── */
.htm25-stats--bento .htm25-stats__item--featured {
  background-color: var(--htm25-accent-primary-lt, var(--htm25-bg-card));
  border-color: var(--htm25-accent-primary);
}

.htm25-style--dark .htm25-stats--bento .htm25-stats__item--featured {
  background-color: var(--htm25-accent-primary-lt);
  border-color: var(--htm25-accent-primary);
}

.htm25-style--glass .htm25-stats--bento .htm25-stats__item--featured,
.htm25-style--aurora .htm25-stats--bento .htm25-stats__item--featured {
  background: var(--htm25-accent-primary-lt, rgba(255,255,255,0.08));
  box-shadow: var(--htm25-shadow-card),
              0 0 32px var(--htm25-accent-glow, var(--htm25-accent-primary-lt));
}

.htm25-style--neo .htm25-stats--bento .htm25-stats__item--featured {
  background-color: var(--htm25-swatch-yellow);
  border-color: var(--htm25-swatch-black, #000);
  box-shadow: 6px 6px 0 var(--htm25-swatch-black, #000);
}

/* Featured item enlarged number */
.htm25-stats--bento .htm25-stats__item--featured .htm25-stats__item-number {
  font-size: var(--htm25-text-5xl);
}

.htm25-stats--bento .htm25-stats__item--featured .htm25-stats__item-prefix,
.htm25-stats--bento .htm25-stats__item--featured .htm25-stats__item-suffix {
  font-size: var(--htm25-text-3xl);
}

/* =========================================================
   ICON
   ========================================================= */
.htm25-stats__item-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: var(--htm25-radius-icon, var(--htm25-radius-md));
  background-color: var(--htm25-accent-primary-lt, var(--htm25-bg-subtle));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: var(--htm25-space-2);
}

.htm25-stats__item-icon {
  font-size: var(--htm25-text-lg);
  color: var(--htm25-accent-primary);
  line-height: 1;
}
.htm25-stats__item-icon svg {
  width: var(--htm25-text-lg);
}

.htm25-style--neo .htm25-stats__item-icon-wrap {
  border: 2px solid var(--htm25-swatch-black, #000);
  border-radius: 0;
  background-color: var(--htm25-swatch-yellow);
}
.htm25-style--neo.htm25-stats .htm25-stats__item-icon,
.htm25-style--neo.htm25-stats .htm25-stats__item-icon svg,
.htm25-style--neo.htm25-stats .htm25-stats__item-icon i {
  color: #000000;
}
.htm25-style--neo.htm25-stats .htm25-stats__item-icon svg path {
  fill: #000000;
}

/* =========================================================
   VALUE ROW (prefix + number + suffix)
   ========================================================= */
.htm25-stats__item-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--htm25-space-1);
  line-height: var(--htm25-leading-tight);
}

.htm25-stats__item-number {
  font-family: var(--htm25-font-heading);
  font-size: var(--htm25-text-4xl);
  font-weight: var(--htm25-weight-black, var(--htm25-weight-bold));
  letter-spacing: var(--htm25-tracking-tight);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  /* Always clip so Elementor gradient control renders as text gradient, not a box */
  background-color: var(--htm25-text-heading);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-color 0.2s ease;
}

/* Style-specific number colours */
.htm25-style--dark .htm25-stats__item-number {
  background-color: var(--htm25-accent-primary);
}

.htm25-style--glass .htm25-stats__item-number,
.htm25-style--aurora .htm25-stats__item-number {
  background-image: var(--htm25-gradient-text, var(--htm25-gradient-btn));
  background-color: transparent;
}

.htm25-style--neo .htm25-stats__item-number {
  font-size: var(--htm25-text-4xl);
  background-color: var(--htm25-text-heading);
}

.htm25-stats__item-prefix,
.htm25-stats__item-suffix {
  font-family: var(--htm25-font-heading);
  font-size: var(--htm25-text-2xl);
  font-weight: var(--htm25-weight-bold);
  color: var(--htm25-accent-primary);
  line-height: 1;
  align-self: flex-end;
  padding-bottom: 0.1em;
}

.htm25-style--glass .htm25-stats__item-prefix,
.htm25-style--glass .htm25-stats__item-suffix,
.htm25-style--aurora .htm25-stats__item-prefix,
.htm25-style--aurora .htm25-stats__item-suffix {
  color: var(--htm25-text-muted);
}

.htm25-style--neo .htm25-stats__item-prefix,
.htm25-style--neo .htm25-stats__item-suffix {
  color: var(--htm25-text-heading);
}

/* =========================================================
   LABEL + DESCRIPTION
   ========================================================= */
.htm25-stats .htm25-stats__item-label {
  font-family: var(--htm25-font-body);
  font-size: var(--htm25-text-sm);
  font-weight: var(--htm25-weight-semibold);
  color: var(--htm25-text-body);
  letter-spacing: var(--htm25-tracking-wide);
  text-transform: uppercase;
  margin: 0;
  line-height: var(--htm25-leading-snug);
}

.htm25-style--dark .htm25-stats__item-label {
  color: var(--htm25-text-muted);
}

.htm25-style--neo .htm25-stats--bento .htm25-stats__item--featured .htm25-stats__item-label {
  color: var(--htm25-text-heading);
}

.htm25-stats .htm25-stats__item-description {
  font-size: var(--htm25-text-xs);
  color: var(--htm25-text-muted);
  line-height: var(--htm25-leading-normal);
  margin: 0;
}

/* =========================================================
   ROW LAYOUT — hover accent line on items
   ========================================================= */
.htm25-stats--row .htm25-stats__item::before {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--htm25-accent-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--htm25-duration-normal) var(--htm25-ease-out);
}

.htm25-stats--row .htm25-stats__item:hover::before {
  transform: scaleX(1);
}

.htm25-style--neo .htm25-stats--row .htm25-stats__item::before {
  height: 4px;
  background: var(--htm25-swatch-yellow);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Row layout: stack at mobile */
@media (max-width: 768px) {
  .htm25-stats--row .htm25-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Re-show dividers as bottom borders in 2-col row */
  .htm25-stats--row .htm25-stats__item-divider {
    display: block;
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: var(--htm25-divider-width);
    background-color: var(--htm25-divider-color);
  }

  /* Hide right-column divider */
  .htm25-stats--row .htm25-stats__item:nth-child(even) .htm25-stats__item-divider {
    display: none;
  }
}

/* Grid/Bento: 4-col → 2-col at 1100px */
@media (max-width: 1100px) {
  .htm25-stats--grid .htm25-stats__grid--cols-4,
  .htm25-stats--bento .htm25-stats__grid--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .htm25-stats--bento .htm25-stats__grid--cols-4 .htm25-stats__item--featured {
    grid-column: span 2;
  }
}

/* Grid/Bento: 3-col → 2-col at 900px, bento featured still spans 2 */
@media (max-width: 900px) {
  .htm25-stats--grid .htm25-stats__grid--cols-3,
  .htm25-stats--bento .htm25-stats__grid--cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .htm25-stats--bento .htm25-stats__grid--cols-3 .htm25-stats__item--featured {
    grid-column: span 2;
  }
}

/* All → 1-col at 480px */
@media (max-width: 480px) {
  .htm25-stats--row .htm25-stats__grid {
    grid-template-columns: 1fr;
  }

  .htm25-stats--row .htm25-stats__item-divider {
    display: none;
  }

  .htm25-stats--row .htm25-stats__item::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: var(--htm25-divider-width);
    background-color: var(--htm25-divider-color);
  }

  .htm25-stats--grid .htm25-stats__grid--cols-2,
  .htm25-stats--grid .htm25-stats__grid--cols-3,
  .htm25-stats--grid .htm25-stats__grid--cols-4,
  .htm25-stats--bento .htm25-stats__grid--cols-2,
  .htm25-stats--bento .htm25-stats__grid--cols-3,
  .htm25-stats--bento .htm25-stats__grid--cols-4 {
    grid-template-columns: 1fr;
  }

  .htm25-stats--bento .htm25-stats__item--featured {
    grid-column: span 1;
  }

  .htm25-stats--bento .htm25-stats__item--featured .htm25-stats__item-number {
    font-size: var(--htm25-text-4xl);
  }

  .htm25-stats--bento .htm25-stats__item--featured .htm25-stats__item-prefix,
  .htm25-stats--bento .htm25-stats__item--featured .htm25-stats__item-suffix {
    font-size: var(--htm25-text-2xl);
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .htm25-stats__blob {
    animation: none;
  }

  .htm25-stats--grid .htm25-stats__item,
  .htm25-stats--bento .htm25-stats__item {
    transition: none;
  }

  .htm25-stats--grid .htm25-stats__item:hover,
  .htm25-stats--bento .htm25-stats__item:hover {
    transform: none;
  }

  .htm25-stats--row .htm25-stats__item::before {
    transition: none;
  }

  /* Number count-up is disabled via JS when prefers-reduced-motion is set */
}
/**
 * HT Mega 2026 — Team Section Widget
 * File: assets/css/widgets/htm25-team.css
 *
 * BEM component: .htm25-team
 * Requires htm25-tokens.css (design token system)
 * Zero hardcoded colours — all values via var(--htm25-*)
 */

/* =========================================================
   SECTION WRAPPER
   ========================================================= */
.htm25-team {
  position: relative;
  overflow: hidden;
  padding-block: var(--htm25-section-py);
  padding-inline: var(--htm25-section-px);
  background-color: var(--htm25-bg-section);
}

/* ── Background decoration (glass + aurora) ── */
.htm25-team__bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.htm25-team__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.40;
  animation: htm25-teamblob-drift 18s ease-in-out infinite alternate;
}

.htm25-team__blob--1 {
  width: 55vw;
  height: 40vw;
  max-width: 800px;
  max-height: 600px;
  top: -15%;
  right: -5%;
  background: radial-gradient(circle, var(--htm25-accent-primary) 0%, transparent 70%);
  animation-delay: 0s;
}

.htm25-team__blob--2 {
  width: 45vw;
  height: 35vw;
  max-width: 680px;
  max-height: 520px;
  bottom: -10%;
  left: -8%;
  background: radial-gradient(circle, var(--htm25-accent-secondary, var(--htm25-accent-primary)) 0%, transparent 70%);
  animation-delay: -7s;
}

@keyframes htm25-teamblob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-3%, 4%) scale(1.06); }
  100% { transform: translate(3%, -3%) scale(0.96); }
}

/* =========================================================
   INNER WRAPPER
   ========================================================= */
.htm25-team__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--htm25-container-xl);
  margin-inline: auto;
}

/* =========================================================
   SECTION HEADER
   ========================================================= */
.htm25-team__header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--htm25-space-16);
}

.htm25-team .htm25-team__section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--htm25-space-2);
  font-size: var(--htm25-text-xs);
  font-weight: var(--htm25-weight-semibold);
  letter-spacing: var(--htm25-tracking-wider);
  text-transform: uppercase;
  color: var(--htm25-section-label-color, var(--htm25-accent-primary));
  margin-bottom: var(--htm25-space-5);
}

.htm25-team .htm25-team__headline {
    white-space: pre-line;

  font-family: var(--htm25-font-heading);
  font-size: var(--htm25-text-4xl);
  font-weight: var(--htm25-weight-heading, var(--htm25-weight-bold));
  line-height: var(--htm25-leading-heading, var(--htm25-leading-tight));
  letter-spacing: var(--htm25-tracking-heading, var(--htm25-tracking-tight));
  color: var(--htm25-section-title-color, var(--htm25-text-heading));
  margin-top: 0;
  margin-bottom: var(--htm25-space-5);
}

/* Base — always clip to text so Elementor gradient/color controls render as text, not a box */
.htm25-team .htm25-team__headline-accent {
  background-color: var(--htm25-accent-primary);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Glass + Aurora: gradient text */
.htm25-style--glass .htm25-team__headline-accent,
.htm25-style--aurora .htm25-team__headline-accent {
  background-color: transparent;
  background-image: var(--htm25-gradient-text, var(--htm25-gradient-btn));
}

.htm25-team .htm25-team__description {
  font-size: var(--htm25-text-lg);
  line-height: var(--htm25-leading-normal);
  color: var(--htm25-section-body-color, var(--htm25-text-muted));
  margin: 0;
  max-width: 56ch;
  margin-inline: auto;
}

/* =========================================================
   GRID
   ========================================================= */
.htm25-team__grid {
  display: grid;
  gap: var(--htm25-space-8);
}

.htm25-team__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.htm25-team__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.htm25-team__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Featured layout: first card spans full width ── */
.htm25-team--featured .htm25-team__card--hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--htm25-space-10);
  align-items: center;
}

.htm25-team--featured .htm25-team__card--hero .htm25-team__card-photo-wrap {
  aspect-ratio: 1 / 1;
  max-height: 360px;
}

.htm25-team--featured .htm25-team__card--hero .htm25-team__card-photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.htm25-team--featured .htm25-team__card--hero .htm25-team__card-bio {
  font-size: var(--htm25-text-base);
  max-width: 54ch;
}

/* ── List layout ── */
.htm25-team--list .htm25-team__grid {
  grid-template-columns: 1fr;
  gap: var(--htm25-space-4);
}

.htm25-team--list .htm25-team__card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--htm25-space-6);
  align-items: center;
}

.htm25-team--list .htm25-team__card-photo-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.htm25-team--list .htm25-team__card-photo,
.htm25-team--list .htm25-team__card-photo-placeholder {
  width: 80px;
  height: 80px;
}

.htm25-team--list .htm25-team__card-social-overlay {
  display: none; /* overlay not useful in list layout */
}

/* =========================================================
   CARD BASE
   ========================================================= */
.htm25-team__card {
  background-color: var(--htm25-bg-card);
  border: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
  border-radius: var(--htm25-radius-2xl);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.htm25-team__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--htm25-shadow-lg);
}

/* ── Featured card highlight ── */
.htm25-team__card--featured {
  border-color: var(--htm25-accent-primary);
  box-shadow: 0 0 0 1px var(--htm25-accent-primary),
              var(--htm25-shadow-md);
}

/* =========================================================
   PHOTO AREA
   ========================================================= */
.htm25-team__card-photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: var(--htm25-bg-subtle);
}

/* list layout overrides aspect-ratio via explicit px above */
.htm25-team--list .htm25-team__card-photo-wrap {
  aspect-ratio: unset;
  border-radius: 50%;
  flex-shrink: 0;
}

.htm25-team__card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.htm25-team__card:hover .htm25-team__card-photo {
  transform: scale(1.04);
}

/* ── Avatar placeholder ── */
.htm25-team__card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--htm25-accent-primary-lt, var(--htm25-bg-subtle));
  font-family: var(--htm25-font-heading);
  font-size: var(--htm25-text-3xl);
  font-weight: var(--htm25-weight-bold);
  color: var(--htm25-accent-primary);
  letter-spacing: var(--htm25-tracking-tight);
  user-select: none;
}

.htm25-team--list .htm25-team__card-photo-placeholder {
  font-size: var(--htm25-text-xl);
  border-radius: 50%;
}

/* ── Social overlay (hover reveal on grid/featured) ── */
.htm25-team__card-social-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--htm25-space-3);
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.htm25-team__card:hover .htm25-team__card-social-overlay {
  opacity: 1;
}

.htm25-team__card-social-overlay .htm25-team__card-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.htm25-team__card-social-overlay .htm25-team__card-social-link:hover {
  background: var(--htm25-accent-primary);
  border-color: var(--htm25-accent-primary);
  transform: scale(1.1);
}

/* =========================================================
   CARD BODY
   ========================================================= */
.htm25-team__card-body {
  padding: var(--htm25-space-6);
}

.htm25-team--featured .htm25-team__card--hero .htm25-team__card-body {
  padding: var(--htm25-space-8) var(--htm25-space-8) var(--htm25-space-8) 0;
}

.htm25-team--list .htm25-team__card-body {
  padding: var(--htm25-space-4) 0;
}

.htm25-team__card-department {
  display: inline-block;
  font-size: var(--htm25-text-xs);
  font-weight: var(--htm25-weight-semibold);
  letter-spacing: var(--htm25-tracking-wider);
  text-transform: uppercase;
  color: var(--htm25-accent-primary);
  background-color: var(--htm25-accent-primary-lt, var(--htm25-bg-subtle));
  padding: var(--htm25-space-1) var(--htm25-space-3);
  border-radius: var(--htm25-radius-full);
  margin-bottom: var(--htm25-space-3);
}

.htm25-team .htm25-team__card-name {
  font-family: var(--htm25-font-heading);
  font-size: var(--htm25-text-lg);
  font-weight: var(--htm25-weight-bold);
  color: var(--htm25-text-heading);
  margin: 0 0 var(--htm25-space-1) 0;
  line-height: var(--htm25-leading-tight);
}

.htm25-team .htm25-team__card-role {
  font-size: var(--htm25-text-sm);
  color: var(--htm25-accent-primary);
  font-weight: var(--htm25-weight-medium);
  margin: 0 0 var(--htm25-space-3) 0;
}

.htm25-team .htm25-team__card-bio {
  font-size: var(--htm25-text-sm);
  line-height: var(--htm25-leading-normal);
  color: var(--htm25-text-muted);
  margin: 0 0 var(--htm25-space-4) 0;
}

/* ── Social links row (below card body, not overlay) ── */
.htm25-team__card-social {
  display: flex;
  align-items: center;
  gap: var(--htm25-space-3);
  margin-top: var(--htm25-space-4);
}

.htm25-team__card-social .htm25-team__card-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--htm25-bg-subtle);
  border: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
  color: var(--htm25-text-muted);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease,
              border-color 0.15s ease, transform 0.15s ease;
}

.htm25-team__card-social .htm25-team__card-social-link:hover {
  color: var(--htm25-accent-primary);
  background-color: var(--htm25-accent-primary-lt, var(--htm25-bg-subtle));
  border-color: var(--htm25-accent-primary);
  transform: scale(1.1);
}

.htm25-team__card-social .htm25-team__card-social-link:focus-visible {
  outline: 2px solid var(--htm25-accent-primary);
  outline-offset: 2px;
}

/* =========================================================
   STYLE: BENTO — card lift
   ========================================================= */
.htm25-style--bento .htm25-team__card {
  box-shadow: var(--htm25-shadow-md);
}

.htm25-style--bento .htm25-team__card:hover {
  box-shadow: var(--htm25-shadow-xl);
}

/* =========================================================
   STYLE: DARK
   ========================================================= */
.htm25-style--dark .htm25-team__card-name {
  color: var(--htm25-text-heading);
}

.htm25-style--dark .htm25-team__card-social .htm25-team__card-social-link:hover {
  color: var(--htm25-accent-primary);
}

/* =========================================================
   STYLE: GLASS + AURORA — frosted card
   ========================================================= */
.htm25-team.htm25-style--glass,
.htm25-team.htm25-style--aurora {
  background: var(--htm25-gradient-hero);
}

.htm25-style--glass .htm25-team__card,
.htm25-style--aurora .htm25-team__card {
  background: var(--htm25-glass-bg, var(--htm25-bg-card));
  -webkit-backdrop-filter: var(--htm25-glass-blur, none);
          backdrop-filter: var(--htm25-glass-blur, none);
}

/* =========================================================
   STYLE: NEO-BRUTALIST
   ========================================================= */
.htm25-style--neo .htm25-team__card {
  border: var(--htm25-border-width-thick, 3px) solid var(--htm25-border-color);
  border-radius: 0;
  box-shadow: var(--htm25-shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.htm25-style--neo .htm25-team__card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--htm25-shadow-btn);
}

.htm25-style--neo .htm25-team__card--featured {
  background-color: var(--htm25-swatch-yellow, #fef08a);
  color: var(--htm25-swatch-black, #000);
}

.htm25-style--neo .htm25-team__card--featured .htm25-team__card-name,
.htm25-style--neo .htm25-team__card--featured .htm25-team__card-bio {
  color: var(--htm25-swatch-black, #000);
}

.htm25-style--neo .htm25-team__card-photo-placeholder {
  border-radius: 0;
  background: #FFE500;
  border: 2px solid #000000;
  color: #000000;
}

.htm25-style--neo .htm25-team--list .htm25-team__card-photo-placeholder {
  border-radius: 0;
}

.htm25-style--neo .htm25-team__card-department {
  border-radius: 0;
  color: var(--htm25-swatch-black, #000);
  background-color: var(--htm25-accent-primary);
  border: 1px solid var(--htm25-swatch-black, #000);
  box-shadow: 1px 1px 0 var(--htm25-swatch-black, #000);
}

.htm25-style--neo .htm25-team__card-role {
  color: var(--htm25-swatch-black, #000);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .htm25-team__grid--cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .htm25-team__grid--cols-3,
  .htm25-team__grid--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .htm25-team--featured .htm25-team__card--hero {
    grid-template-columns: 240px 1fr;
    gap: var(--htm25-space-8);
  }
}

@media (max-width: 768px) {
  .htm25-team__grid--cols-2,
  .htm25-team__grid--cols-3,
  .htm25-team__grid--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .htm25-team--featured .htm25-team__card--hero {
    grid-template-columns: 1fr;
  }

  .htm25-team--featured .htm25-team__card--hero .htm25-team__card-photo-wrap {
    max-height: 280px;
  }

  .htm25-team--featured .htm25-team__card--hero .htm25-team__card-body {
    padding: var(--htm25-space-6);
  }

  .htm25-team .htm25-team__headline {
    font-size: var(--htm25-text-3xl);
  }
}

@media (max-width: 540px) {
  .htm25-team__grid--cols-2,
  .htm25-team__grid--cols-3,
  .htm25-team__grid--cols-4 {
    grid-template-columns: 1fr;
  }

  .htm25-team--list .htm25-team__card {
    grid-template-columns: 64px 1fr;
    gap: var(--htm25-space-4);
  }

  .htm25-team--list .htm25-team__card-photo-wrap {
    width: 64px;
    height: 64px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .htm25-team__blob {
    animation: none;
  }

  .htm25-team__card,
  .htm25-team__card-photo,
  .htm25-team__card-social-overlay,
  .htm25-team__card-social .htm25-team__card-social-link {
    transition: none;
  }
}
