/* Gov/MNC Certificates & Awards page (scoped) */

.certificates-page {
    --mnc-navy: #001f3f;
    --mnc-navy-2: #00162e;
    --mnc-green: #0d4d4d;
    --mnc-green-2: #1a5f5f;
    --mnc-cream: #faf8f5;
    --mnc-ink: #0f172a;
    --mnc-muted: rgba(15, 23, 42, 0.72);
}

.certificates-page .cert-hero {
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.92), rgba(13, 77, 77, 0.88)), url('../../img/gallery-3.jpg');
    background-size: cover;
    background-position: center;
    padding: 110px 0 70px;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid rgba(26, 95, 95, 0.6);
}

.certificates-page .cert-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.28;
    pointer-events: none;
}

.certificates-page .cert-hero .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.certificates-page .cert-hero h1 {
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.certificates-page .cert-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
    margin: 0 auto;
    max-width: 760px;
}

.certificates-page .hero-badges {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.certificates-page .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(250, 248, 245, 0.12);
    border: 1px solid rgba(250, 248, 245, 0.22);
    font-weight: 800;
}

.certificates-page .shell {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.certificates-page .section-title {
    font-weight: 900;
    color: var(--mnc-ink);
    font-size: 1.45rem;
    margin: 0 0 10px;
}

.certificates-page .section-sub {
    color: var(--mnc-muted);
    font-weight: 650;
    margin: 0;
}

.certificates-page .award-card {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certificates-page .award-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.certificates-page .award-media {
    height: 260px;
    background: linear-gradient(135deg, #faf8f5, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.certificates-page .award-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.certificates-page .award-body {
    padding: 16px 16px 18px;
}

.certificates-page .award-body h3 {
    font-weight: 900;
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: var(--mnc-ink);
}

.certificates-page .award-body p {
    margin: 0;
    color: var(--mnc-muted);
    font-weight: 650;
    line-height: 1.6;
}

.certificates-page .step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px dashed rgba(15, 23, 42, 0.14);
}

.certificates-page .step:first-child { border-top: none; }

.certificates-page .step .num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--mnc-cream);
    background: linear-gradient(135deg, var(--mnc-navy), var(--mnc-green));
    flex: 0 0 auto;
}

.certificates-page .step strong {
    display: block;
    font-weight: 900;
    color: var(--mnc-ink);
}

.certificates-page .step span {
    color: var(--mnc-muted);
    font-weight: 650;
}

/* Lightbox */
.certificates-page .lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.certificates-page .lightbox-img {
    max-width: min(1000px, 92vw);
    max-height: 78vh;
    border-radius: 10px;
    background: #fff;
}

.certificates-page .lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 34px;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .certificates-page .cert-hero { padding: 95px 0 58px; }
    .certificates-page .cert-hero h1 { font-size: 2.05rem; }
    .certificates-page .award-media { height: 220px; }
}
