﻿.about-container {
    display: grid;
    gap: 1.2rem;
    padding: 3rem 2rem 2rem 2rem;
    max-width: 1300px;
    width: 75vw;
    margin: 0 auto 0 auto;
    box-shadow: var(--shadow);
}

.about-profile {
    display: flex;
    background: var(--color-bg-light);
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow);
}

.profile-img {
    width: 155px;
    height: 155px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--color-primary);
}

.personal-details {
    list-style: none;
    padding: 0;
    margin: 0;
    color: white;
    font-size: 1.05rem;
}

    .personal-details li {
        margin-bottom: 0.3em;
    }

.about-certifications {
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem 1rem;
}

.cert-list {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 0.5rem;
    flex-flow: wrap;
}

    .cert-list img {
        width: 90px;
        height: 90px;
        object-fit: contain;
        border-radius: 12px;
        border: 4px solid var(--color-primary);
        background: #f0f4ff;
        box-shadow: 0 1px 4px rgba(78, 168, 222, 0.12);
    }

    .cert-list figure {
        width: min-content;
        margin: 0;
    }

    .cert-list figcaption {
        text-align: center;
        font-size: 0.95rem;
        color: white;
        margin-top: 0.25rem;
    }

.about-experience,
.about-education {
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem 1rem;
}

    .about-experience ul,
    .about-education ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .about-experience li,
    .about-education li {
        margin-bottom: 1.1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--color-primary);
    }

        .about-experience li:last-child,
        .about-education li:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

.years {
    font-weight: bold;
    color: #22223b;
    background: #eaf4fb;
    border-radius: 0.5em;
    padding: 0.15em 0.7em;
    margin-right: 0.7em;
    font-size: 0.98rem;
    margin-bottom: 10px;
}

.role, .degree {
    color: white;
    font-weight: 800;
}

.company, .school {
    display: block;
    color: white;
    font-size: 0.97rem;
    margin-top: 3vh;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .about-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "profile"
            "cert"
            "exp"
            "educ";
    }
}

@media (min-width: 1200px) {
    .about-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "header header"
            "profile cert"
            "exp educ";
    }
}

@media (max-width: 575.98px) {
    .about-profile {
        flex-direction: column;
        align-items: center;
    }

    .profile-img {
        margin-right: 0;
    }

    .personal-details {
        text-align: center;
    }

    .years {
        display: table;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .about-profile {
        grid-area: profile;
    }

    .about-header {
        grid-area: header;
    }

    .about-certifications {
        grid-area: cert;
    }

    .about-experience {
        grid-area: exp;
    }

    .about-education {
        grid-area: educ;
    }
}

@media (min-width: 576px) {
    .profile-img {
        margin-right: 2rem;
    }
}

@media (min-width: 768px) {
    .personal-details {
        text-align: left;
    }
}