body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e0f7fa; /* Light blue background */
    color: #333;
}

header {
    background-color: #004ddc; /* Blue background */
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    position: fixed; /* Make the header fixed */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure the header stays on top */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

main {
    padding: 2rem;
    padding-top: 12rem; /* Increase top padding to account for the fixed header */
}

.news-article {
    background-color: #fff;
    border: 1px solid #000079; /* Blue border */
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.news-article h2 {
    margin-top: 0;
    color: #6817c5; /* Blue text color */
}

.news-article p {
    margin: 0.75rem 0;
    color: #555;
}

.news-article small {
    color: #777;
}

.toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.toggle-slider {
    display: flex;
    border: 1px solid #add8e6; /* Light blue border */
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    position: relative;
    width: fit-content;
    font-size: 0.8rem; /* Smaller font size */
}

.toggle-option {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1;
}

.toggle-option.active {
    background-color: #add8e6; /* Light blue background */
    color: #fff;
    z-index: 2;
}

.toggle-option:not(.active) {
    background-color: #f0f8ff; /* Light blue background for inactive */
    color: #333;
}

.toggle-option:hover {
    background-color: #add8e6;
    color: #fff;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background-color: #add8e6;
    border-radius: 16px;
    transition: left 0.3s ease;
    z-index: 0;
}

.toggle-option.active ~ .toggle-slider::before {
    left: 50%;
}
