/* AS certificate slider - Elementor Widget Styles
 * Author: Adeel Sabir
 */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

.as-cert-slider-section {
    background-color: #ffffff;
    width: 100%;
    padding: 84px 0 78px 0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Header Block */
.as-cert-slider-header {
    max-width: 1140px;
    margin: 0 auto 44px auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.as-cert-slider-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.as-cert-slider-dot {
    width: 8px;
    height: 8px;
    background-color: #ff1212;
    display: inline-block;
    flex-shrink: 0;
}

.as-cert-slider-eyebrow-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ff1212;
    line-height: 1;
}

.as-cert-slider-subtitle {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: #6b6b6b;
    max-width: 920px;
}

/* Continuous Marquee Viewport & Track */
.as-cert-slider-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

.as-cert-slider-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: asCertMarqueeScroll var(--as-cert-speed, 28s) linear infinite;
    will-change: transform;
}

.as-cert-slider-marquee.is-reverse .as-cert-slider-track {
    animation-direction: reverse;
}

.as-cert-slider-marquee.pause-on-hover:hover .as-cert-slider-track {
    animation-play-state: paused;
}

.as-cert-slider-group {
    display: flex;
    align-items: center;
    gap: var(--as-cert-gap, 16px);
    padding-right: var(--as-cert-gap, 16px);
    flex-shrink: 0;
}

/* Individual Certificate Box (200px x 142px exact match) */
.as-cert-card {
    width: 200px;
    height: 142px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    flex-shrink: 0;
    text-decoration: none !important;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.as-cert-card:hover {
    border-color: #d0d0d0;
}

.as-cert-card-img {
    max-width: 168px;
    max-height: 114px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
}

@keyframes asCertMarqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-33.333333%, 0, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .as-cert-slider-section {
        padding: 56px 0 52px 0;
    }

    .as-cert-slider-header {
        margin-bottom: 32px;
    }

    .as-cert-slider-subtitle {
        font-size: 10.5px;
    }

    .as-cert-card {
        width: 170px;
        height: 122px;
    }

    .as-cert-card-img {
        max-width: 140px;
        max-height: 96px;
    }
}
