/* ==========================================================================
 |    PARTNER - SUCCESS STORIES SECTION
 |    ========================================================================== */

/* Partner Stories Section */
.partner-stories {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.partner-stories::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 83, 154, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.partner-stories::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 58, 107, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite reverse;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Story Cards */
.story-card {
    background: white;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 60px rgba(20, 83, 154, 0.08);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: story-fade-in 0.8s ease forwards;
}

.story-card:nth-child(1) {
    animation-delay: 0.2s;
}

.story-card:nth-child(2) {
    animation-delay: 0.4s;
}

.story-card:nth-child(3) {
    animation-delay: 0.6s;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 83, 154, 0.08), transparent);
    transition: left 0.8s ease;
}

.story-card:hover::before {
    left: 100%;
}

.story-card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 25px 80px rgba(20, 83, 154, 0.15);
    border-color: rgba(20, 83, 154, 0.2);
}

/* Quote Section */
.story-quote {
    position: relative;
    margin-bottom: 32px;
}

.story-quote i {
    font-size: 3rem;
    color: #14539a;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -5px;
    z-index: 1;
    transition: all 0.3s ease;
}

.story-card:hover .story-quote i {
    opacity: 0.5;
    transform: scale(1.1);
}

.story-quote p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #374151;
    font-style: italic;
    position: relative;
    z-index: 2;
    margin: 0;
    padding-left: 20px;
    font-weight: 500;
}

/* Author Section */
.story-author {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.author-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b 0%, #14539a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-info span {
    font-size: 0.95rem;
    color: #14539a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Story Card Variants */
.story-card:nth-child(1) {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.story-card:nth-child(2) {
    background: linear-gradient(135deg, #fefefe 0%, #f1f5f9 100%);
    transform: scale(1.02);
}

.story-card:nth-child(3) {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.story-card:nth-child(2):hover {
    transform: translateY(-12px) scale(1.02);
}

/* Decorative Elements */
.story-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(20, 83, 154, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.story-card:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

/* Animations */
@keyframes story-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .partner-stories {
        padding: 80px 0;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .story-card {
        padding: 32px 24px;
        margin: 0 10px;
    }

    .story-card:nth-child(2) {
        transform: none;
        order: -1;
    }

    .story-card:nth-child(2):hover {
        transform: translateY(-8px);
    }

    .story-quote p {
        font-size: 1.1rem;
        padding-left: 15px;
    }

    .story-quote i {
        font-size: 2.5rem;
        top: -8px;
        left: -3px;
    }

    .author-info h4 {
        font-size: 1.1rem;
    }

    .author-info span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .partner-stories {
        padding: 60px 0;
    }

    .story-card {
        padding: 24px 20px;
        margin: 0 5px;
    }

    .story-quote p {
        font-size: 1rem;
        line-height: 1.7;
        padding-left: 12px;
    }

    .story-quote i {
        font-size: 2rem;
        top: -6px;
        left: -2px;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .author-info span {
        font-size: 0.85rem;
    }
}