/* =========================================================
   ANGELO AGUOT DENG PIOL
   PROFESSIONAL BIOGRAPHY WEBSITE
   MAIN STYLESHEET
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    color: #222;
    background: #fff;
    font-size: 15px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    transition: 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #8a6500;
}


/* =========================================================
   MENU TOGGLE
   ========================================================= */

.menu-toggle {
    display: block;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
    color: #111;
}

.site-nav {
    display: none;
}

.site-nav.menu-open {
    display: flex;

    position: absolute;
    top: 65px;
    right: 4%;
    left: auto;

    width: 150px;

    background: #fff;

    border: 1px solid #ddd;
    padding: 8px 15px;

    flex-direction: column;
    align-items: flex-start;

    gap: 0;

    z-index: 9999;
}

.site-nav.menu-open a {
    display: block;
    width: 100%;

    padding: 7px 0;

    font-size: 14px;
}

/* =========================================================
   GENERAL PAGE WIDTH
   ========================================================= */

main {
    width: 100%;
}

.inner-page {
    width: 90%;
    max-width: 1050px;
    margin: 0 auto;
}



/* =========================================================
   HOME HERO
   ========================================================= */

.home-hero {
    text-align: center;
    padding: 70px 20px 55px;
}

.home-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.home-profile-image {
    width: 190px;
    height: 190px;
    object-fit: cover;

    margin: 0 auto 25px;

    border-radius: 50%;
}

.home-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.home-hero h1 {
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.home-hero h2 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 8px;
}

.home-location {
    font-size: 15px;
    margin-bottom: 25px;
}

.home-introduction {
    max-width: 780px;
    margin: 0 auto 15px;
}


/* =========================================================
   INTERNAL PAGE INTRODUCTION
   ========================================================= */

.page-introduction {
    display: flex;
    align-items: center;
    gap: 35px;

    padding: 55px 0 35px;
}


/* =========================================================
   INTERNAL PAGE PHOTO
   ========================================================= */

.page-photo {
    width: 220px;
    flex-shrink: 0;
}

.page-photo img {
    width: 220px;
    height: 260px;
    object-fit: cover;
}


/* =========================================================
   PAGE INTRO TEXT
   ========================================================= */

.page-introduction h1 {
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 5px;
}

.page-introduction h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.page-introduction p {
    font-size: 16px;
}


/* =========================================================
   PAGE INTRODUCTION
   PHOTO LEFT - TEXT RIGHT
   ========================================================= */

.page-introduction {
    display: flex;
    align-items: center;
    gap: 35px;

    padding: 55px 0 35px;
}

.page-photo {
    width: 220px;
    flex-shrink: 0;
}

.page-photo img {
    width: 220px;
    height: 200px;
    object-fit: cover;
}

.page-introduction-text {
    flex: 1;
}

.page-introduction h1 {
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 5px;
}

.page-introduction h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.page-introduction p {
    font-size: 16px;
}


/* =========================================================
   CONTENT SECTIONS
   ========================================================= */

.content-section,
.home-section {
    padding: 25px 0;
}

.content-section h2,
.home-section h2 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.content-section h3,
.home-section h3 {
    font-size: 20px;
    line-height: 1.35;
    margin-top: 16px;
    margin-bottom: 4px;
}

.content-section p,
.home-section p {
    max-width: 900px;
    margin-bottom: 12px;
}


/* =========================================================
   HOME SECTIONS
   ========================================================= */

.home-section {
    width: 90%;
    max-width: 950px;
    margin: 0 auto;
}

.home-education {
    text-align: center;
}


/* =========================================================
   HOME CTA
   ========================================================= */

.home-cta {
    width: 90%;
    max-width: 950px;
    margin: 20px auto 0;
    padding: 55px 0;

 }

.home-cta h2 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.home-cta p {
    max-width: 700px;
    margin-bottom: 18px;
}

.home-cta a {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid #222;
    font-weight: 600;
    transition: 0.3s ease;
}

.home-cta a:hover {
    background: #222;
    color: #166534;
}

/* =========================================================
   GALLERY
   ========================================================= */

