/* --- Unified Training & Contact Section --- */
.training-contact-section {
    /* Padding is more balanced, including top and bottom */
    padding: 6rem 0 0px 0px; 
    background-color: var(--form-bg);
    text-align: center;
}
/* .training-contact-wrapper{
        padding:2rem; 

} */

/* New: Container to cap width on all devices for better readability */
.training-contact-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Add horizontal padding for small screens */
}

.section-titles {
    font-family: 'Montserrat', sans-serif;
    /* Adjusted font size for better hierarchy on all screens */
    font-size: clamp(2rem, 5vw, 2.5rem); 
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitles {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--dark-text);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.mode-cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem; /* Slightly reduced gap for a tighter feel */
    flex-wrap: wrap;
    margin-bottom: 5rem;
}

.mode-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2.5rem 2rem; /* Consistent vertical and horizontal padding */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* A slightly more pronounced but softer shadow */
    width: 100%;
    max-width: 450px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-8px); /* More noticeable lift on hover */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow to match the lift */
}

.icon-box {
    background-color: var(--secondary-color);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
}

.icon-box i {
    font-size: 2.5rem;
    color: var(--dark-text);
}

.mode-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.mode-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* --- Integrated Contact Card Design --- */
.contact-card-container {
    /* This container ensures the card stretches to the edges on mobile */
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-card {
    /* Background and color are perfect as is */
    background-color: rgba(13, 40, 74, 1);
    color: var(--light-text);
    /* No horizontal padding needed here because the container handles it. */
    padding: 3rem 0; 
    border-bottom: 0.1px solid white;
    text-align: center;
    width: 100%;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.75rem;
}

.contact-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.email-links-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.email-link {
    font-size: 1.1rem;
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Added padding for larger touch target on mobile */
    padding: 0.5rem 1rem; 
    border-radius: 5px;
}

.email-link:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.email-link i {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.email-link:hover i {
    color: var(--secondary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    /* No changes needed here, as the base styles and clamp() handle it. */
    .mode-card {

    max-width: 330px;
   
}
}

@media (max-width: 576px) {
    .mode-card {
        padding: 2rem 1.5rem; /* Reduced padding for smaller screens */
    }

    .contact-card {
        padding: 2.5rem 1.5rem; /* Balanced padding */
    }

    .contact-title {
        font-size: 1.5rem;
    }
    
    .email-links-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}