/* --- Dark Theme --- */

/* General Body Styles */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #1f1f1f; /* Dark background for the page */
    color: #e0e0e0; /* Light grey default text color */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background-color: #121212; /* Very dark header background */
    color: #e0e0e0; /* Light text */
    text-align: center;
    padding: 0;
    flex-shrink: 0;
    border-bottom: 1px solid #444; /* Subtle separator line */
}

header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0.5em 1em;
}

#header-logo {
    width: 200px;
    height: 100px;
    object-fit: contain;
    display: block;
    /* Optional: If logo looks bad on dark, add filter */
    /* filter: invert(1) brightness(1.5); */
}

header h1 span {
    font-size: 1.5em;
    color: #e8e8e8; /* Slightly brighter text for header */
}

/* Main Content Area */
main {
    padding: 20px;
    flex-grow: 1;
}

/* Card Container Styles - Using Grid */
.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; /* Slightly increased gap */
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Card Styles - Dark Theme */
.card {
    background-color: #2c2c2c; /* Dark background for cards */
    border: 1px solid #444; /* Slightly lighter border */
    border-radius: 8px;
    box-shadow: none; /* Remove shadow, often looks odd on dark themes */
    overflow: hidden;
    text-decoration: none;
    color: #dcdcdc; /* Light text color for card content */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out; /* Smooth transition */
    display: flex;
    flex-direction: column;
}

.card:hover {
    background-color: #383838; /* Slightly lighten card on hover */
    border-color: #666; /* Make border slightly more prominent on hover */
    transform: none; /* Remove lift effect */
    box-shadow: none;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #444; /* Add separator between image and text */
}

.card-content {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
}

.card-content p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.4; /* Improve readability */
}

/* Footer Styles */
footer {
    background-color: #121212; /* Match header background */
    color: #aaa; /* Subtler text color for footer */
    text-align: center;
    padding: 1em 0;
    margin-top: 30px;
    flex-shrink: 0;
    border-top: 1px solid #444; /* Subtle separator line */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* Adjust gap */
    }
}

@media (max-width: 600px) {
    .card-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #header-logo {
       width: 150px;
       height: 75px;
    }

    header h1 span {
       font-size: 1.2em;
    }

    header h1 {
        padding: 0.5em;
        gap: 8px;
    }

     main {
        padding: 15px;
    }

    .card {
        background-color: #303030; /* Slightly adjust mobile card bg if needed */
    }
}

/* Optional: Style for general links if needed */
/*
a {
    color: #8ab4f8;
}
a:hover {
    color: #aecbfa;
}
*/