/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Navbar styles */
header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

nav .logo {
    font-size: 1.8em;
    font-weight: bold;
}

nav .nav-links {
    list-style: none;
    display: flex;
}

nav .nav-links li {
    margin-left: 20px;
}

nav .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
}

nav .nav-links a:hover {
    text-decoration: underline;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 5px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1a1a1a;
        position: absolute;
        top: 50px;
        left: 0;
        z-index: 999;
    }

    nav .nav-links.show {
        display: flex;
    }

    nav .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }
}

/* Main content styles */
main {
    padding-top: 70px;
    width: 90%;
    margin: 0 auto;
}

.content {
    display: flex;
    gap: 20px;
}

.main-feed {
    flex: 3;
}

aside {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header {
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.5em;
    margin: 0;
}

/* Feed container */
#feed-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Feed item styles */
.feed-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 730px;
    height: 150px;
    display: flex;
    overflow: hidden;
}

.feed-item img {
    width: 150px;
    height: 100%;
    object-fit: cover;
    border-right: 1px solid #ddd;
}

.feed-item-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feed-item h3 {
    font-size: 1.2em;
    margin: 0 0 5px 0;
}

.feed-item h3 a {
    text-decoration: none;
    color: #333;
}

.feed-item h3 a:hover {
    text-decoration: underline;
}

.feed-item p {
    font-size: 0.9em;
    margin: 0;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
}

.publication, .pubdate {
    font-size: 0.8em;
    color: #888;
}

.description a {
    display: block;
    margin-top: 5px;
    color: #007BFF;
    text-decoration: none;
}

.description a:hover {
    text-decoration: underline;
}

/* Major Stories styles */
#major-stories-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.major-story-item {
    display: flex;
    gap: 10px;
}

.major-story-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.major-story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.major-story-content h3 {
    font-size: 1em;
    margin: 0;
}

.major-story-content a {
    text-decoration: none;
    color: #333;
}

.major-story-content a:hover {
    text-decoration: underline;
}

/* Weather styles */
#weather-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

#weather-container p {
    margin: 5px 0;
}

/* Footer styles */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
}

footer .footer-content a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

footer .footer-content a:hover {
    text-decoration: underline;
}

/* Popup styles */
.popup {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px 5px 0 0;
    display: none;
    z-index: 1001;
}

.popup.show {
    display: block;
}

/* Responsive media queries */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .feed-item {
        flex-direction: column;
        height: auto;
    }

    .feed-item img {
        width: 100%;
        height: auto;
    }

    .feed-item-content {
        padding: 10px 5px;
    }
}
