﻿/* Pool Blog Module Refresh */
.pool-blog-block {
    --pool-blog-accent-1: #0f766e;
    --pool-blog-accent-2: #14b8a6;
    --pool-blog-title-color: #17384b;
    --pool-blog-text-color: #355368;
    --pool-blog-card-bg-start: #ffffff;
    --pool-blog-card-bg-end: #f4fbf9;
    --pool-blog-card-border: #d6ece8;
    --pool-blog-card-shadow: rgba(21, 71, 89, .10);
    --pool-blog-heading-bg-start: #0a5c63;
    --pool-blog-heading-bg-end: #65cabf;
    --pool-blog-heading-bg-mid: #198d84;
    --pool-blog-heading-border: rgba(9, 72, 76, .45);
    --pool-blog-heading-shadow: rgba(8, 60, 62, .28);
    --pool-blog-heading-icon-bg: rgba(255, 255, 255, .22);
    --pool-blog-heading-title: #ffffff;
    --pool-blog-media-bg-1: #d9f4ef;
    --pool-blog-media-bg-2: #c2ece4;
    margin-top: 26px;
    margin-bottom: 32px;
    text-align: left;
}

.pool-blog-block .pool-blog-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--pool-blog-heading-border);
    background: linear-gradient(90deg, var(--pool-blog-heading-bg-start) 0%, var(--pool-blog-heading-bg-mid) 58%, var(--pool-blog-heading-bg-end) 100%);
    box-shadow: 0 14px 28px var(--pool-blog-heading-shadow);
    overflow: hidden;
}

.pool-blog-block .pool-blog-heading:after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .26) 65%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.pool-blog-block .pool-blog-heading__main {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pool-blog-block .pool-blog-heading__icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--pool-blog-heading-icon-bg);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    flex: 0 0 auto;
}

.pool-blog-block .pool-blog-heading .pool-blog-heading__title {
    margin: 0 !important;
    color: var(--pool-blog-heading-title);
    display: block;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .25px;
    text-transform: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .14);
}

.pool-blog-block .pool-blog-heading > [id^="nav_pool-"] {
    margin-left: auto;
    flex: 0 0 auto;
}

.pool-blog-block .pool-blog-heading > [id^="nav_pool-"] [class*="swiper-button"] {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .44);
    color: #ffffff;
    box-shadow: none;
}

.pool-blog-block .pool-blog-heading > [id^="nav_pool-"] [class*="swiper-button"]:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--pool-blog-accent-1);
}

.pool-blog-block .pool-blog-carousel {
    margin-left: -10px;
    margin-right: -10px;
}
.pool-blog-block .pool-blog-carousel.swiper-container {
    cursor: grab;
    touch-action: pan-y;
}

.pool-blog-block .pool-blog-carousel.swiper-container:active {
    cursor: grabbing;
}

.pool-blog-block .pool-blog-carousel .swiper-wrapper,
.pool-blog-block .pool-blog-carousel .swiper-slide {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.pool-blog-block .pool-blog-item {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 16px;
}

.pool-blog-block .pool-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    border: 1px solid var(--pool-blog-card-border);
    background: linear-gradient(180deg, var(--pool-blog-card-bg-start) 0%, var(--pool-blog-card-bg-end) 100%);
    box-shadow: 0 12px 26px var(--pool-blog-card-shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.pool-blog-block .pool-blog-media {
    position: relative;
    margin: 12px 12px 10px;
    padding: 5px;
    border-radius: 14px;
    border: 5px solid #e4efec;
    box-shadow: inset 0 0 0 1px #ffffff;
    background: linear-gradient(140deg, var(--pool-blog-media-bg-1) 0%, var(--pool-blog-media-bg-2) 100%);
    overflow: hidden;
}

.pool-blog-block .pool-blog-media:before {
    content: '';
    display: block;
    padding-top: 54%;
}

.pool-blog-block .pool-blog-media .pool-blog-media__link,
.pool-blog-block .pool-blog-media > .lazy {
    position: absolute;
    inset: 5px;
    display: block;
    height: 100% !important;
    border-radius: 9px;
    overflow: hidden;
    background: #ffffff;
}

.pool-blog-block .pool-blog-media .pool-blog-media__img,
.pool-blog-block .pool-blog-media > .lazy > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    transition: transform .35s ease;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.pool-blog-block .pool-blog-title {
    margin: 0 14px 18px;
    padding-top: 10px;
    border-top: 1px solid #d8e9e4;
    font-size: 16px;
    line-height: 1.45;
    min-height: calc(2.9em + 10px);
    display: flex;
    align-items: flex-start;
}

.pool-blog-block .pool-blog-title a {
    color: var(--pool-blog-title-color);
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.9em;
}

.pool-blog-block .pool-blog-card:hover {
    transform: translateY(-3px);
    border-color: #bfe4de;
    box-shadow: 0 16px 30px rgba(17, 71, 88, .16);
}

.pool-blog-block .pool-blog-card:hover .pool-blog-media .pool-blog-media__img,
.pool-blog-block .pool-blog-card:hover .pool-blog-media > .lazy > img {
    transform: none;
}

.pool-blog-block .pool-blog-card:hover .pool-blog-title a {
    color: #0e5a66;
}

@media (max-width: 991px) {
    .pool-blog-block .pool-blog-heading {
        margin-bottom: 15px;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .pool-blog-block .pool-blog-heading .pool-blog-heading__title {
        font-size: 20px;
    }

    .pool-blog-block .pool-blog-heading__icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .pool-blog-block {
        margin-top: 14px;
        margin-bottom: 18px;
    }

    .pool-blog-block .pool-blog-heading {
        margin-bottom: 14px;
        padding: 9px 10px;
        border-radius: 12px;
        gap: 8px;
    }

    .pool-blog-block .pool-blog-heading:after {
        left: 10px;
        right: 10px;
        height: 1px;
    }

    .pool-blog-block .pool-blog-heading .pool-blog-heading__title {
        font-size: 17px;
        line-height: 1.28;
    }

    .pool-blog-block .pool-blog-heading__icon {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        font-size: 11px;
    }

    .pool-blog-block .pool-blog-heading > [id^="nav_pool-"] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
    }

    .pool-blog-block .pool-blog-heading > [id^="nav_pool-"] [class*="swiper-button"] {
        width: 24px;
        height: 24px;
        line-height: 22px;
        font-size: 11px;
    }

    .pool-blog-block .pool-blog-item {
        padding-left: 6px;
        padding-right: 6px;
    }

    .pool-blog-block .pool-blog-media {
        margin: 8px 8px 8px;
        padding: 4px;
        border-width: 4px;
        border-radius: 11px;
    }

    .pool-blog-block .pool-blog-media .pool-blog-media__link,
    .pool-blog-block .pool-blog-media > .lazy {
        inset: 4px;
        border-radius: 7px;
    }

    .pool-blog-block .pool-blog-title {
        margin: 0 12px 13px;
        padding-top: 10px;
        border-top: 1px solid #d8e9e4;
        font-size: 14px;
        line-height: 1.45;
        min-height: calc(2.9em + 10px);
    }

    .pool-blog-block .pool-blog-title a {
        line-height: 1.45;
        min-height: 2.9em;
    }

    .pool-blog-block .pool-blog-media:before {
        padding-top: 50%;
    }
}


