/* Initiatives Frontend Styles */

/* Carousel Styles */
.initiative-carousel-container {
    position: relative;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.initiative-carousel {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    font-size: 14px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active,
.carousel-indicator:hover {
    background: white;
}

.initiative-single-image {
    margin: 20px 0;
    text-align: center;
}

.initiative-featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Donation Bar Styles */
.initiative-donation-section {
    font-family: "Nunito", Sans-serif;
    background: transparent;
    padding: 0;
    margin: 30px 0;
}

/* Progress Bar - Top of section */
.donation-progress-container {
    margin-bottom: 15px;
}

.donation-progress-bar {
    background: #e0e0e0;
    border-radius: 0;
    height: 9px;
    overflow: hidden;
    position: relative;
}

.donation-progress-fill {
    background: #ADFF02;
    height: 100%;
    border-radius: 0;
    position: relative;
    transition: width 1s ease-in-out;
    min-width: 0;
}

/* Text row - 15px below progress bar */
.donation-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.donation-percentage-display {
    font-size: 18px;
    font-weight: bold;
    color: #652D90;
    font-family: "Nunito", Sans-serif;
    line-height: 1;
}

.donation-goal {
    margin: 0;
}

.goal-label {
    font-size: 18px;
    color: #969696;
    font-weight: bold;
    font-family: "Nunito", Sans-serif;
}

/* Separator line - 25px below text */
.donation-separator {
    width: 100%;
    height: 1px;
    background: #E2E2E2;
    margin-bottom: 25px;
}

/* Stats row - 25px below separator */
.donation-stats {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 110px;
    margin: 0;
}

.donation-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.donation-count,
.donation-amount {
    font-size: 24px;
    font-weight: bold;
    color: #652D90;
    line-height: 1;
    font-family: "Nunito", Sans-serif;
    margin-bottom: 0;
}

.donation-label {
    font-size: 16px;
    color: #A3A3A3;
    font-weight: bold;
    font-family: "Nunito", Sans-serif;
    margin-top: 5px;
    text-transform: none;
    letter-spacing: 0;
}

/* Remove old styles that are no longer needed */
.donation-overview {
    margin-bottom: 20px;
}

.donation-percentage {
    display: none; /* Hide old percentage styling */
}

.progress-text {
    display: none; /* Hide progress text inside bar */
}

/* Initiative Carousel - Custom styling for Elementor Image Carousel */
.initcarousel {
    width: 100% !important;
    height: 470px !important;
    overflow: hidden;
}

.initcarousel .elementor-carousel-image,
.initcarousel .elementor-image-carousel-wrapper img,
.initcarousel .swiper-slide img,
.initcarousel .elementor-carousel img {
    width: 100% !important;
    height: 470px !important;
    object-fit: cover !important;
    object-position: center !important;
}

.initcarousel .elementor-image-carousel-wrapper,
.initcarousel .swiper-container,
.initcarousel .swiper-wrapper,
.initcarousel .swiper-slide {
    height: 470px !important;
}

/* Ensure carousel container maintains height */
.initcarousel .elementor-widget-container {
    height: 470px !important;
}

/* Navigation buttons positioning for custom height */
.initcarousel .elementor-swiper-button {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Pagination dots positioning */
.initcarousel .swiper-pagination {
    bottom: 20px !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .initcarousel,
    .initcarousel .elementor-carousel-image,
    .initcarousel .elementor-image-carousel-wrapper img,
    .initcarousel .swiper-slide img,
    .initcarousel .elementor-carousel img,
    .initcarousel .elementor-image-carousel-wrapper,
    .initcarousel .swiper-container,
    .initcarousel .swiper-wrapper,
    .initcarousel .swiper-slide,
    .initcarousel .elementor-widget-container {
        height: 250px !important;
    }
}

.donation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid;
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #e91e63;
    color: white;
    border-color: #e91e63;
}

.btn-primary:hover {
    background: #c2185b;
    border-color: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-secondary {
    background: #6c63ff;
    color: white;
    border-color: #6c63ff;
}

.btn-secondary:hover {
    background: #5a52ff;
    border-color: #5a52ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: #e91e63;
    border-color: #e91e63;
}

.btn-outline:hover {
    background: #e91e63;
    color: white;
}

/* Updates Accordion Styles - Shortcode Only */
.shortcode-updates .accordion-item {
    margin-bottom: 15px;
}

.shortcode-updates .accordion-header {
    margin: 0;
}

.shortcode-updates .accordion-button {
    width: 100%;
    height: 60px;
    padding: 0 25px;
    background: #D9D9D9;
    border: none;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background-color 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shortcode-updates .accordion-button:hover {
    background: #bfbfbf;
}

.shortcode-updates .accordion-button:focus {
    outline: none;
    box-shadow: none;
}

.shortcode-updates .update-date {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FF1094;
    cursor: pointer;
}

.shortcode-updates .accordion-icon {
    font-size: 24px;
    font-weight: 300;
    color: #FF1094;
    transition: transform 0.4s ease;
}

.shortcode-updates .accordion-button.collapsed .accordion-icon {
    transform: rotate(0deg);
}

.shortcode-updates .accordion-button:not(.collapsed) .accordion-icon {
    transform: rotate(135deg);
}

.shortcode-updates .accordion-collapse {
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.shortcode-updates .accordion-collapse:not(.show) {
    max-height: 0;
}

.shortcode-updates .accordion-collapse.show {
    max-height: 500px;
}

.shortcode-updates .accordion-body {
    padding: 25px;
    background: transparent;
    line-height: 1.6;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}

/* Related Initiatives Styles */
.related-initiatives-section {
    margin: 50px 0;
    padding: 40px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.related-title {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 300;
}

.related-initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-initiative-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-initiative-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.initiative-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-initiative-card:hover .initiative-card-image {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.card-content {
    padding: 20px;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #e91e63;
}

.card-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 14px;
}

.card-categories {
    margin-bottom: 15px;
}

.category-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.card-actions {
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-image {
        height: 250px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .donation-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .donation-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .related-initiatives-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .related-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .initiative-donation-section {
        padding: 20px 15px;
    }
    
    .donation-percentage,
    .donation-count,
    .donation-amount {
        font-size: 1.5rem;
    }
    
    .accordion-button {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .accordion-body {
        padding: 20px;
    }
}