/* General styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #001f3f;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

header {
    background-color: #003366;
    padding: 20px;
    text-align: center;
    width: 100%;
}

header h1 {
    margin: 0;
    font-size: 2em;
    color: #ffffff;
}

header p {
    font-size: 1.2em;
    color: #d1d1d1;
}

/* Container for buttons on the index page */
.button-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Container for buttons within each content section */
.content-section {
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
}

.content-section h2 {
    font-size: 1.8em;
    color: #ffdd57;
    border-bottom: 2px solid #ffdd57;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: left;
}

/* Sub-sections within group pages */
.sub-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

/* Card style for all buttons */
.group-card {
    background-color: #00509e;
    color: #ffffff;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Full width of grid cell */
}

.group-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: #ffdd57;
    color: #001f3f;
}

/* Adjustments for different screen sizes */
@media (max-width: 1200px) {
    .button-container, .sub-section {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 800px) {
    .button-container, .sub-section {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    .button-container, .sub-section {
        grid-template-columns: 1fr; /* Single column layout on very small screens */
    }
}

