/**
 * HT Mega 2026 — About / Feature Section
 * BEM component: .htm25-about
 *
 * 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-about--{split-left|split-right|centered|feature-grid}
 */

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

.htm25-about {
    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 gradient hero background */
.htm25-about.htm25-style--glass,
.htm25-about.htm25-style--aurora {
    background: var(--htm25-gradient-hero);
}

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

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

.htm25-about__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-about__blob--1 {
    width: 500px; height: 500px;
    top: -150px; left: -80px;
    background: radial-gradient(circle, rgba(120,110,255,0.40), transparent 70%);
    animation-duration: 16s;
}
.htm25-style--glass .htm25-about__blob--2 {
    width: 420px; height: 420px;
    bottom: -120px; right: -80px;
    background: radial-gradient(circle, rgba(6,182,212,0.30), transparent 70%);
    animation-duration: 20s;
    animation-direction: alternate-reverse;
}

/* Aurora blobs */
.htm25-style--aurora .htm25-about__blob--1 {
    width: 560px; height: 560px;
    top: -180px; left: -120px;
    background: radial-gradient(circle, rgba(255,60,172,0.35), transparent 70%);
    animation-duration: 18s;
}
.htm25-style--aurora .htm25-about__blob--2 {
    width: 460px; height: 460px;
    bottom: -100px; right: -60px;
    background: radial-gradient(circle, rgba(43,134,197,0.30), transparent 70%);
    animation-duration: 22s;
    animation-direction: alternate-reverse;
}


/* ── Inner layout ─────────────────────────────────────────────── */

.htm25-about__inner {
    position: relative;
    z-index: var(--htm25-z-base, 0);
    max-width: var(--htm25-container-xl, 1280px);
    margin-inline: auto;
    display: grid;
    gap: var(--htm25-space-16, 4rem);
    align-items: center;
}

/* Split: 2-column grid */
.htm25-about--split-left  .htm25-about__inner,
.htm25-about--split-right .htm25-about__inner {
    grid-template-columns: 1fr 1fr;
}

/* Centered / Feature-Grid: single column */
.htm25-about--centered     .htm25-about__inner,
.htm25-about--feature-grid .htm25-about__inner {
    grid-template-columns: 1fr;
}

/* Elementor: full headline gradient text (Style → Typography → Text Gradient) */
.htm25-headline--gradient-text {
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ── Content column ───────────────────────────────────────────── */

.htm25-about__content {
    display: flex;
    flex-direction: column;
    gap: var(--htm25-space-6, 1.5rem);
}

/* Centered / feature-grid: centre-align text */
.htm25-about--centered     .htm25-about__content,
.htm25-about--feature-grid .htm25-about__content {
    align-items: center;
    text-align: center;
}

.htm25-about--centered     .htm25-about__section-label,
.htm25-about--feature-grid .htm25-about__section-label {
    align-self: center;
}

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

/* Parent scope (0,2,0) beats theme p/span rules */
.htm25-about .htm25-about__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 ─────────────────────────────────────────────────── */

/* Parent scope (0,2,0) beats theme h1–h4 and .editor-styles-wrapper h2 */
.htm25-about .htm25-about__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-about .htm25-about__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-about__headline-accent,
.htm25-style--aurora .htm25-about__headline-accent {
    background-color: transparent;
    background-image: var(--htm25-gradient-text, var(--htm25-gradient-btn));
}

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

/* Parent scope (0,2,0) beats theme p rules */
.htm25-about .htm25-about__description {
    margin: 0;
    font-size: var(--htm25-text-lg);
    line-height: var(--htm25-leading-normal);
    color: var(--htm25-text-muted);
    max-width: 52ch;
}

.htm25-about--centered     .htm25-about__description,
.htm25-about--feature-grid .htm25-about__description {
    max-width: 60ch;
}

/* ── Feature grid ─────────────────────────────────────────────── */

/* Parent scope (0,2,0) beats .entry-content ul { padding: revert; margin: revert } */
.htm25-about .htm25-about__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--htm25-space-6, 1.5rem);
    width: 100%;
}

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

/* Feature-grid layout: features below header, full-width */
.htm25-about--feature-grid .htm25-about__features {
    margin-block-start: var(--htm25-space-10, 2.5rem);
    text-align: left;
}

/* ── Single feature card ──────────────────────────────────────── */

.htm25-about__feature {
    display: flex;
    flex-direction: column;
    gap: var(--htm25-space-3, 0.75rem);
    padding: var(--htm25-space-6, 1.5rem);
    border-radius: var(--htm25-radius-card);
    background: var(--htm25-bg-card);
    border: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

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

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

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

/* Neo-Brutalist card */
.htm25-style--neo .htm25-about__feature {
    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-about__feature:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--htm25-border-color);
}

/* Centered layout: centre-align icon, title, and description within each card */
.htm25-about--centered .htm25-about__feature {
    align-items: center;
    text-align: center;
}

/* ── Feature icon wrapper ─────────────────────────────────────── */

.htm25-about__feature-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--htm25-radius-icon, var(--htm25-radius-md));
    background: var(--htm25-accent-primary-lt);  /* always defined — each style sets this */
    flex-shrink: 0;
}

