﻿/**
 * Custom Certificate Styles - Zyntiq LMS
 * PIXEL-PERFECT MATCH TO REFERENCE DESIGN
 * A4 Landscape: 1123px x 794px
 */

/* System font stack used — no external font imports needed */

/* Page Background */
.certificate-page {
    background: #121212;
    min-height: 100vh;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Scaler Wrapper */
.cert-scaler-wrapper {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Main Container - A4 Landscape */
#certificate-container {
    width: 1123px;
    height: 794px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000;
}

/* ===== MAIN CONTENT AREA ===== */
/* This keeps all text AWAY from the right-side logos */
.cert-main-content {
    position: absolute;
    top: 50px;
    left: 60px;
    right: 200px;
    /* CRITICAL: Large margin to clear logos */
    bottom: 50px;
    display: flex;
    flex-direction: column;
}

/* Logo - Top Left */
.cert-logo {
    width: 200px;
    height: auto;
    margin-bottom: 15px;
}

/* Title Block */
.cert-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left aligns items */
    width: fit-content;
    /* Shrinks to fit "CERTIFICATE" */
    margin: 40px auto 25px auto;
    /* Centers the whole block */
}

.cert-title {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 82px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 2px;
    line-height: 1;
}

.cert-subtitle {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin: 8px 0 0 0;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #333;
}

/* Recipient Name */
.cert-name {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #000;
    margin: 35px auto 10px auto;
    /* Reduced margins (was 45px/35px) */
    text-align: center;
    line-height: 1.2;
    max-width: 850px;
    /* Limits width to clear logos */
    position: relative;
    word-wrap: break-word;
}

/* Description Section */
.cert-description-section {
    text-align: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.cert-divider {
    border: none;
    border-top: 1.5px solid #222;
    width: 100%;
    margin-bottom: 15px;
    /* Reduced (was 20px) */
}

.cert-description-text {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    color: #222;
    line-height: 1.6;
    font-weight: 400;
    text-align: justify;
    text-align-last: center;
    margin: 0;
}

/* Footer Row */
.cert-footer-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 25px;
}

/* Signature Block */
.cert-signature-block {
    text-align: center;
    width: 220px;
}

.cert-signature-img {
    height: 100px;
    width: auto;
    margin-bottom: -20px;
}

.cert-signature-line {
    border-top: 0.2px solid #000;
    width: 150px;
    margin: 0 auto;
}

.cert-signature-name {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 0 0;
}

.cert-signature-title {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    margin: 3px 0 0 0;
}

/* Meta Info (Date/UID) */
.cert-meta-info {
    position: absolute;
    bottom: 60px;
    left: 48%;
    /* Balanced center */
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    color: #000;
}

.cert-meta-row {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 5px;
}

.cert-meta-label {
    font-weight: 600;
    width: 31px;
    /* Fixed width for the text part */
}

.cert-meta-colon {
    font-weight: 600;
}

.cert-meta-value {
    font-weight: 500;
}

/* ===== RIGHT-SIDE LOGOS COLUMN ===== */
/* Positioned absolutely to avoid overlap */
.cert-logos-stack {
    position: absolute;
    right: 80px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.cert-logo-item {
    width: 110px;
    height: auto;
    object-fit: contain;
}

/* Specific sizing for MSME and Digital India */
.cert-logo-item.msme {
    width: 120px;
}

.cert-logo-item.digital {
    width: 130px;
}

/* Download Button */
.cert-actions {
    margin-top: 30px;
}

/* Premium Download Button */
.cert-download-btn {
    background: linear-gradient(135deg, #d4af37 0%, #b49226 50%, #d4af37 100%);
    background-size: 200% auto;
    color: #000;
    padding: 16px 50px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.cert-download-btn:hover {
    background-position: right center;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
    border-color: rgba(255, 215, 0, 0.6);
}

.cert-download-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Responsive Zoom */
@media screen and (max-width: 1200px) {
    #certificate-container {
        zoom: 0.8;
    }
}

@media screen and (max-width: 1000px) {
    #certificate-container {
        zoom: 0.6;
    }
}

@media screen and (max-width: 700px) {
    #certificate-container {
        zoom: 0.45;
    }
}

@media screen and (max-width: 500px) {
    #certificate-container {
        zoom: 0.35;
    }
}


