/* ============================================================
   IMAGE HOVER CARD (Used for News, Industries, etc.)
   ============================================================ */
.image-card {
    position: relative;
    background-color: var(--color-black);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.45;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.image-card:hover .image-card__bg {
    transform: scale(1.05);
    opacity: 1;
}

.image-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0) 60%);
    z-index: 2;
    transition: background 0.4s ease;
}

.image-card__content {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Optional Top Label (e.g Date in News) */
.image-card__label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-meteor);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.image-card:hover .image-card__label {
    transform: translateY(-8px);
}

/* Optional Custom Icon (e.g Industries) */
.image-card__icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
    transition: transform 0.3s ease;
    color: var(--color-meteor);
}

.image-card:hover .image-card__icon {
    transform: translateY(-8px);
}

.image-card__title {
    font-size: var(--slider-card-title-size, clamp(24px, 3vw, 36px));
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 0;
    text-transform: uppercase;
}

/* Optional Excerpt (e.g Industries) */
.image-card__excerpt {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.image-card:hover .image-card__excerpt {
    opacity: 1;
    transform: translateY(0);
    max-height: 120px;
    height: auto;
    margin-top: 15px;
}

/* Slide Up Link */
.image-card__link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
    text-decoration: none;
}

.image-card:hover .image-card__link {
    opacity: 0.9;
    transform: translateY(0);
    max-height: 50px;
    height: auto;
    margin-top: 15px;
    color: var(--color-meteor);
    gap: 12px;
}

/* --- MOBILE: Show hover state by default (no hover on touch) --- */
@media (max-width: 768px) {
    .image-card__excerpt {
        opacity: 1;
        transform: translateY(0);
        max-height: 120px;
        height: auto;
        margin-top: 15px;
    }

    .image-card__link {
        opacity: 0.9;
        transform: translateY(0);
        max-height: 50px;
        height: auto;
        margin-top: 15px;
        color: var(--color-meteor);
        gap: 12px;
    }
}