/* TehnoPlus Video Slider — Frontend Styles */

.tpm-slider-outer {
    overflow: hidden;
    width: 100%;
    box-shadow: 0 8px 32px rgba(10, 22, 60, 0.18);
}

.tpm-slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a1628;
    font-family: 'Segoe UI', Arial, sans-serif;
    --tpm-accent: #2E6FD8;
}

/* ── VIDEO / IMAGE LAYERS ── */
.tpm-video-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.85s ease;
}
.tpm-video-layer.active { opacity: 1; }

.tpm-video-layer video,
.tpm-video-layer img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    pointer-events: none;
}

/* ── OVERLAY ── */
.tpm-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10, 22, 60, 0.82) 0%,
        rgba(10, 22, 60, 0.55) 45%,
        rgba(10, 22, 60, 0.10) 100%
    );
    z-index: 3;
}

/* ── PROGRESS BAR ── */
.tpm-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--tpm-accent);
    z-index: 20;
    transition: width 0.12s linear;
}

/* ── TEXT SLIDES ── */
.tpm-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 52px;
    z-index: 8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.tpm-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.tpm-content.exit {
    opacity: 0;
    transform: translateY(-16px);
}

/* ── BADGE ── */
.tpm-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border: 1px solid rgba(46, 111, 216, 0.55);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #7db3f5;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.tpm-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tpm-accent);
    box-shadow: 0 0 8px var(--tpm-accent);
    animation: tpm-pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes tpm-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.65); }
}

/* ── TITLE ── */
.tpm-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    margin: 0 0 12px;
    max-width: 560px;
    letter-spacing: -0.5px;
}
.tpm-title strong {
    font-weight: 800;
    color: #7db3f5;
}

/* ── DESC ── */
.tpm-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.75;
    max-width: 460px;
    margin: 0 0 16px;
    font-weight: 400;
}

/* ── STATS / BULLETS ── */
.tpm-stats {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 0;
}

.tpm-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 24px;
    margin-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.tpm-stat:last-child,
.tpm-stat.tpm-stat--last {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

.tpm-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(46, 111, 216, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7db3f5;
    font-size: 13px;
}
.tpm-stat-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(190deg);
}
.tpm-stat-icon svg,
.tpm-stat-icon i {
    width: 14px;
    height: 14px;
    font-size: 13px;
    color: #7db3f5;
}

.tpm-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}
.tpm-stat-num.tpm-stat-num--sm {
    font-size: 13px;
    line-height: 1.3;
}
.tpm-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

/* ── CTA BUTTON ── */
.tpm-cta,
.tpm-cta:visited {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 30px;
    background: var(--tpm-accent);
    border: none;
    border-radius: 50px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tpm-cta:hover,
.tpm-cta:focus,
.tpm-cta:active {
    background: #1a54b8;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    transform: translateX(3px);
    box-shadow: 0 4px 20px rgba(46, 111, 216, 0.4);
    text-decoration: none !important;
}
.tpm-cta * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}
.tpm-cta .arr {
    font-size: 15px;
    transition: transform 0.2s ease;
}
.tpm-cta:hover .arr { transform: translateX(4px); }

/* ── CONTROLS ── */
.tpm-controls {
    position: absolute;
    bottom: 44px;
    right: 44px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.tpm-nav { display: flex; gap: 8px; }

.tpm-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(10, 22, 60, 0.55);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    backdrop-filter: blur(4px);
    line-height: 1;
    padding: 0;
}
.tpm-nav-btn:hover {
    border-color: var(--tpm-accent);
    color: #7db3f5;
}

.tpm-dots { display: flex; gap: 7px; align-items: center; }

.tpm-dot { cursor: pointer; padding: 4px 0; }

.tpm-dot-inner {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.30);
    transition: all 0.35s ease;
}
.tpm-dot.active .tpm-dot-inner {
    width: 22px;
    background: var(--tpm-accent);
    box-shadow: 0 0 8px rgba(46, 111, 216, 0.6);
}

/* ── COUNTER ── */
.tpm-counter {
    position: absolute;
    top: 28px;
    right: 44px;
    z-index: 15;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 2px;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.tpm-counter span { color: var(--tpm-accent); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .tpm-title { font-size: 30px; }
}
@media (max-width: 768px) {
    .tpm-slider-outer { border-radius: 12px !important; }
    .tpm-slider-wrap  { height: 420px !important; }
    .tpm-content      { padding: 24px 22px; }
    .tpm-title        { font-size: 22px; max-width: 100%; }
    .tpm-desc         { font-size: 13px; max-width: 100%; }
    .tpm-stats        { flex-wrap: wrap; gap: 10px; }
    .tpm-stat         { border-right: none; padding-right: 0; margin-right: 0; }
    .tpm-controls     { bottom: 20px; right: 18px; }
    .tpm-counter      { right: 18px; top: 16px; }
}
@media (max-width: 480px) {
    .tpm-title   { font-size: 18px; }
    .tpm-content { padding: 20px 18px; }
    .tpm-cta     { padding: 11px 22px; font-size: 13px; }
}
