/* =========================================
   BLOG: APPLE NEWSROOM STYLE (Corrected)
   ========================================= */

body { background-color: #ffffff; color: #1d1d1f; }

/* MAIN SECTION */
.news-feed { padding: 120px 0 100px; } /* Added padding-top for fixed navbar */

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

/* --- HERO STORY --- */
.hero-story {
    display: block;
    margin-bottom: 80px;
    text-decoration: none;
    color: inherit;
    group: hover; 
}

.hero-img-wrapper {
    width: 100%; height: 500px;
    border-radius: 12px;
    background: #f5f5f7;
    margin-bottom: 30px;
    overflow: hidden; /* Ensures image stays inside corners */
}

/* IMAGE HANDLING */
.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image fill the box perfectly */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Zoom Effect on Hover */
.hero-story:hover .hero-img-wrapper img { transform: scale(1.03); }

.hero-text { max-width: 800px; }
.hero-text h2 { font-size: 2.8rem; font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; color: #1d1d1f; margin-top: 10px; }
.hero-story:hover h2 { color: var(--primary); }


/* --- GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Column strict grid */
    gap: 40px;
    row-gap: 60px;
}

.news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    group: hover;
}

.card-image {
    width: 100%;
    aspect-ratio: 16/10; /* Classic rectangular ratio */
    border-radius: 12px;
    background: #f5f5f7;
    overflow: hidden; /* Hide overflow for zoom effect */
    margin-bottom: 20px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-content h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: #1d1d1f; margin-top: 8px; }
.news-card:hover h3 { color: var(--primary); }

/* SHARED DATE STYLE */
.date-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .news-feed { padding-top: 100px; }
    .hero-img-wrapper { height: 300px; }
    .hero-text h2 { font-size: 2rem; }
    .news-grid { grid-template-columns: 1fr; } /* 1 Column on mobile */
}
