.office-content {
    align-items: center;
    padding: 70px 20%;
    background: white;
}

.office-desc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.office-content div {
    flex: 1;
}

.office-content h1,
.office-content h2 {
    margin: 0;
}

.office-content h1 {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    color: #003469;
    margin-bottom: -5px;

}

.office-content h2 {
    font-size: 52px;
    font-weight: bold;
    color: #003469;
    margin-bottom: 10px;
    margin: 0;

}

.office-content p {
    font-size: 22px;
    flex: 1;
    max-width: 50%;
    color: #444;
    margin: 0;
}




.offices {
    background: #003469;
    padding: 5% 20%;

}

.office-section {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    background: #003469;
    padding: 0px 20%;


}

.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.office-card {
    background: white;
    color: #0a2540;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.office-card {
    background: white;
    color: #0a2540;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 355px;
    height: 150px;
    cursor: pointer;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    transition: height 0.3s ease-out;
    overflow: hidden;
}

.office-card h3 {
    color: #0056b3;
    font-size: 1.2rem;
}

.office-card p {
    font-size: 1rem;
    color: #444;
}


.office-section {
    font-size: 45px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    text-align: left;
    padding: 0px;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: left;
    padding: 20px;
    padding-bottom: 100px;
}



.office-card.expanded {
    min-height: 240px;
}

.office-card.expanded p {
    opacity: 1;
    padding-top: inherit;
}


.office-card h3 {
    color: #0056b3;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.office-card h4 {
    font-size: 20px;
    color: #48494a;
    font-weight: normal;
}

.office-card p {
    font-size: 1rem;
    color: #48494a;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    font-weight: normal;
}



.toggle-btn {
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

.office-header-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: zoomInOut 10s ease-in-out infinite;
}


.office-header-img.visible {
    transform: scale(1);
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .office-header {
        padding: 80px 20px;
        text-align: center;
    }

    .office-header-content h1 {
        font-size: 36px;
        margin-left: 0;
        text-align: center;
    }

    .office-content {
        padding: 40px 20px;
        text-align: center;
    }

    .office-desc {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .office-content h1 {
        font-size: 14px;
        text-transform: uppercase;
        color: #003469;
        margin-bottom: 10px;
    }

    .office-content h2 {
        font-size: 32px;
        font-weight: bold;
        color: #003469;
        margin-bottom: 20px;
    }

    .office-content p {
        font-size: 16px;
        color: #444;
        max-width: 100%;
        line-height: 1.6;
    }

    .offices {
        padding: 40px 20px;
        margin-top: 0px;
    }

    .office-section {
        font-size: 28px;
        text-align: center;
        padding: 0;
    }

    .office-grid {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 10px 0 60px;
        justify-items: center;
    }

    .office-card {
        width: 100%;
        max-width: 100%;
        height: 70%;
    }

    .office-card h3 {
        font-size: 18px;
    }

    .office-card h4 {
        font-size: 16px;
    }

    .office-card p {
        font-size: 14px;
        opacity: 0;
        transition: opacity 0.3s ease-out;
        padding-top: 10px;
    }

    .office-card.expanded p {
        opacity: 1;
    }

    .toggle-btn {
        font-size: 18px;
        margin-left: 10px;
    }
}