﻿/* =========================================================
   JAINSWORLD SUCCESS STORIES
   ========================================================= */

.jwo-success-hero {
    position: relative;
    padding: 105px 0 95px;
    background: var(--secondary-color);
    overflow: hidden;
}

    .jwo-success-hero::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        right: -150px;
        top: -170px;
        border: 1px solid rgba(255, 54, 0, .12);
        border-radius: 50%;
    }

    .jwo-success-hero::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        left: -110px;
        bottom: -150px;
        border: 1px solid rgba(255, 54, 0, .08);
        border-radius: 50%;
    }

.jwo-success-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.jwo-success-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
}

.jwo-success-hero h1 {
    max-width: 780px;
    margin: 0 0 20px;
    color: var(--primary-color);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -1.5px;
}

.jwo-success-hero p {
    max-width: 620px;
    margin: 0;
    color: var(--text-color);
    font-size: 17px;
    line-height: 1.75;
}


/* =========================================================
   MAIN
   ========================================================= */

.jwo-success-section {
    padding: 75px 0 90px;
    background: var(--white-color);
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.jwo-success-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.jwo-success-toolbar-title span {
    display: block;
    margin-bottom: 7px;
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.jwo-success-toolbar-title h2 {
    margin: 0;
    color: var(--primary-color);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
}

.jwo-success-years {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.jwo-success-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 7px 15px;
    color: var(--text-color);
    background: var(--secondary-color);
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

    .jwo-success-year:hover,
    .jwo-success-year.active {
        color: var(--white-color);
        background: var(--accent-color);
        border-color: var(--accent-color);
        box-shadow: 0 7px 18px rgba(255, 54, 0, .16);
    }


/* =========================================================
   STORY CARD
   ========================================================= */

.jwo-success-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white-color);
    border: 1px solid var(--divider-color);
    border-radius: 24px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .035);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

    .jwo-success-card:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 54, 0, .20);
        box-shadow: 0 18px 42px rgba(0, 0, 0, .08);
    }


/* =========================================================
   IMAGE
   ========================================================= */

.jwo-success-image {
    position: relative;
    overflow: hidden;
    background: #f3f0ee;
}

    .jwo-success-image figure {
        position: relative;
        margin: 0;
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

        .jwo-success-image figure::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient( to top, rgba(0, 0, 0, .16), transparent 45% );
            pointer-events: none;
        }

    .jwo-success-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .7s cubic-bezier(.2, .7, .2, 1);
    }

.jwo-success-card:hover .jwo-success-image img {
    transform: scale(1.025);
}

.jwo-success-year {
    position: absolute;
    right: 16px;
    bottom: 15px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    color: var(--white-color);
    background: rgba(4, 4, 1, .72);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    backdrop-filter: blur(8px);
}


/* =========================================================
   CONTENT
   ========================================================= */

.jwo-success-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 27px 29px 24px;
}

.jwo-success-label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-color);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.jwo-success-content h3 {
    margin: 0;
    color: var(--primary-color);
    font-family: "Old Standard TT", Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.3px;
}

    .jwo-success-content h3 span {
        padding: 0 3px;
        color: var(--accent-color);
        font-family: "DM Serif Display", Georgia, serif;
        font-weight: 400;
    }


/* =========================================================
   LOCATIONS
   ========================================================= */

.jwo-success-locations {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--divider-color);
}

.jwo-success-location {
    min-width: 0;
    flex: 1;
}

.jwo-success-location-label {
    display: block;
    margin-bottom: 4px;
    color: #999;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.jwo-success-location strong {
    display: block;
    overflow: hidden;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.jwo-success-location-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: var(--accent-color);
    background: var(--secondary-color);
    border-radius: 50%;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 16px;
}


/* =========================================================
   REMARK
   ========================================================= */

.jwo-success-remark {
    position: relative;
    display: flex;
    gap: 9px;
    padding: 21px 0 18px;
}

.jwo-success-quote {
    flex: 0 0 auto;
    margin-top: -4px;
    color: var(--accent-color);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 42px;
    line-height: .8;
}

