/* --- Global Styles & Layout --- */

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background-color: #f4f4f4;
    line-height: 1.6;
    margin: 0;
    min-height: 100vh; /* Ensures body takes up at least screen height */
    display: flex;
    flex-direction: column; /* Allows footer to stick to the bottom */
}

/* Container for max width and centering */
.container {
    max-width: 1200px; 
    width: 90%; 
    margin: 0 auto; 
    padding: 0 10px;
}

/* --- Typography --- */

h1 {
    color: #1a5276; /* Dark Blue */
    font-size: 2.2em;
    margin-bottom: 10px;
}

h2 {
    color: #2c3e50; /* Charcoal */
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.intro-text {
    font-size: 1.1em;
    color: #555;
}

/* --- Header and Navigation --- */

header {
    background: #1a5276;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    color: #ffffff;
    margin: 0;
    font-size: 1.8em;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    display: inline-block;
    padding-top: 5px;
}

nav a:hover {
    color: #b2e0ff; /* Light blue on hover */
}

/* --- Main Content Area --- */

.main-content {
    padding: 40px 0;
    flex-grow: 1; /* Pushes the footer down */
}

/* --- Links Grid (Specific to index.html) --- */

.links-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.link-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    flex: 1 1 300px; /* Allows cards to wrap nicely */
    transition: transform 0.2s;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.link-card h3 {
    color: #1a5276;
    margin-top: 0;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
}

/* --- Footer --- */

footer {
    background: #333;
    color: #cccccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}