/* Success Stories Listing Styles */

.success-stories-listing-section {
    padding: 45px 0;
    background: #f8f9fa;
}

.dark-theme .success-stories-listing-section {
    background: #1a1a1a;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.story-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.dark-theme .story-card {
    background: #2d2d2d;
}

.story-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 75, 107, 0.1), rgba(81, 177, 70, 0.1));
}

.story-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-card-image img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #212529;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
    z-index: 2;
}

.featured-badge i {
    font-size: 0.7rem;
}

.story-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.story-location,
.story-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666666;
    font-size: 0.85rem;
    font-weight: 500;
}

.story-location i,
.story-date i {
    color: #51b146;
    font-size: 0.7rem;
}

.story-card-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.story-card-title a {
    color: #004b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dark-theme .story-card-title a {
    color: #eeeff1;
}

.story-card-title a:hover {
    color: #51b146;
}

.story-card-excerpt {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.dark-theme .story-card-excerpt {
    color: #cccccc;
}

.story-impact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(81, 177, 70, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #51b146;
    font-weight: 500;
}

.story-impact i {
    color: #51b146;
    font-size: 0.8rem;
}

.dark-theme .story-impact {
    background: rgba(81, 177, 70, 0.1);
}

.story-card-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.4);
}

.read-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Dark Theme */
.dark-theme .story-card-image {
    background: linear-gradient(135deg, rgba(0, 75, 107, 0.1), rgba(81, 177, 70, 0.1));
}

.dark-theme .story-location,
.dark-theme .story-date {
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .stories-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 767.98px) {
    .success-stories-listing-section {
        padding: 40px 0;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .story-card-content {
        padding: 20px;
    }
    
    .story-card-image {
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .story-card-title {
        font-size: 1.1rem;
    }
    
    .story-card-excerpt {
        font-size: 0.9rem;
    }
}

