/* =========================================================
   Shoka Content Showcase
   Frontend Styles
   ========================================================= */


/* =========================================================
   GENERAL
   ========================================================= */

.shoka-showcase {
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
}

.shoka-showcase img {
    display: block;
    max-width: 100%;
    height: auto;
}

.shoka-showcase a {
    text-decoration: none;
}


/* =========================================================
   SINGLE
   ========================================================= */

.shoka-showcase-single {
    display: flex;
    align-items: center;
    gap: 22px;

    padding: 18px;
    margin: 35px 0;

    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, .05);

    transition:
        box-shadow .2s ease,
        transform .2s ease;
}

.shoka-showcase-single:hover {
    box-shadow: 0 7px 24px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.shoka-single-image {
    display: block;

    width: 140px;
    min-width: 140px;

    overflow: hidden;
    border-radius: 9px;
}

.shoka-single-image img {
    width: 140px;
    height: 140px;

    object-fit: cover;

    transition: transform .3s ease;
}

.shoka-single-image:hover img {
    transform: scale(1.035);
}

.shoka-single-content {
    flex: 1;
    min-width: 0;
}

.shoka-single-title {
    display: block;

    margin: 0 0 9px;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}

.shoka-single-title a {
    color: #222;
    text-decoration: none;

    transition: color .2s ease;
}

.shoka-single-title a:hover {
    color: #555;
}

.shoka-single-description {
    color: #666;

    font-size: 15px;
    line-height: 2;

    overflow-wrap: break-word;
}


/* Single - Mobile */

@media (max-width: 767px) {

    .shoka-showcase-single {
        gap: 14px;

        padding: 12px;

        margin: 28px 0;

        border-radius: 10px;
    }

    .shoka-single-image {
        width: 90px;
        min-width: 90px;

        border-radius: 7px;
    }

    .shoka-single-image img {
        width: 90px;
        height: 90px;
    }

    .shoka-single-title {
        margin: 0 0 5px;

        font-size: 16px;
        line-height: 1.65;
    }

    .shoka-single-description {
        font-size: 14px;
        line-height: 1.9;
    }

}

@media (max-width: 380px) {

    .shoka-showcase-single {
        gap: 11px;
    }

    .shoka-single-image {
        width: 78px;
        min-width: 78px;
    }

    .shoka-single-image img {
        width: 78px;
        height: 78px;
    }

    .shoka-single-title {
        font-size: 15px;
    }

    .shoka-single-description {
        font-size: 13px;
    }

}


/* =========================================================
   SHOWCASE HEADING
   ========================================================= */

.shoka-showcase-heading {
    margin-bottom: 18px;

    color: #202020;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.6;
}


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

.shoka-showcase-slider {
    width: 100%;
    margin: 42px 0;
    overflow: hidden;
    background-color: #e9e9e9;
    padding: 25px 35px 20px;
    border-radius: 15px;
    text-align: center;
}


/* ---------------------------------------------------------
   Heading
   --------------------------------------------------------- */

.shoka-showcase-slider .shoka-showcase-heading {
    margin: 0 0 18px;

    color: #202020;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   Slider Wrapper
   --------------------------------------------------------- */

.shoka-showcase-slider-wrapper {
    position: relative;

    width: 100%;
}


/* ---------------------------------------------------------
   Track
   --------------------------------------------------------- */

.shoka-showcase-track {
    display: flex;
    gap: 20px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 4px 2px 14px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

    overscroll-behavior-x: contain;
}

.shoka-showcase-track::-webkit-scrollbar {
    display: none;
}


/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */

.shoka-showcase-card {
    flex: 0 0 calc((100% - 50px) / 3.5);

    width: calc((100% - 50px) / 3.5);
    min-width: calc((100% - 50px) / 3.5);

    scroll-snap-align: start;
}

.shoka-showcase-card a {
    display: flex;
    flex-direction: column;

    height: 100%;

    color: inherit;
    text-decoration: none;
}


/* ---------------------------------------------------------
   Image
   --------------------------------------------------------- */

.shoka-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 11px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);

    transition:
        box-shadow .25s ease,
        transform .25s ease;
}

.shoka-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.shoka-showcase-card a:hover .shoka-card-image {
    box-shadow: 0 7px 20px rgba(0, 0, 0, .11);

    transform: translateY(-2px);
}

.shoka-showcase-card a:hover .shoka-card-image img {
    transform: scale(1.025);
}


/* ---------------------------------------------------------
   Title
   --------------------------------------------------------- */

.shoka-card-title {
    display: -webkit-box;

    min-height: 54px;
    max-height: 54px;

    margin-top: 11px;
    padding: 0 2px;

    overflow: hidden;

    color: #262626;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.8;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    transition: color .2s ease;
}

.shoka-showcase-card a:hover .shoka-card-title {
    color: #555;
}


