/* Trainings Section */
/* Main Styles */
.main {
    position: relative;
    text-align: center;
}

.video-container {
    position: relative;
}

.video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust transparency as needed */
    color: #fff;
}

.overlay .container {
    z-index: 1; /* Ensure text is above video */
    position: relative;
}

.overlay h1 {
    font-size: 100px;
    color: #00a9e0;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.37);
    font-weight: 1000;
}


.trainings-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.training {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.training img {
    width: 100%;
    max-width: 300px;
    margin-right: 20px;
}

.training-info {
    max-width: calc(100% - 320px);
    flex-grow: 1;
}

.training-info h2 {
    font-size: 33px;
    color: #00a9e0;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.37);
    font-weight: 1000;
}

.training-info p {
    font-size: 1em;
    margin-bottom: 20px;
}

.training-info ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.training-info ul li {
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: orange;
}

.next-page {
    margin-bottom: 160px; /* Adjust this value to control the spacing */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .video-overlay h1 {
        font-size: 2em;
    }

    .video-overlay p {
        font-size: 1em;
    }

    .training {
        flex-direction: column;
        align-items: center;
    }

    .training img {
        margin-bottom: 20px;
        margin-right: 0;
    }

    .training-info {
        max-width: 100%;
    }
}
