html {
    scroll-behavior: smooth;
}

.carousel-anchors {
    display: flex;         
    flex-wrap: wrap;      
    justify-content: center; 
    gap: 8px;             
    padding: 15px;
    margin: 20px 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.anchor-link {
    display: inline-block;
    text-decoration: none;
    color: #666;
    background: #f0f0f0;
    padding: 6px 14px;     
    border-radius:7px;
    font-size: 13px;      
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;  
}

.anchor-link:hover {
    background: #e0e0e0;
    color: #333;
}

.anchor-link.active {
    background: #007bff;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.anchor-link {
    display: inline-block;
    text-decoration: none;
    color: #666;
    background: #f8f9fa;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    cursor: pointer;
}

.anchor-link:hover {
    background: #e9ecef;
}

.anchor-link.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}


.courses {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px; 
    padding: 20px;
    list-style: none;
}


.course {
    flex: 0 0 calc(50% - 15px);     
    box-sizing: border-box;
    height: 650px;
}


.course-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    height:650px; 
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: .3s;    
}


.course-card .row {
    height: 100%;
    margin: 0; 
}


.course-card .col-md-8 {
    display: flex;
    flex-direction: column;
    height: 100%;
}


.card-content {
    display: flex;
    flex-direction: column;
    flex: 1; 
    padding: 25px;
    height: 100%;
    overflow-y: auto; 
    scrollbar-width: thin;
    scrollbar-color: #007bff #f0f0f0;
}




.course:hover .course-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: .3s;
}


.card-content {
    flex: 1; 
    display: flex;
    flex-direction: column; 
    padding: 25px; 
}


.course-pic {
    height: 100%;
    min-height: 250px;
}

.course-card img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    margin-left: -12px; 
}


.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content h2 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: -10px;
    color: #333;
}

.card-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.card-content ul {
    font-size: 13px;
    padding-left: 20px;
    color: #777;
    margin-bottom: 20px;
}


.cbutton {   
    margin-top: auto; 
    margin-bottom: 0; 
    width: 100%;
    border: none;
    padding: 12px;
    border-radius: 8px;
    background: #007BFF;
    cursor: pointer;
    transition: .5s;
}
.cbutton:hover {
    background: #0056b3;
    transition: .5s;
}

.cbutton a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    width: 100%;
}



.course {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; 
    z-index: 1;
}


.course.highlight-active {
    transform: scale(1.03); 
    z-index: 10; 
}


.course.highlight-active .course-card {
    
    outline: 3px solid #007bff; 
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.5);
    border-color: transparent; 
}


@media (max-width: 992px) {
    .course {
        flex: 0 0 100%; 
    }
    
    .course-pic {
        height: 200px; 
    }
}