.content-layout__sidebar,
.news-layout__sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}

.sidebar-content-card,
.news-sidebar-card {
    position: relative;
    border: 1px solid rgba(217, 237, 242, 0.95);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 253, 255, 0.98) 100%);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.sidebar-content-card::before,
.news-sidebar-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #0f766e 0%, #0891b2 55%, #38bdf8 100%);
    z-index: 2;
}

.sidebar-content-card--content,
.sidebar-content-card--banner {
    padding: 22px;
}

.news-sidebar-card {
    padding: 0;
}

.sidebar-content-card__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.sidebar-content-card__heading--banner {
    margin-bottom: 16px;
}

.sidebar-content-card__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #0891b2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 6px 10px rgba(8, 145, 178, 0.18));
}

.sidebar-content-card__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sidebar-content-card__banner-title,
.sidebar-content-card__title {
    position: relative;
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sidebar-content-card__title--banner {
    margin: 0;
}

.news-sidebar-card h3 {
    position: relative;
    margin: 0;
    padding: 22px 22px 16px 56px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.news-sidebar-card h3::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 22px;
    width: 20px;
    height: 20px;
    background: #0891b2;
    filter: drop-shadow(0 6px 10px rgba(8, 145, 178, 0.18));
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.75C12 2.75 5.75 10.08 5.75 14.39C5.75 18.14 8.58 21 12 21C15.42 21 18.25 18.14 18.25 14.39C18.25 10.08 12 2.75 12 2.75Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.75C12 2.75 5.75 10.08 5.75 14.39C5.75 18.14 8.58 21 12 21C15.42 21 18.25 18.14 18.25 14.39C18.25 10.08 12 2.75 12 2.75Z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}

.sidebar-content-card__banner-header {
    position: relative;
    padding: 0;
    margin: 0 0 16px;
    background: transparent;
}

.sidebar-content-card__banner-header::before {
    display: none;
}

.sidebar-content-card__banner-media {
    padding: 0;
    background: transparent;
}

.sidebar-content-card__banner-link {
    display: block;
    text-decoration: none;
    border-radius: 18px;
    overflow: hidden;
}

.sidebar-content-card__banner-image {
    display: block;
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.sidebar-content-card__banner-link:hover .sidebar-content-card__banner-image {
    transform: scale(1.025);
    filter: saturate(1.05);
}

.sidebar-content-card__banner-text {
    margin: 16px 0 0;
    padding: 16px;
    border: 1px solid #e4f2f6;
    border-radius: 18px;
    background: #ffffff;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.sidebar-content-card__banner-text p {
    margin: 0 0 12px;
}

.sidebar-content-card__banner-text p:last-child {
    margin-bottom: 0;
}

.sidebar-content-card__banner-text ul,
.sidebar-content-card__banner-text ol {
    margin: 0 0 12px 20px;
    padding: 0;
    list-style: revert;
}

.sidebar-content-card__banner-text li {
    margin-bottom: 6px;
}

.sidebar-content-card__image-link {
    display: block;
    text-decoration: none;
    border-radius: 18px;
    overflow: hidden;
}

.sidebar-content-card__image {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.sidebar-content-card__image-link:hover .sidebar-content-card__image {
    transform: scale(1.025);
    filter: saturate(1.05);
}

.sidebar-content-card__text {
    color: #475569;
    line-height: 1.75;
    font-size: 15px;
}

.sidebar-content-card__text p {
    margin: 0 0 12px;
}

.sidebar-content-card__text p:last-child {
    margin-bottom: 0;
}

.sidebar-content-card__text ul,
.sidebar-content-card__text ol {
    margin: 0 0 12px 20px;
    padding: 0;
    list-style: revert;
}

.sidebar-content-card__text li {
    margin-bottom: 6px;
}

.sidebar-content-card__actions {
    margin-top: 18px;
}

.sidebar-content-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0891b2 0%, #0ea5e9 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(8, 145, 178, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-content-card__btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(8, 145, 178, 0.24);
}

.news-sidebar-card p {
    margin: 0;
    padding: 0 22px 20px;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
}

.news-sidebar-list {
    margin: 0;
    padding: 0 18px 20px;
    list-style: none;
    display: grid;
    gap: 10px;
}

.news-sidebar-list li {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 14px 14px 14px 16px;
    border: 1px solid #e4f2f6;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.news-sidebar-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, #0891b2 0%, #38bdf8 100%);
    opacity: 0.85;
}

.news-sidebar-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 145, 178, 0.28);
    box-shadow: 0 14px 28px rgba(8, 145, 178, 0.11);
}

.news-sidebar-list a {
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.news-sidebar-list a:hover {
    color: #0891b2;
}

.news-sidebar-list span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef9fd;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
}

.news-sidebar-card__email {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0 22px 22px;
    padding: 0 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0891b2 0%, #0ea5e9 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    word-break: break-word;
    box-shadow: 0 12px 24px rgba(8, 145, 178, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-sidebar-card__email:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(8, 145, 178, 0.24);
}

.news-sidebar-card .empty-state--compact {
    margin: 0 18px 20px;
}

@media (max-width: 768px) {
    .sidebar-content-card,
    .news-sidebar-card {
        border-radius: 20px;
    }

    .sidebar-content-card--content,
    .sidebar-content-card--banner {
        padding: 18px;
    }

    .sidebar-content-card__heading {
        gap: 9px;
        margin-bottom: 13px;
    }

    .sidebar-content-card__heading--banner {
        margin-bottom: 15px;
    }

    .sidebar-content-card__icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .sidebar-content-card__banner-title,
    .sidebar-content-card__title {
        font-size: 19px;
    }

    .news-sidebar-card h3 {
        padding: 20px 18px 14px 52px;
        font-size: 19px;
    }

    .news-sidebar-card h3::before {
        left: 18px;
        top: 20px;
        width: 18px;
        height: 18px;
    }

    .news-sidebar-card p {
        padding: 0 18px 18px;
        font-size: 14px;
    }

    .news-sidebar-list {
        padding: 0 14px 18px;
    }

    .news-sidebar-list li {
        padding: 13px 13px 13px 15px;
    }

    .news-sidebar-card__email {
        margin: 0 18px 18px;
        min-height: 44px;
        font-size: 14px;
    }

    .sidebar-content-card__banner-image,
    .sidebar-content-card__image,
    .sidebar-content-card__image-link,
    .sidebar-content-card__banner-link {
        border-radius: 16px;
    }

    .sidebar-content-card__banner-text {
        margin-top: 14px;
        padding: 14px;
        border-radius: 16px;
        font-size: 14px;
    }

    .sidebar-content-card__text {
        font-size: 14px;
    }

    .sidebar-content-card__btn {
        min-height: 42px;
        font-size: 14px;
    }

    .news-sidebar-card .empty-state--compact {
        margin: 0 14px 18px;
    }
}