.cew-noticias-layout {
    padding: 40px 20px;
    width: 100%;
    color: #01211d;
    box-sizing: border-box;
    background-color: #f5f5f5;
}

.cew-noticias-layout *,
.cew-noticias-layout *::before,
.cew-noticias-layout *::after {
    box-sizing: border-box;
}

/* Breadcrumb */
.cew-noticias-layout__breadcrumb {
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 20px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cew-noticias-layout__breadcrumb-parent {
    color: #a3a3a3;
    font-size: 13px;
    line-height: 24px;
}

.cew-noticias-layout__breadcrumb-current {
    color: #023832;
    font-size: 13px;
    font-weight: 600;
    line-height: 24px;
}

.cew-noticias-layout__breadcrumb-separator {
    color: #a3a3a3;
}

/* Title */
.cew-noticias-layout__title {
    text-align: center;
    margin: 0 0 40px;
    color: #01211d;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 600;
}

/* Filters */
.cew-noticias-layout__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    max-width: 954px;
    margin-left: auto;
    margin-right: auto;
}

.cew-noticias-layout__filter-btn {
    border: 1px solid #034f46;
    background: transparent;
    border-radius: 50px;
    color: #034f46;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cew-noticias-layout__filter-btn:hover {
    background-color: rgba(3, 79, 70, 0.1);
}

.cew-noticias-layout__filter-btn.is-active {
    background-color: #034f46;
    color: #ffffff;
}

.cew-noticias-layout__filter-btn:focus-visible {
    outline: 2px solid rgba(3, 79, 70, 0.35);
    outline-offset: 2px;
}

/* Layout */
.cew-noticias-layout__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Main content */
.cew-noticias-layout__main {
    min-width: 0;
}

/* Featured article */
.cew-noticias-layout__featured {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cew-noticias-layout__featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.cew-noticias-layout__featured-img {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.cew-noticias-layout__featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cew-noticias-layout__featured-link:hover .cew-noticias-layout__featured-img img {
    transform: scale(1.03);
}

.cew-noticias-layout__featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4dcdc 0%, #e8e8e8 100%);
}

.cew-noticias-layout__featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
}

.cew-noticias-layout__featured-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #034f46;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 16px;
    border-radius: 4px;
}

.cew-noticias-layout__featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: #ffffff;
}

