
.addest-widget,
.addest-widget * {
    box-sizing: border-box;
}

.addest-widget {
    width: 100%;
    font-family: inherit;
}

.addest-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.addest-tabs {
    width: 58%;
    max-width: 760px;
    margin: 0 auto 38px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.addest-tab {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 68px;
    margin: 0;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    background: #efefef;
    color: #151515;
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font: inherit;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.addest-tab:hover,
.addest-tab:focus-visible {
    transform: translateY(-1px);
}

.addest-tab:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.addest-tab.is-active {
    background: #2f72c8;
    color: #fff;
    box-shadow: 0 8px 18px rgba(47, 114, 200, 0.18);
}

.addest-tab-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

.addest-tab-label {
    display: inline-block;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}

.addest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.addest-card[hidden] {
    display: none !important;
}

.addest-card {
    min-width: 0;
    overflow: visible;
    background: transparent !important;
    border: 0 !important;
    border-radius: 22px;
    box-shadow: none !important;
    transition: transform .22s ease;
}

.addest-card:hover {
    transform: translateY(-4px);
}

.addest-card-link {
    position: relative !important;
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    color: inherit;
    text-decoration: none !important;
    overflow: hidden;
    border-radius: inherit;
    background: transparent !important;
}

.addest-media {
    --addest-bottom-darkness: .82;
    position: relative !important;
    width: 100%;
    height: 470px;
    min-height: 470px;
    overflow: hidden;
    background: #dfe3e8;
    border-radius: 22px;
    isolation: isolate;
}

.addest-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.04) 0%,
        rgba(0,0,0,.08) 34%,
        rgba(0,0,0,.34) 60%,
        rgba(0,0,0,var(--addest-bottom-darkness)) 100%
    );
    pointer-events: none;
}

.addest-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0,0,0,.10);
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
}

.addest-card:hover .addest-media::after {
    opacity: 1;
}

.addest-image {
    position: absolute !important;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover;
    object-position: center center;
    transition: transform .38s ease;
}

.addest-card:hover .addest-image {
    transform: scale(1.035);
}

.addest-content {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 26px 26px 30px !important;
    background: transparent !important;
    margin: 0 !important;
}

.addest-title {
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,.20);
}

.addest-description {
    margin: 0 !important;
    padding: 0 !important;
    color: rgba(255,255,255,.92) !important;
    font-size: 14px;
    line-height: 1.75;
    font-weight: 400;
    max-width: 100%;
    text-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.addest-empty {
    padding: 30px 20px;
    text-align: center;
    color: #777;
    font-size: 15px;
}

@media (max-width: 1024px) {
    .addest-tabs {
        width: 75%;
    }

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

    .addest-media {
        height: 430px;
        min-height: 430px;
    }

    .addest-title {
        font-size: 25px;
    }
}

@media (max-width: 767px) {
    .addest-tabs {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 26px;
    }

    .addest-tab {
        min-height: 58px;
    }

    .addest-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .addest-media {
        height: 440px;
        min-height: 440px;
    }

    .addest-content {
        padding: 22px 22px 25px !important;
    }

    .addest-title {
        font-size: 24px;
        margin-bottom: 12px !important;
    }

    .addest-description {
        font-size: 13px;
        line-height: 1.7;
    }
}
