.ba-card-fd9d5232 {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background-color: #ffffff;
    border: 1px solid #E2DEE3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ba-card-fd9d5232:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(34, 30, 41, 0.08);
}

/* 
 * CRITICAL FIX: The image area MUST be display: flex or display: grid with zero line-height
 * and zero font-size to prevent any whitespace from text nodes or inline-block rendering.
 */
.ba-image-area {
    position: relative;
    width: 100%;
    aspect-ratio: 5/4;
    overflow: hidden;
    background: #F1DCE8;
    display: flex;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 0;
    font-size: 0;
}

/* Base wrapper (After) fills the container */
.ba-img-after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    margin: 0;
    padding: 0;
    border: none;
}

/* Top wrapper (Before) fills the container, clipped by JS */
.ba-img-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    margin: 0;
    padding: 0;
    border: none;
    /* Default clip-path, updated by JS */
    clip-path: inset(0 50% 0 0); 
}

/* 
 * CRITICAL FIX: Images MUST be display: block with vertical-align: top
 * to eliminate the reserved descender space typical of inline images.
 */
.ba-img-before,
.ba-img-after {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    margin: 0;
    padding: 0;
    border: none;
    vertical-align: top;
}

/* Image Overlay */
.ba-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

/* Slider Input */
.ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
    margin: 0;
}

/* Visual Slider Line */
.ba-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(34, 30, 41, 0.22);
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 16px rgba(34, 30, 41, 0.08);
    color: #932F77;
}

.ba-slider-button svg {
    width: 18px;
    height: 18px;
}

/* Icons */
.ba-icon-container {
    position: absolute;
    top: 10px;
    background: rgba(45, 14, 38, 0.78);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 6;
    pointer-events: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.14em;
    transition: all 0.3s ease;
    line-height: normal; /* Reset line height for icons */
}

.ba-icon-top-left {
    left: 10px;
}

.ba-icon-top-right {
    right: 10px;
    background: rgba(147, 47, 119, 0.88);
}

.ba-icon-container svg,
.ba-icon-container i {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Content Area */
.ba-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    line-height: normal; /* Reset line height */
    font-size: 1rem; /* Reset font size */
    margin: 0;
}

.ba-category {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: #F2D9EA;
    color: #8E3B77;
    align-self: flex-start;
    margin-bottom: 0;
}

.ba-title {
    margin: 4px 0 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #2D0E26;
    line-height: 1.3;
}

.ba-desc {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #5E5763;
    line-height: 1.55;
}

.ba-footer {
    margin-top: 0.75rem;
}

.ba-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #932F77;
    letter-spacing: 0.01em;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ba-link:hover {
    color: #631F52;
}

.ba-arr-ic {
    display: inline-block;
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ba-link:hover .ba-arr-ic {
    transform: translateX(3px);
}