.cew-noticias-layout__featured-title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cew-noticias-layout__featured-excerpt {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cew-noticias-layout__featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.cew-noticias-layout__featured-date {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
}

.cew-noticias-layout__featured-cta {
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.cew-noticias-layout__featured-cta span[aria-hidden="true"] {
    transition: transform 0.2s ease;
}

.cew-noticias-layout__featured-link:hover .cew-noticias-layout__featured-cta,
.cew-noticias-layout__featured-link:focus .cew-noticias-layout__featured-cta {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cew-noticias-layout__featured-link:hover .cew-noticias-layout__featured-cta span[aria-hidden="true"],
.cew-noticias-layout__featured-link:focus .cew-noticias-layout__featured-cta span[aria-hidden="true"] {
    transform: translateX(4px);
}

/* Cards grid */
.cew-noticias-layout__cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.cew-noticias-layout__card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cew-noticias-layout__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cew-noticias-layout__card[hidden] {
    display: none !important;
}

.cew-noticias-layout__card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cew-noticias-layout__card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.cew-noticias-layout__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cew-noticias-layout__card-link:hover .cew-noticias-layout__card-img img {
    transform: scale(1.05);
}

.cew-noticias-layout__card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4dcdc 0%, #e8e8e8 100%);
}

.cew-noticias-layout__card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(3, 79, 70, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    border-radius: 4px;
}

.cew-noticias-layout__card-body {
    padding: 20px;
}

.cew-noticias-layout__card-title {
    margin: 0 0 8px;
    color: #01211d;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cew-noticias-layout__card-excerpt {
    margin: 0 0 15px;
    color: #5a5a5a;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cew-noticias-layout__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.cew-noticias-layout__card-date {
    font-size: 12px;
    color: #888888;
    font-weight: 500;
}

.cew-noticias-layout__card-cta {
    font-size: 13px;
    font-weight: 600;
    color: #034f46;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.cew-noticias-layout__card-cta span[aria-hidden="true"] {
    transition: transform 0.2s ease;
}

.cew-noticias-layout__card-link:hover .cew-noticias-layout__card-cta,
.cew-noticias-layout__card-link:focus .cew-noticias-layout__card-cta {
    color: #01211d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cew-noticias-layout__card-link:hover .cew-noticias-layout__card-cta span[aria-hidden="true"],
.cew-noticias-layout__card-link:focus .cew-noticias-layout__card-cta span[aria-hidden="true"] {
    transform: translateX(4px);
}

/* Load more */
.cew-noticias-layout__load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.cew-noticias-layout__load-more {
    border: 2px solid #034f46;
    background: transparent;
    border-radius: 50px;
    color: #034f46;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 40px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cew-noticias-layout__load-more:hover {
    background-color: #034f46;
    color: #ffffff;
}

.cew-noticias-layout__load-more:focus-visible {
    outline: 2px solid rgba(3, 79, 70, 0.35);
    outline-offset: 3px;
}

/* Sidebar */
.cew-noticias-layout__sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cew-noticias-layout__sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.cew-noticias-layout__sidebar-title {
    margin: 0 0 20px;
    color: #01211d;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* Popular list */
.cew-noticias-layout__popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cew-noticias-layout__popular-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cew-noticias-layout__popular-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #01211d;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cew-noticias-layout__popular-content {
    flex: 1;
    min-width: 0;
}

.cew-noticias-layout__popular-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cew-noticias-layout__sidebar-item-title {
    display: block;
    color: #01211d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cew-noticias-layout__sidebar-item-date {
    display: block;
    font-size: 12px;
    color: #888888;
    font-weight: 500;
}

/* Social links */
.cew-noticias-layout__social-links {
    display: flex;
    gap: 15px;
}

.cew-noticias-layout__social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFB800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #01211d;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cew-noticias-layout__social-link:hover {
    background: #FFCC4D;
    transform: scale(1.08);
}

.cew-noticias-layout__social-link:focus-visible {
    outline: 2px solid rgba(255, 184, 0, 0.5);
    outline-offset: 2px;
}

.cew-noticias-layout__social-link svg {
    width: 22px;
    height: 22px;
}

/* Responsive */
@media (max-width: 1200px) {
    .cew-noticias-layout {
        padding: 30px 20px;
    }

    .cew-noticias-layout__layout {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }

    .cew-noticias-layout__featured-img {
        height: 380px;
    }

    .cew-noticias-layout__featured-title {
        font-size: 24px;
    }
}

@media (max-width: 1024px) {
    .cew-noticias-layout {
        padding: 25px 20px;
    }

    .cew-noticias-layout__title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .cew-noticias-layout__filters {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cew-noticias-layout__filters::-webkit-scrollbar {
        display: none;
    }

    .cew-noticias-layout__filter-btn {
        flex-shrink: 0;
    }

    .cew-noticias-layout__layout {
        grid-template-columns: 1fr;
    }

    .cew-noticias-layout__sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cew-noticias-layout__sidebar-card {
        flex: 1 1 calc(50% - 15px);
        min-width: 280px;
    }

    .cew-noticias-layout__featured-img {
        height: 320px;
    }

    .cew-noticias-layout__featured-content {
        padding: 20px;
    }

    .cew-noticias-layout__featured-title {
        font-size: 22px;
    }

    .cew-noticias-layout__featured-excerpt {
        display: none;
    }

    .cew-noticias-layout__cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .cew-noticias-layout {
        padding: 20px 15px;
    }

    .cew-noticias-layout__breadcrumb {
        padding: 12px 15px;
        margin-bottom: 25px;
    }

    .cew-noticias-layout__title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .cew-noticias-layout__filters {
        margin-bottom: 30px;
    }

    .cew-noticias-layout__filter-btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .cew-noticias-layout__featured-img {
        height: 280px;
    }

    .cew-noticias-layout__featured-tag {
        font-size: 10px;
        padding: 6px 10px;
    }

    .cew-noticias-layout__featured-title {
        font-size: 20px;
    }

    .cew-noticias-layout__cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cew-noticias-layout__card-img {
        height: 200px;
    }

    .cew-noticias-layout__card-body {
        padding: 15px;
    }

    .cew-noticias-layout__sidebar-card {
        flex: 1 1 100%;
    }

    .cew-noticias-layout__load-more {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Animation for cards */
@keyframes cew-news-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cew-noticias-layout__card--animate {
    animation: cew-news-fade-in 0.3s ease forwards;
}

/* Empty state */
.cew-noticias-layout__empty {
    text-align: center;
    padding: 60px 20px;
    color: #5a5a5a;
    font-size: 16px;
    grid-column: 1 / -1;
}