/* ACSIC Video Gallery Widget
 * All selectors are scoped to .acsic-video-widget.
 * This prevents the widget from changing Elementor or other site elements.
 */

.acsic-video-widget {
    --navy: #071426;
    --navy-light: #0d2340;
    --blue: #174d91;
    --blue-bright: #168ad0;
    --yellow: #ffbf00;
    --yellow-hover: #ffd04a;
    --white: #ffffff;
    --off-white: #f7f9fb;
    --text: #182438;
    --muted: #657084;
    --border: rgba(7, 20, 38, 0.10);

    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--off-white);
    color: var(--text);
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow: hidden;
}

.acsic-video-widget *,
.acsic-video-widget *::before,
.acsic-video-widget *::after {
    box-sizing: border-box;
}

.acsic-video-widget h1,
.acsic-video-widget h2,
.acsic-video-widget h3,
.acsic-video-widget p {
    margin-top: 0;
}

.acsic-video-widget img {
    max-width: 100%;
}

.acsic-video-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 95px 25px 85px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(25, 107, 175, 0.40), transparent 43%),
        linear-gradient(135deg, #030c18 0%, #071426 50%, #0a1d34 100%);
}

.acsic-video-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .45;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 85px 85px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent);
    pointer-events: none;
}

.acsic-video-hero::after {
    content: "";
    position: absolute;
    width: 900px;
    height: 900px;
    top: -620px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(255,191,0,.13);
    box-shadow:
        0 0 0 75px rgba(255,255,255,.018),
        0 0 0 150px rgba(255,255,255,.014),
        0 0 0 225px rgba(255,255,255,.010);
    pointer-events: none;
}

.acsic-video-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    text-align: center;
}

.acsic-video-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 21px;
    color: var(--yellow);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.acsic-video-eyebrow::before,
.acsic-video-eyebrow::after {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--yellow);
}

.acsic-video-title {
    margin: 0 !important;
    color: #fff !important;
    font-family: "Bebas Neue", "Arial Narrow", sans-serif !important;
    font-size: clamp(58px, 8vw, 108px) !important;
    font-weight: 400 !important;
    line-height: .90 !important;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.acsic-video-title span {
    color: var(--yellow);
}

.acsic-video-description {
    max-width: 760px;
    margin: 25px auto 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(12px, 1.4vw, 15px);
    font-weight: 400;
    line-height: 1.8;
}

.acsic-video-divider {
    width: 65px;
    height: 3px;
    margin: 27px auto 0;
    border-radius: 10px;
    background: var(--yellow);
}

.acsic-video-main {
    width: min(1180px, calc(100% - 50px));
    margin: 0 auto;
    padding: 80px 0 95px;
}

.acsic-video-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 35px;
    margin-bottom: 40px;
}

.acsic-video-section-header-left {
    max-width: 700px;
}

.acsic-video-label {
    margin-bottom: 8px;
    color: var(--blue-bright);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.acsic-video-section-title {
    margin: 0 !important;
    color: var(--navy) !important;
    font-family: "Bebas Neue", "Arial Narrow", sans-serif !important;
    font-size: clamp(48px, 5vw, 70px) !important;
    font-weight: 400 !important;
    line-height: .95 !important;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.acsic-video-section-description {
    max-width: 680px;
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.acsic-video-count {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    color: var(--navy);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    box-shadow: 0 5px 18px rgba(7,20,38,.05);
}

.acsic-video-count strong {
    color: var(--yellow);
    font-size: 18px;
    font-weight: 700;
}

.acsic-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.acsic-video-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 5px 20px rgba(7,20,38,.055);
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.acsic-video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,191,0,.55);
    box-shadow: 0 17px 40px rgba(7,20,38,.12);
}

.acsic-video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--navy);
}

.acsic-video-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease, filter .45s ease;
}

.acsic-video-card:hover .acsic-video-thumbnail img {
    transform: scale(1.055);
    filter: brightness(.72);
}

.acsic-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7,20,38,.05), rgba(7,20,38,.68));
}

.acsic-video-number {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 5px 9px;
    background: rgba(7,20,38,.82);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 3px;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.acsic-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 61px;
    height: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 8px 28px rgba(0,0,0,.30);
    transition: transform .3s ease, background .3s ease;
}

.acsic-video-play::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid var(--navy);
}

.acsic-video-card:hover .acsic-video-play {
    transform: translate(-50%, -50%) scale(1.12);
    background: #fff;
}

.acsic-video-content {
    padding: 18px 20px 21px;
}

