﻿.mhg-office-locations {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid #d9dde3;
    background-color: #ffffff;
    transition: all 0.25s ease;
}

    .mhg-office-locations:hover {
        border-color: #ff1320;
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    }

    .mhg-office-locations .container {
        max-width: 1080px;
    }

.mhg-office-locations__top {
    position: relative;
    margin-bottom: 2rem;
}

.mhg-office-locations__title {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 700;
    color: #0d1b3d;
    margin-bottom: 1rem;
}

.mhg-office-locations__intro {
    font-size: 1.5rem;
    line-height: 1.55;
    color: #28344a;
    max-width: 760px;
    margin-bottom: 0;
}

.mhg-office-locations__decorative {
    position: absolute;
    top: -10px;
    right: 0;
    width: 220px;
    opacity: 0.12;
    pointer-events: none;
}

    .mhg-office-locations__decorative img {
        width: 100%;
        height: auto;
        display: block;
    }

.mhg-office-locations__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.mhg-office-tab {
    border: 1px solid #d9dde3;
    border-radius: 10px;
    background: #f2f3f5;
    padding: 1.25rem;
    text-align: left;
    width: 100%;
    min-height: 104px;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .mhg-office-tab:hover {
        background: #ffffff;
        border-color: #ff1320;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .mhg-office-tab.active {
        background: #ff1320;
        color: #ffffff;
        border-color: #ff1320;
    }

        .mhg-office-tab.active * {
            color: #ffffff;
        }

.mhg-office-tab__title {
    font-weight: 700;
    display: block;
}

.mhg-office-tab__subtitle {
    font-size: 0.9rem;
}

.mhg-office-card {
    border: 1px solid #d9dde3;
}

/* IMAGE HOVER EFFECT */
.mhg-office-card__image-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
}


.mhg-office-card__image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.mhg-office-card__image-wrap:hover .mhg-office-card__image {
    transform: scale(1.06);
}

.mhg-office-card__image-wrap:hover {
    cursor: pointer;
}


.mhg-office-card__content {
    padding: 2rem;
}

.mhg-office-card__divider {
    height: 1px;
    background: #d8dce3;
    margin: 1.5rem 0;
}

.mhg-office-card__info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mhg-office-card__icon {
    background: #fde7e8;
    color: #ff1320;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mhg-office-card__btn {
    display: inline-block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.95rem 1.2rem;
    border: 1px solid #d9dde3; /* gray border */
    border-radius: 10px;
    background: #ffffff;
    color: #22314f;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .mhg-office-card__btn:hover {
        background: #fde7e8; /* light red background */
        border-color: #ff1320; /* MHG red border */
        color: #ff1320; /* red text */

        text-decoration: none;
        transform: translateY(-2px);
    }

.mhg-office-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .mhg-office-link:hover {
        color: #ff1320;
        text-decoration: underline;
    }

/* ========================= */
/* 🔥 MODAL STYLES START HERE */
/* ========================= */

body.mhg-modal-open {
    overflow: hidden;
}

.mhg-company-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

    .mhg-company-modal.is-open {
        display: block;
    }

.mhg-company-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mhg-company-modal__dialog {
    position: relative;
    margin: 5vh auto;
    width: 90%;
    max-width: 700px;
    background: #ffffff;
    border: 1px solid #d9dde3;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.mhg-company-modal__content {
    padding: 2rem;
}

.mhg-company-modal__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #071a44;
    margin-bottom: 1rem;
}

.mhg-company-modal__body {
    font-size: 1rem;
    line-height: 1.6;
    color: #1f2d3d;
}

.mhg-company-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #6b7280;
}

    .mhg-company-modal__close:hover {
        color: #000000;
    }

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 991.98px) {
    .mhg-office-locations__tabs {
        grid-template-columns: 1fr;
    }
}
