/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.main-container {
    display: flex;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    gap: 20px;
}

.top-story {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-story-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.top-story-text h1 {
    font-size: 2em;
    margin: 0;
}

.top-story-text p {
    font-size: 1.2em;
    color: #555;
}

.secondary-stories {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.secondary-story {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.secondary-story img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.sidebar-section h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.sidebar-section p,
.sidebar-section button,
.sidebar-section ol,
.sidebar-section a {
    font-size: 1em;
    color: #333;
}

.sidebar-section button {
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.sidebar-section button:hover {
    background-color: #0056b3;
}

.weather-forecast {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.weather-forecast .day {
    text-align: center;
}

.weather-forecast .day p {
    margin: 0;
}

/* Media Queries */

/* Tablet and below */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .secondary-stories {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .top-story-text h1 {
        font-size: 1.5em;
    }

    .top-story-text p {
        font-size: 1em;
    }
}

/* Mobile and below */
@media (max-width: 480px) {
    .top-story-text h1 {
        font-size: 1.2em;
    }

    .top-story-text p {
        font-size: 0.9em;
    }

    .sidebar-section h3 {
        font-size: 1em;
    }

    .sidebar-section p,
    .sidebar-section button,
    .sidebar-section ol,
    .sidebar-section a {
        font-size: 0.9em;
    }
}
