
.contact-cards-section {
    width: 100%;
    margin-bottom: 120px;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }
}

.contact-cards-grid .value-card {
    min-height: 200px;
    border-radius: 3px;
    background: #f5f6f7;
    border: none;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    cursor: default;
}

@media (min-width: 768px) {
    .contact-cards-grid .value-card {
        padding: 28px;
    }
}

@media (min-width: 1024px) {
    .contact-cards-grid .value-card {
        padding: 30px;
    }
}

/* Pseudo-element for gradient background transition */
.contact-cards-grid .value-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0085d2 0%, #00abec 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.contact-cards-grid .value-card.is-active,
.contact-cards-grid .value-card:hover {
    color: #ffffff;
    transform: translateY(-10px) scale(1.02);
}

.contact-cards-grid .value-card.is-active::before,
.contact-cards-grid .value-card:hover::before {
    opacity: 1;
}

/* Ensure content sits above pseudo-element */
.contact-cards-grid .value-card > * {
    position: relative;
    z-index: 2;
}

.contact-cards-grid .value-card .value-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #0085d2;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .contact-cards-grid .value-card .value-title {
        font-size: 22px;
    }
}

@media (min-width: 1024px) {
    .contact-cards-grid .value-card .value-title {
        font-size: 24px;
    }
}

.contact-cards-grid .value-card.is-active .value-title,
.contact-cards-grid .value-card:hover .value-title {
    color: #ffffff;
}

.contact-cards-grid .value-card .value-text p {
    font-size: 20px;
    line-height: 1.6;
    color: #000000;
    font-weight: 400;
    transition: color 0.3s ease;
}

.value-card.is-active .value-text p,
.contact-cards-grid .value-card:hover .value-text p {
    color: #ffffff;
}

.contact-cards-grid .value-card.is-active .value-text,
.contact-cards-grid .value-card:hover .value-text {
    color: #ffffff;
}
