/* ===== TRAINING PAGE STYLES ===== */

/* Training Section */
.training {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wine-red-900, #450a0a);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--secondary-600, #4b5563);
    margin: 0 auto;
    text-align: center;
}

/* Training Overview */
.training-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.overview-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--wine-red-900, #450a0a);
    margin-bottom: 1.5rem;
}

.overview-content p {
    font-size: 1.125rem;
    color: var(--secondary-700, #374151);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.training-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.training-features .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid var(--wine-red-600, #dc2626);
}

.training-features .feature i {
    font-size: 1.5rem;
    color: var(--wine-red-600, #dc2626);
}

.training-features .feature span {
    font-weight: 500;
    color: var(--secondary-900, #111827);
}

.overview-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.overview-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Training Programs */
.training-programs {
    margin-bottom: 4rem;
}

.training-programs h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--wine-red-900, #450a0a);
    margin-bottom: 2rem;
    text-align: center;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.program-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--wine-red-300, #fca5a5);
}

.program-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--wine-red-600, #dc2626), var(--wine-red-700, #b91c1c));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.program-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.program-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wine-red-900, #450a0a);
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--secondary-700, #374151);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.program-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.program-card ul li {
    padding: 0.5rem 0;
    color: var(--secondary-700, #374151);
    position: relative;
    padding-left: 1.5rem;
}

.program-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--wine-red-600, #dc2626);
    font-weight: bold;
}

.program-card .duration {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    color: var(--wine-red-600, #dc2626);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Custom Training */
.custom-training {
    margin-bottom: 4rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.custom-training h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--wine-red-600, #dc2626), var(--wine-red-700, #b91c1c));
    padding: 2rem;
    margin: 0;
}

.custom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.custom-text p {
    font-size: 1.125rem;
    color: var(--secondary-700, #374151);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.custom-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.custom-text ul li {
    padding: 0.75rem 0;
    color: var(--secondary-700, #374151);
    position: relative;
    padding-left: 2rem;
    font-size: 1.125rem;
}

.custom-text ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--wine-red-600, #dc2626);
    font-weight: bold;
}

.custom-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.custom-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Training Schedule */
.training-schedule {
    margin-bottom: 4rem;
}

.training-schedule h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--wine-red-900, #450a0a);
    margin-bottom: 2rem;
    text-align: center;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.schedule-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.schedule-date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--wine-red-600, #dc2626), var(--wine-red-700, #b91c1c));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.schedule-date .month {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    color: #ffffff !important;
    display: block !important;
}

.schedule-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    display: block !important;
}

.schedule-details {
    flex-grow: 1;
}

.schedule-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--wine-red-900, #450a0a);
    margin-bottom: 0.5rem;
}

.schedule-details p {
    color: var(--secondary-700, #374151);
    margin-bottom: 0.5rem;
}

.schedule-details .location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wine-red-600, #dc2626);
    font-size: 0.875rem;
    font-weight: 500;
}

.schedule-details .location i {
    font-size: 1rem;
}

.schedule-item .btn-secondary {
    flex-shrink: 0;
}

/* Responsive: stack schedule item content and make the Register button fill width on small screens */
@media (max-width: 768px) {
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .schedule-item .schedule-date {
        width: 64px;
        height: 64px;
    }

    .schedule-item .schedule-details {
        width: 100%;
    }

    .schedule-item .btn-secondary {
        /* make the register button span the full width and sit below the details */
        align-self: stretch;
        display: inline-block;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
        padding: 0.75rem 1rem;
    }
}

/* Training CTA */
.training-cta {
    background: linear-gradient(135deg, var(--wine-red-600, #dc2626), var(--wine-red-700, #b91c1c));
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    color: #ffffff;
}

.training-cta h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.training-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: #ffffff;
    color: var(--wine-red-600, #dc2626);
    border: 2px solid #ffffff;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: #ffffff;
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-buttons .btn-secondary:hover {
    background: #ffffff;
    color: var(--wine-red-600, #dc2626);
}

/* Responsive Design */
@media (max-width: 992px) {
    .training-overview {
        grid-template-columns: 1fr;
    }
    
    .custom-content {
        grid-template-columns: 1fr;
    }
    
    .training-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .training-overview {
        padding: 2rem;
    }
    
    .overview-content h3 {
        font-size: 1.5rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-item {
        flex-direction: column;
        text-align: center;
    }
    
    .custom-content {
        padding: 2rem;
    }
    
    .training-cta {
        padding: 2rem;
    }
    
    .training-cta h3 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

