/* ARD Project Widget Styles */
/* All styles scoped to .ard-project-section to prevent conflicts */

.ard-project-section {
    /* CSS isolation */
    isolation: isolate;
    
    width: 100%;
    overflow: hidden;
    position: relative;

    /* Animation Initial State - Handled by JS Scrubbing */
    opacity: 0;
    transform: scale(0.95);
    clip-path: inset(0 20% 0 20%);
    /* Removed transition properties to allow instant JS updates */
}

/* Removed .ard-visible rules as JS drives animation directly */

.ard-project-container {
    max-width: 1400px;
    margin: 0 auto;
}

.ard-project-header {
    margin-bottom: 60px;
    /* Align handled by Elementor */
}

.ard-project-subheading {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e0e0e0;
    margin: 0 0 10px 0;
}

.ard-project-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ard-project-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #e0e0e0;
}

.ard-project-sliders {
    position: relative;
    margin-top: 40px;
    width: 100%;
    overflow: hidden;
}

/* Swiper Overrides & Setup - Scoped to ARD Project Widget */
.ard-project-section .swiper-container {
    width: 100%;
    height: 100%;
    overflow: visible; /* Allow arrows to be outside if needed, or hidden */
    overflow: hidden;
}

.ard-project-section .swiper-wrapper {
    display: flex;
    transition-property: transform;
    transition-timing-function: linear; /* Ensure linear movement for marquee */
    box-sizing: content-box;
}

.ard-project-section .swiper-slide {
    flex-shrink: 0;
    width: auto; /* Important for slidesPerView: 'auto' */
    height: 100%;
    position: relative;
    transition-property: transform;
}

/* Navigation Arrows */
.ard-nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 10px; /* Moved closer to edges */
    pointer-events: none;
}

.ard-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    /* Glass effect */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    /* Enable clicks */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ard-arrow:hover {
    background: #fff;
    color: #001F3F;
    /* Highlight color */
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .ard-nav-arrows {
        padding: 0 10px;
    }

    .ard-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

.ard-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    color: #001F3F;
    /* Dark blue to match theme? or Black */
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    /* Re-enable clicking */
    transition: all 0.3s ease;
    outline: none;
}

.ard-arrow:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ard-nav-arrows {
        display: none;
        /* Often arrows are hidden on mobile where swipe is natural, or keep them small */
    }
}

.ard-project-card {
    width: 400px;
    /* Fixed width for card consistency */
    flex: 0 0 400px;
    height: 300px;
    position: relative;
    /* border-radius: 12px; Handled by Elementor */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ard-project-card:hover {
    transform: scale(1.05);
}

.ard-project-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ard-card-image {
    width: 100%;
    height: 100%;
}

.ard-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ard-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); Handled by control or inline fallback */
    padding: 20px;
    color: white;
}

.ard-card-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    color: #fff;
}

.ard-card-location {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .ard-project-title {
        font-size: 32px;
    }

    .ard-project-description {
        font-size: 16px;
    }

    .ard-project-card {
        flex: 0 0 300px;
        width: 300px;
        height: 250px;
    }
}

/* JS handles scroll-scrubbed animation - no CSS fallback needed */
/* The section starts with opacity:0, scale:0.95, clip-path inset 20% */
/* JS updateRowPositions() scrubs these values as user scrolls */
