.aarc-slider {
    position: relative;
    width: 100%;
    aspect-ratio: var(--slider-aspect, 21 / 9); /* Default is 16:9, override via CSS var if needed */
    overflow: hidden;
}

.aarc-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.aarc-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aarc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.aarc-overlay {
    position: absolute;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
}

.aarc-overlay h2 {
    font-size: 2.75rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.aarc-overlay p {
    font-size: 1.5rem;
}

.aarc-slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s;
    z-index: 2;
}

.aarc-slider button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.aarc-prev {
    left: 10px;
}

.aarc-next {
    right: 10px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .aarc-overlay h2 {
        font-size: 1.5rem;
    }
    .aarc-overlay p {
        font-size: 1rem;
    }
    .aarc-slider button {
        font-size: 18px;
        padding: 8px 12px;
    }
}
