/*
 * HOMEPAGE CSS
 * 
 * Strategy:
 * - High Density: News sites pack a lot of info. Fonts are slightly smaller, margins tighter.
 * - Visual Hierarchy: Big Headlines > Subheads > Meta Data (Time/Author).
 * - Contrast: Dark headings on light backgrounds, White text on dark video sections.
 */

/* =========================================
   1. HERO SECTION (Featured News)
   ========================================= */
.hnp-hero-section {
    background-color: var(--hnp-white);
    border-bottom: 1px solid var(--hnp-light-gray);
}

/* Main Big Story */
.hnp-featured-card {
    position: relative;
    overflow: hidden;
    height: 450px;
    border-radius: 4px;
}

.hnp-featured-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hnp-featured-card:hover img {
    transform: scale(1.05);
    /* Zoom effect common in news */
}

/* Overlay Gradient - Crucial for text readability */
.hnp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6) 50%, transparent);
    padding: 20px;
    z-index: 10;
}

.hnp-featured-card h2 {
    color: var(--hnp-white);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hnp-meta {
    font-size: 0.85rem;
    color: #ffd700;
    /* Gold color for meta on dark bg */
    font-weight: 600;
    text-transform: uppercase;
}

/* =========================================
   2. TOP STORIES (Sidebar of Hero)
   ========================================= */
.hnp-top-stories-list .story-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--hnp-light-gray);
    display: flex;
    align-items: flex-start;
}

.hnp-top-stories-list .story-item:last-child {
    border-bottom: none;
}

.story-count {
    background-color: var(--hnp-red);
    color: #fff;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.hnp-top-stories-list h4 {
    font-size: 1rem;
    font-family: var(--font-primary);
    margin-bottom: 5px;
    font-weight: 600;
}

/* =========================================
   3. VIDEO SECTION
   ========================================= */
.hnp-video-section {
    background-color: var(--hnp-black);
    color: var(--hnp-white);
    padding: 40px 0;
}

.hnp-video-card {
    position: relative;
    border: 1px solid #333;
    transition: transform 0.2s;
}

.hnp-video-card:hover {
    transform: translateY(-5px);
    border-color: var(--hnp-red);
}

.video-thumb {
    position: relative;
    height: 180px;
}

.video-thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 3rem;
    opacity: 0.8;
}

.hnp-video-card h3 {
    font-size: 1.1rem;
    color: #fff;
    padding: 10px;
    margin: 0;
}

/* =========================================
   4. CATEGORY BLOCKS & CARDS
   ========================================= */
.hnp-news-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.hnp-news-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.hnp-card-body {
    padding: 15px;
}

.hnp-news-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-primary);
}

.hnp-news-card:hover h3 {
    color: var(--hnp-red);
}

.hnp-card-meta {
    font-size: 0.8rem;
    color: var(--hnp-dark-gray);
}