/* Professional CV page */
.page-cv {
    background: #f4f7fb;
}

.cv-hero {
    position: relative;
    padding: 7.5rem 1rem 2.75rem;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(242, 101, 34, 0.18), transparent 55%),
        linear-gradient(145deg, var(--brand-hero-bg, #003366) 0%, var(--brand-primary, #004080) 100%);
    color: #fff;
    overflow: hidden;
}

.cv-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 48px;
    background: linear-gradient(to top, #f4f7fb, transparent);
    pointer-events: none;
}

.cv-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.cv-eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.cv-hero-title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    visibility: visible !important;
    opacity: 1 !important;
}

.cv-hero-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 42rem;
}

.cv-main.section {
    padding: 1.5rem 1rem 4rem !important;
    background: #f4f7fb !important;
}

.cv-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    max-width: 1360px;
    margin: 0 auto;
}

.cv-aside {
    position: sticky;
    top: 5.5rem;
    display: grid;
    gap: 1rem;
}

.cv-profile-card,
.cv-meta-card,
.cv-contact-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.cv-profile-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cv-profile-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 64, 128, 0.12);
    flex-shrink: 0;
}

.cv-profile-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.cv-profile-text strong {
    color: var(--brand-primary, #004080);
    font-size: 1rem;
    line-height: 1.3;
}

.cv-profile-text span {
    color: #64748b;
    font-size: 0.85rem;
}

.cv-aside-title {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.cv-meta-list {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.cv-meta-list > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.cv-meta-list dt {
    margin: 0;
    color: #94a3b8;
    font-weight: 600;
}

.cv-meta-list dd {
    margin: 0;
    color: #0f172a;
    font-weight: 650;
    text-align: right;
}

.cv-actions {
    display: grid;
    gap: 0.55rem;
}

.cv-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.cv-btn-download {
    background: var(--brand-secondary, #f26522) !important;
    border-color: var(--brand-secondary, #f26522) !important;
    box-shadow: 0 6px 18px rgba(242, 101, 34, 0.32);
}

.cv-contact-card {
    display: grid;
    gap: 0.45rem;
}

.cv-contact-card a {
    color: var(--brand-primary, #004080);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.cv-contact-card a:hover {
    color: var(--brand-secondary, #f26522);
}

.cv-viewer-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

.cv-viewer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(180deg, #f8fafc, #fff);
    border-bottom: 1px solid #e2e8f0;
}

.cv-viewer-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-primary, #004080);
}

.cv-viewer-hint {
    font-size: 0.82rem;
    color: #94a3b8;
}

.cv-frame {
    flex: 1;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px) 0 0 / 24px 24px,
        #eef2f7;
    min-height: 72vh;
    position: relative;
}

.cv-frame iframe {
    display: block;
    width: 100%;
    height: 78vh;
    min-height: 560px;
    border: none;
    background: #fff;
}

.cv-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 50vh;
    gap: 0.75rem;
}

.cv-fallback-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.cv-fallback h2 {
    margin: 0;
    color: var(--brand-primary, #004080) !important;
    font-size: 1.35rem;
}

.cv-fallback p {
    margin: 0 0 0.75rem;
    color: #64748b;
    max-width: 28rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .cv-layout {
        grid-template-columns: 1fr;
    }
    .cv-aside {
        position: static;
    }
    .cv-hero {
        padding: 6.5rem 1rem 2.25rem;
    }
    .cv-frame iframe {
        height: 70vh;
        min-height: 420px;
    }
}
