/* Certificates page — HueFit brand */
:root {
    --hue: #00ADEF;
    --fit: #F58220;
    --ink: #123047;
    --muted: #64748b;
    --surface: #ffffff;
    --soft: #f4f8fb;
    --line: #e6eef5;
}

.certificates-page {
    background: var(--soft);
}

.certificates-page .nav-link.active,
.certificates-page .nav-link:hover {
    color: var(--hue) !important;
}

.certificates-page .quote-btn {
    background: var(--hue);
}

.certificates-page .quote-btn:hover {
    background: var(--fit);
}

.certificates-page .iso i {
    color: var(--fit);
}

.certificates-hero {
    background: var(--surface);
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--line);
}

.certificates-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--muted);
}

.certificates-breadcrumb a {
    color: var(--hue);
    text-decoration: none;
    font-weight: 600;
}

.certificates-breadcrumb a:hover {
    color: var(--fit);
}

.certificates-breadcrumb .current {
    color: var(--ink);
    font-weight: 600;
}

.certificates-hero-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--hue);
    margin-bottom: 0.65rem;
}

.certificates-hero-text {
    color: var(--muted);
    max-width: 640px;
    margin: 0;
    line-height: 1.7;
}

.certificate-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.75rem;
    height: 100%;
}

.certificate-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 173, 239, 0.12);
    color: var(--hue);
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.certificate-card-label {
    color: var(--fit);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.certificate-card h2 {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.55rem;
    margin-bottom: 0.75rem;
}

.certificate-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.35rem;
}

.certificate-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-cert-primary,
.btn-cert-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 12px;
    font-weight: 700;
    padding: 0.7rem 1.1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-cert-primary {
    background: var(--hue);
    color: #fff;
}

.btn-cert-primary:hover {
    background: var(--fit);
    color: #fff;
}

.btn-cert-outline {
    background: transparent;
    color: var(--hue);
    border-color: var(--hue);
}

.btn-cert-outline:hover {
    background: var(--hue);
    color: #fff;
}

.certificate-preview {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.25rem 1.25rem 1rem;
    height: 100%;
}

.certificate-preview-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.9rem;
}

.certificate-preview-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
}

.certificate-preview-header span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.certificate-preview-frame {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #eef3f7;
    min-height: 520px;
}

.certificate-preview-frame iframe {
    display: block;
    width: 100%;
    height: 560px;
    border: 0;
}

.certificate-preview-note {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.certificate-preview-note a {
    color: var(--hue);
    font-weight: 700;
    text-decoration: none;
}

.certificate-preview-note a:hover {
    color: var(--fit);
}

@media (max-width: 991.98px) {
    .certificate-preview-frame {
        min-height: 420px;
    }

    .certificate-preview-frame iframe {
        height: 420px;
    }
}

@media (max-width: 575.98px) {
    .certificate-card-actions {
        flex-direction: column;
    }

    .btn-cert-primary,
    .btn-cert-outline {
        width: 100%;
        justify-content: center;
    }

    .certificate-preview-frame {
        min-height: 320px;
    }

    .certificate-preview-frame iframe {
        height: 320px;
    }
}
