/* public/css/news.css */
.nws-container {
    max-width: 1280px;
    margin: calc(var(--nav-height, 80px) + 64px) auto 64px auto;
    padding: 0 24px;
    font-family: var(--ff-primary);
}

.nws-header {
    text-align: center;
    margin-bottom: 64px;
}

.nws-title {
    font-size: var(--fs-display-xl);
    font-weight: var(--fw-bold);
    color: var(--clr-ink);
    letter-spacing: -1.2px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.nws-subtitle {
    font-size: var(--fs-heading-md);
    color: var(--clr-mute);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.3;
}

/* Highlight News */
.nws-highlight-section {
    margin-bottom: 64px;
}

.nws-feature-card {
    display: flex;
    background-color: var(--clr-canvas);
    border-radius: var(--rd-md);
    overflow: hidden;
    min-height: 400px;
    border: 1px solid var(--clr-hairline);
}

.nws-feature-image-wrapper {
    flex: 1.2; /* Takes slightly more space than content */
    position: relative;
    aspect-ratio: 4 / 3; /* Enforce 4:3 landscape ratio */
    min-height: 300px;
}

.nws-feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.nws-feature-content {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nws-feature-date {
    font-size: var(--fs-body-sm);
    color: var(--clr-mute);
    margin-bottom: 12px;
    font-weight: var(--fw-semibold);
}

.nws-feature-title {
    font-size: var(--fs-heading-xl);
    font-weight: var(--fw-bold);
    color: var(--clr-ink);
    letter-spacing: -1.2px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.nws-feature-summary {
    font-size: var(--fs-body-md);
    color: var(--clr-body);
    line-height: 1.4;
    margin-bottom: 24px;
}



/* Section Titles */
.nws-section-title {
    font-size: var(--fs-heading-lg);
    font-weight: var(--fw-bold);
    color: var(--clr-ink);
    margin-bottom: 24px;
}

/* Latest News (3 cols) */
.nws-latest-section {
    margin-bottom: 64px;
}

.nws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.nws-pin-card {
    background-color: var(--clr-surface-card);
    border-radius: var(--rd-md);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.nws-pin-card:hover {
    transform: translateY(-4px);
}

.nws-pin-image-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio (Landscape) */
}

.nws-pin-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nws-pin-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nws-pin-date {
    font-size: var(--fs-caption-md);
    color: var(--clr-mute);
    margin-bottom: 8px;
}

.nws-pin-title {
    font-size: var(--fs-heading-md);
    font-weight: var(--fw-semibold);
    color: var(--clr-ink);
    margin-bottom: 12px;
    line-height: 1.3;
}

.nws-pin-summary {
    font-size: var(--fs-body-sm);
    color: var(--clr-body);
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}



/* Other News (List style) */
.nws-list-section {
    margin-bottom: 64px;
}

.nws-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nws-list-item {
    display: flex;
    background-color: var(--clr-canvas);
    border-radius: var(--rd-md);
    padding: 16px 24px;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--clr-hairline);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.nws-list-item:hover {
    background-color: var(--clr-surface-card);
}

.nws-list-date {
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-bold);
    color: var(--clr-mute);
    width: 120px;
    flex-shrink: 0;
}

.nws-list-title {
    font-size: var(--fs-body-lg);
    font-weight: var(--fw-semibold);
    color: var(--clr-ink);
    flex: 1;
}

.nws-list-icon {
    color: var(--clr-primary);
    font-size: var(--fs-heading-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .nws-feature-card {
        flex-direction: column;
    }
    
    .nws-feature-image-wrapper {
        min-height: 250px;
    }
    
    .nws-feature-content {
        padding: 32px;
    }
    
    .nws-title {
        font-size: var(--fs-display-lg);
    }
    
    .nws-list-item {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 4px 16px;
        align-items: center;
    }
    
    .nws-list-date {
        grid-column: 1 / -1;
        width: auto;
    }
    
    .nws-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 16px; /* for scrollbar */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        
        /* Make it bleed to the edges */
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .nws-pin-card {
        flex: 0 0 260px; /* Fixed smaller width for horizontal scroll */
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .nws-feature-content {
        padding: 20px;
    }
    
    .nws-title {
        font-size: var(--fs-heading-xl);
    }

    .nws-subtitle {
        font-size: var(--fs-body-md);
    }
    
    .nws-feature-title {
        font-size: var(--fs-heading-lg);
    }
    
    .nws-grid {
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .nws-pin-card {
        flex: 0 0 220px; /* Even smaller width for tiny screens */
    }
    
    .nws-list-item {
        padding: 16px;
    }
}

