:root {
    --brand-primary: #0c4a6e;
    --brand-secondary: #0369a1;
    --brand-accent: #f59e0b;
    --brand-bg: #f7fafc;
    --brand-dark: #0f172a;
    --text-muted: #475569;
    --radius-lg: 1rem;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--brand-dark);
    background: linear-gradient(180deg, #f8fcff 0%, #f6f8fb 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand span {
    font-family: 'DM Serif Display', serif;
    letter-spacing: 0.2px;
}

a {
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(10px);
    background-color: rgba(248, 252, 255, 0.9);
    border-bottom: 1px solid #e2e8f0;
}

.navbar-brand {
    font-weight: 600;
    color: var(--brand-primary);
}

.nav-link {
    color: var(--brand-dark);
    font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
    color: var(--brand-secondary);
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    border: 0;
}

.btn-brand:hover {
    color: #fff;
    filter: brightness(1.05);
}

.btn-outline-brand {
    border: 1px solid var(--brand-secondary);
    color: var(--brand-secondary);
}

.btn-outline-brand:hover {
    background-color: var(--brand-secondary);
    color: #fff;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(3, 105, 161, 0.16), transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.18), transparent 35%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: #082f49;
}

.hero-subtitle {
    color: var(--text-muted);
    max-width: 640px;
}

.hero-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 50px -32px rgba(15, 23, 42, 0.45);
}

.brand-badge {
    background-color: #e0f2fe;
    color: var(--brand-primary);
    font-weight: 600;
}

.section-highlight {
    background: #f8fafc;
}

.section-heading p {
    color: var(--text-muted);
}

.benefit-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -20px rgba(2, 132, 199, 0.6);
}

.course-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    box-shadow: 0 20px 35px -28px rgba(15, 23, 42, 0.42);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 40px -24px rgba(3, 105, 161, 0.5);
}

.course-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.filter-box {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1rem;
}

.benefits-box {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
}

.validation-cta {
    border-radius: 18px;
    background: linear-gradient(135deg, #075985, #0c4a6e);
    color: #fff;
    box-shadow: 0 24px 40px -28px rgba(2, 132, 199, 0.75);
}

.validation-panel {
    border-radius: 18px;
    background-color: #fff;
    border: 1px solid #dbeafe;
}

.certificate-result {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.certificate-result.valid {
    border-left: 6px solid #059669;
}

.certificate-result.invalid {
    border-left: 6px solid #dc2626;
}

.certificate-message {
    color: #0f172a;
    line-height: 1.6;
}

.program-content {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    background-color: #f8fafc;
}

.program-content ul {
    padding-left: 1.2rem;
}

.program-content li + li {
    margin-top: 0.4rem;
}

.print-page-card {
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 35px -28px rgba(15, 23, 42, 0.28);
}

.a4-document {
    width: min(100%, 210mm);
    min-height: 297mm;
    padding: 14mm;
    border: 1px solid #b6c2d2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 34px -24px rgba(15, 23, 42, 0.4);
    display: flex;
    flex-direction: column;
}

.doc-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #dbe7f3;
}

.doc-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.doc-brand img {
    width: 54px;
    height: 54px;
}

.doc-brand h1 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.1;
    color: #0b3350;
}

.doc-brand p {
    margin: 0.2rem 0 0;
    color: #3f5163;
    font-size: 0.92rem;
}

.doc-meta {
    min-width: 250px;
    border: 1px solid #dbe7f3;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    background: #f9fbfe;
}

.doc-meta p {
    margin: 0;
    font-size: 0.88rem;
    color: #253849;
}

.doc-meta p + p {
    margin-top: 0.35rem;
}

.doc-meta span {
    font-weight: 600;
}

.doc-body {
    padding-top: 1.1rem;
}

.doc-intro {
    margin-bottom: 1rem;
    line-height: 1.65;
    color: #0f172a;
}

.doc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.doc-field {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 0.6rem 0.7rem;
}

.doc-field span {
    display: block;
    font-size: 0.78rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.doc-field strong {
    display: block;
    margin-top: 0.2rem;
    color: #0f172a;
    line-height: 1.35;
}

.doc-program {
    margin-top: 1rem;
    border: 1px solid #dbe7f3;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    background: #fbfdff;
}

.doc-program h2 {
    font-size: 1.02rem;
    margin-bottom: 0.6rem;
}

.doc-program ul {
    margin: 0;
    padding-left: 1.1rem;
}

.doc-program li + li {
    margin-top: 0.2rem;
}

.doc-footer {
    margin-top: auto;
    border-top: 2px solid #dbe7f3;
    padding-top: 1rem;
}

.doc-signatures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.doc-signature {
    text-align: center;
}

.sign-line {
    display: block;
    border-top: 1px solid #475569;
    margin-bottom: 0.35rem;
}

.doc-signature strong {
    display: block;
    font-size: 0.92rem;
}

.doc-signature small {
    color: #475569;
}

.doc-validation {
    margin-top: 0.95rem;
    font-size: 0.8rem;
    color: #475569;
}

.doc-validation p {
    margin: 0;
}

.doc-validation p + p {
    margin-top: 0.25rem;
}

.testimonial-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 1.2rem;
}

.site-footer {
    background: #082f49;
    color: #e2e8f0;
}

.footer-title {
    color: #fff;
}

.footer-text {
    color: #cbd5e1;
}

.footer-links li + li {
    margin-top: 0.4rem;
}

.footer-links a,
.site-footer a {
    color: #f1f5f9;
}

.footer-links a:hover,
.site-footer a:hover {
    color: #fbbf24;
}

.py-lg-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 991.98px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .doc-header,
    .doc-signatures,
    .doc-fields {
        grid-template-columns: 1fr;
    }

    .doc-header {
        display: block;
    }

    .doc-meta {
        margin-top: 0.9rem;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body {
        background: #fff !important;
    }

    .site-header,
    .site-footer,
    .no-print {
        display: none !important;
    }

    .print-document-page {
        padding: 0 !important;
    }

    .print-document-page .container {
        max-width: none !important;
        width: auto !important;
        padding: 0 !important;
    }

    .a4-document {
        width: auto !important;
        min-height: calc(297mm - 20mm) !important;
        margin: 0 !important;
        padding: 8mm !important;
        border: 1px solid #455b73 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .doc-program {
        page-break-inside: avoid;
    }

    .doc-signatures {
        page-break-inside: avoid;
    }
}
