/* Projects Section Styles */
.projects-section {
    background: linear-gradient(135deg, #b8d62f, #a6c42c);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.projects-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Projects Header */
.projects-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.projects-main-title {
    font-family: 'Anton', sans-serif;
    font-size: 36px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.zakat-badge {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
    border: 3px solid #ffffff;
}

.badge-text {
    font-family: 'Anton', sans-serif;
    font-size: 20px;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 2px;
}

.badge-subtext {
    font-family: 'Roboto Condensed', sans-serif;    
    font-size: 10px;
    color: #ffffff;
    letter-spacing: 1px;
}

/* Projects Description */
.projects-description {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.projects-subtitle {
    font-family: 'Anton', sans-serif;
    font-size: 24px;
    color: #2c5aa0;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.projects-text {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    color: #2c5aa0;
    line-height: 1.6;
    margin: 0;
}

/* Projects Carousel */
.projects-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    overflow: hidden;
}

.carousel-nav {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #2c5aa0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    flex-shrink: 0;
    position: relative;
    font-weight: bold;
}

.carousel-nav:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #1a4480;
}


.carousel-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.projects-cards-container {
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    max-width: 100%;
    padding: 5px 0;
}

.projects-cards {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 0;
    align-items: stretch;
    padding: 10px 5px;
}

/* Project Cards */
.project-card {
    min-width: calc(33.33% - 20px);
    max-width: 400px;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    margin: 0 10px;
    box-sizing: border-box;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

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

.project-card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 25px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    min-height: 160px;
}

.card-content.emergency {
    background: linear-gradient(135deg, #dc3545, #c82333);
    position: relative;
}

.card-content.emergency::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.card-content.zakat {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    position: relative;
}

.card-content.zakat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.card-content.charity {
    background: linear-gradient(135deg, #28a745, #20c997);
    position: relative;
}

.card-content.charity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.card-title {
    font-family: 'Anton', sans-serif;
    font-size: 20px;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    letter-spacing: 1.2px;
    line-height: 1.3;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.card-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.card-donate-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2c5aa0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.card-donate-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #1a4480;
}

.zakat-applicable {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.95;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 5px;
}

.zakat-icon {
    font-size: 14px;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    padding: 10px 0;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #2c5aa0;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .projects-section {
        padding: 40px 0;
    }
    
    .projects-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .projects-main-title {
        font-size: 28px;
        text-align: center;
    }
    
    .zakat-badge {
        width: 60px;
        height: 60px;
    }
    
    .badge-text {
        font-size: 16px;
    }
    
    .badge-subtext {
        font-size: 8px;
    }
    
    .projects-subtitle {
        font-size: 20px;
    }
    
    .projects-text {
        font-size: 14px;
    }
    
    /* Tablet Carousel Styles */
    .projects-carousel {
        gap: 15px;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .project-card {
        min-width: calc(50% - 15px);
        max-width: none;
        margin: 0 7.5px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        min-height: 150px;
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .card-donate-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .zakat-applicable {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .zakat-icon {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .projects-main-title {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .projects-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    /* Mobile Carousel Styles */
    .projects-carousel {
        gap: 10px;
        padding: 0 10px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .projects-cards-container {
        margin: 0 50px;
    }
    
    .project-card {
        min-width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 20px 15px;
        min-height: 140px;
    }
    
    .card-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .card-donate-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .zakat-applicable {
        font-size: 10px;
        padding: 5px 8px;
        margin-top: 5px;
    }
    
    .zakat-icon {
        font-size: 11px;
    }
    
    .carousel-dots {
        margin-top: 15px;
        display: flex;
        justify-content: center;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}
