/* General home section spacing */
.home-section {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    line-height: 1.7;
}

/* Section headers */
.home-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--color-darkgrey);
}

/* Split header with divider and See All button */
.section-header {
    display: flex;
    align-items: center;
    margin: 2.5rem 0 2rem;
    width: 100%;
}

.section-header h2 {
    font-size: 3rem !important;
    font-weight: 400;
    margin: 0;
    padding-right: 1rem;
    white-space: nowrap;
    color: var(--color-darkgrey);
    text-transform: uppercase;
}

.section-header .divider {
    flex: 1;
    height: 2px;
    background-color: var(--color-border, #000);
    margin: 0 1rem;
}

.section-header .see-all {
    font-size: 1rem !important;
    font-weight: 700;
    text-transform: uppercase;
    background: #000;
    color: #fff;
    padding: 0.25rem 0.75rem;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.section-header .see-all:hover {
    background: var(--ghost-accent-color, #e00);
}

/* Keep post cards grid aligned */
/* Updated grid for featured + 3 small posts */
.home-section .post-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 1.25rem;
}

/* Ensure only 3 equal columns after the large post */
.post-card-small {
    grid-column: span 1;
}

@media (max-width: 768px) {
    .home-section .post-feed {
        grid-template-columns: 1fr;
        gap: 7rem;
    }

    .post-card-large {
        grid-column: 1;
    }
}

/* First post larger */
.post-card-large {
    grid-column: 1 / -1; /* span the entire row */
    font-size: 1.2rem !important;
    line-height: 1.6;
}

.post-card-large img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    max-height: 400px;
    object-fit: cover;
}

.post-card-large h2 {
    font-size: 2.0rem !important;
    line-height: 1.4 !important;
}

/* Smaller posts */
.post-card-small {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.post-card-small img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.post-card-small h2 {
    font-size: 1.2rem !important;
    line-height: 1.4;
}

/* Dataset section list only */
.datasets-section .dataset-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.datasets-section .dataset-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.datasets-section .dataset-list li:last-child {
    border-bottom: none;
}

.datasets-section .dataset-list a {
    text-decoration: none;
    font-weight: 500;
    color: var(--color-primary);
    transition: color 0.2s ease;
}

.datasets-section .dataset-list a:hover {
    text-decoration: underline;
    color: var(--ghost-accent-color, var(--color-primary));
}