/* =========================================
   Healix Case Study Card Widget — CSS
   ========================================= */

.ff-card-container {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    max-width: 1100px;
    margin: 20px auto;
    font-family: inherit;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
    align-items: stretch;
    box-sizing: border-box;
}

/* ── Image Box ────────────────────── */
.ff-image-box {
    flex: 1.2;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    box-sizing: border-box;
}

.ff-image-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

/* ── Content Box ──────────────────── */
.ff-content-box {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
}

/* ── Title ────────────────────────── */
.ff-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

/* ── Subtitle ─────────────────────── */
.ff-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0 0 30px 0;
    font-weight: 400;
    line-height: 1.4;
}

/* ── Description ──────────────────── */
.ff-description {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 40px 0;
}

/* ── Button ───────────────────────── */
.ff-button {
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: inline-block;
    width: fit-content;
    padding-bottom: 5px;
    border-bottom: 2px solid #ffaa00;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: border-bottom-width 0.3s ease, color 0.3s ease;
    background: none;
    box-shadow: none;
    outline: none;
}

.ff-button:hover {
    border-bottom-width: 4px;
    color: #000;
    text-decoration: none !important;
}

/* ── Responsive ───────────────────── */
@media (max-width: 768px) {
    .ff-card-container {
        flex-direction: column !important; /* Always column on mobile regardless of setting */
        margin: 15px;
        max-width: 100%;
    }

    .ff-image-box {
        padding: 30px;
    }

    .ff-content-box {
        padding: 40px 30px;
        text-align: left !important;
    }

    .ff-title {
        font-size: 28px;
    }

    .ff-subtitle {
        font-size: 16px;
    }

    .ff-description {
        font-size: 16px;
    }
}
