.home-news-composite {
    width: 100%;
}

.home-news-composite.has-tcas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    max-width: 1420px;
    margin: 0 auto;
    padding: 48px 30px 56px;
    background: #f7f4f8;
}

/* Flatten the Vue component wrappers so the TCAS card and news cards share one grid. */
.home-news-composite.has-tcas .home-news-composite__news,
.home-news-composite.has-tcas .home-news,
.home-news-composite.has-tcas .home-news-content,
.home-news-composite.has-tcas .home-news-post,
.home-news-composite.has-tcas .post-grid {
    display: contents !important;
}

.home-news-composite.has-tcas .home-news-tabs {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    min-width: 0;
    margin: 0 0 4px !important;
    padding: 0 12px !important;
    overflow-x: auto;
    border: 1px solid #e5dce8;
    border-radius: 14px;
    background: #fff;
    scrollbar-width: thin;
}

.home-news-composite.has-tcas .home-tcas-announcement {
    grid-column: 1;
    grid-row: 2;
}

.home-news-composite.has-tcas .post-card {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.home-news-composite.has-tcas .post-card:nth-child(1) {
    grid-column: 2;
    grid-row: 2;
}

.home-news-composite.has-tcas .post-card:nth-child(2) {
    grid-column: 3;
    grid-row: 2;
}

.home-news-composite.has-tcas .post-card:nth-child(3) {
    grid-column: 4;
    grid-row: 2;
}

.home-news-composite.has-tcas .home-news-footer {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 18px !important;
}

.home-tcas-announcement,
.home-news-composite.has-tcas .post-item {
    overflow: hidden;
    min-width: 0;
    height: 100%;
    border: 1px solid #e2d6e5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(75, 29, 82, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-tcas-announcement:hover,
.home-news-composite.has-tcas .post-item:hover {
    transform: translateY(-5px);
    border-color: #c8a7cf;
    box-shadow: 0 16px 34px rgba(75, 29, 82, .14);
}

.home-tcas-announcement {
    background: linear-gradient(180deg, #fff 0%, #fcf8fd 100%);
}

.home-tcas-announcement__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: #281b2b;
    text-decoration: none;
}

.home-tcas-announcement__link:hover,
.home-tcas-announcement__link:focus-visible {
    color: #281b2b;
    text-decoration: none;
}

.home-tcas-announcement__image,
.home-news-composite.has-tcas .post-item .post-pic {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e9e0eb;
}

.home-tcas-announcement__image img,
.home-news-composite.has-tcas .post-item .post-pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

.home-tcas-announcement:hover .home-tcas-announcement__image img,
.home-news-composite.has-tcas .post-item:hover .post-pic img {
    transform: none;
}

.home-tcas-announcement__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.home-tcas-announcement__label {
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f2e5f4;
    color: var(--primary, #782f86);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.home-tcas-announcement__content h2 {
    margin: 12px 0 18px;
    color: #281b2b;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.home-tcas-announcement__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: auto;
    padding: 11px 14px;
    border-radius: 10px;
    background: var(--primary, #782f86);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.home-tcas-announcement__action .material-symbols-outlined {
    font-size: 19px;
    transition: transform .2s ease;
}

.home-tcas-announcement__link:hover .home-tcas-announcement__action .material-symbols-outlined,
.home-tcas-announcement__link:focus-visible .home-tcas-announcement__action .material-symbols-outlined {
    transform: translateX(4px);
}

.home-news-composite.has-tcas .post-item {
    display: flex;
    flex-direction: column;
}

.home-news-composite.has-tcas .post-item .post-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px 18px 18px !important;
}

.home-news-composite.has-tcas .post-item .post-title {
    display: block;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: initial;
    -webkit-line-clamp: initial;
}

.home-news-composite.has-tcas .post-item .post-description,
.home-news-composite.has-tcas .post-item .post-synopsis {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-news-composite.has-tcas .post-item .post-link,
.home-news-composite.has-tcas .post-item .read-more {
    margin-top: auto;
}

@media (max-width: 991.98px) {
    .home-news-composite.has-tcas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 34px 22px 42px;
    }

    .home-news-composite.has-tcas .home-tcas-announcement {
        grid-column: 1;
        grid-row: 2;
    }

    .home-news-composite.has-tcas .post-card:nth-child(1) {
        grid-column: 2;
        grid-row: 2;
    }

    .home-news-composite.has-tcas .post-card:nth-child(2) {
        grid-column: 1;
        grid-row: 3;
    }

    .home-news-composite.has-tcas .post-card:nth-child(3) {
        grid-column: 2;
        grid-row: 3;
    }

    .home-news-composite.has-tcas .home-news-footer {
        grid-row: 4;
    }
}

@media (max-width: 575.98px) {
    .home-news-composite.has-tcas {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 24px 15px 34px;
    }

    .home-news-composite.has-tcas .home-news-tabs {
        grid-column: 1;
        grid-row: 1;
        border-radius: 12px;
    }

    .home-news-composite.has-tcas .home-tcas-announcement {
        grid-column: 1;
        grid-row: 2;
    }

    .home-news-composite.has-tcas .post-card:nth-child(1) {
        grid-column: 1;
        grid-row: 3;
    }

    .home-news-composite.has-tcas .post-card:nth-child(2) {
        grid-column: 1;
        grid-row: 4;
    }

    .home-news-composite.has-tcas .post-card:nth-child(3) {
        grid-column: 1;
        grid-row: 5;
    }

    .home-news-composite.has-tcas .home-news-footer {
        grid-column: 1;
        grid-row: 6;
        margin-top: 10px !important;
    }

    .home-tcas-announcement__content h2 {
        font-size: 20px;
    }
}
