.education-page h3.section-title{
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2em;
    margin-left: 75px;
}

@media screen and (max-width: 991px){
    .education-page h3.section-title{
        font-size: 22px;
        font-weight: 600;
        line-height: 1.2em;
        margin-left: 0;
        text-align: center;
    }
}

/* carousel styles for education.css */
#video-carousel {
    width: 100%;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-content {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    overflow: hidden;
}

.video-item {
    flex: 0 0 calc(25% - 20px);
    width: calc(25% - 20px);
    max-width: calc(25% - 20px);
    padding: 0 10px;
    box-sizing: border-box;
    cursor: pointer;
}

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .video-item {
        flex: 0 0 calc(33.333% - 20px);
        width: calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .video-item {
        flex: 0 0 calc(50% - 20px);
        width: calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

/* Mobile devices */
@media (max-width: 576px) {
    .video-item {
        flex: 0 0 calc(100% - 20px);
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
    
    .carousel-wrapper {
        padding: 0 40px; /* Reduce padding on mobile */
    }

    .nav-button {
        width: 32px; /* Smaller buttons on mobile */
        height: 32px;
    }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.video-wrapper:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 4px;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.nav-button:hover:not(:disabled) {
    background: #ffffff;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.video-item h3 {
    margin-top: 12px;
    font-size: 15px;
    color: #1a1a1a;
    text-align: left;
    padding: 0 5px;
    line-height: 1.3;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    aspect-ratio: 16/9;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 30px;
    height: 30px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
}