/* ============================================================
   KEC Widgets — Frontend CSS
   Style values are injected via inline CSS variables from PHP
   ============================================================ */

/* ── TRUST BAR ─────────────────────────────────────────────── */
.kec-trust-bar {
    background: var(--kec-tb-bg, #fff);
    border-bottom: 1px solid #E4EAEC;
    overflow: hidden;
}
.kec-trust-scroll {
    display: flex;
    width: max-content;
    animation: kec-trust-marquee var(--kec-tb-speed, 28s) linear infinite;
}
.kec-trust-bar:hover .kec-trust-scroll { animation-play-state: paused; }
@keyframes kec-trust-marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.kec-trust-item {
    display: flex; align-items: center; gap: 9px;
    padding: 18px 32px;
    font-size: var(--kec-tb-size, 12.5px);
    font-weight: 500;
    color: var(--kec-tb-text, #6B7E84);
    border-right: 1px solid #E4EAEC;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
}
.kec-trust-icon { color: var(--kec-tb-icon, #C9A227); font-size: 1.2em; }
.kec-trust-item strong { color: var(--kec-tb-bold, #002D62); }

/* ── STATS GRID ────────────────────────────────────────────── */
.kec-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.kec-stat-item {
    padding: 40px 32px; text-align: center;
    border-right: 1px solid rgba(255,255,255,.08);
    position: relative; transition: background .3s; cursor: default;
}
.kec-stat-item:last-child { border-right: none; }
.kec-stat-item:hover { background: rgba(255,255,255,.04); }
.kec-stat-item::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 0; height: 2px;
    background: #C9A227; transition: width .4s;
}
.kec-stat-item:hover::after { width: 60%; }
.kec-stat-icon { margin-bottom: 8px; opacity: .75; }
.kec-stat-num-big {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800; line-height: 1; margin-bottom: 8px;
    display: block;
}
.kec-stat-label {
    font-weight: 500; text-transform: uppercase;
    letter-spacing: .1em; font-family: 'DM Sans', sans-serif;
}
@media (max-width: 768px) {
    .kec-stats-grid { grid-template-columns: repeat(2,1fr); }
    .kec-stat-item { border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ── VIDEO CAROUSEL ────────────────────────────────────────── */
.kec-vid-scroll-wrap {
    position: relative;
    -webkit-mask: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
    mask: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}
.kec-vid-scroll-nav {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 16px;
}
.kec-vid-nav-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--kec-arrow-bg, #fff);
    border: 2px solid var(--kec-arrow-bg, #fff);
    color: var(--kec-arrow-color, #002D62);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,.3); flex-shrink: 0; transition: all .22s;
}
.kec-vid-nav-btn:hover { transform: scale(1.08); filter: brightness(.9); }
.kec-vid-count { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 500; }
.kec-vid-scroll {
    display: flex; gap: 20px; padding: 8px 4px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -ms-overflow-style: none; scrollbar-width: none; cursor: grab;
}
.kec-vid-scroll::-webkit-scrollbar { display: none; }
.kec-vid-scroll:active { cursor: grabbing; }
.kec-vid-card {
    flex: 0 0 320px; scroll-snap-align: start;
    overflow: hidden; transition: all .3s;
}
.kec-vid-card:hover { transform: translateY(-3px); }
.kec-vid-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.kec-vid-thumb iframe { width: 100%; height: 100%; border: none; }
.kec-vid-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
}
.kec-vid-play-btn {
    width: 52px; height: 52px; background: rgba(201,162,39,.9);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 20px; color: #002D62; transition: transform .2s;
}
.kec-vid-card:hover .kec-vid-play-btn { transform: scale(1.1); }
.kec-vid-placeholder span { font-size: 12px; color: rgba(255,255,255,.4); }
.kec-vid-info { padding: 16px 18px; }
.kec-vid-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 24px;
}
.kec-vid-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--kec-dot-color, rgba(255,255,255,.2));
    border: none; cursor: pointer; transition: all .25s; padding: 0;
}
.kec-vid-dot.active {
    background: var(--kec-dot-active, #C9A227);
    width: 24px; border-radius: 4px;
}

/* ── HERO VIDEO CARD ───────────────────────────────────────── */
.kec-hero-card {
    position: relative; overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.12);
}
.kec-hero-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(201,162,39,.7), transparent);
}
.kec-hero-video-wrap { position: relative; width: 100%; padding-top: 56.25%; background: #001535; }
.kec-hero-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.kec-hero-video-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,21,53,.95), transparent);
    padding: 24px 18px 14px; z-index: 2;
    display: flex; align-items: center; gap: 10px;
}
.kec-hero-video-badge {
    font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; padding: 4px 10px;
    border-radius: 4px; white-space: nowrap; flex-shrink: 0;
}
.kec-hero-video-text { line-height: 1.4; }

/* ── PARTICLE CANVAS ───────────────────────────────────────── */
.kec-hero-canvas {
    position: absolute; inset: 0; pointer-events: none;
    z-index: 0; width: 100%; height: 100%;
}
