/* Course Module Elementor Widget Styles */

.course-module-card {
    /* Background is now controlled by Elementor - removed hardcoded gradient */
    color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.course-module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #B8860B, #DAA520);
}

/* Header Section */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.module-title-section {
    flex: 1;
}

.module-title {
    color: #B8860B;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.divider {
    width: 60px;
    height: 2px;
    background-color: #B8860B;
    margin: 15px 0 20px 0;
}

.course-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    max-width: 70%;
}

/* Status Badge */
.status-badge {
    background: #B8860B;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge.status-live {
    background: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.status-badge.status-upcoming {
    background: #ffc107;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.status-badge.status-ended {
    background: #6c7b8a;
    box-shadow: 0 4px 15px rgba(108, 123, 138, 0.3);
}

/* Content Layout */
.module-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: stretch;
    min-height: 300px;
}

/* Left Content */
.left-content {
    padding-right: 20px;
}

.cpd-points {
    color: #B8860B;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    padding: 15px;
    border: 2px solid #B8860B;
    border-radius: 8px;
    background: rgba(184, 134, 11, 0.1);
}

.speakers-section {
    margin-top: 20px;
}

.speakers-title {
    color: #B8860B;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
}

.speakers-list {
    text-align: center;
}

.speaker {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.speaker:hover {
    color: #B8860B;
    transform: translateX(5px);
}

.speaker:hover .speaker-link {
    color: #B8860B;
}

.speaker:last-child {
    border-bottom: none;
}

.speaker-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.speaker-link:hover {
    color: #B8860B;
    text-decoration: none;
}

/* Registration Section */
.registration-section {
    margin-top: 20px;
}

.registration-info {
    margin-bottom: 25px;
    text-align: center;
}

.registration-title {
    color: #4a9d5f;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.registration-opens,
.registration-fee {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    background: rgba(74, 157, 95, 0.1);
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid rgba(74, 157, 95, 0.3);
}

.registration-fee {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Right Content */
.right-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.content-top {
    flex: 0 0 auto;
}

.content-bottom {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.description {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.additional-info {
    color: #c0c0c0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    padding-left: 15px;
    border-left: 3px solid #B8860B;
}

.date-range {
    color: #B8860B;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

/* Button Styles */
.info-button {
    background: #4a9d5f;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(74, 157, 95, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.info-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.info-button:hover {
    background: #5cb574;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 157, 95, 0.4);
}

.info-button:hover::before {
    left: 100%;
}

.info-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-module-card {
        padding: 20px;
        margin: 15px 0;
    }
    
    .module-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .course-title {
        max-width: 100%;
        font-size: 1.5rem;
    }
    
    .module-title {
        font-size: 2rem;
    }
    
    .module-content {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
    }
    
    .right-content {
        justify-content: flex-start;
        gap: 20px;
    }
    
    .content-bottom {
        gap: 15px;
    }
    
    .left-content {
        padding-right: 0;
        text-align: center;
    }
    
    .status-badge {
        align-self: flex-start;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .course-module-card {
        padding: 15px;
        margin: 10px 0;
    }
    
    .module-title {
        font-size: 1.8rem;
    }
    
    .course-title {
        font-size: 1.3rem;
    }
    
    .cpd-points {
        font-size: 1rem;
        padding: 12px;
    }
    
    .speakers-title {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    .info-button {
        padding: 12px 25px;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .content-bottom {
        gap: 12px;
    }
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-module-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Print styles */
@media print {
    .course-module-card {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    .module-title,
    .cpd-points,
    .speakers-title,
    .date-range {
        color: #000 !important;
    }
    
    .info-button {
        display: none;
    }
} 