/* Container */
.vfl-schedule-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Day Section */
.vfl-day-section {
    margin-bottom: 40px;
}

.vfl-day-title {
    font-size: 1.8em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
}

/* Grid */
.vfl-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Course Card */
.vfl-course-card {
    position: relative;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #f9f9f9;
}

.vfl-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.vfl-course-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #222;
}

.vfl-course-time,
.vfl-course-location,
.vfl-course-trainer {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dashicons {
    font-size: 18px;
    width: 20px;
    height: 20px;
    color: #888;
}

/* Hover Overlay */
/* Hover Overlay */
.vfl-course-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3b82f6;
    /* Default fallback */
    color: #fff;
    padding: 15px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    z-index: 10;
}

/* Ensure background color from inline style has opacity */
.vfl-course-card:hover .vfl-course-details-overlay {
    opacity: 0.98;
    /* High opacity to hide underlining content */
}

/* Make text readable on colored backgrounds - Force White */
.vfl-course-details-overlay * {
    color: #fff !important;
}

.vfl-overlay-title {
    margin: 0 0 5px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    line-height: 1.2;
}

.vfl-overlay-trainer {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.vfl-overlay-desc {
    font-size: 0.9rem;
    line-height: 1.3;
}

.vfl-overlay-desc p {
    margin: 0 0 6px 0;
}

.vfl-overlay-desc p:last-child {
    margin-bottom: 0;
}