/* --- Contact Card Widget Container --- */
.tc-contact-cards-container {
    display: grid;
    /* Grid layout managed by Elementor prefix classes mostly, but fallback here */
    grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
    /* Fallback */
    gap: 30px;
}

/* Base Card Style */
.tc-contact-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Changed from visible to hidden for standard cards, but override for overlap */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tc-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tc-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    /* Required for shutter effect */
}

/* Shutter Down Effect */
.tc-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 51, 51, 0.5);
    /* Semi-transparent dark overlay */
    transform: translateY(-100%);
    /* Start hidden above */
    transition: transform 0.4s ease-in-out;
    z-index: 1;
}

.tc-contact-card:hover .tc-card-image::before {
    transform: translateY(0);
    /* Slide down */
}

/* Optional: Add a subtle zoom to image itself when shutter comes down */
.tc-contact-card:hover .tc-card-image {
    /* We can't scale the div itself easily without affecting the pseudo, 
       but if we had an img tag inside we could. 
       Since it's background-image on the div, we can't scale just the background strictly without background-size animation which is jumpy.
       Let's stick to the shutter overlay as requested. */
}

.tc-card-body {
    padding: 30px 20px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Default center align for body content usually */
}

/* Icon Common */
.tc-card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--e-global-color-accent, #FF5B24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
}

.tc-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.tc-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.tc-card-desc a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.tc-card-desc a:hover {
    color: var(--e-global-color-primary);
}


/* --- Style 1: Image Overlap (Original Request) --- */
.tc-contact-cards-container.tc-style-style-1 .tc-contact-card {
    overflow: visible;
    /* Restore visible for overlap */
    padding-bottom: 0;
}

.tc-contact-cards-container.tc-style-style-1 .tc-card-image {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.tc-contact-cards-container.tc-style-style-1 .tc-card-icon {
    position: relative;
    margin-top: -60px;
    /* Overlap logic */
    margin-bottom: 20px;
    background-color: #fff;
    /* White bg for icon in this style usually? Or user setting. */
    color: var(--e-global-color-primary, #333);
    /* Override default if needed or rely on user control */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* --- Style 2: Classic Card (Standard Vertical) --- */
.tc-contact-cards-container.tc-style-style-2 .tc-contact-card {
    text-align: center;
}

.tc-contact-cards-container.tc-style-style-2 .tc-card-image {
    /* No border radius logic forced, use user control or default */
}

.tc-contact-cards-container.tc-style-style-2 .tc-card-icon {
    margin: 0 auto 20px auto;
    /* Centers icon */
    transform: translateY(-50%);
    /* Half overlap into image? Or just inside body? */
    /* Let's make it sit ON the line between image and body or just inside body. */
    /* Implementation: Inside body, overlapping image slightly or standard spacing */
    margin-top: -30px;
    border: 5px solid #fff;
    /* White border to separate from image */
}


/* --- Style 3: Horizontal (List View) --- */
.tc-contact-cards-container.tc-style-style-3 .tc-contact-card {
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}

.tc-contact-cards-container.tc-style-style-3 .tc-card-image {
    width: 35%;
    /* Fixed approx width or controlled? */
    height: 100%;
    min-height: 150px;
}

.tc-contact-cards-container.tc-style-style-3 .tc-card-body {
    width: 65%;
    padding: 20px;
    align-items: flex-start;
    /* Left align usually */
    text-align: left;
}

.tc-contact-cards-container.tc-style-style-3 .tc-card-icon {
    margin-bottom: 15px;
    width: 50px;
    height: 50px;
    font-size: 20px;
}


/* --- Style 4: Bordered (Minimal, No Shadow, Border) --- */
.tc-contact-cards-container.tc-style-style-4 .tc-contact-card {
    box-shadow: none;
    border: 1px solid #eaeaea;
    transition: all 0.3s;
}

.tc-contact-cards-container.tc-style-style-4 .tc-contact-card:hover {
    border-color: var(--e-global-color-primary, #333);
    transform: translateY(-5px);
}

.tc-contact-cards-container.tc-style-style-4 .tc-card-icon {
    margin-top: -30px;
    /* Slight overlap */
    background: #fff;
    border: 1px solid #eaeaea;
    color: var(--e-global-color-primary, #333);
}

.tc-contact-cards-container.tc-style-style-4 .tc-contact-card:hover .tc-card-icon {
    background: var(--e-global-color-primary, #333);
    color: #fff;
    border-color: transparent;
}


/* --- Style 5: Transparent / Minimal (Icon Left Inline) --- */
.tc-contact-cards-container.tc-style-style-5 {
    /* Grid gap handles spacing */
}

.tc-contact-cards-container.tc-style-style-5 .tc-contact-card {
    background: transparent;
    box-shadow: none;
    flex-direction: column;
    /* Or row? Layout 5 usually icon left text right purely */
    align-items: flex-start;
    padding: 0;
}

.tc-style-style-5 .tc-card-image {
    display: none;
    /* Hide image for this style forced? Or optional? User toggle 'Show Image' exists. If shown, let it be. */
    border-radius: 8px;
    margin-bottom: 20px;
}

.tc-style-style-5 .tc-card-body {
    padding: 0;
    flex-direction: row;
    /* Icon left, content right */
    align-items: flex-start;
    text-align: left;
}

.tc-style-style-5 .tc-card-icon {
    margin: 0 20px 0 0;
    /* Right margin */
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.05);
    color: var(--e-global-color-primary, #333);
}

.tc-style-style-5 .tc-card-content {
    flex-grow: 1;
}

/* Responsive Grid Helper (if not handled by Elementor controls automatically) */
/* The prefix_class 'elementor-grid%s-' usually handles standard columns. 
   If not, we can add simple media queries based on CSS Grid variables or classes. */
@media (max-width: 767px) {
    .tc-contact-cards-container {
        grid-template-columns: 1fr !important;
    }
}