﻿/* =========================
   CONTACT SECTION
========================= */

.home-contact-section {
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
}

/* =========================
   BANNER
========================= */

.contact-banner {
    position: relative;
    height: 475px;
    background: url('/Uploads/images/GioiThieu/5.png') no-repeat center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(1px);
}

.contact-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: auto;
}

    .contact-banner-content h2 {
        color: #fff;
        font-size: 72px;
        font-family: 'K2D-BOLD';
        margin-bottom: 18px;
        line-height: 1.2;
    }

    .contact-banner-content p {
        color: #fff;
        font-size: 24px;
        line-height: 1.7;
        font-family: 'Inter_24pt-Regular';
        margin: 0;
    }

/* =========================
   CONTENT
========================= */

.contact-content {
    position: relative;
    margin-top: -80px;
    z-index: 5;
    padding-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

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

.contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 45px 30px;
    text-align: center;
    border: 1px solid #ececec;
    transition: all .4s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

    /* Hover effect */
    .contact-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }

    /* top border animation */
    .contact-card:before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 0;
        height: 4px;
        background: var(--default-color-1);
        transition: all .4s ease;
        transform: translateX(-50%);
    }

    .contact-card:hover:before {
        width: 100%;
    }

/* =========================
   ICON
========================= */

.contact-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px auto;
    transition: all .4s ease;
}

    .contact-icon i {
        font-size: 34px;
        color: #23408e;
        transition: all .4s ease;
    }

.contact-card:hover .contact-icon {
    background: var(--default-color-1);
    transform: rotateY(180deg);
}

    .contact-card:hover .contact-icon i {
        color: #fff;
        transform: rotateY(180deg);
    }

/* =========================
   TEXT
========================= */

.contact-card h3 {
    font-size: 27px;
    color: #711A28;
    margin-bottom: 20px;
    font-family: 'K2D-BOLD';
}

.contact-card p {
    margin: 8px 0;
    color: #555;
    line-height: 1.8;
    font-size: 20px;
    font-family: 'Inter_24pt-Regular';
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 1200px) {
    .contact-banner {
        height: 420px;
    }

    .contact-banner-content h2 {
        font-size: 54px;
    }

    .contact-banner-content p {
        font-size: 20px;
    }

    .contact-card h3 {
        font-size: 26px;
    }

    .contact-card p {
        font-size: 17px;
    }
}

@media(min-width:740px) and (max-width:1023px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        display: flex;
        flex-flow: wrap;
        width: 100%;
        justify-content: space-between;
    }

    .contact-card:nth-child(1) {
        width: 100%;
    }

    .contact-card:nth-child(2) {
        flex: 1 1 0;
    }

    .contact-card:nth-child(3) {
        width: 49%;
    }
}

@media(max-width: 739px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        display: flex;
        flex-flow: wrap;
    }

    .contact-content {
        margin-top: -42px;
        padding: 0 15px 12px;
    }

    .contact-banner {
        height: 360px;
    }

    .contact-banner-content h2 {
        font-size: 42px;
    }

    .contact-banner-content p {
        font-size: 18px;
        line-height: 1.6;
        padding: 0 10px;
    }

    .contact-card {
        padding: 14px 12px;
    }

        .contact-card:nth-child(1) p {
            padding: 0 29px;
            font-size: 16px;
        }

        .contact-card:nth-child(3) {
            flex: 1 1 0;
        }
}

@media(max-width: 576px) {
    .contact-banner {
        height: 210px;
    }

    .contact-banner-content h2 {
        font-size: 34px;
    }

    .contact-banner-content p {
        font-size: 15px;
    }

    .contact-card h3 {
        font-size: 17px;
    }

    .contact-content .container {
        padding: 20px 0;
    }

    .contact-card p {
        font-size: 13px;
        line-height: 1.7;
    }

    .contact-icon {
        width: 63px;
        height: 63px;
        margin: 0 auto 18px auto;
    }

        .contact-icon i {
            font-size: 23px;
        }
}