/* static/css/pages/training.css - CORRECTED VERSION */

/* --- 1. Detail Page: Standalone Hero Banner --- */
.training-detail-hero {
    position: relative;
    color: white;
    border-radius: 8px;
    overflow: hidden; /* Crucial for containing overlay and image */
    
    /* Give it a max-width and center it to align with the rest of the page */
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px; /* Aligns with the .page-container padding */
}

.training-detail-hero-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block; /* Removes any unwanted whitespace below the image */
    border-radius: 8px; /* Give the image itself rounded corners */
}

.training-detail-hero-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0; /* Cover the entire parent */

    /* The dark overlay */
    background: linear-gradient(90deg, rgba(44, 62, 80, 0.8) 0%, rgba(44, 62, 80, 0.1) 100%);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    border-radius: 8px;
}

.training-detail-hero-content h1 {
    font-size: 2.5rem;
    max-width: 50%; /* Prevents text from spanning the full width */
    line-height: 1.2;
    margin-bottom: 20px;
    align-items: flex-start;
}

.btn-call-now {
    background-color: #2ecc71;
    color: white !important; /* Use !important to override generic 'a' tag color */
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block; /* Prevents stretching */
    width: -moz-fit-content; /* Firefox compatibility */
    width: fit-content;
    align-self: flex-start; 
    transition: all 0.3s ease;
}
.btn-call-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- 2. Detail Page: Main Content Below Banner --- */
.training-page.page-container {
    background-color: transparent; /* No need for a white background on the container */
    border: none;
    box-shadow: none;
    padding-top: 0; /* Remove top padding since the hero handles spacing */
}
.course-details-content.card {
    line-height: 1.8;
}
.course-contact-info {
    margin-top: 40px; padding: 20px;
    background: var(--light-gray);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}


/* --- 3. Training List Page Styles --- */
/* (This part is unchanged, but included for a complete file) */
.training-list-page {
    background-color: #fff; padding: 20px;
    border-radius: 8px; border: 1px solid var(--border-color);
}
.page-header { text-align: center; margin-bottom: 40px; }
.training-card-link { text-decoration: none; color: inherit; }
.training-list-card {
    display: flex; gap: 20px; align-items: center; margin-bottom: 20px;
    padding: 20px; transition: box-shadow 0.3s;
}
.training-card-image { flex: 0 0 200px; }
.training-card-image img { border-radius: 6px; width: 100%; height: 130px; object-fit: cover; }
.training-card-content h2 { font-size: 20px; margin: 0 0 10px 0; }
.training-card-content p { font-size: 15px; color: #555; }

/* Add this to the end of static/css/pages/training.css */

.filter-list li a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}