/* Certificate Thank You Page Styles */
/* Fonts: Lato (Google Fonts) and Futura PT (local) */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* Futura PT - local font fallback */
@font-face {
    font-family: 'Futura PT';
    src: local('Futura PT'), local('FuturaPT'), local('Futura');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Futura PT';
    src: local('Futura PT Medium'), local('FuturaPT-Medium');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Futura PT';
    src: local('Futura PT Bold'), local('FuturaPT-Bold');
    font-weight: 500;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
}

body.certificate-page {
    background: #696977;
    min-height: 100vh;
}

/* Main Container */
.cert-container {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 40px;
    gap: 10px;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

/* Inner Wrapper */
.cert-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 0;
    gap: 40px;
    width: 100%;
    /* flex properties removed as we are in grid now */
    order: 0;
    align-self: stretch;
}

/* Hero Section */
.cert-hero {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 32px;
    gap: 24px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 16px;
    order: 0;
    align-self: stretch;
}

/* NIKO Logo */
.cert-logo {
    width: 285px;
    height: 42px;
    order: 0;
    object-fit: contain;
}

/* Hero Content */
.cert-hero-content {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 0;
    gap: 12px;
    width: 100%;
    order: 1;
    align-self: stretch;
}

/* Title */
.cert-title {
    width: 100%;
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 48px;
    line-height: 120%;
    text-align: center;
    color: #2C3E50;
    order: 0;
    align-self: stretch;
}

/* Subtitle */
.cert-subtitle {
    width: 100%;
    font-family: 'Lato', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 32px;
    line-height: 120%;
    text-align: center;
    color: #2C3E50;
    order: 1;
    align-self: stretch;
}

/* Primary Button (Download) */
.btn {
    display: inline-grid;
    grid-auto-flow: column;
    justify-content: center;
    align-items: center;
    padding: 8px 46px 10px;
    gap: 20px;
    background: #84BE52;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    height: 64px;
    order: 2;
}

.btn span,
.btn {
    font-family: 'Futura PT', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    text-align: center;
    color: #FFFFFF;
}

.btn:hover {
    opacity: 0.9;
}
.btn:focus:not(:focus-visible) {
    outline: none;
}


