/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1E3A5F; /* Medium-dark blue */
    color: #FFF; /* White text for readability */
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

/* Header Styles */
header {
    background-color: #2b4d7a; /* Slightly lighter blue for header */
    color: white;
    padding: 1em 0;
    text-align: center;
    text-shadow: 1px 1px 2px black;
    position: relative;
}

.header {
    background: url('https://jimrasor.com/images/header.png') center/cover no-repeat;
    height: 7vh; /* Adjust height as needed */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h1 {
    font-family: Georgia, Times, serif;
    font-weight: 500;
    font-size: 2.5em;
    line-height: 1.2;
    margin: 0.2em 0;
}

header p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 10px;
    font-size: 1.4em;
    background: rgba(0, 0, 0, 0.5);
    color: #FFF;
    text-align: center;
}

/* Navigation Bar */
nav {
    margin: 1em 0;
    text-align: center;
}

nav a {
    margin: 0 1em;
    color: #9ed4f7; /* Light blue for contrast */
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Container Styles */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
    max-width: 1200px;
    margin: 2em auto;
    padding: 1em;
}

/* Section Styles */
.section {
    background: #274A78; /* Match header's blue */
    padding: 1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.section h2 {
    margin: 0.5em 0;
    font-family: Georgia, Times, serif;
    font-weight: 400;
    font-size: 1.5em;
    line-height: 1.1;
    text-align: center; /* Centers the title */    
}

.section p {
    font-size: 1.1em;
    margin: 0.5em 0 1em;
}

.section a {
    color: #66C2FF;
    font-weight: bold;
}

.section a:hover {
    text-decoration: underline;
}

/* Recent Headlines Section */
.recent-headlines {
    background-color: #274A78; /* Match the blue theme */
    border: 1px solid #1E3A5F; /* Slightly darker blue border */
    border-radius: 5px;
    padding: 15px;
    margin: 20px auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #FFF;
    max-width: 1200px;
    width: 100%; /* Full width within the container */
}

.recent-headlines ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-headlines li {
    margin-bottom: 10px;
    padding: 10px;
    background: #2b4d7a;
    border: 1px solid #1E3A5F;
    border-radius: 5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.recent-headlines li:hover {
    background-color: #1E3A5F;
    transform: scale(1.02);
}

.recent-headlines a {
    text-decoration: none;
    color: #9ed4f7; /* Light blue links */
    font-weight: bold;
}

.recent-headlines a:hover {
    text-decoration: underline;
}

/* Button Styles */
button {
    background-color: #66C2FF;
    color: #1E3A5F;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button:hover {
    background-color: #4FA9D9;
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 2em;
    font-size: 0.9em;
    background-color: #274A78;
    padding: 1em 0;
    color: #FFF;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav a {
        display: block;
        margin: 0.5em 0;
    }

    .container {
        padding: 0.5em;
    }

    .section {
        padding: 0.5em;
    }
}

/* Banner Styles */
.dynamic-banner,
.dynamic-banner-second {
    background-color: #555555;
    color: #000000; /* Black text */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-weight: bold;
    font-size: 1.2em;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin: 8px 0;
    border-radius: 5px;
}



#radar {
    max-height: 300px; /* Adjust this percentage or use px to fit your needs */
    width: auto; /* Maintains aspect ratio */
    display: block; /* Centers the image when combined with margin */
    margin: 0 auto; /* Center the image */
}

