/* --- Header modification for sub-page --- */
.header-nav-only {
    background-color: var(--dark-green);
    color: var(--text-light);
    padding: 24px 80px;
}

/* --- Layout Container --- */
.stories-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 80px 100px 80px;
}

/* --- Header Section --- */
.stories-header {
    margin-bottom: 50px;
    border-bottom: 2px solid rgba(14, 61, 38, 0.1);
    padding-bottom: 20px;
}

.stories-header h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--dark-green);
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.stories-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Common Components --- */
.category-tag {
    display: inline-block;
    background-color: var(--dark-green);
    color: var(--text-light);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more {
    display: inline-block;
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.read-more:hover {
    color: #e57f18;
    transform: translateX(3px);
}

/* --- Featured Story (Top Large Block) --- */
.featured-story {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.featured-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-text h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.featured-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* --- Stories Grid (3 Column Layout) --- */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.story-card {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}

.story-card:hover {
    transform: translateY(-4px);
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.card-body h3 {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the 'read more' link to the bottom */
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
    .header-nav-only, .stories-container {
        padding-left: 40px;
        padding-right: 40px;
    }

    .stories-grid {
        grid-template-columns: 1fr 1fr; /* 2 Columns on Tablets */
        gap: 30px;
    }

    .featured-story {
        grid-template-columns: 1fr; /* Stack featured story */
        gap: 30px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header-nav-only, .stories-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .stories-grid {
        grid-template-columns: 1fr; /* 1 Column on Mobile */
    }
    
    .stories-header {
        margin-bottom: 35px;
    }
}