/* Variables based on design reference */
:root {
    --dja-color-primary: #3d0c35; /* Dark Purple for buttons */
    --dja-color-secondary: #4a1542; /* Slightly lighter purple for text */
    --dja-color-accent: #ffb703; /* Yellow for progress bar and badges */
    --dja-color-text: #6b7280; /* Gray for subtle text */
    --dja-color-bg: #ffffff;
    --dja-color-progress-bg: #f3f4f6;
    --dja-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.dja-carousel-wrapper {
    width: 100%;
    margin: 0 auto;
    font-family: var(--dja-font-family);
    position: relative;
    padding-bottom: 40px; 
}

/* Header & Navigation Area */
.dja-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 5px;
}

.dja-carousel-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--dja-color-secondary);
}

.dja-carousel-nav {
    display: flex;
    gap: 12px;
    position: relative;
}

/* Custom Nav Buttons inside header */
.dja-carousel-wrapper .swiper-button-next.dja-nav-next,
.dja-carousel-wrapper .swiper-button-prev.dja-nav-prev {
    position: static;
    margin: 0;
    background-color: var(--dja-color-bg);
    border: 2px solid var(--dja-color-primary);
    color: var(--dja-color-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: none;
}

.dja-carousel-wrapper .swiper-button-next.dja-nav-next:after,
.dja-carousel-wrapper .swiper-button-prev.dja-nav-prev:after {
    font-size: 16px;
    font-weight: 900;
}

.dja-carousel-wrapper .swiper-button-next.dja-nav-next:hover,
.dja-carousel-wrapper .swiper-button-prev.dja-nav-prev:hover {
    background-color: var(--dja-color-primary);
    color: var(--dja-color-bg);
}

/* Add padding to the swiper container so card shadows are not clipped */
.dja-campaign-swiper {
    padding: 20px 15px 40px 15px !important;
    margin: -20px -15px -40px -15px !important;
}

/* Card Styling */
.dja-card {
    background-color: var(--dja-color-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0; /* Slight border to help definition if background is white */
}

.dja-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Card Image Area */
.dja-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.dja-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dja-card:hover .dja-card-image img {
    transform: scale(1.05);
}

.dja-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--dja-color-accent);
    color: #111;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dja-card-location {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

/* Card Content Area */
.dja-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dja-card-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--dja-color-secondary);
}

.dja-card-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dja-card-progress-wrapper {
    margin-top: auto;
}

.dja-card-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.dja-card-amount {
    font-size: 24px;
    font-weight: 900;
    color: var(--dja-color-primary);
}

.dja-card-percentage {
    font-size: 16px;
    font-weight: 800;
    color: #e85d04; 
}

.dja-card-progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--dja-color-progress-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.dja-card-progress-fill {
    height: 100%;
    background-color: var(--dja-color-accent);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dja-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--dja-color-text);
    font-weight: 600;
    margin-bottom: 24px;
}

/* Button */
.dja-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--dja-color-primary);
    color: white;
    text-decoration: none;
    padding: 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.dja-card-button:hover {
    background-color: #2b0825;
    color: white;
    box-shadow: 0 5px 15px rgba(61, 12, 53, 0.3);
}

.dja-carousel-wrapper .swiper-pagination {
    bottom: -35px;
}

.dja-carousel-wrapper .swiper-pagination-bullet {
    background-color: #d1d5db;
    opacity: 1;
    width: 10px;
    height: 10px;
}

.dja-carousel-wrapper .swiper-pagination-bullet-active {
    background-color: var(--dja-color-primary);
    width: 24px;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dja-carousel-header {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .dja-carousel-title {
        font-size: 20px; /* Reduce title size to fit arrows */
    }

    .dja-carousel-wrapper .swiper-button-next.dja-nav-next,
    .dja-carousel-wrapper .swiper-button-prev.dja-nav-prev {
        width: 36px;
        height: 36px;
    }

    .dja-carousel-wrapper .swiper-button-next.dja-nav-next:after,
    .dja-carousel-wrapper .swiper-button-prev.dja-nav-prev:after {
        font-size: 14px;
    }

    .dja-card-image {
        height: 180px;
    }
    
    .dja-card-content {
        padding: 16px;
    }
    
    .dja-card-title {
        font-size: 16px;
        margin: 0 0 12px 0;
    }
    
    .dja-card-amount {
        font-size: 20px;
    }
    
    .dja-card-percentage {
        font-size: 14px;
    }
    
    .dja-card-stats {
        font-size: 11px;
        margin-bottom: 16px;
    }
    
    .dja-card-button {
        font-size: 14px;
        padding: 12px;
    }
}
