*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: "Gill Sans", serif;
    margin: 0;
    padding: 0;
}

.header {
    background-color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.header .logo img {
    height: 140px;
}

.title {
    text-align: center;
    font-size: 56px;
    color: #c70633;
    margin: 20px 0;
    font-weight: bold;
}

.spacer {
    flex: 1;
}

.nav-bar {
    background-color: #0c3999;
    padding: 10px 40px;
    margin: 0 20px;
    border-radius: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    text-decoration: underline;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.nav-links a:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color: black;
}

.nav-bar .sign-in {
    background: white;
    color: #003366;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.intro-section {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.intro-text {
    flex: 1;
    font-style: italic;
    text-align: center;
    color: #0c3999;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    height: auto;
}

.content-columns {
    display: flex;
    justify-content: space-between;
    padding: 40px 20px;
    gap: 40px;
}

.reviews,
.case-studies {
    flex: 1;
}

.reviews h2,
.case-studies h2 {
    border-bottom: 1px solid #333333;
    padding-bottom: 20px;
    color: #cf2a27;
    font-weight: 400;
}

.review-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.review-card {
    flex: 1 1 300px;
    min-width: 260px;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    padding: 15px;
    border-radius: 5px;
    background-color: #f0f0f0;
    text-align: center;
}

.name-card {
    background-color: #d4d4d4;
    padding: 10px 15px;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

.review-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-top: 10px;
    object-fit: cover;
}

.case-study {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.case-left {
    width: calc(33% - 10px);
    box-sizing: border-box;
    align-items: flex-start;
}

.case-right {
    width: calc(66% - 10px);
    box-sizing: border-box;
    align-items: flex-start;
}

.case-logo {
    width: 140px;
    height: auto;
    margin-bottom: 10px;
}

.case-study hr {
    border: none;
    border-top: 1px solid #d9d9d9;
    margin: 10px 0;
}

.case-right h4 {
    margin: 10px 0 6px;
    color: #666666;
}

.footer {
    text-align: right;
    margin: 10px 0;
}

.footer-content {
    border-top: 1px solid #333333;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding: 20px;
}

.footer p {
    font-size: 16px;
    margin: 0;
    font-weight: bold;
    color: #c70835
}

.icon-grid {
    display: grid;
    grid-template-columns: 8ch auto;
    gap: 10px;
    justify-items: center;
}

.icon-grid img {
    width: 32px;
    height: 32px;
}

@media (max-width: 1024px) {
    .intro-section,
    .content-columns,
    .case-study {
        flex-direction: column;
    }

    .intro-image img {
        width: 100%;
        height: auto;
    }

    .review-card {
        width: 100%;
    }

    .case-left,
    .case-right {
        width: 100%;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-end;
    }

    .icon-grid {
        grid-template-columns: repeat(2, auto);
    }

    .title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .title {
        font-size: 28px;
    }

    .nav-bar {
        padding: 10px 20px;
        margin: 0 10px;
    }

    .intro-text {
        text-align: left;
    }
}

