/*
 * Blog List widget styles.
 *
 * @package Oganov_Empty_Elementor_Theme
 */

.oganov-blog-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: #f6f6fa;
    --oganov-blog-list-gutter: 76px;
    --oganov-blog-list-overhang: max(0px, calc((100vw - 1920px) / 2));
    --oganov-blog-list-content-start: calc(var(--oganov-blog-list-gutter) + var(--oganov-blog-list-overhang));
}

.oganov-blog-list__mobile-head {
    display: none;
}

.oganov-blog-list__mobile-title {
    margin: 0;
    color: #232323;
    font-family: "Involve", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.64px;
    text-transform: uppercase;
}

.oganov-blog-list__track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.oganov-blog-list--mode-slider {
    box-sizing: border-box;
    padding: 150px 76px;
}

.oganov-blog-list--mode-slider .oganov-blog-list__track {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: var(--oganov-blog-list-content-start);
    padding-right: var(--oganov-blog-list-content-start);
    box-sizing: border-box;
    scroll-padding-left: var(--oganov-blog-list-content-start);
    background: inherit;
}

.oganov-blog-list__track::-webkit-scrollbar {
    display: none;
}

.oganov-blog-list__card {
    position: relative;
    box-sizing: border-box;
    width: 430px;
    min-width: 430px;
    min-height: 575px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    background: #f1f1f4;
    scroll-snap-align: start;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.oganov-blog-list__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.oganov-blog-list__card.is-hidden {
    display: none;
}

.oganov-blog-list__card-link {
    box-sizing: border-box;
    position: relative;
    min-height: 575px;
    padding: 24px;
    color: inherit;
    text-decoration: none;
    display: flex;
}

.oganov-blog-list__card-link:focus-visible {
    outline: 2px solid #2b6cf6;
    outline-offset: -2px;
}

.oganov-blog-list__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.12) translateY(14px);
    filter: saturate(1.12);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.oganov-blog-list__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.6) 18.904%, rgba(0, 0, 0, 0) 59.304%);
    transition: opacity 0.35s ease;
}