/* ---------------------------------------------------------
   Navigation Buttons
   --------------------------------------------------------- */

.shoka-slider-button {
    position: absolute;
    top: 40%;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    padding: 0;

    color: #333;

    background: rgba(255, 255, 255, .95);

    border: 1px solid #ddd;
    border-radius: 50%;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background-color .2s ease,
        color .2s ease,
        opacity .2s ease,
        box-shadow .2s ease;
}

.shoka-slider-prev {
    right: -20px;
}

.shoka-slider-next {
    left: -20px;
}

.shoka-slider-button:hover:not(:disabled) {
    color: #fff;

    background: #222;

    border-color: #222;

    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.shoka-slider-button:disabled {
    opacity: .3;

    cursor: default;
}

.shoka-slider-button .dashicons {
    width: auto;
    height: auto;

    font-size: 18px;
    line-height: 1;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .shoka-showcase-card {
        flex-basis: calc((100% - 30px) / 2.5);

        width: calc((100% - 30px) / 2.5);
        min-width: calc((100% - 30px) / 2.5);
    }

}


@media (max-width: 767px) {

    .shoka-showcase-slider {
        margin: 32px 0;
    }

    .shoka-showcase-slider .shoka-showcase-heading {
        margin-bottom: 14px;

        font-size: 18px;
    }

    .shoka-showcase-track {
        gap: 13px;

        padding: 2px 1px 10px;
    }

    .shoka-showcase-card {
        flex-basis: calc((100% - 13px) / 1.2);

        width: calc((100% - 13px) / 1.2);
        min-width: calc((100% - 13px) / 1.2);
    }

    .shoka-card-image {
        border-radius: 8px;
    }

    .shoka-card-title {
        min-height: 49px;
        max-height: 49px;

        margin-top: 8px;

        padding: 0 1px;

        font-size: 14px;
        line-height: 1.75;
    }

    .shoka-slider-button {
        width: 32px;
        height: 32px;
    }

    .shoka-slider-prev {
        right: 5px;
    }

    .shoka-slider-next {
        left: 5px;
    }

    .shoka-slider-button .dashicons {
        font-size: 16px;
    }

}


@media (max-width: 480px) {

    .shoka-slider-button {
        width: 39px;
        height: 39px;
    }

    .shoka-slider-button .dashicons {
        font-size: 15px;
    }

}

/* =========================================================
   LIST
   ========================================================= */

.shoka-showcase-list {
    margin: 42px 0;
}

.shoka-showcase-list-items {
    overflow: hidden;

    border: 1px solid #e7e7e7;
    border-radius: 12px;

    background: #fff;
}

.shoka-list-item {
    display: flex;
    align-items: center;
    gap: 17px;

    min-height: 92px;

    padding: 10px 14px;

    color: inherit;

    border-bottom: 1px solid #ededed;

    transition:
        background-color .2s ease,
        padding-right .2s ease;
}

.shoka-list-item:last-child {
    border-bottom: 0;
}

.shoka-list-item:hover {
    padding-right: 18px;

    background: #fafafa;
}

.shoka-list-image {
    width: 72px;
    min-width: 72px;
    height: 72px;

    overflow: hidden;

    border-radius: 8px;

    background: #f4f4f4;

    box-shadow: 0 2px 7px rgba(0, 0, 0, .06);
}

.shoka-list-image img {
    width: 72px;
    height: 72px;

    object-fit: cover;

    transition: transform .3s ease;
}

.shoka-list-item:hover .shoka-list-image img {
    transform: scale(1.035);
}

.shoka-list-title {
    flex: 1;
    min-width: 0;

    color: #292929;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.85;

    transition: color .2s ease;
}

.shoka-list-item:hover .shoka-list-title {
    color: #555;
}


/* List - Mobile */

@media (max-width: 767px) {

    .shoka-showcase-list {
        margin: 32px 0;
    }

    .shoka-showcase-list-items {
        border-radius: 9px;
    }

    .shoka-list-item {
        gap: 12px;

        min-height: 0;

        padding: 9px 10px;
    }

    .shoka-list-item:hover {
        padding-right: 13px;
    }

    .shoka-list-image {
        width: 62px;
        min-width: 62px;
        height: 62px;

        border-radius: 6px;
    }

    .shoka-list-image img {
        width: 62px;
        height: 62px;
    }

    .shoka-list-title {
        font-size: 14px;
        line-height: 1.75;
    }

}

@media (max-width: 380px) {

    .shoka-list-item {
        gap: 10px;

        padding: 8px;
    }

    .shoka-list-item:hover {
        padding-right: 10px;
    }

    .shoka-list-image {
        width: 56px;
        min-width: 56px;
        height: 56px;
    }

    .shoka-list-image img {
        width: 56px;
        height: 56px;
    }

    .shoka-list-title {
        font-size: 13px;
        line-height: 1.7;
    }

}