body {
    background: #f4f6fa;
    margin: 0;
    font-family: Arial, sans-serif;
}

.header {
    text-align: center;
    margin-bottom: 1.2em;
}

.header-inner {
    display: inline-block;
    background: #fff;
    border: 2px solid #e0e4ea;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 1em 2em;
}

.logo {
    height: 60px;
    margin-bottom: 0.5em;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.header h1 {
    margin-bottom: 0.5em;
    font-size: 1.2em;
    color: #1a2a4a;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.a4-preview {
    width: 794px;
    min-height: 1123px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 32px 40px;
    margin: 0 auto;
    text-align: left;
}

.a4-preview h2 {
    margin-top: 0;
    text-align: center;
    font-size: 1.3em;
    color: #1a2a4a;
}

.a4-preview h3 {
    color: #1a2a4a;
    margin-top: 1.5em;
    border-bottom: 2px solid #e0e4ea;
    padding-bottom: 0.3em;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 1em;
}

.details-table th, .details-table td {
    padding: 8px;
    border: 1px solid #e0e4ea;
}

.details-table th {
    text-align: left;
    background: #f7f8fa;
    font-weight: 600;
    width: 150px;
}

.passport-photo {
    border-radius: 8px;
    border: 1px solid #e0e4ea;
    padding: 2px;
}

.olevel-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    font-size: 1em;
}

.olevel-table th, .olevel-table td {
    padding: 8px;
    border: 1px solid #e0e4ea;
}

.olevel-table th {
    text-align: left;
    background: #f7f8fa;
    font-weight: 600;
}

.subjects-table {
    width: 100%;
    border-collapse: collapse;
}

.subjects-table th, .subjects-table td {
    padding: 6px;
    border: 1px solid #e0e4ea;
}

.subjects-table th {
    background: #f7f8fa;
}

.education-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 1em;
}

.education-table th, .education-table td {
    padding: 8px;
    border: 1px solid #e0e4ea;
}

.education-table th {
    text-align: left;
    background: #f7f8fa;
    font-weight: 600;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2em;
}

.btn {
    color: #fff;
    background: #1a2a4a;
    padding: 0.7em 1.5em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-secondary {
    background: #e0e4ea;
    color: #1a2a4a;
}

.btn:hover {
    background: #334a77;
}

.btn-secondary:hover {
    background: #c8cdd5;
}

@media print {
    body {
        background: #fff !important;
    }
    .a4-preview {
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .header, .footer-links {
        display: none !important;
    }
}
