.carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow: hidden;
}

.carousel-container {
    overflow: hidden;
}

.video-carousel {
    display: flex;
    gap: 10px;
    width: max-content;
    will-change: transform;
}

.video-carousel:hover {
    animation-play-state: paused;
}

.scroll-left {
    animation: scroll-left 480s linear infinite;
}

.scroll-right {
    animation: scroll-right 580s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

.video-thumbnail {
    flex: 0 0 auto;
    width: 280px;
    height: 170px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.05);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
}

.modal-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

@media(max-width:768px) {
    .video-thumbnail {
        width: 200px;
        height: 120px;
    }
}

/* header border style */

.headingborder {
    justify-content: center;
    text-align: center;
}

.headingborder h2 {
    position: relative;
    display: inline-block;
    font-size: 32px;
    color: #333;
    padding-bottom: 30px;
    /* space for wave */
}

.headingborder h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    /* aligned under text */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    /* width of wave */
    height: 30px;
    /* height of wave */
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'><path d='M0,0 Q60,30 120,0' stroke='%23007bff' stroke-width='4' fill='transparent'/></svg>") no-repeat;
    background-size: contain;
}

/* Gradient version */
.headingborder .gradient::after {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'><defs><linearGradient id='grad' x1='0%' y1='0%' x2='100%' y2='0%'><stop offset='0%' stop-color='%23ff6a00'/><stop offset='100%' stop-color='%23ee0979'/></linearGradient></defs><path d='M0,0 Q60,30 120,0' stroke='url(%23grad)' stroke-width='4' fill='transparent'/></svg>") no-repeat;
    background-size: contain;
}

/* Heading bottom border style end */


/* Design 4: Minimalist with Timeline */
.design-4 {
    background: white;
    padding: 40px 0px 0px;
}

.design-4 .container {
    display: flex;
    margin: 0 auto;
}

.design-4 .text-side {
    flex: 2;
    padding: 0px;
}

.design-4 h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #050505;
    line-height: 1.2;
    font-weight: 600;
}

.design-4 .text-gradient {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.design-4 .text-side p {
    margin-bottom: 30px;
}

.design-4 .info-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.design-4 .check-icon {
    width: 24px;
    height: 24px;
    background: #00b894;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.design-4 .btn {
    display: inline-block;
    padding: 15px 40px;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s;
}

.design-4 .btn:hover {
    background: #ee5a6f;
}

.design-4 .timeline-side {
    flex: 1;
}

.design-4 .timeline-item {
    display: flex;
    margin-bottom: 10px;
    position: relative;
}

.design-4 .timeline-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 44px;
    width: 2px;
    height: 60px;
    background: #858585;
}

.design-4 .timeline-item:last-child::before {
    display: none;
}

.design-4 .timeline-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ea6f23, #ca540b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.design-4 .timeline-content h3 {
    margin-bottom: 8px;
    color: #2d3436;
}

/* Responsive */
@media (max-width: 968px) {
    .design-4 .container {
        flex-direction: column;
    }

    .design-4 h2 {
        font-size: 2.5rem;
    }

    .design-3 .steps-grid {
        grid-template-columns: 1fr;
    }
}

.headingborder span {
    color: #ca540b;
}

.timeline-side h4 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #2d3436;
    font-weight: 500;
}

.timeline-side p {
    text-align: left;
}

.homecourses1 {
    background-color: #f2f2f2;
}

.timeline-content p {
    margin-bottom: 10px;
}

.newbgvideos {
    background-image: url('../img/bgwhite-gray.jpg');
    padding: 20px 0px 30px;
    margin-top: -15px;
}

.Trainingoptions .card
{
    background: white;
    border-radius: 20px;
    padding: 35px 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s 
ease, box-shadow 0.3s 
ease;
    animation: fadeInUp 0.8s 
ease;
    position: relative;
    overflow: hidden;
    margin-bottom:20px;
}


.Trainingoptions .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.Trainingoptions .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.Trainingoptions .card-features li {
    padding: 8px 0;
    color: #4a5568;
    font-size: 1.05em;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}


.Trainingoptions .card-title {
    font-size: 1.2em;
    color: #2d3748;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}


.Trainingoptions .card-features li::before
 {
    content: '✓';
    color: #667eea;
    font-weight: bold;
    font-size: 1.3em;
    margin-right: 12px;
    flex-shrink: 0;
}


.Trainingoptions .card-icon {
    width: 80px;
    height: 80px;
    background:linear-gradient(135deg, #8094ed 0%, #074185 100%);
    border-radius: 50%;
    display: flex
;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.gallery img
{
    width:100%;
    height: 180px;
}