/* page-news.css - TalentHub */

/* Page Banner Component */
.page-banner {
    position: relative;
    padding: 70px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
    color: #ffffff;
    text-align: center;
}
.banner-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.banner-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}
.banner-breadcrumb a:hover {
    color: #93c5fd;
}
.banner-breadcrumb .sep {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}
.banner-breadcrumb .current {
    color: #93c5fd;
    font-weight: 700;
}
.page-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.page-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 50px 0 60px;
    }
    .page-title {
        font-size: 30px;
    }
    .page-subtitle {
        font-size: 15px;
    }
}

/* News List Grid */
.news-page-section {
    padding: 80px 0 100px;
    background: #f8fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.4);
}

.news-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.06);
}

.news-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
}

.news-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

.news-title a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-readmore {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    margin-top: auto;
}

.news-readmore:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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