/* General styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Button styles */
button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    outline: none; /* Removes default focus outline */
    transition: background-color 0.3s, box-shadow 0.3s;
}

button:hover {
    background-color: #0056b3;
}

button:focus {
    box-shadow: 0 0 0 3px rgba(0,123,255,0.5); /* Custom focus style */
}

/* Navbar styles */
.navbar {
    background-color: #00308F;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.navbar-left {
    color: white;
    font-size: 17px;
    padding-left: 20px;
    flex: 1;
}

.navbar-right {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
}

.navbar-right a {
    color: white;
    text-align: center;
    padding: 14px 10px;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
}

.navbar-right a:hover {
    background-color: #ddd;
    color: black;
}

/* Main content styles */
.main-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 80px;
}

.container {
    width: 60%;
    max-width: 800px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

/* Advertisement styles */
.advertisement {
    width: 30%;
    max-width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px;
    position: sticky;
    top: 20px;
}

.advertisement img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.advertisement-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.advertisement-list li {
    margin-bottom: 15px;
}

.buy-button {
    display: inline-block;
    padding: 5px 10px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}

.buy-button:hover {
    background-color: #0056b3;
}

/* Footer styles */
.footer {
    width: 100%;
    background-color: #00308F;
    color: white;
    text-align: center;
    padding: 10px 0;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* RSS Feed styles */
.headline-list article {
    margin-bottom: 20px; /* Space between RSS links */
}

.headline-list .rss-meta {
    margin-top: 5px; /* Space between link and meta info */
    font-size: 14px; /* Smaller font size for meta info */
    color: #555; /* Grey color for meta info */
}

/* Responsive styles */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-left, .navbar-right {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .navbar-right {
        justify-content: center;
    }

    .navbar-right a {
        padding: 10px;
        font-size: 14px;
    }

    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .container, .advertisement {
        width: 90%;
        max-width: none;
        margin: 20px auto;
    }
}
