.carousel-anchors {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    gap: 10px;
    padding: 15px 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;    
    border-bottom: 1px solid #e0e0e0;   
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.carousel-anchors::-webkit-scrollbar { display: none; }

.anchor-link {
    flex: 0 0 auto;
    text-decoration: none;
    color: #666;
    background: #f0f0f0;
    padding: 8px 18px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.anchor-link.active {
    background: linear-gradient(to top, #0F3AAC, #1E56E2) !important;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}


.anchor-link.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}


.carousel-container {
    position: relative;
    width: 96%;
    margin: auto;
}

.carousel-track-container {
    width: 100%;
    overflow-x: auto; 
    scroll-behavior: smooth;
    scrollbar-width: none; 
}

.carousel-track-container::-webkit-scrollbar { display: none; }

.carousel-track {
    display: flex;
    padding: 30px 0; 
    margin: 0;
    list-style: none;
}

.carousel-slide {
    flex: 0 0 50%; 
    padding: 0 20px;
    box-sizing: border-box;
    perspective: 1000px; 
    height: 550px;
}







.carousel-card {
    background: #fff;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}


.carousel-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 0;
    border-top: 4px solid #007bff;
    border-right: 4px solid #007bff;
    border-radius: 12px;
    transition: width 0.3s ease 0.1s, height 0.3s ease;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}


.carousel-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 0;
    border-bottom: 4px solid #007bff;
    border-left: 4px solid #007bff;
    border-radius: 12px;
    transition: width 0.3s ease 0.1s, height 0.3s ease;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}


.carousel-slide.is-active .carousel-card {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 
                0 0 20px rgba(0, 123, 255, 0.2);
}

.carousel-slide.is-active .carousel-card::before,
.carousel-slide.is-active .carousel-card::after {
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: height 0.3s ease, width 0.3s ease 0.3s; 
}


.carousel-slide.is-active .carousel-card .shine {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    animation: shineEffect 0.8s ease;
    z-index: 4;
}

@keyframes shineEffect {
    0% { left: -100%; }
    100% { left: 150%; }
}

.carousel-card img {
    width: 100%;
    height:550px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}



.card-content { 
padding:15px; background: #fff; font-size: 14px;
height:450px;
overflow-y: auto; 
padding-right: 10px;    
scrollbar-width: thin;
scrollbar-color: #007bff #f0f0f0;
}

.cbutton 
{width: 95%;
text-decoration: none;
font-size: 14px;
font-weight: 600;
padding: 15px 22px;
border-radius:9px;
background: linear-gradient(to top, #0F3AAC, #1E56E2) !important;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
border: 1px solid #e0e0e0;
}

.cbutton a 
{color: #ffffff;
text-decoration: none;}


.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 50px; height: 50px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.carousel-button:hover:not(:disabled) { background: #007bff; color: #fff; }
.carousel-button:disabled { opacity: 0; pointer-events: none; }
.carousel-button--left { left: 20px; }
.carousel-button--right { right: 20px; }


.scroll-progress-container {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.scroll-progress-bar {
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 0%;
    background: linear-gradient(to right, #007bff, #00d4ff);
    transition: width 0.2s ease-out;
}

@media (max-width:1566px) {

.carousel-slide {
    flex: 0 0 50%; 
    padding: 0 20px;
    box-sizing: border-box;
    perspective: 1000px; 
    height: 450px;
}

.card-content {
    height: 350px;
    overflow-y: auto; 
    padding-right: 10px;    
    scrollbar-width: thin;
    scrollbar-color: #007bff #f0f0f0;
}


.card-content::-webkit-scrollbar {
    width: 6px; 
}

.card-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.card-content::-webkit-scrollbar-thumb {
    background: #007bff; 
    border-radius: 10px;
}

.card-content::-webkit-scrollbar-thumb:hover {
    background: #0056b3; 
}


.carousel-card {
    background: #fff;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    font-size: 14px;
    padding: 0;
    margin: 0;
}

.card-content h2 
{margin-bottom: -20px !important;
margin-top: -20px !important;}

.carousel-card img {
    width: 100%;
   height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}


}

@media (max-width: 768px) {

.carousel-anchors {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    gap: 10px;
    padding: 15px 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index:5;    
    border-bottom: 1px solid #e0e0e0;   
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

    .carousel-slide {
    flex: 0 0 100%; 
    padding: 0 10px;
    box-sizing: border-box;
    height:auto;
}

.carousel-card img {
    width: 100%;
    height:200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.cbutton 
{width:100%;
text-decoration: none;
font-size: 14px;
font-weight: 600;
padding: 15px 22px;
border-radius: 50px;
background: #007BFF;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
border: 1px solid #e0e0e0;
margin-bottom: 10px;
}

}