.jwo-success-remark p {
    margin: 0;
    color: var(--text-color);
    font-family: "Old Standard TT", Georgia, serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.55;
}


/* =========================================================
   FOOTER
   ========================================================= */

.jwo-success-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--divider-color);
}

.jwo-success-member {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.3;
}

    .jwo-success-member i {
        font-size: 9px;
    }

    .jwo-success-member.connected {
        color: var(--accent-color);
    }

.jwo-success-date {
    color: #999;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.jwo-success-empty {
    max-width: 620px;
    margin: 50px auto 0;
    padding: 55px 25px;
    text-align: center;
    background: var(--secondary-color);
    border: 1px solid var(--divider-color);
    border-radius: 22px;
}

.jwo-success-empty-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 17px;
    color: var(--accent-color);
    background: var(--white-color);
    border-radius: 50%;
    font-size: 19px;
}

.jwo-success-empty h3 {
    margin: 0 0 8px;
    color: var(--primary-color);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 29px;
    font-weight: 400;
}

.jwo-success-empty p {
    margin: 0;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.jwo-success-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

    .jwo-success-pagination .pagination {
        display: flex;
        align-items: center;
        gap: 7px;
        margin: 0;
    }

    .jwo-success-pagination .page-item {
        margin: 0;
    }

    .jwo-success-pagination .page-link {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: var(--primary-color);
        background: var(--white-color);
        border: 1px solid var(--divider-color);
        border-radius: 50%;
        font-size: 11px;
        font-weight: 700;
        box-shadow: none;
        transition: all .25s ease;
    }

        .jwo-success-pagination .page-link:hover {
            color: var(--white-color);
            background: var(--accent-color);
            border-color: var(--accent-color);
        }

    .jwo-success-pagination .page-item.active .page-link {
        color: var(--white-color);
        background: var(--accent-color);
        border-color: var(--accent-color);
        box-shadow: 0 6px 15px rgba(255, 54, 0, .18);
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .jwo-success-hero {
        padding: 80px 0 75px;
    }

        .jwo-success-hero h1 {
            font-size: 60px;
        }

    .jwo-success-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .jwo-success-years {
        justify-content: flex-start;
    }
}


@media (max-width: 767px) {

    .jwo-success-hero {
        padding: 65px 0 60px;
    }

        .jwo-success-hero h1 {
            font-size: 48px;
            letter-spacing: -1px;
        }

        .jwo-success-hero p {
            font-size: 15px;
        }

    .jwo-success-section {
        padding: 55px 0 65px;
    }

    .jwo-success-toolbar-title h2 {
        font-size: 36px;
    }

    .jwo-success-content {
        padding: 24px 21px 21px;
    }

        .jwo-success-content h3 {
            font-size: 31px;
        }
}


@media (max-width: 480px) {

    .jwo-success-hero {
        padding: 55px 0 50px;
    }

        .jwo-success-hero h1 {
            font-size: 41px;
        }

    .jwo-success-years {
        gap: 5px;
    }

    .jwo-success-year {
        min-height: 35px;
        padding: 6px 12px;
        font-size: 10px;
    }

    .jwo-success-image figure {
        aspect-ratio: 4 / 3;
    }

    .jwo-success-content h3 {
        font-size: 29px;
    }

    .jwo-success-locations {
        gap: 9px;
    }

    .jwo-success-location-divider {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .jwo-success-remark p {
        font-size: 15px;
    }

    .jwo-success-pagination .page-link {
        width: 37px;
        height: 37px;
    }
}


.jwo-success-filter-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 7px 15px;
    color: var(--text-color);
    background: var(--secondary-color);
    border: 1px solid var(--divider-color);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

    .jwo-success-filter-year:hover,
    .jwo-success-filter-year.active {
        color: var(--white-color);
        background: var(--accent-color);
        border-color: var(--accent-color);
        box-shadow: 0 7px 18px rgba(255, 54, 0, .16);
    }

.jwo-success-card-year {
    position: absolute;
    right: 16px;
    bottom: 15px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    color: var(--white-color);
    background: rgba(4, 4, 1, .72);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    backdrop-filter: blur(8px);
}
.jwo-success-filter-year {
    /* normal filter */
}