/* ==========================================================
   Block: Olympiads Section — frontend styles
   ========================================================== */

.olympiads-section {
    background: var(--white);
    padding: 80px 0;
}

.olympiads-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.olympiads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.olympiad-card {
    background: var(--bg);
    border-radius: 20px;
    padding: 28px 24px;
    border: 2px solid transparent;
    transition: all 0.3s;
    text-align: center;
}

.olympiad-card:hover {
    border-color: var(--blue);
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(26, 86, 219, 0.13);
}

.olympiad-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
}

.olympiad-card:nth-child(1) .olympiad-icon { background: var(--blue-light); color: var(--blue); }
.olympiad-card:nth-child(2) .olympiad-icon { background: var(--red-light);  color: var(--red); }
.olympiad-card:nth-child(3) .olympiad-icon { background: #fffbeb;           color: #d97706; }
.olympiad-card:nth-child(4) .olympiad-icon { background: #f0fdf4;           color: #22c55e; }
.olympiad-card:nth-child(5) .olympiad-icon { background: #f5f3ff;           color: #8b5cf6; }
.olympiad-card:nth-child(6) .olympiad-icon { background: #f0fdfa;           color: #0d9488; }

.olympiad-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.olympiad-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.olympiad-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--blue);
    margin-top: 10px;
}

.olympiad-num-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* Stat banner */
.stat-banner {
    background: linear-gradient(135deg, #0d1b4b, #1a3a7a);
    border-radius: 24px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-banner-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 72px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.stat-banner-num span { color: #ff5252; }

.stat-banner-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    font-weight: 600;
}

.stat-banner-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    max-width: 300px;
    line-height: 1.6;
}

.stat-banner-text strong {
    color: #fff;
    font-size: 18px;
    display: block;
    margin-bottom: 6px;
}

.stat-banner-extra {
    text-align: center;
}

.stat-banner-extra-emoji {
    font-size: 52px;
    margin-bottom: 8px;
}

.stat-banner-extra-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .olympiads-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .olympiads-section { padding: 48px 0; }
    .olympiads-section .container { padding: 0 16px; }
    .olympiads-grid { grid-template-columns: 1fr; }
    .stat-banner { flex-direction: column; text-align: center; padding: 32px 24px; }
    .stat-banner-num { font-size: 52px; }
    .stat-banner-text { max-width: 100%; }
}
