/* Last update 03/05/2026 13:53 */

:root {
    --blue: #4d97c5;
    --orange: #ea5e2c;
    --white: #ffffff;
    --light-grey: #f5f5f5;
    --dark: #222222;
    --max-width: 1100px;
    --radius: 8px;
}

/* GLOBAL */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--light-grey);
    color: var(--dark);
    line-height: 1.6;
    padding-top: 0;
}

/* HEADER (desktop) */
.site-header {
    background: var(--blue);
    color: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: static;
    box-shadow: none;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img {
    height: 60px;
}

/* NAVIGATION */
.top-nav {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s ease;
}

.top-nav a:hover {
    opacity: 0.75;
}

/* SECTIONS */
.section {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
}

.section h2 {
    color: var(--blue);
    margin-bottom: 15px;
}

/* SKILLS */
.skill-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.skill-card {
    flex: 1;
    min-width: 250px;
    background: var(--orange);
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

.skill-icon {
    margin-bottom: 12px;
}

.skill-icon svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
    display: inline-block;
}

/* EMPLOYMENT */
.employment-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.job-row {
    display: grid;
    grid-template-columns: auto 1.2fr 2fr;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 8px;
}

.job-icon svg {
    width: 40px;
    height: 40px;
    color: var(--blue);
    stroke: var(--blue);
    fill: none;
}

.job-icon svg * {
    stroke: var(--blue) !important;
}

.job-meta h3 {
    margin: 0;
    color: var(--blue);
    font-size: 1rem;
}

.job-dates {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: var(--dark);
}

.job-duties ul {
    margin: 0;
    padding-left: 20px;
    color: var(--dark);
    font-size: 0.95rem;
}

.job-duties li + li {
    margin-top: 4px;
}

/* EDUCATION */
.education-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.edu-row {
    display: grid;
    grid-template-columns: auto 1.5fr 1fr 2fr;
    gap: 16px;
    align-items: flex-start;
}

.edu-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--orange);
    fill: none;
}

.edu-institution {
    color: var(--orange);
    font-weight: bold;
}

.edu-institution .edu-dates {
    font-size: 0.9rem;
    color: var(--dark);
    margin-top: 2px;
    font-weight: normal;
}

.edu-qualification {
    color: var(--dark);
    font-weight: bold;
}

.edu-grades ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: var(--dark);
}

.edu-grades li + li {
    margin-top: 4px;
}

/* FOOTER (desktop) */
.site-footer {
    text-align: center;
    padding: 20px;
    background: var(--orange);
    color: var(--white);
}

/* Desktop footer text */
.footer-desktop {
    display: block;
}

/* Mobile icon footer hidden by default */
.footer-mobile {
    display: none;
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 900px) {

    /* ULTRA‑COMPACT HEADER */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        padding: 2px 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    .logo-area img {
        height: 60px;
        margin-top: 10px;   /* nudges the logo down */
    }

    .top-nav {
        display: none;
    }

    /* ULTRA‑COMPACT FIXED FOOTER */
    .site-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        padding: 2px 0;
        background: var(--orange);
        color: var(--white);
        box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
    }

    /* Swap desktop text → mobile icons */
    .footer-desktop {
        display: none;
    }

    .footer-mobile {
        display: flex;
        justify-content: center;
        gap: 44px;
        align-items: center;
    }

    .footer-mobile svg {
    width: 44px;
    height: 44px;
    fill: var(--white);
    margin-top: 6px;
    }

    .footer-mobile a {
        display: flex;
        align-items: center;
    }

    /* Offsets for compact header + footer */
    body {
        padding-top: 55px;
        padding-bottom: 35px;
    }

    .skill-grid {
        flex-direction: column;
    }

    .section {
        margin: 25px 10px;
    }

    .job-row {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .job-duties {
        grid-column: 1 / -1;
    }

    .edu-row {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
    }

    .edu-qualification,
    .edu-grades {
        grid-column: 1 / -1;
    }
}
