/* Public awards & certificates */

.awards-page {
    position: relative;
    z-index: 1;
}

.awards-hero {
    padding: calc(var(--header-stack-height) + 36px) 0 28px;
}

.awards-hero--detail {
    padding-bottom: 16px;
}

.awards-hero__inner {
    max-width: 720px;
}

.awards-back {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
}

.awards-back:hover {
    color: var(--navy);
}

.awards-body {
    padding: 0 0 72px;
}

.awards-empty {
    margin: 0;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.award-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.award-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 12px 32px rgba(15, 23, 42, 0.1));
}

.award-card__media {
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    overflow: hidden;
}

.award-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.award-card__pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    color: var(--navy);
    background:
        radial-gradient(circle at 100% 0%, rgba(252, 0, 0, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(72, 108, 47, 0.08) 0%, transparent 55%),
        #f8fafc;
}

.award-card__pdf svg {
    width: 40px;
    height: 40px;
}

.award-card__pdf span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.award-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 20px;
    flex: 1;
}

.award-card__body h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--navy);
}

.award-card__meta {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.award-card__desc {
    margin: 4px 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.award-card__cta {
    margin-top: auto;
    padding-top: 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary, #fc0000);
}

.award-viewer {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    min-height: 62vh;
}

.award-viewer__frame {
    display: block;
    width: 100%;
    height: min(78vh, 900px);
    border: 0;
    background: #f8fafc;
}

.award-viewer__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    min-height: 56vh;
    background: #f8fafc;
}

.award-viewer__image {
    display: block;
    max-width: 100%;
    max-height: min(70vh, 820px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.award-viewer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

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

@media (max-width: 640px) {
    .awards-hero {
        padding-top: calc(var(--header-stack-height) + 24px);
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .award-viewer__image-wrap {
        padding: 16px;
    }
}
