/* Custom Contact Cards */
.contact-cards-section {
    margin-bottom: 50px;
    padding-top: 80px;
    /* Add spacing from top */
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 10;
}

.contact-cards-section .elementor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    /* Ensure the container doesn't collapse */
    width: 100%;
}

.contact-cards-section .elementor-column {
    /* Force equal width columns */
    flex: 0 0 calc(33.333% - 30px) !important;
    max-width: calc(33.333% - 30px) !important;
    min-width: 280px !important;
    margin: 0 !important;
    /* Reset default elementor margins if any */
    width: auto;
}

.contact-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #f0f0f0;
    /* Ensure content doesn't overflow */
    box-sizing: border-box;
    width: 100%;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #6754e9;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #000000;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* Prevent icon from shrinking */
}

.contact-card:hover .card-icon {
    background: #6754e9;
    color: #ffffff;
}

.card-content {
    width: 100%;
}

.card-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #000000;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.card-content p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word;
    /* Prevent text overflow */
}

.card-content a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-content a:hover {
    color: #6754e9;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-cards-section .elementor-column {
        flex: 0 0 calc(50% - 30px) !important;
        max-width: calc(50% - 30px) !important;
    }
}

@media (max-width: 767px) {
    .contact-cards-section {
        margin-bottom: 30px;
        padding-top: 50px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .contact-cards-section .elementor-container {
        gap: 20px;
    }

    .contact-cards-section .elementor-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .contact-card {
        padding: 30px 20px;
    }
}