* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.navbar {
    background: #00457c;
    color: white;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar nav a {
    color: white;
    margin-left: 15px;
    font-weight: 500;
}

.ad-container {
    background: #ebebeb;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 0.8rem;
    margin: 1rem auto;
}

.top-ad {
    width: 728px;
    height: 90px;
}

.content-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
}

.hero-section {
    margin-bottom: 30px;
}

.news-card.featured h2 {
    font-size: 2rem;
    margin-top: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.news-card.featured {
    grid-column: 1 / -1;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-card.featured img {
    height: 450px;
}

.image-container {
    position: relative;
    overflow: hidden; /* Ensures the zoomed image stays within bounds */
}

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

.headline-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 15px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.headline-overlay h2, 
.headline-overlay h3 {
    margin: 0;
}

.headline-overlay a {
    color: white;
}

.card-content {
    padding: 15px;
}

.site-footer {
    background: #00457c;
    color: white;
    padding: 3rem 20px;
    margin-top: 40px;
    text-align: center;
}

.footer-content p {
    margin: 15px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a {
    color: white;
    margin: 0 10px;
    font-size: 0.9rem;
}

/* Full Article Page Styling */
.single-article {
    background: white;
    padding: 30px;
    border-radius: 4px;
}

.art-body p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}