/* ========================================
   RASTI - Recent Stories Section
   ======================================== */

.recent-stories {
    padding: 3.5rem 0;
    background: color-mix(in srgb, var(--primary) 3%, var(--gray-50));
    position: relative;
    overflow: hidden;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* CTA Buttons */
.stories-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stories-cta .btn-primary,
.stories-cta .btn-outline {
    min-width: 180px;
    text-align: center;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Story Card */
.story-card {
    position: relative;
    cursor: pointer;
    transition-duration: 300ms;
    transition-property: transform, box-shadow;
    transition-timing-function: ease-out;
    transform: rotate3d(0);
    border-radius: 6px;
    background: transparent;
}

/* Hover effect - only on devices with pointer (mouse), not touch */
@media (hover: hover) {
    .story-card:hover {
        transition-duration: 300ms;
        box-shadow: 0 8px 30px 8px color-mix(in srgb, var(--primary) 60%, transparent);
    }
}

.story-card-inner {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: transparent;
    transition: all 0.3s ease;
}

/* Glow Effect - Exact from reference */
.story-card .glow {
    border-radius: 6px;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-image: radial-gradient(circle at 50% -20%, #ffffff22, #0000000f);
    z-index: 1;
}

.story-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    border-radius: 6px;
}

/* Mouse Spotlight Effect - Removed, not in reference */

/* Story Overlay */
.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.story-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .recent-stories {
        padding: 1.5rem 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    .story-card {
        max-width: 100%;
    }

    .story-img {
        height: auto;
        max-height: 280px;
        object-fit: contain;
    }

    .story-overlay {
        padding: 1rem 0.75rem 0.75rem;
    }

    .story-title {
        font-size: 0.9rem;
    }

    .stories-cta {
        margin-top: 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .stories-cta .btn-primary,
    .stories-cta .btn-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}