/* --- General Styles & Color Scheme --- */
:root {
    --primary-color: #5C0F17; /* Burgundy from reference site */
    --text-color: #333333;
    --background-color: #F8F8F8;
    --footer-bg-color: #333333;
    --footer-text-color: #ffffff;
    --border-color: #e0e0e0;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    text-align: center;
}

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

h2 {
    font-size: 1.8em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 25px;
}

/* --- Disclaimer Text Style --- */
.disclaimer {
    text-align: center;
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    margin-top: -15px; /* Pulls it closer to the heading */
    margin-bottom: 25px; /* Keeps space before the grid */
}


/* --- Header & Footer --- */
header {
    background-color: white;
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

header img {
    max-width: 300px;
    height: auto;
}

footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
}

/* --- Instrument Grid (UPDATED WITH FLEXBOX) --- */
.instrument-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.instrument-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    overflow: hidden; /* Ensures the rounded corners apply to the image */
    width: 160px; /* Fixed width for the item */
}

.instrument-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.instrument-item a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    padding: 15px;
}

.instrument-item img {
    width: 100%;
    height: 120px; /* Fixed height for uniform look */
    object-fit: contain; /* Scales image to fit without stretching */
    margin-bottom: 10px;
}

.instrument-item p {
    margin: 0;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    .instrument-grid {
        gap: 20px;
    }
    .instrument-item {
        width: 140px; /* Slightly smaller fixed width */
    }
}

@media screen and (max-width: 480px) {
    main {
        width: 95%;
    }

    h1 {
        font-size: 1.8em;
    }

    header img {
        max-width: 220px;
    }

    .instrument-grid {
       gap: 15px;
    }
    
    .instrument-item {
        width: calc(50% - 30px); /* Creates a two-column layout on small screens */
    }

    .instrument-item img {
        height: 100px; /* Slightly smaller for mobile */
    }
    footer {
        font-size: 0.8em;
    }
}
/* --- Role Selection Page --- */
.tagline {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    margin-top: -20px;
    margin-bottom: 40px;
}

.role-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.role-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    color: var(--primary-color);
}

.role-card h2 {
    /* Override default h2 styles for the card */
    border-bottom: none;
    padding-bottom: 0;
    margin: 0 0 8px 0;
    font-size: 1.7em;
    text-align: center;
}

.role-card .role-description {
    margin: 0;
    font-size: 1em;
    color: #666;
    line-height: 1.4;
}

/* 1. The container centers its content */
.list-container {
    text-align: center; /* This will center any inline-block children */
}

/* 2. The <ul> element is styled for centering and appearance */
.list-container ul {
    display: inline-block;      /* Makes the list only as wide as its content, allowing it to be centered */
    text-align: left;           /* Aligns the text *inside* the list to the left for readability */
    
    /* This is the key for your request to have the bullet "right next to" the text */
    list-style-position: inside; 
    
    /* Optional: Removes default browser padding on the left of the list */
    padding-left: 0;
}