html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Open Sans', sans-serif;
    background-color: #F9FAFB;
    color: #333333;
}

.job-title {
    font-weight: 700;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.3rem;
}

main {
    flex: 1;
}

/* ===== HEADER ===== */
header {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

header .header-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to right, #2F80ED, #F9FAFB);
}

header .header-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

header .header-text {
    background: #2F80ED;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    text-align: left;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    margin: 0 0 1rem 0;
    align-items: center;
    text-align: center;
}


header h2 {
    font-size: 30px;
    font-weight: normal;
    margin-bottom: 1.5rem;


}

/* ===== NAVIGATION ===== */
nav {
    background: #1C60B3;
    padding: 1rem;
    position: relative;
}

nav .nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.5s ease;
}

.nav-links a:hover {
    color: #c9cdd0;
}

.nav-links a.active {
    border-bottom: 2px solid white;
}

/* ===== CONTENT ===== */
section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: left;
}

section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 1rem;
}

p {
    font-size: 18px;
    line-height: 1.6;
}

a.contact-link {
    color: #2F80ED;
    text-decoration: none;
    font-weight: bold;
}

a.contact-link:hover {
    text-decoration: underline;
}


/* PDF iframe */
.cv-preview {
    width: 100%;
    height: 700px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.download-btn {
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 0.8rem 1.5rem;
    background: #27AE60;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s;

}

.download-btn:hover {
    background: #219150;
}



/* ===== FOOTER ===== */
footer {
    background: #2F80ED;
    color: white;
    text-align: center;
    padding: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    header {
        grid-template-columns: 1fr;
    }

    header .header-text {
        text-align: left;
        padding: 2rem;
    }

    header .header-image img {
        max-height: 350px;
    }

}

@media (max-width: 768px) {
    nav .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    header .header-image img {
        max-height: 250px;
    }

}

@media (max-width: 600px) {
    header .header-image img {
        max-height: 200px;
    }

    nav .nav-links a {
        font-size: 18px;
    }

}