.hero-text h1 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text p {
    text-align: center;
}

.about-content {
    background-color: #ffffff;
}

.about-content-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
}

.about-mission h2,
.about-vision h2,
.about-mission p,
.about-vision p,
.hist-text h2 {
    text-align: center;
}

.hist-section {
    background-color: #f7fafc;
}

.hist-content-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
}

.hist-img {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.hist-img img {
    display: none;
    border-radius: 1rem;
    width: 500px;
    height: 400px;
    aspect-ratio: 1 / 1;
    order: 2;
}

.test-section {
    background-color: #f7fafc;
}

.team-content-grid,
.test-content-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
}

.team-content-item,
.test-content-item {
    background-color: #f7fafc;
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);
}

.test-content-item {
    background-color: #ffffff;
}

.test-content-item p {
    text-align: center;
    max-width: 400px;
    color: #4a5568;
}

.team-content-item img,
.test-content-item img {
    display: block;
    height: 80px;
    width: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.star-review {
    display: flex;
    flex-direction: row;
    gap: .5rem;
}

.star-review span i {
    color: rgb(255, 215, 0);
}


@media (max-width: 768px) {
    .about-content-grid,
    .hist-content-grid,
    .team-content-item,
    .test-content-item {
        margin-inline: .875rem;
    }
}

@media (min-width: 768px) {
    .about-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (min-width: 1024px) {
    .team-content-grid,
    .test-content-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hist-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hist-img img {
        display: block;
    }
}