.oganov-blog-list__card-inner {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.oganov-blog-list__date {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    text-transform: uppercase;
}

.oganov-blog-list__day {
    color: #05f593;
    font-family: "Involve", sans-serif;
    font-size: 64px;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    transition: color 0.3s ease;
}

.oganov-blog-list__month-year {
    min-width: 0;
    max-width: min(130px, 48%);
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: #232323;
    font-family: "Involve", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.15;
    text-transform: none;
    transition: color 0.3s ease;
}

.oganov-blog-list__month-year > span {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: right;
}

.oganov-blog-list__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.oganov-blog-list__title {
    margin: 0;
    color: #232323;
    font-family: "Involve", sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.18;
    text-transform: uppercase;
}

.oganov-blog-list__excerpt {
    margin: 0;
    color: rgba(35, 35, 35, 0.6);
    font-family: "Involve", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .oganov-blog-list__card--has-media:is(:hover, :focus-within) .oganov-blog-list__media {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    .oganov-blog-list__card--has-media:is(:hover, :focus-within) .oganov-blog-list__overlay {
        opacity: 1;
    }

    .oganov-blog-list__card--has-media:is(:hover, :focus-within) .oganov-blog-list__month-year,
    .oganov-blog-list__card--has-media:is(:hover, :focus-within) .oganov-blog-list__title,
    .oganov-blog-list__card--has-media:is(:hover, :focus-within) .oganov-blog-list__day {
        color: #fff;
    }

    .oganov-blog-list__card--has-media:is(:hover, :focus-within) .oganov-blog-list__excerpt {
        color: rgba(255, 255, 255, 0.6);
    }
}

.oganov-blog-list__footer {
    min-height: 56px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.oganov-blog-list__nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.oganov-blog-list__arrow {
    width: 56px !important;
    height: 56px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #00f591 !important;
    color: #232323 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-shadow: none !important;
}

.oganov-blog-list__arrow:hover,
.oganov-blog-list__arrow:focus-visible,
.oganov-blog-list__arrow:active {
    background: #00f591 !important;
    color: #232323 !important;
    border: 0 !important;
}

.oganov-blog-list__arrow:focus-visible {
    outline: 2px solid #2b6cf6 !important;
    outline-offset: 2px !important;
}

.oganov-blog-list__arrow svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.oganov-blog-list__arrow--prev svg {
    transform: rotate(180deg);
}

.oganov-blog-list__all-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    min-height: 56px;
    box-sizing: border-box;
    padding: 20px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    text-decoration: none;
    font-family: "Involve", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.oganov-blog-list__all-link:hover {
    background: rgba(0, 0, 0, 0.09);
    transform: translate(-50%, -2px);
}

.oganov-blog-list__all-link:focus-visible {
    outline: 2px solid #2b6cf6;
    outline-offset: 2px;
}

.oganov-blog-list__pager {
    display: none;
    align-items: center;
    gap: 8px;
}

.oganov-blog-list__pager.is-hidden {
    display: none;
}

.oganov-blog-list__pager-pages {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.oganov-blog-list__pager-button {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    color: #232323;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: "Involve", sans-serif;
    font-size: 18px;
    font-style: normal;
    line-height: normal;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    opacity: 1;
}

.oganov-blog-list__pager-button--arrow {
    font-weight: 400;
}

.oganov-blog-list__pager-button--page {
    font-weight: 600;
}

.oganov-blog-list__pager-button:hover {
    background: rgba(0, 0, 0, 0.07);
}

.oganov-blog-list__pager-button.is-active {
    background: #00f591;
}

.oganov-blog-list__pager-button:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.oganov-blog-list__pager-button:focus-visible {
    outline: 2px solid #2b6cf6;
    outline-offset: 2px;
}

.oganov-blog-list--mode-pagination .oganov-blog-list__track {
    overflow: visible;
    scroll-snap-type: none;
    display: grid;
    grid-template-columns: repeat(var(--oganov-blog-list-pagination-columns, 4), minmax(0, 1fr));
    gap: 16px;
}

.oganov-blog-list--mode-pagination .oganov-blog-list__card {
    width: auto;
    min-width: 0;
    opacity: 1;
    transform: none;
    transition: none;
}

.oganov-blog-list--mode-pagination .oganov-blog-list__card-link {
    width: 100%;
}

.oganov-blog-list--mode-pagination .oganov-blog-list__nav,
.oganov-blog-list--mode-pagination .oganov-blog-list__all-link {
    display: none;
}

.oganov-blog-list--mode-pagination .oganov-blog-list__footer {
    justify-content: center;
}

.oganov-blog-list--mode-pagination .oganov-blog-list__pager {
    display: inline-flex;
}

@media (max-width: 1200px) {
    .oganov-blog-list__title {
        font-size: 36px;
    }
}

@media (max-width: 1024px) {
    .oganov-blog-list--mode-slider .oganov-blog-list__card {
        width: min(430px, calc(100vw - 48px));
        min-width: min(430px, calc(100vw - 48px));
    }

    .oganov-blog-list--mode-slider .oganov-blog-list__footer {
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .oganov-blog-list--mode-slider .oganov-blog-list__all-link {
        position: static;
        transform: none;
    }

    .oganov-blog-list--mode-slider .oganov-blog-list__all-link:hover {
        transform: translateY(-2px);
    }

    .oganov-blog-list--mode-pagination .oganov-blog-list__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .oganov-blog-list {
        --oganov-blog-list-gutter: 16px;
    }

    .oganov-blog-list--mode-slider {
        gap: 32px;
        padding: 96px 16px;
        box-sizing: border-box;
    }

    .oganov-blog-list--mode-slider .oganov-blog-list__mobile-head {
        display: block;
        width: 100%;
    }

    .oganov-blog-list--mode-slider .oganov-blog-list__track {
        gap: 8px;
    }

    .oganov-blog-list--mode-slider .oganov-blog-list__card,
    .oganov-blog-list--mode-slider .oganov-blog-list__card-link {
        width: min(358px, calc(100vw - 16px));
        min-width: min(358px, calc(100vw - 16px));
        min-height: 575px;
    }

    .oganov-blog-list__day {
        font-size: 64px;
    }

    .oganov-blog-list__month-year {
        font-size: 20px;
    }

    .oganov-blog-list__excerpt {
        font-size: 18px;
    }

    .oganov-blog-list__title {
        font-size: 24px;
        line-height: 1.2;
    }

    .oganov-blog-list__card--has-media .oganov-blog-list__media,
    .oganov-blog-list__card--has-media .oganov-blog-list__overlay {
        display: none;
    }

    .oganov-blog-list__card--has-media .oganov-blog-list__month-year,
    .oganov-blog-list__card--has-media .oganov-blog-list__title {
        color: #232323;
    }

    .oganov-blog-list__card--has-media .oganov-blog-list__excerpt {
        color: rgba(35, 35, 35, 0.6);
    }

    .oganov-blog-list__footer {
        justify-content: center;
        align-items: center;
        min-height: auto;
    }

    .oganov-blog-list__arrow {
        width: 56px !important;
        height: 56px !important;
    }

    .oganov-blog-list__all-link {
        display: none;
    }

    .oganov-blog-list--mode-pagination {
        gap: 16px;
        padding: 0;
    }

    .oganov-blog-list--mode-pagination .oganov-blog-list__track {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        max-width: 358px;
        margin: 0 auto;
    }

    .oganov-blog-list--mode-pagination .oganov-blog-list__card,
    .oganov-blog-list--mode-pagination .oganov-blog-list__card-link {
        width: 100%;
        min-width: 0;
        min-height: 575px;
    }

    .oganov-blog-list--mode-pagination .oganov-blog-list__footer {
        justify-content: center;
        min-height: auto;
    }

    .oganov-blog-list--mode-pagination .oganov-blog-list__pager {
        width: 100%;
        justify-content: center;
    }

    .oganov-blog-list__pager-button {
        width: 40px;
        height: 40px;
        border-radius: 6px;
        font-size: 14px;
    }
}
