h1 {
    font-size: 2rem;
    font-weight: 400;
}

h2 {
    font-size: 1.5rem;
    white-space: nowrap;
    font-weight: 400;
}

h3 {
    font-size: 1.25rem;
    font-weight: 400;
}

p {
    font-size: 1rem;
    font-weight: 400;
}


body {
    background-color: white;
    color: black;
    font-family: 'RedHatDisplay-Variable', Arial, sans-serif;
}

.main-container {
    display: flex;
    max-width: 540px;
    flex-direction: column;
    gap: 2rem;
    margin: 0 auto;     /* first unit is top margin, second unit centers container horizontally */
    padding-top: 4rem;
    padding-left: 2rem;
    padding-right: 2rem; 
}

@media (max-width: 540px) {
    .main-container {
        padding-top: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Header and Brief */

.header {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.photo {
    align-self: center;
    justify-self: left;
    height: 96px;
    width: 96px;
    min-width: 96px;
    min-height: 96px;
    background-color: black;
    border-radius: 50%;
    overflow: hidden;
}

.photo-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.name-and-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.name-and-link h2 {
    margin: 0;
}

.link-text {
    color: #2d2d2d;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;

}

/* Work Experience */


.institution {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 540px) {
    .institution {
        flex-direction: column;
        gap: 0rem;  /* Reduced gap for mobile */
    }
    .years-present {
        margin-bottom: -1rem;
    }
}

.years-present {
    flex: 25%;
    color: #717171;
}

.role-and-company {
    flex: 75%;
}

.role-text {
    color: inherit;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    font-weight: 400;
}


/* Skills */

.list-box-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.list-box {
    flex: 50%;
}

@media (max-width: 540px) {
    .list-box-container {
        flex-direction: column;
    }
}

/* Footer */

.footer {
    text-align: center;
}