.gallery-section {
    padding: 25px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.gallery-item figcaption {
    padding-top: 8px;
    font-size: 14px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 60px;
    padding: 30px 20px;

    text-align: center;

    border-top: 1px solid #ddd;
       color: white;
    font-size: 14px;
    background: #242424;
}

.site-footer p {
    margin-bottom: 4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .site-nav {
        gap: 15px;
    }

    .site-nav a {
        font-size: 14px;
    }

    .home-hero h1 {
        font-size: 38px;
    }

    .page-introduction {
        padding-left: 235px;
    }

    .page-introduction::before {
        width: 200px;
        height: 240px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .header-container {
        min-height: 65px;
        width: 92%;
    }

    .site-logo {
        font-size: 17px;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .site-nav {
        display: none;

        position: absolute;

        top: 65px;
        left: 0;

        width: 100%;

        background: #fff;

        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;

        padding: 15px 20px;

        flex-direction: column;
        align-items: flex-start;

        gap: 0;

        z-index: 1000;
    }

    .site-nav.menu-open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        padding: 10px 0;
    }


    /* HOME */

    .home-hero {
        padding: 45px 15px;
    }

    .home-profile-image {
        width: 150px;
        height: 150px;
    }

    .home-hero h1 {
        font-size: 32px;
    }

    .home-hero h2 {
        font-size: 19px;
    }


    /* INTERNAL PAGE */

    @media (max-width: 768px) {

    .inner-page {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

}
   @media (max-width: 768px) {

    .page-introduction {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        margin: 0;
        padding: 0;
    }

    .page-photo {
        width: 30%;
        max-width: 110px;
        flex: 0 0 30%;
    }

    .page-photo img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .page-introduction-text {
        width: 70%;
        min-width: 0;
        flex: 1;
    }

    .page-introduction-text h1 {
        font-size: 22px;
    }

    .page-introduction-text h2 {
        font-size: 19px;
    }

    .page-introduction-text p {
        font-size: 14px;
    }
}

    /* CONTENT */

    .content-section,
    .home-section {
        padding: 20px 0;
    }

    .content-section h2,
    .home-section h2 {
        font-size: 25px;
    }

    .content-section h3,
    .home-section h3 {
        font-size: 18px;
    }


    /* GALLERY */

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 240px;
    }


    /* CTA */

    .page-cta,
    .home-cta {
        padding: 10px 0;
    }

}
.site-nav.menu-open {
    display: flex;
}

@media (max-width: 768px) {

    body {
        font-size: 15px;
        line-height: 1.6;
    }

    p,
    li {
        font-size: 15px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 21px;
    }

    h3 {
        font-size: 17px;
    }
}

/* =========================================================
   PAGE CTA
   ========================================================= */
/* =========================================================
   CTA BUTTONS
   ========================================================= */

/* Homepage and internal-page CTA buttons */
.home-cta a,
.page-cta a {
    display: inline-block;
    padding: 11px 22px;

    background-color: #166534;
    color: #fff;

    border: none;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: background-color 0.3s ease;
}

/* Hover state */
.home-cta a:hover,
.page-cta a:hover {
    background-color: #14532d;
    color: #fff;
}


/* =========================================================
   HOME CTA CONTAINER
   ========================================================= */

.home-cta {
    width: 90%;
    max-width: 950px;
    margin: 20px auto 0;
    padding: 55px 0;
}

.home-cta h2 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.home-cta p {
    max-width: 700px;
    margin-bottom: 18px;
}


/* =========================================================
   INTERNAL PAGE CTA
   ========================================================= */

.page-cta {
    margin-top: 0;
    padding: 10px 0;
}

.page-cta h2 {
    margin-bottom: 15px;
}

.page-cta p {
    margin-bottom: 25px;
}

.page-cta a {
    margin-top: 10px;
}


/* =========================================================
   HEADING SPACING
   ========================================================= */

.content-section h2 + h3 {
    margin-top: 20px;
}


/* =========================================================
   CAREER / CONTENT LISTS
   ========================================================= */

.content-section ul,
.career-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    padding-left: 0;
}

.content-section li,
.career-list li {
    white-space: nowrap;
    margin: 0;
}