body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

.responsive-image {
    width: 100%;
    height: auto;
}

/* Navigation Bar */
nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    padding: 0.5rem;
    margin: 0;
    height: 40px;
    background-color: #161616;
}

nav ul li {
    margin: 0 1rem;
    color: #fff;
    cursor: pointer;
}

nav ul li a:hover {
    background-color: #424242;
    color: #E53935;
}


/* Logo Styling */
nav ul .logo img {
    width: auto;
    height: 40px; /* Adjust height as needed */
}

/* Link Styling */
nav ul li a {
    width: auto;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

/* Search Bar Styling */
nav ul .search {
    width: auto;
}

nav ul .spacer {
    flex: 0.5;
}

.main-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3:1 ratio for content and sidebar */
    grid-template-rows: auto; /* Auto height for first row, remaining for the second */
    gap: 1rem;
}

/* Set default color for text inside .headl */
.headl {
    color: black;
    text-decoration: none; /* Removes underline on link */
}

/* Change text color on hover */
.headl:hover {
    color: purple;
}

.featured-story {
    grid-column: 1 / span 2; /* Featured story spans both columns */              
    background-color: #f4f4f4;
    padding: 1rem;
}

.news-section {
    background-color: #f9f9f9;
    padding: 1rem;
}

div.ad-sidebar {
    grid-column: 3; /* Make the sidebar span both rows */
    grid-row: 1 / span 2; /* Sidebar spans from the first to the last row */
    background-color: #f4f4f4;
    padding: 1rem;
}

/* Footer */
footer {
    background-color: #161616;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

footer .footer-nav a {
    color: #fff;
    margin: 0 0.5rem;
    text-decoration: none;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-bar {
        width: 100%;
        margin-top: 0.5rem;
    }
    .main-content-grid {
        grid-template-columns: 1fr; /* Single-column layout on smaller screens */
    }

    nav ul li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: left;
        padding-left: 1.5rem;
    }
}