/* ============================================================
   NEWS PAGES — noticias.css
   Covers: news listing + single article
   ============================================================ */

/* --- News Listing Layout --- */
.news-listing {
    padding: 80px 0;
    background: var(--bg-alt);
}

.news-listing__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.news-listing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* News Card */
.news-list-card {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.news-list-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.news-list-card__image {
    height: 180px;
    overflow: hidden;
}

.news-list-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-list-card:hover .news-list-card__image img {
    transform: scale(1.05);
}

.news-list-card__placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-dark);
    font-size: 2rem;
}

.news-list-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-list-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-card__excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-list-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.news-list-card__link {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.news-list-card__link:hover {
    color: var(--primary-dark);
}

.news-list-card__date {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* --- Sidebar --- */
.news-sidebar {
    position: sticky;
    top: 140px;
}

.news-sidebar__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 16px;
}

.news-sidebar__category {
    margin-bottom: 28px;
}

.news-sidebar__cat-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Sidebar mini card */
.sidebar-news-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    color: inherit;
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-item:hover {
    background: var(--primary-light);
    padding-left: 8px;
    padding-right: 8px;
}

.sidebar-news-item__image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-news-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-news-item__placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-dark);
    font-size: 0.9rem;
}

.sidebar-news-item__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sidebar-news-item__title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-item__date {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* --- Single Article --- */
.article-layout {
    padding: 80px 0;
    background: var(--white);
}

.article-layout__grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 32px;
    align-items: start;
}

/* Left sidebar (related from same category) */
.article-sidebar-left {
    position: sticky;
    top: 140px;
}

.article-sidebar-left__cat {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

/* Article content */
.article-content {
    min-width: 0;
}

.article-content__title {
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-content__intro {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.article-content__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.article-content__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-content__image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 32px;
}

.article-content__image-placeholder {
    width: 100%;
    height: 300px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-dark);
    font-size: 3rem;
    margin-bottom: 32px;
}

.article-content__body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content__body p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content__body h2 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-content__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.article-content__tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-dark);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Right sidebar */
.article-sidebar-right {
    position: sticky;
    top: 140px;
}

/* Sidebar job items */
.sidebar-job-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: inherit;
    transition: background var(--transition);
}

.sidebar-job-item:last-child {
    border-bottom: none;
}

.sidebar-job-item:hover {
    background: var(--primary-light);
    padding-left: 8px;
    padding-right: 8px;
}

.sidebar-job-item__image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-job-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-job-item__placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-dark);
    font-size: 0.8rem;
}

.sidebar-job-item__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sidebar-job-item__title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-job-item__date {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .article-layout__grid {
        grid-template-columns: 1fr 280px;
    }

    .article-sidebar-left {
        display: none;
    }
}

@media (max-width: 1024px) {
    .news-listing__layout {
        grid-template-columns: 1fr 260px;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .news-listing__layout {
        grid-template-columns: 1fr;
    }

    .news-listing__grid {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }

    .article-layout__grid {
        grid-template-columns: 1fr;
    }

    .article-sidebar-right {
        position: static;
    }

    .article-content__title {
        font-size: 1.3rem;
    }

    .article-content__body p {
        font-size: 1rem;
    }
}
