/* ===========================================================
   STORY SLIDER
=========================================================== */

.story-slider-wrapper {
    position: relative;
}

.story-slider {
    overflow: visible !important;
}

.story-slider .swiper-wrapper {
    align-items: center;
}

.story-slider .swiper-slide {
    width: 1024px;
    transition: transform .45s ease, opacity .45s ease;
}

/* ===========================================================
   CARD
=========================================================== */

.story-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    align-items: center;
    gap: 56px;
    padding: 32px;
    min-height: 584px;
    background: #fff;
    border-radius: 28px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .05),
        0 25px 60px rgba(0, 0, 0, .08);
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}


/* ===========================================================
   IMAGE
=========================================================== */

.story-image {
    position: relative;
    width: 400px;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    background: #F8F7F4;
    border: 1px solid #CFCFCF;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

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

/* ===========================================================
   CATEGORY
=========================================================== */

.story-category {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: #F6F1EA;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    color: #4A4A4A;
    z-index: 2;
}

.story-category .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #444;
}

/* ===========================================================
   CONTENT
=========================================================== */

.story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.story-content h3 {
    margin: 0;
    max-width: 520px;
    font-family: Sora, sans-serif;
    font-size: 2rem;
    line-height: 1.3em;
    font-weight: 600;
    color: #111;
}

.story-meta {
    margin-top: 22px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    color: #707070;
}

.story-meta strong {
    color: #111;
    font-weight: 600;
}

.story-content p {
    margin: 28px 0 0;
    max-width: 520px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: #5E5E5E;
}

/* ===========================================================
   BUTTONS
=========================================================== */

.story-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 60px;
}

/* ===========================================================
   PAGINATION
=========================================================== */

.story-slider .swiper-pagination {
    position: relative;
    margin-top: 55px;
}

.story-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 5px !important;
    opacity: 1;
    background: #D5D5D5;
    transition: .35s ease;
}

.story-slider .swiper-pagination-bullet-active {
    width: 34px;
    border-radius: 20px;
    background: #92D9BB;
}

/* ===========================================================
   LARGE LAPTOP
=========================================================== */

@media (max-width: 1400px) {

    .story-slider .swiper-slide {
        width: 920px;
    }

    .story-card {
        grid-template-columns: 340px 1fr;
        gap: 42px;
        padding: 28px;
        min-height: 510px;
    }

    .story-image {
        width: 340px;
        height: 450px;
    }
}

/* ===========================================================
   TABLET
=========================================================== */

@media (min-width:768px) and (max-width:1024px) {

    .story-slider .swiper-slide {
        width: 720px;
    }

    .story-card {
        grid-template-columns: 280px 1fr;
        gap: 30px;
        padding: 24px;
        min-height: auto;
    }

    .story-image {
        width: 280px;
        height: 380px;
    }

    .story-meta {
        margin-top: 16px;
        font-size: 15px;
    }

    .story-content p {
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.75;
        max-width: 100%;
    }

    .story-buttons {
        margin-top: 28px;
        gap: 14px;
    }
}

/* ===========================================================
   MOBILE
=========================================================== */

@media (max-width: 767px) {

    .story-slider-wrapper {
        padding-inline: 16px;
    }

    .story-slider .swiper-slide {
        width: 100% !important;
    }

    .story-card {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 22px;
        padding: 20px;
        min-height: auto;
    }

    .story-image {
        width: 100%;
        height: 360px;
    }

    .story-image img {
        width: 100%;
        height: 320px;
        object-fit: cover;
        object-position: top center;
    }

    .story-category {
        top: 14px;
        left: 14px;
        font-size: 12px;
        padding: 7px 14px;
    }

    .story-content {
        width: 100%;
    }

    .story-content h3 {
        font-size: 1.6rem;
    }

    .story-meta {
        margin-top: 14px;
        font-size: 14px;
    }

    .story-content p {
        margin-top: 18px;
        max-width: 100%;
        font-size: 14px;
        line-height: 1.75;
    }

    .story-buttons {
        margin-top: 24px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .story-buttons a {
        width: 100%;
        justify-content: center;
    }

    .story-slider .swiper-pagination {
        margin-top: 35px;
    }
}

/* ===========================================================
   ACCESSIBILITY
=========================================================== */

.story-card:focus-within {
    outline: 2px solid rgba(146, 217, 187, .5);
    outline-offset: 4px;
}

/* ===========================================================
   REDUCE MOTION
=========================================================== */

@media (prefers-reduced-motion: reduce) {

    .story-slider .swiper-slide,
    .story-card {
        transition: none !important;
    }
}