/* News Page Styles */

body {
    background-color: #ffffff;
}

/* Compact Hero Section */
.page-hero {
    padding: 2rem 0 0.5rem;
    /* Reduced bottom padding */
    background: #ffffff;
    text-align: center;
    border-bottom: none;
    /* Remove border */
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.page-hero h1 {
    font-size: 2.5rem;
    color: var(--color-highlight);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* News Grid */
.news-section {
    padding-top: 0 !important;
    /* Force remove section padding */
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 2rem;
    padding: 0 0 6rem;
    /* Remove top padding */
    margin-top: 0;
}

/* Modern News Card */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
}

.news-card__media {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .news-card__media img {
    transform: scale(1.08);
}

/* Date Badge */
.news-card .date {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    letter-spacing: 0.02em;
}

.news-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
    line-height: 1.3;
    color: var(--color-highlight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .more-link {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    align-self: flex-start;
}

.news-card .more-link::after {
    content: '→';
    margin-left: 0.4rem;
    transition: transform 0.3s ease;
}

.news-card .more-link:hover::after {
    transform: translateX(4px);
}

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

@media (max-width: 768px) {
    .page-hero {
        padding: 2rem 0 1rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card__media {
        height: 180px;
    }
}
