.ectaro-news-component {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.ectaro-news-wrap {
    border-radius: 14px;
    overflow: hidden;
}

.ectaro-news-inner {
    width: 100%;
}

.ectaro-news-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ectaro-news-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 6px;
    border: 1px solid #E4ECF5;
    border-radius: 999px;
    background: #FFFFFF;
}

.ectaro-news-tab {
    min-height: 38px;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #334155;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.ectaro-news-tab:hover,
.ectaro-news-tab.is-active,
.ectaro-news-tab-input-news:checked ~ .ectaro-news-tabs .ectaro-news-tab-news,
.ectaro-news-tab-input-announcements:checked ~ .ectaro-news-tabs .ectaro-news-tab-announcements {
    border-color: #03162F;
    background: #03162F;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.ectaro-news-panel {
    display: none;
}

.ectaro-news-panel.is-active {
    display: block;
}

.ectaro-news-tab-input-news:checked ~ .ectaro-news-panels .ectaro-news-panel-news,
.ectaro-news-tab-input-announcements:checked ~ .ectaro-news-panels .ectaro-news-panel-announcements {
    display: block;
}

.ectaro-news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ectaro-news-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
}

.ectaro-news-filter,
.ectaro-news-sort-button {
    border: 1px solid #E4ECF5;
    background: #FFFFFF;
    color: #334155;
    border-radius: 999px;
    min-height: 38px;
    transition: border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.ectaro-news-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.ectaro-news-filter:hover,
.ectaro-news-filter.is-active {
    border-color: #03162F;
    background: #03162F;
    color: #FFFFFF;
    transform: translateY(-1px);
    text-decoration: none;
}

.ectaro-news-sort {
    position: relative;
    flex: 0 0 auto;
    min-width: 188px;
}

.ectaro-news-sort-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 10px 16px 10px 18px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    outline: none;
    text-align: left;
    box-shadow: none;
}

.ectaro-news-sort-button:hover,
.ectaro-news-sort-button:focus,
.ectaro-news-sort:focus-within .ectaro-news-sort-button,
.ectaro-news-sort.is-open .ectaro-news-sort-button {
    border-color: #03162F;
    background: #03162F;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.ectaro-news-sort-icon {
    position: relative;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    transition: transform 0.22s ease;
}

.ectaro-news-sort-icon:before {
    content: "";
    position: absolute;
    inset: 0;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.ectaro-news-sort.is-open .ectaro-news-sort-icon {
    transform: rotate(180deg);
}

.ectaro-news-sort-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    width: 100%;
    min-width: 204px;
    padding: 8px;
    border: 1px solid #D8E3EF;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.ectaro-news-sort:focus-within .ectaro-news-sort-options,
.ectaro-news-sort.is-open .ectaro-news-sort-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ectaro-news-sort-option {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ectaro-news-sort-option:hover,
.ectaro-news-sort-option.is-active {
    background: #03162F;
    color: #FFFFFF;
    text-decoration: none;
}

.ectaro-news-sort-option:hover {
    transform: translateX(2px);
}

.ectaro-news-grid {
    display: grid;
}

.ectaro-news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-style: solid;
    border-width: 1px;
    border-color: #E4ECF5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.ectaro-news-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.ectaro-news-image-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #EAF1F8;
    text-decoration: none;
}

.ectaro-news-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ectaro-news-card:hover .ectaro-news-image-link img {
    transform: scale(1.025);
}

.ectaro-news-badge {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 2;
    max-width: calc(100% - 24px);
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #03162F;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ectaro-news-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 126px;
    padding: 14px 48px 15px 14px;
}

.ectaro-news-title {
    margin: 0 0 9px;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: 0;
}

.ectaro-news-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #03162F;
    text-decoration: none;
}

.ectaro-news-title a:hover {
    text-decoration: none;
}

.ectaro-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #6B7787;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.ectaro-news-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.ectaro-news-button {
    position: absolute;
    right: 13px;
    bottom: 13px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #03162F;
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ectaro-news-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.ectaro-news-button i,
.ectaro-news-button svg {
    width: 13px;
    height: 13px;
    font-size: 13px;
    line-height: 1;
}

.ectaro-news-empty {
    border: 1px solid #E4ECF5;
    border-radius: 12px;
    background: #FFFFFF;
    color: #64748B;
    padding: 28px;
    text-align: center;
    font-weight: 600;
}

.ectaro-news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.ectaro-news-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #E4ECF5;
    border-radius: 999px;
    background: #FFFFFF;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ectaro-news-pagination .page-numbers:hover,
.ectaro-news-pagination .page-numbers.current {
    border-color: #03162F;
    background: #03162F;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.ectaro-news-announcements {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ectaro-news-announcement-card {
    position: relative;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 40px;
    min-height: 168px;
    padding: 22px;
    border: 1px solid #E4ECF5;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: none;
    transition: transform 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.ectaro-news-announcement-card:hover {
    border-color: #03162F;
    transform: translateY(-3px);
}

.ectaro-news-announcement-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #EAF1F8;
    text-decoration: none;
}

.ectaro-news-announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ectaro-news-announcement-card:hover .ectaro-news-announcement-image img {
    transform: scale(1.025);
}

.ectaro-news-announcement-content {
    min-width: 0;
}

.ectaro-news-announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #03162F;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.ectaro-news-announcement-mark {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-radius: 6px 6px 10px 10px;
    transform: rotate(-10deg);
}

.ectaro-news-announcement-mark:before {
    content: "";
    position: absolute;
    left: 4px;
    top: -5px;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

.ectaro-news-announcement-title {
    margin: 0 0 18px;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0;
}

.ectaro-news-announcement-title a {
    color: #03162F;
    text-decoration: none;
}

.ectaro-news-announcement-title a:hover {
    text-decoration: none;
}

.ectaro-news-announcement-date {
    display: block;
    color: #101828;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.ectaro-news-announcement-button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border-radius: 999px;
    background: #03162F;
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ectaro-news-announcement-button:hover {
    background: #03162F;
    color: #FFFFFF;
    transform: translateX(2px);
    text-decoration: none;
}

.ectaro-news-announcement-button i,
.ectaro-news-announcement-button svg {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 767px) {
    .ectaro-news-tabs {
        width: 100%;
        display: flex;
    }

    .ectaro-news-tab {
        flex: 1 1 0;
        padding-left: 12px;
        padding-right: 12px;
    }

    .ectaro-news-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .ectaro-news-sort,
    .ectaro-news-sort-button {
        width: 100%;
    }

    .ectaro-news-sort-options {
        left: 0;
        right: auto;
        width: 100%;
    }

    .ectaro-news-body {
        min-height: 116px;
    }

    .ectaro-news-announcement-card {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
        padding: 16px;
    }

    .ectaro-news-announcement-image {
        aspect-ratio: 16 / 9;
        border-radius: 14px;
    }

    .ectaro-news-announcement-badge {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .ectaro-news-announcement-title {
        margin-bottom: 12px;
        font-size: 21px;
    }

    .ectaro-news-announcement-date {
        font-size: 14px;
    }

    .ectaro-news-announcement-button {
        position: absolute;
        right: 16px;
        bottom: 16px;
        width: 34px;
        height: 34px;
        background: #03162F;
        color: #FFFFFF;
    }

    .ectaro-news-announcement-content {
        padding-right: 44px;
    }
}
