

/* Overall Page Styling */
body {
    background-color: #c9cfd4;  /* Light gray-blue */
    color: #2c3e50;             /* Dark blue-gray */
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center; /* Center body content */
}

/* Header and Heading Styles */
h1, h2 {
    font-family: 'Poppins', sans-serif;
    color: #005a87;
    margin: 20px 0;
}

/* Main Navigation - Blends with Page */
.main-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    font-size: 1.15em;
    background: transparent; /* No background to blend in */
}

.main-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.main-nav ul li {
    display: inline-block;
}

/* Navigation Link Styling */
.main-nav a, .subnav a, footer a {
    text-decoration: none;
    color: #005a87; /* Darker blue for contrast */
    font-weight: bold;
}

/* Visited links stay blue */
.main-nav a:visited, .subnav a:visited, footer a:visited {
    color: #005a87;
}

/* Hover Effect */
.main-nav a:hover, .subnav a:hover, footer a:hover {
    text-decoration: underline;
}

/* Sub Navigation Bar - Flexbox & Compact */
.subnav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d6dbe1; /* Light gray-blue for subtle contrast */
    padding: 5px 0; /* Adjusted padding */
    font-size: 0.85em; /* Smaller text */
    border-radius: 5px;
    margin-top: 5px;
}

.subnav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px; /* Consistent spacing */
}

.subnav ul li {
    display: flex;
    align-items: center;
}

/* Main Content Box - Wider */
main {
    padding: 40px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: inline-block;
    text-align: left; /* Inside text aligned left for readability */
    max-width: 1000px; /* Wider box */
    width: 90%; /* Also scales smaller screens */
    box-sizing: border-box;
    margin: 20px auto;
}

/* Image and Caption Centered */
figure {
    text-align: center;
}

figcaption {
    font-style: italic;
    color: #555;
}

/* Base List Styling */
ul {
    line-height: 1.8;
    padding-left: 20px; /* Add some indentation */
    text-align: left;
    margin: 0 auto;
    display: block; /* Don't force it inline */
}

/* Proper indentation for nested lists */
ul ul {
    padding-left: 20px; /* Further indent nested lists */
}

/* Optional: style list items if you want */
li {
    margin-bottom: 5px; /* Add some spacing between items */
}

/* Footer Styling */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #005a87;
    color: white;
}

/* Footer Links */
footer a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}

/* Footer Visited Links */
footer a:visited {
    color: white;
}

/* ============================== */
/* ✅ MEDIA QUERIES FOR <main> ONLY */
/* ============================== */

/* Laptops / Small Desktops (981px - 1400px) */
@media screen and (min-width: 981px) and (max-width: 1400px) {
    main {
        max-width: 1000px;
        width: 90%;
        margin: 20px auto;
    }
}

/* Tablets (601px - 980px) */
@media screen and (min-width: 601px) and (max-width: 980px) {
    main {
        max-width: 800px;
        width: 95%;
        margin: 20px auto;
    }
}

/* Mobile Devices (370px - 600px) */
@media screen and (min-width: 370px) and (max-width: 600px) {
    main {
        max-width: 100%;
        width: 98%;
        margin: 10px auto;
    }
}
