/* =========================
   Customer Story Page
========================= */

.customer-story-page {
    overflow: hidden;
    background: #fff;
}

/* Banner */
.bread {
    position: relative;
    height: 45rem;
    overflow: hidden;
    border-radius: 0 0 5rem 5rem;
}

.bread-bg {
    position: absolute;
    inset: 0;
}

.bread-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.74);
}

.bread-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bread-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.bread-content h1 {
    margin: 0 0 1.6rem;
    color: #fff;
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.18;
    text-shadow: 0 .4rem .4rem rgba(0, 0, 0, .25);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2.4rem;
    letter-spacing: .032rem;
    text-transform: uppercase;
    text-shadow: 0 .4rem .4rem rgba(0, 0, 0, .25);
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb-arrow {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    line-height: 1;
    filter: brightness(0) invert(1);
}

.single .breadcrumb-arrow {
    filter: unset;
}

.story-breadcrumb {
    display: flex;
    align-items: center;
}

/* Main */
.customer-story-main {
    background: #fff;
}

.customer-story-wrap {
    display: grid;
    grid-template-columns: 30.2rem 1fr;
    gap: 2.4rem;
    align-items: flex-start;
}

/* Sidebar */
.story-sidebar {
    position: sticky;
    top: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 2.7rem;
}

.story-search {
    position: relative;
    width: 100%;
    height: 4.8rem;
}

.story-search-input {
    width: 100%;
    height: 100%;
    padding: 0 5.6rem 0 1.6rem;
    border: .1rem solid #006666;
    border-radius: 5rem;
    outline: none;
    background: #eef8ff;
    box-shadow: inset .2rem .2rem .4rem rgba(0, 0, 0, .16);
    color: #333;
    font-size: 1.6rem;
    font-style: italic;
}

.story-search-input::placeholder {
    color: #acacac;
}

.story-search-btn {
    position: absolute;
    top: 50%;
    right: .8rem;
    display: flex;
    width: 3.2rem;
    height: 3.2rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #006666;
    transform: translateY(-50%);
    cursor: pointer;
}

.story-search-btn img {
    object-fit: contain;
}

.story-category {
    padding: 2.1rem;
    border-radius: 1.6rem;
    background: #eef8ff;
}

.story-category-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 2.4rem;
    color: #000;
    font-size: 2rem;
    font-weight: 700;
}

.story-category-head .icon {
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
}

.story-category-head img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-category-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.story-category-list li {
    padding-bottom: .8rem;
    border-bottom: .1rem solid #d9d9d9;
}

.story-category-btn {
    width: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #000;
    font-size: 1.6rem;
    line-height: 2.4rem;
    text-align: left;
    cursor: pointer;
    transition: .25s ease;
}

.story-category-btn:hover,
.story-category-btn.active {
    color: #006666;
}

/* Content */
.story-content {
    min-width: 0;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 2.4rem;
}

.story-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1.6rem;
}

.story-img {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 302 / 214;
    border-radius: 1.6rem;
    background: #eef8ff;
}

.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .45s ease;
}

.story-card:hover .story-img img {
    transform: scale(1.06);
}

.story-info {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    color: #000;
    font-size: 1.6rem;
}

.story-meta span {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    white-space: nowrap;
}

.story-meta img {
    width: 1.6rem;
    height: 1.6rem;
    object-fit: contain;
}

.story-meta i {
    display: block;
    width: .1rem;
    height: 1.9rem;
    background: #000;
}

.story-card h2 {
    margin: 0;
    color: #006666;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.story-card h2 a {
    display: -webkit-box;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: .25s ease;
}

.story-card h2 a:hover {
    color: #fbaf2c;
}

.story-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #353535;
    font-size: 1.6rem;
    line-height: 2.4rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.story-empty {
    display: none;
    padding: 4rem 2rem;
    border-radius: 1.6rem;
    background: #eef8ff;
    color: #006666;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}

/* Pagination */
.story-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 5.6rem;
}

.page-control,
.page-number,
.page-dots {
    display: inline-flex;
    width: 3.2rem;
    height: 3.2rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: .1rem solid #f1f1f1;
    border-radius: .8rem;
    background: #fff;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1;
}

.page-control,
.page-number {
    cursor: pointer;
    transition: .25s ease;
}

.page-control:hover,
.page-number:hover,
.page-number.active {
    border-color: #006666;
    background: #006666;
    color: #fff;
}

.page-dots {
    border-color: transparent;
}

/* =========================
   Responsive
========================= */

.res-sidebar,
.sidebar-close {
    display: none;
}

@media (max-width: 1200px) {
    .customer-story-wrap {
        grid-template-columns: 26rem 1fr;
    }

    .story-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-card h2 {
        font-size: 1.8rem;
    }

    .story-meta {
        gap: 1rem;
        font-size: 1.4rem;
    }
}

@media (max-width: 992px) {

    .res-sidebar,
    .sidebar-close {
        display: block;
    }

    .sidebar-close {
        width: 5rem;
        height: 4.5rem;
        position: absolute;
        top: 0;
        right: 0;
        background: var(--main-color);
        z-index: 2;
        padding: .8rem;
        border-radius: 0 0 0 5rem;
    }

    .sidebar-close img {
        filter: brightness(0) invert(1);
        transform: translate(.6rem, -.4rem);
        object-fit: contain;
    }

    .story-search {
        width: calc(100% - 5rem);
    }

    .story-category-head {
        margin-left: auto;

    }

    .bread {
        height: 38rem;
        border-radius: 0 0 3.2rem 3.2rem;
    }

    .bread-content h1 {
        font-size: 3.8rem;
    }

    .customer-story-wrap {
        grid-template-columns: 1fr;
    }

    .story-category {
        padding: 2rem;
    }

    .story-category-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.2rem 2.4rem;
    }

    .story-category-list li {
        min-width: 0;
    }

    .story-sidebar {
        position: fixed;
        top: 50%;
        right: 0;
        transform: translate(110%, -50%);
        width: 80%;
        max-width: 32rem;
        height: auto;
        transition: .45s ease-in-out;
        padding-right: 0;
        background-color: white;
        padding: 1.6rem 1.6rem 2.6rem 1.6rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 999;
    }

    .open-res-sidebar .bg-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .open-res-sidebar .story-sidebar {
        transform: translate(0%, -50%);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .open-res-sidebar .hd-bar,
    .open-res-sidebar .language-select {
        z-index: 12;
    }

}

@media (max-width: 768px) {
    .bread {
        height: 32rem;
    }

    .bread-content h1 {
        font-size: 3.2rem;
    }

    .breadcrumb {
        flex-wrap: wrap;
        font-size: 1.4rem;
    }

    .story-grid {
        gap: 3.2rem 1.6rem;
    }

    .story-category-list {
        grid-template-columns: 1fr;
    }

    .story-meta {
        flex-wrap: wrap;
    }

    .story-meta i {
        display: none;
    }
}

@media (max-width: 576px) {
    .bread {
        height: 28rem;
    }

    .bread-content h1 {
        font-size: 2.8rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-img {
        aspect-ratio: 302 / 214;
    }

    .story-pagination {
        flex-wrap: wrap;
        margin-top: 4rem;
    }
}