body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    color: #e41b23;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.page-header p {
    color: #555;
    font-size: 1.1em;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.office-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #e41b23;
    height: 60px;
    width: 100%;
}

.card-logo {
    text-align: center;
    padding: 20px 0;
    background-color: #fff;
}

.card-logo .logo {
    max-width: 180px;
    height: auto;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.office-address {
    font-size: 0.95em;
    color: #777;
    margin-bottom: 10px;
}

.office-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.office-brand {
    color: #007bff; /* RE/MAX blue */
}

.office-phone,
.office-agents {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #555;
}

.phone-icon,
.agent-icon {
    font-size: 1.2em;
    margin-right: 8px;
    color: #007bff;
}

.office-agents .agents-icons {
    display: flex;
    margin-right: 8px;
}

.office-agents .agent-icon {
    font-size: 1.2em;
    margin-right: 2px;
}

.office-agents .agents-text {
    font-size: 0.95em;
    line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .offices-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2em;
    }
}


