/* Remove inherited grey background only for this section */
.stories-section {
    background: transparent !important;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header */
.stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.stories-header h2 {
    font-size: 32px;
    font-weight: 700;
}

.stories-header p {
    color: #666;
}

/* Push arrows away from text */
.stories-nav {
    display: flex;
    gap: 12px;
}

/* Spacing between arrows */
.stories-nav {
    display: flex;
    gap: 14px;
}

/* Card layout */
.story-feature-card {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    height: 360px; /* equal height */
}

/* Fixed image area */
.story-image {
    flex: 1.2;
    height: 360px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content area */
.story-content {
    flex: 1;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tag from DB */
.story-tag {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Color-coded tags */
.tag-anxiety { color: #2563eb; }
.tag-mood { color: #9333ea; }
.tag-stress { color: #f97316; }
.tag-sleep { color: #14b8a6; }
.tag-intrusive { color: #ef4444; }

.story-content h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.story-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}


.story-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px; /* perfect pill */
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    width: auto;           /* prevents stretching */
    max-width: fit-content;
    transition: background 0.3s ease;
}

.story-btn:hover {
    background: #1e40af;
}


/* Bottom disclaimer */
.stories-disclaimer {
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .story-feature-card {
        flex-direction: column;
        height: auto;
    }

    .story-image {
        height: 220px;
    }

    .story-content {
        padding: 20px;
    }
}

/* ===== FORCE Swiper Nav Button Fix ===== */

.stories-section .stories-nav {
    display: flex;
    gap: 16px;
}

/* Strong override against global theme */
.stories-section .swiper-button-prev,
.stories-section .swiper-button-next {
    position: static !important;  /* prevents overlapping */
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #111 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}

/* Arrow icon */
.stories-section .swiper-button-prev::after,
.stories-section .swiper-button-next::after {
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Hover */
.stories-section .swiper-button-prev:hover,
.stories-section .swiper-button-next:hover {
    background: #f9fafb !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {

    .stories-container {
        padding: 0 14px;
    }

    .stories-header h1 {
        font-size: 26px;
        text-align: center;
    }

    .story-card {
        padding: 18px;
    }

    .story-card h3 {
        font-size: 16px;
    }

    .story-card p {
        font-size: 14px;
        line-height: 1.6;
    }
}

