/* CSS-only image rotator — replaces JetElements Slider Pro for performance */

/* Hide original Jet Slider section wrapper */
.elementor-element-4eb5d7d { display: none !important; }

/* ── Rotator container ── */
.ae-rotator {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    max-height: 730px;
    overflow: hidden;
    background: #0d1117;
    border-radius: 8px;
}
.ae-rotator-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: ae-rot 15s infinite;
}
/* First slide is relative to give container height, and visible immediately */
.ae-rotator-slide:nth-child(1) { position: relative; animation-delay: 0s; opacity: 1; }
.ae-rotator-slide:nth-child(2) { animation-delay: 5s; }
.ae-rotator-slide:nth-child(3) { animation-delay: 10s; }

@keyframes ae-rot {
    0%      { opacity: 1; }
    26.67%  { opacity: 1; }
    33.33%  { opacity: 0; }
    100%    { opacity: 0; }
}

/* ── Slide image ── */
.ae-rotator-slide img {
    display: block;
    width: 100%;
    height: 730px;
    object-fit: cover;
    object-position: center;
}

/* ── Overlay ── */
.ae-rotator-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    color: #fff;
}
.ae-rotator-eyebrow {
    font-family: 'PT Sans Narrow', 'Arial Narrow', sans-serif;
    font-size: 53px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1.2;
    margin: 0 0 4px;
}
.ae-rotator-title {
    font-family: 'Alfa Slab One', 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1;
    margin: 0 0 12px;
}
.ae-rotator-desc {
    font-family: 'PT Sans Narrow', 'Arial Narrow', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 30px;
    max-width: 600px;
}
.ae-rotator-btn {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: #00583d;
    padding: 0 35px;
    line-height: 60px;
    text-decoration: none;
    transition: background 0.2s;
    align-self: flex-start;
}
.ae-rotator-btn:hover {
    background: #000;
    color: #fff;
}

/* ── Slide indicators ── */
.ae-rotator-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}
.ae-rotator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    animation: ae-dot 15s infinite;
}
.ae-rotator-dot:nth-child(1) { animation-delay: 0s; background: rgba(255,255,255,0.9); }
.ae-rotator-dot:nth-child(2) { animation-delay: 5s; }
.ae-rotator-dot:nth-child(3) { animation-delay: 10s; }

@keyframes ae-dot {
    0%      { background: rgba(255,255,255,0.9); }
    26.67%  { background: rgba(255,255,255,0.9); }
    33.33%  { background: rgba(255,255,255,0.4); }
    100%    { background: rgba(255,255,255,0.4); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .ae-rotator-slide img { height: 400px; }
    .ae-rotator { max-height: 400px; }
    .ae-rotator-overlay { padding: 24px; }
    .ae-rotator-eyebrow { font-size: 28px; }
    .ae-rotator-title { font-size: clamp(24px, 8vw, 42px); letter-spacing: 1px; }
    .ae-rotator-desc { font-size: 16px; margin-bottom: 20px; }
    .ae-rotator-btn { padding: 0 24px; line-height: 48px; font-size: 13px; }
}
