/* Board Toppers - Honor Board Theme */
:root {
    --honor-bg: #fdfdfd;
    --honor-border: #e0e0e0;
    --honor-text: #2c3e50;
    --honor-gold: #d4a017;
    --honor-green: #0b3d2e;
}

.toppers-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--honor-bg);
    overflow: hidden;
    /* Subtle Academic Pattern Background */
    background-image:
        linear-gradient(rgba(11, 61, 46, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 61, 46, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Background Animation Layer */
.bg-animation {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 160, 23, 0.05) 0%, transparent 60%);
    animation: slowRotate 120s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.container {
    position: relative;
    z-index: 2;
    /* Content above animation */
}

/* Header with Side Controls */
.honor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-text h2 {
    font-size: 2.5rem;
    color: var(--honor-green);
    margin-bottom: 5px;
}

.header-text h2 span {
    color: var(--honor-gold);
}

.header-text p {
    color: #666;
    font-size: 1.1rem;
}

/* Year Selector (Pill Style) */
.year-selector {
    background: #fff;
    border: 1px solid var(--honor-border);
    border-radius: 50px;
    padding: 5px;
    display: flex;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.year-btn {
    background: transparent;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-btn.active {
    background: var(--honor-green);
    color: #fff;
}

/* Section Dividers */
.class-section {
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.section-label {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.section-label h3 {
    font-size: 1.5rem;
    color: var(--honor-green);
    margin-right: 20px;
    white-space: nowrap;
}

.section-line {
    height: 2px;
    background: rgba(11, 61, 46, 0.1);
    flex-grow: 1;
}

/* Card Grid */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Formal Card Design */
.honor-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.honor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Top Accent Line */
.honor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--honor-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.honor-card:hover::before {
    transform: scaleX(1);
}

.photo-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.honor-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--honor-text);
    margin-bottom: 5px;
}

.honor-score {
    display: inline-block;
    background: rgba(11, 61, 46, 0.05);
    color: var(--honor-green);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 10px;
    border: 1px solid rgba(11, 61, 46, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .honor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .honor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .honor-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section-label {
        flex-direction: column;
        text-align: center;
    }

    .section-label h3 {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .section-line {
        width: 50px;
        flex-grow: 0;
    }
}

@media (max-width: 480px) {
    .honor-grid {
        grid-template-columns: 1fr;
    }
}