/* Main Section */
.ard-dev-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Background and padding handled by Elementor controls */
}

.ard-dev-container {
    width: 100%;
    margin: 0 auto;
    /* Max-width handled by Elementor controls, default 1200px */
}

/* Header */
.ard-dev-header {
    margin-bottom: 60px;
    text-align: center; /* Default center */
    position: relative;
    z-index: 2;
}

.ard-dev-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #e5ba38;
    margin-bottom: 15px;
}

.ard-dev-title {
    margin: 0 0 20px;
    line-height: 1.1;
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.ard-dev-description {
    margin: 0 auto;
    line-height: 1.6;
    max-width: 700px;
    color: #9ca3af;
    font-size: 1.125rem;
}

/* Layout: Grid */
.ard-dev-layout-grid {
    display: grid;
    /* Columns handled by inline styles/controls */
    gap: 30px;
}

/* Layout: Masonry */
.ard-dev-layout-masonry {
    column-count: 3; /* Default, overridden by JS/Inline */
    column-gap: 30px;
}

.ard-dev-layout-masonry .ard-dev-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 30px;
    break-inside: avoid;
}

/* Layout: Metro / Highlight */
.ard-dev-layout-metro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    grid-auto-rows: minmax(300px, auto);
}

/* Target the wrapper div, not the card directly */
.ard-dev-layout-metro > div:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.ard-dev-layout-metro > div:first-child .ard-dev-image-wrap {
    height: 100%;
    min-height: 600px; /* Ensure it's tall */
    padding-top: 0 !important; /* Override aspect ratio padding */
}

.ard-dev-layout-metro > div:first-child .ard-dev-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    padding: 50px;
    z-index: 10;
}

.ard-dev-layout-metro > div:first-child .ard-dev-card-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.ard-dev-layout-metro > div:first-child .ard-dev-card-desc {
    font-size: 1.125rem;
    max-width: 80%;
    color: #e5e7eb;
}

@media (max-width: 1024px) {
    .ard-dev-layout-metro {
        grid-template-columns: repeat(2, 1fr);
    }
    .ard-dev-layout-metro > div:first-child {
        grid-column: span 2;
        grid-row: auto;
    }
    .ard-dev-layout-metro > div:first-child .ard-dev-image-wrap {
        min-height: 400px;
    }
}

@media (max-width: 767px) {
    .ard-dev-layout-metro {
        grid-template-columns: 1fr;
    }
    .ard-dev-layout-metro > div:first-child {
        grid-column: span 1;
    }
}

/* Card Styles - Copied from Ventures */
.ard-dev-card {
    background-color: #2A2A2A;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    border: none;
}

.ard-dev-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(229, 186, 56, 0.15);
}

/* Image Wrapper */
.ard-dev-image-wrap {
    position: relative;
    width: 100%;
    /* padding-top handled inline by PHP based on aspect ratio */
    overflow: hidden;
    background-color: #1a1a1a;
}

.ard-dev-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ard-dev-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.ard-dev-card:hover .ard-dev-image-wrap img {
    transform: scale(1.05);
}

/* Badge */
.ard-dev-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #e5ba38;
    color: #1A1A1A;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
}

/* Content */
.ard-dev-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ard-dev-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0;
    line-height: 1.3;
}

.ard-dev-card-location {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #9ca3af;
    display: block;
}

.ard-dev-card-desc {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #d1d5db;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA Button */
.ard-dev-cta {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #e5ba38;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ard-dev-cta-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.ard-dev-card:hover .ard-dev-cta {
    color: #FFFFFF;
}

.ard-dev-card:hover .ard-dev-cta-icon {
    transform: translateX(4px);
}

/* Slider Specifics */
.ard-dev-slider-container {
    position: relative;
    padding-bottom: 60px; /* Space for pagination */
    overflow: hidden;
}

.ard-dev-wrapper {
    position: relative;
}

/* Navigation Arrows */
.ard-dev-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 50;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
}

.ard-dev-nav-btn i {
    line-height: 1;
}

.ard-dev-nav-btn:hover {
    background-color: #C5A059;
    border-color: #C5A059;
    color: #FFFFFF;
}

.ard-dev-prev {
    left: -60px; /* Outside container */
}

.ard-dev-next {
    right: -60px; /* Outside container */
}

/* Pagination Dots */
.ard-dev-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.ard-dev-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #4b5563;
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
}

.ard-dev-pagination .swiper-pagination-bullet-active {
    background-color: #C5A059;
    width: 30px;
    border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 1300px) {
    .ard-dev-prev { left: 10px; }
    .ard-dev-next { right: 10px; }
}
