/* ===== Awards & Achievements Page ===== */

.awards-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px 70px;
}

.awards-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: var(--font-md);
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===== Year Buttons Grid ===== */
.awards-years {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    max-width: 760px;
    margin: 0 auto 45px;
}

.year-btn {
    position: relative;
    display: block;
    padding: 14px 10px;
    border: 2px solid var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--bg-white);
    font-size: var(--font-lg);
    font-weight: 700;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform var(--transition-base) ease, box-shadow var(--transition-base) ease, border-color var(--transition-base) ease;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(30, 60, 114, 0.25);
    opacity: 0;
    animation: yearBtnIn 0.5s ease forwards;
}

/* Shine sweep that animates across on hover */
.year-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.year-btn:hover {
    border-color: var(--primary-orange);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 24px rgba(30, 60, 114, 0.4);
}

.year-btn:hover::before {
    left: 125%;
}

/* Staggered entrance for the first several buttons */
.year-btn:nth-child(1) { animation-delay: 0.05s; }
.year-btn:nth-child(2) { animation-delay: 0.12s; }
.year-btn:nth-child(3) { animation-delay: 0.19s; }
.year-btn:nth-child(4) { animation-delay: 0.26s; }
.year-btn:nth-child(5) { animation-delay: 0.33s; }
.year-btn:nth-child(6) { animation-delay: 0.40s; }
.year-btn:nth-child(7) { animation-delay: 0.47s; }
.year-btn:nth-child(8) { animation-delay: 0.54s; }

@keyframes yearBtnIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.year-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-color: var(--primary-blue);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(30, 60, 114, 0.35);
}

.year-btn.active::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 3px;
    margin: 6px auto 0;
}

/* ===== Back Link (year page) ===== */
.awards-back {
    max-width: 1100px;
    margin: 0 auto 20px;
}

.awards-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}

.awards-back a:hover {
    color: var(--primary-orange);
}

/* ===== Selected Year Content ===== */
.awards-content {
    background: var(--bg-white);
    border: 1px solid var(--bg-border);
    border-top: 4px solid var(--primary-orange);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 35px 40px;
    animation: awardsFade var(--transition-base) ease;
}

.awards-year-heading {
    color: var(--primary-blue);
    font-size: var(--font-xxl);
    font-weight: 800;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-border);
    text-align: center;
}

@keyframes awardsFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Rich Content (Summernote output) ===== */
.content-article {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--font-base);
}

.content-article h1,
.content-article h2,
.content-article h3,
.content-article h4 {
    color: var(--primary-blue);
    margin: 25px 0 12px;
    line-height: 1.4;
}

.content-article h3 { font-size: var(--font-xl); }
.content-article h4 { font-size: var(--font-lg); }

.content-article p {
    margin: 0 0 15px;
}

.content-article a {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
}

.content-article a:hover {
    text-decoration: underline;
}

.content-article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 15px 0;
}

.content-article ul,
.content-article ol {
    margin: 15px 0;
    padding-left: 28px;
}

.content-article li {
    margin-bottom: 8px;
}

.content-article hr {
    border: 0;
    border-top: 1px solid var(--bg-border);
    margin: 28px 0;
}

.content-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-article table th,
.content-article table td {
    border: 1px solid var(--bg-border);
    padding: 12px;
    text-align: left;
}

.content-article table th {
    background: var(--primary-blue);
    color: var(--bg-white);
}

/* ===== Empty State ===== */
.awards-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-tertiary);
}

.awards-empty i {
    font-size: 56px;
    color: var(--bg-border);
    margin-bottom: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .awards-years {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .awards-content {
        padding: 25px 20px;
    }
    .awards-year-heading {
        font-size: var(--font-xl);
    }
}

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