@charset "UTF-8";
/* ==========================================================================
   Awards & Certifications – HeveaBoard
   Page-only styles. Needs global.css for navbar, banner and footer.
   ========================================================================== */


.nymainbody { background-color: #f4f4f4; padding: 40px 0 60px; }

.awards-card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}


.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ── Tabs ── */
.award-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}
.award-tab {
    padding: 10px 28px;
    font-size: 16px;
    letter-spacing: .05em;
    color: #323232;
    border: 1px solid #323232;
    border-radius: 999px;
    transition: background-color .2s, color .2s;
}
.award-tab:hover { color: #323232; background-color: #ececec; }
.award-tab.is-active,
.award-tab.is-active:hover { color: #fff; background-color: #323232; }

.tab-panel[hidden] { display: none; }

/* ── Entries ── */
.year-section { margin-bottom: 60px; }

.year-section h2 {
    position: relative;
    font-family: 'AlibabaPuHuiTi-2-45-Light', sans-serif;
    margin-bottom: 8px;
    padding-top: 20px;
    font-size: 2em;
    font-weight: 400;
    text-align: center;
    color: #000;
    border-top: 2px solid #ddd;
}
.entry-title {
    margin-bottom: 24px;
    font-size: 1.15em;
    font-weight: normal;
    text-align: center;
    color: #323232;
}

.trophy-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}
.trophy-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18%;
    height: 250px;
    margin: 10px;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}
.trophy-item:hover,
.trophy-item:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
}
.trophy-item:focus-visible { outline: 2px solid #323232; outline-offset: 2px; }

.trophy-item img,
.lightbox-img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;   /* no "Save image" on long-press (iOS) */
}
.trophy-item img { width: 100%; height: 100%; object-fit: contain; }

.trophy-item.is-placeholder {
    cursor: default;
    font-size: 14px;
    color: #999;
    border-style: dashed;
}
.trophy-item.is-placeholder:hover { transform: none; box-shadow: 0 4px 8px rgba(0, 0, 0, .1); }

.summary-text {
    font-size: 1.2em;
    line-height: 1.5em;
    text-align: justify;
    color: #555;
}
.award-list { margin: 12px 0 0 1.2em; list-style: disc; font-size: 1.2em; line-height: 1.7; color: #555; }
.cert-code { margin-bottom: 1em; font-size: 1.2em; text-align: center; color: #333; }
.reg { font-size: .6em; vertical-align: super; line-height: 0; }

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .9);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { max-width: 92vw; margin: 0; text-align: center; }
.lightbox-img { max-width: 100%; max-height: 82vh; border-radius: 4px; }
.lightbox-caption { margin-top: 12px; font-size: 15px; color: #ddd; }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    padding: 0 14px;
    font-size: 44px;
    line-height: 1;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: .8;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev  { top: 50%; left: 8px;  transform: translateY(-50%); font-size: 60px; }
.lightbox-next  { top: 50%; right: 8px; transform: translateY(-50%); font-size: 60px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .awards-card { padding: 24px 16px; }
    .trophy-item { width: 44%; height: 300px; margin: 8px; }
    .year-section h2 { font-size: 1.5em; }
    .summary-text { text-align: left; }
}

@media (max-width: 480px) {
    .trophy-item { width: 100%; height: 350px; }
    .year-section h2 { font-size: 1.2em; }
    .award-tab { padding: 8px 18px; font-size: 14px; }
}

/* Portrait photos (e.g. trophies): frame follows the photo shape */
.trophy-gallery.is-portrait .trophy-item { width: auto; aspect-ratio: 9 / 16; }
.trophy-gallery.is-portrait .trophy-item img { object-fit: cover; }