/* Button Colors */
.btn--green { background: #84BE52; }
.btn--yellow { background: #FFBA13; }
.btn--purple { background: #904A93; }
.btn--indigo { background: #493ECA; }
.btn--teal { background: #439798; }
.btn--blue { background: #7095E2; }

/* Small Button (Cards) */
.btn--sm {
    padding: 8px 36px 10px;
    height: 56px;
    font-size: 20px;
}

.btn--sm,
.btn--sm span {
    font-size: 20px;
    line-height: 100%;
}

/* Projects Section */
.cert-projects {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 0;
    gap: 24px;
    width: 100%;
    order: 1;
    align-self: stretch;
}

/* Projects Title */
.cert-projects-title {
    width: 100%;
    font-family: 'Futura PT', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 48px;
    line-height: 90%;
    text-align: center;
    color: #FFFFFF;
    order: 0;
    align-self: stretch;
}

/* Cards Grid */
.cert-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 0;
    gap: 20px;
    width: 100%;
    order: 1;
    align-self: stretch;
}

/* Cards Row */
.cert-cards-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: stretch;
    padding: 0;
    gap: 20px;
    width: 100%;
    order: 0;
    align-self: stretch;
}

/* Card Base */
.cert-card {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 24px;
    gap: 20px;
    background: #FFFFFF;
    border-radius: 16px;
    height: 100%;
}

/* Card Border Colors */
.cert-card--yellow { border-top: 5px solid #FFBA13; }
.cert-card--purple { border-top: 5px solid #AC77AE; }
.cert-card--indigo { border-top: 5px solid #493ECA; }
.cert-card--teal { border-top: 5px solid #439798; }
.cert-card--blue { border-top: 5px solid #7095E2; }

/* Card Title */
.cert-card__title {
    width: 100%;
    font-family: 'Futura PT', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 110%;
    display: grid;
    place-items: center;
    text-align: center;
    color: #4B5563;
    order: 0;
    align-self: stretch;
}

/* Card Text */
.cert-card__text {
    width: 100%;
    font-family: 'Futura PT', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 20px;
    line-height: 130%;
    display: grid;
    place-items: center;
    text-align: center;
    color: #000000;
    order: 1;
    align-self: stretch;
}
.cert-card__title, .cert-card__text {
    align-self: start;
}
.cert-card .btn {
    align-self: end;
}
/* Social Buttons Row */
.cert-social-buttons {
    display: grid;
    grid-auto-flow: column;
    justify-items: start;
    padding: 0;
    gap: 16px;
    order: 2;
}
.cert-link-block {
    order: 3;
    width: 100%;
    text-align: center;
    padding-top: 12px;
}
/* ===== RESPONSIVE DESIGN ===== */

/* 1440px and below */
@media (max-width: 1440px) {
    .cert-title {
        font-size: 42px;
    }

    .cert-subtitle {
        font-size: 28px;
    }

    .btn {
        border-radius: 12px;
        height: 56px;
        font-size: 20px;
    }

    .btn span {
        font-size: 20px;
    }

    .cert-projects-title {
        font-size: 42px;
        line-height: 50px;
    }

    .cert-card__title {
        font-size: 20px;
    }

    .cert-card__text {
        font-size: 16px;
    }

    .btn--sm {
        height: 46px;
        font-size: 16px;
    }

    .btn--sm span {
        font-size: 16px;
    }
}

/* 1024px - Tablet landscape */
@media (max-width: 1024px) {
    .cert-title {
        font-size: 36px;
    }

    .cert-subtitle {
        font-size: 24px;
    }

    .btn {
        font-size: 18px;
        height: 54px;
    }

    .btn span {
        font-size: 18px;
    }

    .cert-projects-title {
        font-size: 36px;
    }

    .cert-card__title {
        font-size: 18px;
    }

    .cert-card__text {
        font-size: 14px;
    }

    .btn--sm {
        height: 42px;
        font-size: 14px;
    }

    .btn--sm span {
        font-size: 14px;
    }
}

/* 768px - Tablet portrait */
@media (max-width: 768px) {
    .cert-hero {
        padding: 24px;
        gap: 20px;
    }

    .cert-title {
        font-size: 32px;
    }

    .cert-subtitle {
        font-size: 20px;
    }

    .btn {
        font-size: 16px;
    }

    .btn span {
        font-size: 16px;
    }

    .cert-projects-title {
        font-size: 32px;
        line-height: 100%;
    }

    .cert-card {
        padding: 20px;
        gap: 16px;
    }

    .cert-card__title {
        font-size: 16px;
    }

    .cert-card__text {
        font-size: 12px;
    }

    .btn--sm {
        font-size: 12px;
        padding: 8px 20px 10px;
    }

    .btn--sm span {
        font-size: 12px;
    }
}


/* 375px - Mobile */
@media (max-width: 610px) {
    .cert-container {
        padding: 20px;
    }

    .cert-link-block {
        padding-top: 4px;
    }

    .cert-wrapper {
        gap: 20px;
    }

    .cert-hero {
        padding: 20px 16px;
        gap: 16px;
        border-radius: 12px;
    }

    .cert-logo {
        width: 244px;
        height: 36px;
    }

    .cert-title {
        font-size: 20px;
    }

    .cert-subtitle {
        font-size: 12px;
    }

    .btn {
        padding: 8px 20px 10px;
        height: 42px;
        border-radius: 12px;
        font-size: 12px;
    }

    .btn span {
        font-size: 12px;
    }

    .cert-projects-title {
        font-size: 20px;
        line-height: 100%;
    }

    .cert-projects-grid {
        gap: 10px;
    }

    .cert-cards-row {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cert-card {
        padding: 16px;
        gap: 12px;
        border-radius: 12px;
    }

    .cert-card__title {
        font-size: 16px;
    }

    .cert-card__text {
        font-size: 12px;
    }

    .btn--sm {
        height: 42px;
        font-size: 12px;
        padding: 8px 20px 10px;
        border-radius: 12px;
    }

    .btn--sm span {
        font-size: 12px;
    }

    .cert-social-buttons {
        gap: 8px;
        justify-content: start;
    }
}