.acsic-video-content h3 {
    margin: 0 !important;
    color: var(--navy) !important;
    font-family: "Poppins", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

.acsic-video-content p {
    margin: 6px 0 0;
    color: var(--blue-bright);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.acsic-video-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transition: width .35s ease;
}

.acsic-video-card:hover::after {
    width: 100%;
}

.acsic-video-cta {
    position: relative;
    margin-top: 65px;
    padding: 43px 48px;
    overflow: hidden;
    border-radius: 7px;
    background:
        radial-gradient(circle at 90% 50%, rgba(20,137,208,.38), transparent 35%),
        linear-gradient(110deg, #071426, #102d50);
    box-shadow: 0 15px 40px rgba(7,20,38,.13);
}

.acsic-video-cta::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    right: -220px;
    top: -180px;
    border: 1px solid rgba(255,191,0,.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255,255,255,.015),
        0 0 0 110px rgba(255,255,255,.01);
}

.acsic-video-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 730px;
}

.acsic-video-cta-label {
    margin-bottom: 8px;
    color: var(--yellow);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.acsic-video-cta h2 {
    margin: 0 !important;
    color: #fff !important;
    font-family: "Bebas Neue", "Arial Narrow", sans-serif !important;
    font-size: clamp(35px, 4vw, 52px) !important;
    font-weight: 400 !important;
    line-height: .95 !important;
    text-transform: uppercase;
}

.acsic-video-cta p {
    max-width: 650px;
    margin: 13px 0 0;
    color: rgba(255,255,255,.70);
    font-size: 12px;
    line-height: 1.75;
}

.acsic-video-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(2,8,18,.94);
    backdrop-filter: blur(8px);
}

.acsic-video-modal.active {
    display: flex;
}

.acsic-video-modal-inner {
    position: relative;
    width: min(1100px, 100%);
    animation: acsicModalOpen .3s ease;
}

@keyframes acsicModalOpen {
    from { opacity: 0; transform: scale(.95); }
    to { opacity: 1; transform: scale(1); }
}

.acsic-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
    box-shadow: 0 25px 80px rgba(0,0,0,.55);
}

.acsic-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.acsic-video-close {
    position: absolute;
    right: 0;
    top: -54px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.acsic-video-close:hover {
    background: var(--yellow);
    color: var(--navy);
    transform: rotate(90deg);
}

body.acsic-video-modal-open {
    overflow: hidden;
}

.acsic-video-card:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.acsic-video-close:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .acsic-video-hero {
        min-height: 400px;
        padding: 85px 25px 75px;
    }

    .acsic-video-main {
        width: min(920px, calc(100% - 40px));
        padding: 65px 0 80px;
    }

    .acsic-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 680px) {
    .acsic-video-hero {
        min-height: 365px;
        padding: 70px 18px 65px;
    }

    .acsic-video-eyebrow {
        gap: 8px;
        margin-bottom: 18px;
        font-size: 9px;
        letter-spacing: 1.6px;
    }

    .acsic-video-eyebrow::before,
    .acsic-video-eyebrow::after {
        width: 17px;
    }

    .acsic-video-title {
        font-size: clamp(52px, 15vw, 75px) !important;
        line-height: .88 !important;
    }

    .acsic-video-description {
        margin-top: 20px;
        font-size: 11px;
        line-height: 1.7;
    }

    .acsic-video-main {
        width: calc(100% - 30px);
        padding: 55px 0 70px;
    }

    .acsic-video-section-header {
        display: block;
        margin-bottom: 30px;
    }

    .acsic-video-section-title {
        font-size: 52px !important;
    }

    .acsic-video-section-description {
        font-size: 11px;
        line-height: 1.75;
    }

    .acsic-video-count {
        display: inline-flex;
        margin-top: 18px;
    }

    .acsic-video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .acsic-video-content {
        padding: 16px 17px 19px;
    }

    .acsic-video-content h3 {
        font-size: 13px !important;
    }

    .acsic-video-cta {
        margin-top: 45px;
        padding: 32px 25px;
    }

    .acsic-video-cta h2 {
        font-size: 38px !important;
    }

    .acsic-video-cta p {
        font-size: 11px;
    }

    .acsic-video-modal {
        padding: 18px;
    }

    .acsic-video-close {
        top: -50px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 390px) {
    .acsic-video-title {
        font-size: 50px !important;
    }

    .acsic-video-section-title {
        font-size: 47px !important;
    }

    .acsic-video-hero {
        min-height: 350px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acsic-video-widget *,
    .acsic-video-widget *::before,
    .acsic-video-widget *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