/* ── Feature icon ─────────────────────────────────────────────── */

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

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

.htm25-about .htm25-about__feature-icon svg {
    width: 1.125em;
    height: 1.125em;
    fill: currentColor;
}

/* ── Feature title ────────────────────────────────────────────── */

/* Parent scope (0,2,0) beats theme heading rules */
.htm25-about .htm25-about__feature-title {
    margin: 0;
    font-size: var(--htm25-text-base);
    font-weight: var(--htm25-weight-semibold);
    line-height: var(--htm25-leading-snug);
    color: var(--htm25-text-heading);
}

/* ── Feature description ──────────────────────────────────────── */

/* Parent scope (0,2,0) beats theme p rules */
.htm25-about .htm25-about__feature-description {
    margin: 0;
    font-size: var(--htm25-text-sm);
    line-height: var(--htm25-leading-normal);
    color: var(--htm25-text-muted);
}

/* ── Media column ─────────────────────────────────────────────── */

.htm25-about__media {
    position: relative;
}

.htm25-about__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--htm25-radius-card);
    object-fit: cover;
    box-shadow: var(--htm25-shadow-card);
}

.htm25-style--neo .htm25-about__img {
    border-radius: 0;
    border: 2px solid var(--htm25-border-color);
    box-shadow: 4px 4px 0 var(--htm25-border-color);
}

/* ── Image placeholder (shown in editor when no image is set) ── */

.htm25-about__img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--htm25-radius-card);
    border: 2px dashed var(--htm25-border-color, rgba(0,0,0,.2));
    color: var(--htm25-text-muted, rgba(0,0,0,.35));
    background-color: var(--htm25-surface-alt, rgba(0,0,0,.03));
    pointer-events: none;
    user-select: none;
}

.htm25-about__img-placeholder svg {
    opacity: .5;
    flex-shrink: 0;
}

.htm25-about__img-placeholder span {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: .6;
}

/* Glass / Aurora — frosted placeholder */
.htm25-style--glass .htm25-about__img-placeholder,
.htm25-style--aurora .htm25-about__img-placeholder {
    background-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

/* Dark — slightly lighter surface, lime-tinted dashed border */
.htm25-style--dark .htm25-about__img-placeholder {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(163, 230, 53, 0.25); /* lime-400 at low opacity */
    color: rgba(255, 255, 255, 0.35);
}

/* Neo — solid thick border, offset shadow, no border-radius */
.htm25-style--neo .htm25-about__img-placeholder {
    border-radius: 0;
    border: 2px solid var(--htm25-border-color);
    border-style: solid;
    box-shadow: 4px 4px 0 var(--htm25-border-color);
    background-color: var(--htm25-surface-alt, #f5f5f5);
}

/* ── Floating stat badge ──────────────────────────────────────── */

.htm25-about__float-badge {
    position: absolute;
    bottom: 1.5rem;
    left: -1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    min-width: 5.5rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--htm25-radius-card);
    background: var(--htm25-badge-bg);
    box-shadow: var(--htm25-shadow-lg);
    border: var(--htm25-border-width) var(--htm25-border-style) var(--htm25-border-color);
    z-index: var(--htm25-z-raised, 10);
    text-align: center;
}

.htm25-about__float-number {
    font-size: var(--htm25-text-xl);
    font-weight: var(--htm25-weight-bold);
    color: var(--htm25-accent-primary);
    line-height: 1;
}

.htm25-about__float-label {
    font-size: var(--htm25-text-xs);
    color: var(--htm25-text-muted);
    white-space: nowrap;
}

/* Neo: yellow badge needs black text — accent-primary is also yellow */
.htm25-style--neo .htm25-about__float-number,
.htm25-style--neo .htm25-about__float-label {
    color: var(--htm25-badge-text, #000000);
}

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

/* ── CTA button wrap ──────────────────────────────────────────── */

.htm25-about__cta-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: var(--htm25-space-3, 0.75rem);
    align-items: center;
}

.htm25-about--centered     .htm25-about__cta-wrap,
.htm25-about--feature-grid .htm25-about__cta-wrap {
    justify-content: center;
}

/* ── CTA button ───────────────────────────────────────────────── */

.htm25-about__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: background 0.2s ease, background-color 0.2s ease, color 0.2s ease,
                opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.htm25-about__cta-icon i {
    display: block;
    line-height: 1;
}

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

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

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

/* Collapse split → single column on tablet */
@media (max-width: 1024px) {
    .htm25-about--split-left  .htm25-about__inner,
    .htm25-about--split-right .htm25-about__inner {
        grid-template-columns: 1fr;
    }

    .htm25-about__float-badge {
        left: 1rem;
        bottom: 1rem;
    }
}

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

/* Collapse to 1-col on mobile */
@media (max-width: 480px) {
    .htm25-about__features--cols-2,
    .htm25-about__features--cols-3 {
        grid-template-columns: 1fr;
    }

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

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

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

    .htm25-about__feature,
    .htm25-about__cta,
    .htm25-about__cta-icon {
        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-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 */
}
