/* --- Global Styles --- */
body {
    font-family: Arial, sans-serif; /* Professional and readable font */
    line-height: 1.6;
    margin: 0; /* Remove default browser margin */
    padding: 0;
    background-color: #f4f4f9; /* Light, subtle background */
    color: #333; /* Standard text color */
}

/* --- Layout Containers --- */
header, nav, main, footer {
    width: 90%; /* Center the content */
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
}

main {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* --- Header Styles --- */
header {
    background-color: #004d99; /* Deep blue background */
    color: white;
    padding: 20px 5%; /* Increased vertical padding for prominence */
    text-align: center;
    border-bottom: 5px solid #00c4cc; /* Cyan accent line */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: 5px;
    font-size: 2.5em;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* --- Navigation Styles --- */
nav {
    background-color: #333;
    padding: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Use flexbox to arrange links horizontally */
    justify-content: center;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #00c4cc; /* Highlight on hover */
    color: #333;
}

/* --- Main Content and Sections --- */
section {
    background-color: white;
    padding: 20px 40px;
    margin-bottom: 20px;
    border-radius: 8px; /* Soft rounded corners */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #004d99;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 0;
}

/* --- Footer Styles --- */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
}

/* --- Figure/Image Styles --- */
figure {
    /* Center the figure element horizontally */
    margin: 20px auto; 
    padding: 10px;
    max-width: 100%; /* Ensure figure doesn't exceed its container */
    border: 1px solid #ddd; /* Light border around the figure */
    border-radius: 4px;
    background-color: #f9f9f9; /* Subtle background for the figure box */
    text-align: center; /* Center the image and caption content */
}

figure img {
    /* Ensure image scales down nicely, preventing overflow */
    max-width: 100%;
    height: auto;
    display: block; /* Removes any default bottom spacing */
    margin: 0 auto 10px auto; /* Center image and add spacing above caption */
}

figcaption {
    /* Style the caption text */
    font-style: italic;
    font-size: 0.9em;
    color: #555; /* Slightly muted text color */
    padding-top: 5px;
    border-top: 1px dashed #e0e0e0; /* Separator line above the caption */
}