/* Make contact cards equal height and center their content */

.contact-title h2 {
    font-weight: 700;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
}

.contact-title p{
    font-size: 1.1rem;
    color: #343a40;
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
}

.contact-box .flex {
    align-items: stretch; /* ensure row children stretch to same height */
}

/* Ensure the column wrapper lets the card fill available height */
.contact-box .flex > div {
    display: flex;
    flex-direction: column;
}

.contact-item {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 0.6rem;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    box-sizing: border-box; /* ensure padding doesn't shift centering calculations */
}

/* make the title itself a centered flex row so icon + text are centered together */
.contact-item h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

/* remove any extra icon margin that could skew centering */
.contact-item h3 i {
    margin: 0;
    flex: 0 0 auto;
}

/* ensure paragraph is centered and not indented */
.contact-item p {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    padding: 0;
    text-align: center;
    width: 100%;
    max-width: 48rem; /* optional: limit line-length so centered block looks balanced */
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .contact-item {
        padding: 1rem;
    }
}