/* ==========================================================
   TRAININGS PAGE STYLES
========================================================== */

.trainings-section {
    background: linear-gradient(180deg, #091526 0%, #0b1a30 100%);
    padding: 90px 20px 30px 20px;
    text-align: center;
}

.trainings-header {
    margin-bottom: 50px;
}

.trainings-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.trainings-title span {
    color: #d4af37;
}

.trainings-divider {
    width: 80px;
    height: 3px;
    background-color: #d4af37;
    margin: 0 auto;
    border-radius: 2px;
}

/* Adaptive Row Layout for Videos */
.trainings-videos-row {
    max-width: 1400px;
    margin: 0 auto 35px auto; 
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Standard Video Card - Configured for 3 per row (Ahaa Moments) */
.training-video-card {
    background: transparent;
    border: 2px solid #d4af37;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    
    flex: 0 1 calc(33.333% - 20px);
    max-width: 420px; 
}

.training-video-card:hover,
.large-video-card:hover {
    transform: translateY(-5px);
    border-color: #ffe066;
}

.training-video-card video,
.training-video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    object-fit: cover;
    background: #000;
    border: 0;
}

/* ==========================================================
   LARGE VIDEO CARD (For sections with only 2 videos side-by-side)
========================================================== */
.large-video-card {
    background: transparent;
    border: 2px solid #d4af37;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    
    flex: 0 1 calc(50% - 20px);
    max-width: 650px; 
}

.large-video-card video,
.large-video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    object-fit: cover;
    background: #000;
    border: 0;
}

/* ==========================================================
   AESTHETIC TEXT BOX (For Ahaa Moments Section)
========================================================== */
.section-text-box {
    max-width: 900px;
    margin: 50px auto 0 auto;
    background: rgba(11, 26, 48, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(10px);
}

.section-text-box::before {
    content: '✦';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #091526;
    color: #d4af37;
    padding: 0 15px;
    font-size: 1.2rem;
}

.section-text-content {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.section-text-content p {
    margin-bottom: 15px;
}

.section-text-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   TRAININGS CONDUCTED CTA BLOCK
========================================================== */
.trainings-conducted-box {
    margin: 10px auto 0 auto;
    text-align: center;
}

.trainings-conducted-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.trainings-conducted-title span {
    color: #d4af37;
}

.trainings-conducted-btn {
    /* TODO: replace the "#" href in training.html with your real link */
    display: inline-block;
}

/* Responsive adjustments for tablets and mobile screens */
@media (max-width: 1024px) {
    .training-video-card {
        flex: 0 1 calc(50% - 15px);
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .trainings-videos-row {
        flex-direction: column;
        align-items: center;
    }
    .training-video-card, 
    .large-video-card {
        width: 100%;
        max-width: 450px;
        flex: unset;
    }
    .trainings-title {
        font-size: 1.8rem;
    }
    .section-text-box {
        padding: 25px;
    }
}