/* Style the main container */
.courses-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
}

/* Style the main heading: "Featured Programmes" */
.courses-container h1 {
    color: #ffcc00; /* Gold */
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

/* Style the sub-heading: "Training Schedule" */
.courses-container h2 {
    color: #ffcc00; /* Gold */
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    margin: 40px 0 15px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    text-align: left;
}

/* --- Style the links --- */

/* Target all links directly inside the container that are NOT in the bottom info box */
.courses-container > a {
    color: #cccccc;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    margin: 2px 0;
    border-radius: 5px;
    transition: color 0.2s ease, background-color 0.2s ease;
    text-align: left;
}
.courses-container > a:hover {
    color: #ffcc00; /* Gold text on hover */
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- Style the table used for "Other Courses" --- */

/* Remove all default table styling */
#training-calendar,
#training-calendar tr,
#training-calendar td {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    display: block; /* Treat table elements like divs */
    width: 100%;
}

/* Style the cell containing "Other Courses" */
#training-calendar td[colspan="2"] {
    color: #ffcc00; /* Gold */
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px;
    margin: 30px 0 15px 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #ffcc00;
    text-align: left;
}

/* Target the table links */
#training-calendar a {
    color: #cccccc;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    margin: 2px 0;
    border-radius: 5px;
    transition: color 0.2s ease, background-color 0.2s ease;
    text-align: left;
}
#training-calendar a:hover {
    color: #ffcc00; /* Gold on hover */
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- Style the info box at the bottom --- */
/* Target the div using its inline style attributes */
div[style*="background-color: #000000;"] {
    background-color: rgba(0, 0, 0, 0.2) !important; /* Override inline style */
    color: #cccccc !important;
    border: none !important; /* Override inline style */
    border-left: 4px solid #ffcc00 !important; /* Gold accent line */
    padding: 20px !important;
    margin-top: 40px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Target the 'contact us' link inside it */
div[style*="background-color: #000000;"] a {
    color: #ffcc00 !important; /* Gold */
    font-weight: bold;
    display: inline;
    padding: 0;
    text-decoration: underline;
}
div[style*="background-color: #000000;"] a:hover {
    color: #fff !important;
    background: none;
}