/* Module Card Widget Styles */

.module-card {
    background-color: #4a5568;
    border-radius: 16px;
    padding: 40px;
    margin: 20px 0;
    position: relative;
    min-height: 500px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
}

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

/* Module Badge */
.module-badge {
    background-color: #d4a574;
    color: #2c3e50;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 30px;
}

/* Card Content */
.card-content {
    max-width: 100%;
}

.main-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-align: left;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: #d4a574;
    margin-bottom: 30px;
}

.description {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 400;
    text-align: left;
}

/* Section Styling */
.section-underline {
    width: 60px;
    height: 3px;
    background-color: #d4a574;
    margin: 8px 0 20px 0;
}

/* Module Period */
.module-period {
    margin-bottom: 40px;
    text-align: left;
    color: #d4a574;
}

.period-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #ffffff;
}

.period-dates {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #e0e0e0;
}

.start-date,
.end-date {
    margin-bottom: 6px;
}

.end-date {
    margin-bottom: 0;
}

/* Pricing Section */
.pricing-section {
    margin-bottom: 40px;
    text-align: left;
    color: #d4a574;
}

.pricing-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #ffffff;
}

.pricing-details {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #e0e0e0;
}

.early-bird,
.late-fee {
    margin-bottom: 6px;
}

.late-fee {
    margin-bottom: 0;
}

/* Register Button */
.register-button {
    background: #d4a574;
    color: #2c3e50;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-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;
}

.register-button:hover {
    background: #c19660;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.4);
    color: #2c3e50;
    text-decoration: none;
}

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

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

.button-icon {
    font-size: 18px;
    color: #2c3e50;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.register-button i,
.register-button .button-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.register-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
    .module-card {
        padding: 30px;
        border-radius: 16px;
        margin: 16px 0;
        max-width: 100%;
    }
    
    .module-badge {
        padding: 10px 20px;
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }
    
    .title-underline {
        width: 60px;
        height: 3px;
        margin-bottom: 20px;
    }
    
    .description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .section-underline {
        width: 40px;
        height: 2px;
        margin: 6px 0 15px 0;
    }
    
    .module-period {
        margin-bottom: 30px;
    }
    
    .period-title {
        font-size: 16px;
    }
    
    .period-dates {
        font-size: 14px;
    }
    
    .pricing-section {
        margin-bottom: 30px;
    }
    
    .pricing-title {
        font-size: 16px;
    }
    
    .pricing-details {
        font-size: 14px;
    }
    
    .register-button {
        padding: 16px 24px;
        font-size: 14px;
    }
    
    .button-icon,
    .register-button i,
    .register-button .button-icon {
        font-size: 16px;
    }
    
    .register-button svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .module-card {
        padding: 20px;
        border-radius: 12px;
        margin: 12px 0;
        max-width: 100%;
    }
    
    .module-badge {
        padding: 8px 16px;
        font-size: 11px;
        margin-bottom: 16px;
    }
    
    .main-title {
        font-size: 1.6rem;
        margin-bottom: 14px;
    }
    
    .title-underline {
        width: 50px;
        height: 3px;
        margin-bottom: 16px;
    }
    
    .description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .section-underline {
        width: 30px;
        height: 2px;
        margin: 6px 0 12px 0;
    }
    
    .module-period {
        margin-bottom: 24px;
    }
    
    .period-title {
        font-size: 14px;
    }
    
    .period-dates {
        font-size: 13px;
    }
    
    .pricing-section {
        margin-bottom: 24px;
    }
    
    .pricing-title {
        font-size: 14px;
    }
    
    .pricing-details {
        font-size: 13px;
    }
    
    .register-button {
        padding: 14px 20px;
        font-size: 13px;
        gap: 8px;
    }
    
    .button-icon,
    .register-button i,
    .register-button .button-icon {
        font-size: 14px;
    }
    
    .register-button svg {
        width: 14px;
        height: 14px;
    }
}

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

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

/* Print styles */
@media print {
    .module-card {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    .module-badge {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
    
    .module-period,
    .pricing-section {
        color: #000 !important;
    }
    
    .period-title,
    .pricing-title {
        color: #000 !important;
    }
    
    .section-underline {
        background: #000 !important;
    }
    
    .main-title,
    .description {
        color: #000 !important;
    }
    
    .title-underline {
        background: #000 !important;
    }
    
    .register-button {
        display: none;
    }
} 