.ifag-card-wrapper {
    position: relative;
    width: 100%;
    min-height: 450px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    font-family: 'Inter', sans-serif;
    background-color: #0d0d0d;
    --card-accent: #CE2139; /* Default accent */
}

.ifag-card-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ifag-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, var(--card-accent) 0%, transparent 60%),
                linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.ifag-card-wrapper:hover .ifag-card-overlay {
    opacity: 0.9;
}

.ifag-card-content {
    position: relative;
    z-index: 2;
    padding: 35px 30px;
    width: 100%;
}

.ifag-card-text-box {
    margin-bottom: 25px;
}

.ifag-card-subtitle {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 10px 0 !important;
    font-family: 'Inter', sans-serif;
}

.ifag-card-title {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif;
    transition: transform 0.4s ease;
}

.ifag-card-wrapper:hover .ifag-card-title {
    transform: translateX(5px);
}

.ifag-card-button-wrapper {
    display: flex;
}

.ifag-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.ifag-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: none !important;
}

.ifag-btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.ifag-btn:hover .ifag-btn-arrow {
    transform: translateX(5px);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .ifag-card-wrapper {
        min-height: 380px;
    }
    .ifag-card-title {
        font-size: 24px !important;
    }
}
