/* Hero for the main page */
.hero-bg-index {
    background-image: 
    radial-gradient(circle at 15% 50%, rgba(255, 153, 51, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(100, 255, 218, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, black, transparent 50%),
    url('images/index_bg.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

}


/* Features / Cards (Home) */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: -80px; /* Overlap hero */
    position: relative;
    z-index: 10;
    margin-bottom: 120px;
}


/* Latest Section */
.latest-update {
    margin-bottom: 120px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 48px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h3 {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.view-all {
    color: var(--accent);
    font-weight: 500;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.news-item {
    padding-right: 24px;
    background-color: var(--card-bg); /* Added card bg for robustness */
    padding: 24px; /* Added padding */
    border-radius: 18px; /* Added radius */
    border: 1px solid transparent; 
    transition: border-color 0.3s;
}

.news-item:hover {
    border-color: var(--border-color);
}

.news-item .date {
    font-family: monospace;
    color: var(--accent);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 12px;
}

.news-item h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.news-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsive Index */
@media (max-width: 768px) {
    .features {
        margin-top: 40px; 
    }
}
