* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#topers-hero {
    margin-top: 0px;
    height: 40vh;
    min-height: 300px;
}

.overall-toppers-section {
    padding: 100px 20px;
    background-color: #fff;
    text-align: center;
}

.overall-toppers-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: #004d73;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 60px;
    padding-left: 30px;
}

.toppers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 80px 20px;
    justify-content: center;
}

.toppers-centered-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.topper-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.topper-img-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid transparent;
}

.topper-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.topper-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #004d73;
    margin-bottom: 10px;
}

.topper-score {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #004d73;
}

.subject-toppers-section {
    padding: 20px 20px 100px 20px;
    background-color: #fff;
    text-align: center;
}

.subject-toppers-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.subject-toppers-grid,
.logic-toppers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 15px;
}

.subject-toppers-grid .topper-card {
    width: 170px;
}

.logic-toppers-grid {
    gap: 60px;
}

.subject-toppers-grid .topper-img-wrapper,
.logic-toppers-grid .topper-img-wrapper {
    width: 150px;
    height: 150px;
}

.topper-detail {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #004d73;
    margin-bottom: 5px;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .toppers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .toppers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .toppers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        text-align: center;
        padding-left: 0;
        font-size: 2rem;
    }

    .topper-img-wrapper {
        width: 120px;
        height: 120px;
    }

    .topper-score {
        font-size: 1.3rem;
    }

    .subject-toppers-grid,
    .logic-toppers-grid {
        gap: 40px 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .subject-toppers-grid .topper-card,
    .logic-toppers-grid .topper-card {
        width: 45%;
        max-width: 160px;
    }

    .section-title {
        font-size: 1.5rem;
        white-space: nowrap;
    }
}