/* =====================
   STORIES HERO SECTION
===================== */

.stories-hero {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stories-hero-bg {
    position: absolute;
    inset: 0;
    background: url(../images/about-bg.jpg) no-repeat center/cover;
    opacity: 0.15;
    z-index: 0;
}

.stories-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
}

.stories-hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.stories-hero-content p {
    font-size: 20px;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.stories-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--secondary-light);
}

.stat-item p {
    font-size: 16px;
    opacity: 0.9;
}

/* =====================
   FILTER SECTION
===================== */

.stories-filter-section {
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 240, 0.98) 100%);
    border-bottom: 1px solid rgba(212, 166, 74, 0.2);
}

.filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-info {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.filter-info p {
    margin: 0;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.search-group {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.stories-search {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid rgba(212, 166, 74, 0.3);
    border-radius: 25px;
    background: var(--white);
    color: #333;
    font-size: 15px;
    transition: 0.3s ease;
}

.stories-search:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 166, 74, 0.1);
}

.search-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* =====================
   TESTIMONIALS SECTION (STORIES CAROUSEL)
===================== */

.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 248, 240, 0.8) 100%);
}

.testimonials-carousel {
    margin-top: 60px;
}

.story-testimonial-card {
    background: var(--white);
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 15px 40px rgba(123, 0, 0, 0.1);
    border: 1px solid rgba(212, 166, 74, 0.15);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.story-testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(123, 0, 0, 0.15);
}

.story-image-container {
    position: relative;
    height: 180px;
    width: 180px;
    margin: 30px auto 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
}

.story-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 50%;
}

.story-testimonial-card:hover .story-carousel-image {
    transform: scale(1.1);
}

.story-overlay-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(123, 0, 0, 0.5) 0%, rgba(212, 166, 74, 0.3) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.story-testimonial-card:hover .story-overlay-info {
    opacity: 1;
}

.story-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.story-info {
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.story-info h4 {
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.story-description {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
}

.story-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    justify-content: center;
}

.meta-date,
.meta-featured {
    color: #999;
}

.meta-date i,
.meta-featured i {
    color: var(--secondary);
    margin-right: 5px;
}

.view-story {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.view-story:hover {
    color: var(--primary);
}

.testimonial-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.testimonial-prev,
.testimonial-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(212, 166, 74, 0.3);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 166, 74, 0.4);
}

/* =====================
   JOURNEY SECTION
===================== */

.success-journey-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(123, 0, 0, 0.03) 0%, rgba(212, 166, 74, 0.03) 100%);
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.journey-step {
    text-align: center;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(123, 0, 0, 0.08);
    border: 1px solid rgba(212, 166, 74, 0.15);
    transition: 0.3s ease;
}

.journey-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(123, 0, 0, 0.12);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(212, 166, 74, 0.3);
}

.journey-step h3 {
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
}

.journey-step p {
    color: #666;
    line-height: 1.8;
}

/* =====================
   CTA FINAL SECTION
===================== */

.cta-final-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-final-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(../images/about-bg.jpg) no-repeat center/cover;
    opacity: 0.15;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 40px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(212, 166, 74, 0.4);
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 166, 74, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 768px) {
    .stories-hero-content h1 {
        font-size: 36px;
    }

    .stories-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-item h3 {
        font-size: 28px;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .search-group {
        min-width: auto;
    }

    .journey-steps {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stories-hero-content h1 {
        font-size: 28px;
    }

    .stories-hero-content p {
        font-size: 16px;
    }

    .stories-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item h3 {
        font-size: 24px;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-info {
        text-align: center;
    }

    .search-group {
        min-width: auto;
    }

    .story-image-container {
        height: 150px;
        width: 150px;
    }

    .cta-content h2 {
        font-size: 24px;
    }
}
