.coreteam-section {
    padding: 100px 20px 120px;
    background: #EBEBEB;
}

.coreteam-section .coreteam-title {
    text-align: center;
    font-family: var(--main-font);
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2;
    color: var(--secondarydark);
    margin: 0 0 80px;
}

.coreteam-section .coreteam-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
    row-gap: 100px;
}

.coreteam-section .coreteam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.coreteam-section .coreteam-name {
    font-family: 'Merriweather', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 26px;
    line-height: 33px;
    color: var(--secondarydark);
    margin: 0;
}

.coreteam-section .coreteam-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.coreteam-section .coreteam-socials a {
    display: block;
    line-height: 0;
}

.coreteam-section .coreteam-socials svg {
    width: 36px;
    height: 36px;
    max-width: 36px;
}

.coreteam-section .coreteam-socials svg circle {
    fill: #004C8C;
    transition: 0.5s all ease-in-out;
}

.coreteam-section .coreteam-socials svg path {
    fill: #FFFFFF;
}

.coreteam-section .coreteam-socials a:hover svg circle {
    fill: var(--secondarydark);
}

.coreteam-section .coreteam-divider {
    width: 240px;
    max-width: 100%;
    height: 1px;
    border: none;
    background: var(--secondarydark);
    margin: 12px 0 12px;
}

.coreteam-section .coreteam-job {
    font-family: 'Merriweather', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    color: #FCBF49;
    margin-bottom: 16px;
}

.coreteam-section .coreteam-description {
    font-family: 'Merriweather', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    color: var(--secondarydark);
}

.coreteam-section .coreteam-description p {
    margin: 0 0 1em;
}

.coreteam-section .coreteam-description p:last-child {
    margin-bottom: 0;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .coreteam-section {
        background: #000000;
    }

    .coreteam-section .coreteam-title,
    .coreteam-section .coreteam-name,
    .coreteam-section .coreteam-description {
        color: #FFFFFF;
    }

    .coreteam-section .coreteam-divider {
        background: #FFFFFF;
    }

    .coreteam-section .coreteam-socials svg circle {
        fill: #FFFFFF;
    }

    .coreteam-section .coreteam-socials svg path {
        fill: #004C8C;
    }

    .coreteam-section .coreteam-socials a:hover svg circle {
        fill: var(--midblue);
    }

    .coreteam-section .coreteam-socials a:hover svg path {
        fill: #FFFFFF;
    }
}

@media (max-width: 900px) {
    .coreteam-section .coreteam-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
        column-gap: 50px;
    }
}

@media (max-width: 768px) {
    .coreteam-section {
        padding: 60px 20px 80px;
    }

    .coreteam-section .coreteam-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .coreteam-section .coreteam-grid {
        row-gap: 40px;
    }

    .coreteam-section .coreteam-name {
        font-size: 22px;
        line-height: 28px;
    }

    .coreteam-section .coreteam-job {
        font-size: 20px;
        line-height: 26px;
    }

    .coreteam-section .coreteam-socials svg {
        width: 30px;
        height: 30px;
        max-width: 30px;
    }
}
