/* Success Stories Page Specific Styles */
.success-stories-hero {
    background: linear-gradient(rgba(0, 109, 119, 0.8), rgba(0, 109, 119, 0.8)), url('../images/success-stories-hero.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.success-stories-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.success-stories-hero .lead {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-breadcrumb {
    margin-top: 30px;
}

.hero-breadcrumb .breadcrumb {
    background-color: transparent;
    justify-content: center;
    padding: 0;
}

.hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.hero-breadcrumb .breadcrumb-item.active {
    color: #fff;
    font-weight: 500;
}

.hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Impact Summary Section */
.impact-summary {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 0;
}

.impact-stat {
    text-align: center;
    padding: 30px 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.impact-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.impact-stat:hover .stat-icon {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.impact-stat:hover .stat-number {
    color: var(--secondary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 0;
}

/* Stories Filter Section */
.stories-filter {
    padding: 40px 0;
    background-color: #fff;
}

.filter-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h3 {
    font-size: 20px;
    margin-bottom: 0;
    color: var(--primary-color);
}

.btn-filter-toggle {
    display: none;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.btn-group-toggle .btn-pillar {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid #ddd;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    padding: 5px 10px;
}

.btn-group-toggle .btn-pillar.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Featured Stories Section */
.featured-stories {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.featured-story-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.featured-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.main-featured {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-featured:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.story-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.main-featured .story-image {
    height: 350px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.story-content {
    padding: 25px;
}

.main-featured .story-content {
    padding: 30px;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.pillar-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pillar-badge.social-inclusion {
    background-color: rgba(234, 67, 53, 0.1);
    color: #EA4335;
}

.pillar-badge.mentorship {
    background-color: rgba(66, 133, 244, 0.1);
    color: #4285F4;
}

.pillar-badge.empowerment {
    background-color: rgba(251, 188, 5, 0.1);
    color: #FBBC05;
}

.pillar-badge.institutional {
    background-color: rgba(52, 168, 83, 0.1);
    color: #34A853;
}

.story-date, .story-location {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.story-date i, .story-location i {
    margin-right: 5px;
    font-size: 14px;
}

.featured-story-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.secondary-featured h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.featured-story-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-read-more {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

/* All Stories Section */
.all-stories {
    padding: 80px 0;
    background-color: #fff;
}

.story-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.story-card .story-image {
    height: 200px;
}

.story-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.story-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonial-slider {
    margin: 0 -15px;
}

.testimonial-item {
    padding: 0 15px;
}

.testimonial-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    height: 100%;
}

.quote-icon {
    color: var(--secondary-color);
    font-size: 24px;
    opacity: 0.3;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.author-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Pagination */
.pagination {
    margin-top: 40px;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #ddd;
    margin: 0 5px;
    border-radius: 4px !important;
}

.page-link:hover {
    color: var(--primary-color);
    background-color: #f1f1f1;
    border-color: #ddd;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 109, 119, 0.9), rgba(0, 109, 119, 0.9)), url('../images/cta-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
}

.cta-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta-box p {
    margin-bottom: 0;
    font-size: 18px;
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 32px;
    }
    
    .main-featured .story-image {
        height: 300px;
    }
}

@media (max-width: 991.98px) {
    .section-title {
        font-size: 28px;
    }
    
    .impact-stat {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .filter-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-featured .story-image {
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    .success-stories-hero {
        padding: 100px 0 60px;
    }
    
    .success-stories-hero h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .btn-filter-toggle {
        display: inline-block;
    }
    
    .filter-options {
        display: none;
        grid-template-columns: 1fr;
    }
    
    .filter-options.show {
        display: grid;
    }
    
    .main-featured .story-image {
        height: 200px;
    }
    
    .cta-box {
        padding: 30px;
        text-align: center;
    }
    
    .cta-box .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .success-stories-hero h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .impact-stat {
        margin-bottom: 20px;
    }
    
    .featured-story-card h3 {
        font-size: 20px;
    }
    
    .secondary-featured h4 {
        font-size: 16px;
    }
    
    .testimonial-content {
        padding: 20px;
    }
}