/* Toppers Section - Full CSS */
.hec-group-dotted-wrapper {
    margin-top: -92px;
    margin-left: -14PX;

    max-width: 100%;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hec-group-dotted-wrapper svg {
    width: 300px;
    /* Wider visual */
    height: 100px;
    display: block;
    pointer-events: none;
}

.hec-group-dotted-shape {
    fill: none;
    stroke: rgb(3, 63, 143);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 8 6;
    stroke-dashoffset: 0;
    animation: hecGroupDashLoop 2s linear infinite;
}

@keyframes hecGroupDashLoop {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -56;
    }
}


.hec-toppers-section {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    overflow: hidden;
}

/* Dotted Pattern Background (30% on each side) */
.hec-toppers-section::before,
.hec-toppers-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 30%;
    height: 100%;
    background-image: radial-gradient(circle at center,
            #007bff 1.5px,
            #1a4b8c 2.5px,
            transparent 3px);
    background-size: 25px 25px;
    opacity: 0.08;
    z-index: 0;
}

.hec-toppers-section::before {
    left: 0;
}

.hec-toppers-section::after {
    right: 0;
}

/* Container */
.hec-toppers-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;

    margin: 0 auto;
    gap: 19px;
    padding: 0 40px;
}

/* Text Section */
.hec-toppers-text {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

.hec-toppers-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a4b8c;
    margin-bottom: 20px;
    position: relative;
}

/*
.hec-toppers-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #1a4b8c);
    border-radius: 2px;
} */

.hec-toppers-description {
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

.hec-toppers-extra {
    display: none;
    margin-top: 15px;
    color: #555;
    text-align: left;
}

/* Button Styling */
.hec-toggle-btn {
    background: linear-gradient(90deg, #007bff, #1a4b8c);
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 117, 252, 0.2);
}

.hec-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.3);
}

/* Slider Container */
.hec-toppers-slider {
    width: 100%;
    max-width: 710px;
    overflow: hidden;
    position: relative;
}

.hec-inner-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 29px;
}

/* Topper Card */
.hec-topper-card {
    min-width: calc(33.33% - 20px);
    flex-shrink: 0;
    text-align: center;
    /* background: white; */
    background: linear-gradient(135deg, #25FF -54%, #9ACBD0 23%, #764cca 184%);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.1);
    transition: all 0.3s ease;
}

.hec-topper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(37, 117, 252, 0.2);
}

/* Circular Image Styling */
.hec-topper-img-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    border: 5px solid rgba(37, 80, 252, 1.2);
    transition: all 0.3s ease;
}

.hec-topper-card:hover .hec-topper-img-container {
    border-color: rgba(37, 117, 252, 0.5);
}

.hec-topper-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Details */
.hec-topper-details {
    margin-top: 20px;
}

.hec-topper-name {
    color: #1a4b8c;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.hec-topper-achievement {
    color: #007bff;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hec-toppers-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }

    .hec-toppers-text {
        align-items: center;
        text-align: center;
    }

    .hec-toppers-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hec-toppers-description,
    .hec-toppers-extra {
        text-align: center;
    }

    .hec-topper-card {
        min-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .hec-toppers-title {
        font-size: 2rem;
    }


    .hec-topper-img-container {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 576px) {
    .hec-toppers-section {
        padding: 40px 0;
    }

    .hec-toppers-title {
        font-size: 1.8rem;
    }

    .hec-topper-card {
        min-width: 100%;
    }

    .hec-toggle-btn {
        padding: 10px 20px;
    }

    /* Adjust dotted pattern for mobile */
    .hec-toppers-section::before,
    .hec-toppers-section::after {
        width: 20%;
        background-size: 20px 20px;
    }
}