.project-title {
    display: flex;
    justify-content: center;
}
/* Card styles */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Status badge colors */
.status-not-started {
    background-color: #dc3545;
}

.status-in-progress {
    background-color: #fd7e14;
}

.status-on-hold {
    background-color: #6c757d;
}

.status-completed {
    background-color: #198754;
}
/* Progress bar custom colors */
.progress-0-25 {
    background-color: #dc3545;
}

.progress-25-50 {
    background-color: #fd7e14;
}

.progress-50-75 {
    background-color: #0dcaf0;
}

.progress-75-100 {
    background-color: #198754;
}

/* Modal carousel */
.carousel-item img {
    height: 300px;
    object-fit: contain;
    background-color: #f8f9fa;
}

/* content */
.project-details-modal .card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp:1; /* Show only 3 lines */
    -webkit-box-orient: vertical;
} 
.volunteer-details{
    width: auto;
    height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.project-details-modal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.project-details-modal .modal-header,
.project-details-modal .modal-footer {
    position: sticky;
    top: 0;
    z-index: 1020;
    /* higher than body content */
    background-color: #fff;
}

.project-details-modal .modal-footer {
    bottom: 0;
    top: auto;
}

.project-details-modal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
}

/* Timeline - Modified to remove dots and emphasize stage names */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 3px;
    background-color: #0d6efd;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Remove the timeline-dot class entirely since we're not using it */

.timeline-content {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stage-title {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.timeline-date {
    display: block;
    margin-bottom: 8px;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.stage-status {
    color: #495057;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0;
}

.carousel-control-next-icon:hover,
.carousel-control-prev-icon:hover {
    filter: invert(50%) sepia(100%) saturate(500%) hue-rotate(180deg); /* Blue-ish */
}


/* Animation for alerts */
.alert-fade {
    animation: fadeOut 4s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; display: none; }
}