/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-online {
    padding: 100px 0 80px;
    background: #ffffff;
}

.contact-branches {
    padding: 20px 0 110px;
    background: #f7f9fc;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.contact-section-heading {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.contact-section-heading__sub {
    display: inline-block;
    margin-bottom: 10px;

    color: #1341a2;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 1.5px;
}

.contact-section-heading__title {
    margin: 0 0 15px;

    color: #16213a;

    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
}

.contact-section-heading__text {
    max-width: 620px;
    margin: 0 auto;

    color: #6d7482;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}


/* =========================================================
   ONLINE CONTACT GRID
========================================================= */

.contact-online-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;

    align-items: stretch;
}


/* =========================================================
   ONLINE CONTACT CARD
========================================================= */

.contact-online-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    min-height: 430px;

    padding: 30px 28px;

    overflow: hidden;

    border: 1px solid #e8edf5;
    border-radius: 20px;

    background: #ffffff;

    box-shadow: 0 8px 30px rgba(19, 65, 162, 0.06);

    text-decoration: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.contact-online-card:hover {
    transform: translateY(-6px);

    border-color: #d8e2f7;

    box-shadow: 0 18px 45px rgba(19, 65, 162, 0.12);
}


/* =========================================================
   ONLINE CARD ICON / IMAGE
========================================================= */

.contact-online-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 108px;
    height: 108px;

    margin-bottom: 35px;

    border-radius: 24px;

    background: #edf3ff;

    overflow: hidden;
}

.contact-online-card__icon img {
    display: block;

    width: 68px;
    height: 68px;

    object-fit: contain;
}


/* =========================================================
   ONLINE CARD CONTENT
========================================================= */

.contact-online-card__content {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-width: 0;
}


/* =========================================================
   ONLINE CARD LABEL
========================================================= */

.contact-online-card__label {
    display: block;

    margin-bottom: 10px;

    color: #8a92a2;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 1px;
}


/* =========================================================
   ONLINE CARD TITLE
========================================================= */

.contact-online-card__content h3 {
    min-height: 68px;

    margin: 0 0 14px;

    color: #16213a;

    font-size: 25px;
    font-weight: 600;
    line-height: 1.35;
}


/* =========================================================
   ONLINE CARD DESCRIPTION
========================================================= */

.contact-online-card__content p {
    min-height: 100px;

    margin: 0;

    color: #707887;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}


/* =========================================================
   ONLINE CARD BUTTON
========================================================= */

.contact-online-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    align-self: flex-start;

    gap: 9px;

    width: fit-content;
    min-height: 48px;

    margin-top: auto;
    padding: 11px 18px;

    border-radius: 9px;

    background: #1341a2;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.contact-online-card__button i {
    display: inline-block;

    font-size: 12px;

    transition: transform 0.25s ease;
}

.contact-online-card:hover .contact-online-card__button {
    background: #0d3387;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(19, 65, 162, 0.18);
}

.contact-online-card:hover .contact-online-card__button i {
    transform: translate(3px, -3px);
}


/* =========================================================
   BRANCH GRID
========================================================= */

.contact-branches-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 30px;

    align-items: stretch;
}


/* =========================================================
   BRANCH CARD
========================================================= */

.branch-contact-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid #e7ebf2;
    border-radius: 20px;

    background: #ffffff;

    box-shadow: 0 8px 30px rgba(19, 65, 162, 0.06);
}


/* =========================================================
   BRANCH MAP
========================================================= */

.branch-contact-card__map {
    position: relative;

    width: 100%;
    height: 300px;

    overflow: hidden;

    flex-shrink: 0;
}

.branch-contact-card__map iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   BRANCH BODY
========================================================= */

.branch-contact-card__body {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 28px;
}


/* =========================================================
   BRANCH HEADER
========================================================= */

.branch-contact-card__top {
    margin-bottom: 22px;
}

.branch-contact-card__tag {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    margin-bottom: 10px;
    padding: 5px 12px;

    border-radius: 30px;

    background: #edf3ff;

    color: #1341a2;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 1px;
}

.branch-contact-card__top h3 {
    margin: 0;

    color: #16213a;

    font-size: 25px;
    font-weight: 600;
    line-height: 1.3;
}


/* =========================================================
   BRANCH INFORMATION
========================================================= */

.branch-contact-card__info {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 15px;

    color: #6d7482;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}

.branch-contact-card__info i {
    flex: 0 0 20px;

    margin-top: 3px;

    color: #1341a2;

    font-size: 17px;
}

.branch-contact-card__info span {
    min-width: 0;
}

.branch-contact-card__info a {
    color: #16213a;

    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.branch-contact-card__info a:hover {
    color: #1341a2;
}


/* =========================================================
   BRANCH BUTTONS
========================================================= */

.branch-contact-card__actions {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: auto;
    padding-top: 10px;
}

.branch-contact-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 46px;

    padding: 10px 18px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* PRIMARY */

.branch-contact-card__button--primary {
    border: 1px solid #1341a2;

    background: #1341a2;

    color: #ffffff;
}

.branch-contact-card__button--primary:hover {
    border-color: #0d3387;

    background: #0d3387;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 7px 16px rgba(19, 65, 162, 0.16);
}


/* OUTLINE */

.branch-contact-card__button--outline {
    border: 1px solid #dce3ee;

    background: #ffffff;

    color: #16213a;
}

.branch-contact-card__button--outline:hover {
    border-color: #1341a2;

    background: #ffffff;

    color: #1341a2;

    transform: translateY(-2px);
}


/* =========================================================
   TABLET - 1199px
========================================================= */

@media (max-width: 1199px) {

    .contact-online-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET - 991px
========================================================= */

@media (max-width: 991px) {

    .contact-section-heading__title {
        font-size: 32px;
    }

    .contact-branches-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE - 767px
========================================================= */

@media (max-width: 767px) {

    .contact-online {
        padding: 70px 0 50px;
    }

    .contact-branches {
        padding: 20px 0 70px;
    }


    /* SECTION HEADING */

    .contact-section-heading {
        margin-bottom: 35px;
    }

    .contact-section-heading__sub {
        font-size: 11px;
    }

    .contact-section-heading__title {
        font-size: 28px;
    }

    .contact-section-heading__text {
        font-size: 14px;
        line-height: 1.7;
    }


    /* ONLINE GRID */

    .contact-online-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    /* ONLINE CARD */

    .contact-online-card {
        min-height: 390px;

        padding: 25px;
    }


    /* ONLINE ICON */

    .contact-online-card__icon {
        width: 85px;
        height: 85px;

        margin-bottom: 28px;

        border-radius: 20px;
    }

    .contact-online-card__icon img {
        width: 55px;
        height: 55px;
    }


    /* ONLINE TITLE */

    .contact-online-card__content h3 {
        min-height: auto;

        margin-bottom: 12px;

        font-size: 22px;
    }


    /* ONLINE DESCRIPTION */

    .contact-online-card__content p {
        min-height: auto;

        font-size: 14px;
        line-height: 1.7;
    }


    /* ONLINE BUTTON */

    .contact-online-card__button {
        width: 100%;
    }


    /* BRANCH MAP */

    .branch-contact-card__map {
        height: 260px;
    }


    /* BRANCH BODY */

    .branch-contact-card__body {
        padding: 22px;
    }


    /* BRANCH TITLE */

    .branch-contact-card__top h3 {
        font-size: 21px;
    }


    /* BRANCH BUTTONS */

    .branch-contact-card__actions {
        flex-direction: column;

        width: 100%;
    }

    .branch-contact-card__button {
        width: 100%;
    }

}
