/* ==========================================================================
   AlloDentiste Split Cards Widget
   Two-column split: left = content + 2-col service cards; right = sticky image
   ========================================================================== */

.allo-split-cards-widget {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px var(--allo-gutter);
    box-sizing: border-box;
}

/* ----------------------------------
   Two-column layout
---------------------------------- */
.allo-split-cards-widget .sc-columns {
    display: flex;
    align-items: flex-start;
    gap: 64px;
    width: 100%;
}

/* ----------------------------------
   Image column
---------------------------------- */
.allo-split-cards-widget .sc-image-col {
    flex: 0 0 40%;
    min-width: 0;
}

.allo-split-cards-widget .sc-image-col.order-last {
    order: 2;
}

.allo-split-cards-widget .sc-image {
    width: 100%;
}

.allo-split-cards-widget .sc-image.is-sticky {
    position: sticky;
    top: 40px;
}

.allo-split-cards-widget .sc-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

/* ----------------------------------
   Content column
---------------------------------- */
.allo-split-cards-widget .sc-content {
    flex: 1;
    min-width: 0;
}

/* ----------------------------------
   Label / Eyebrow
---------------------------------- */
.allo-split-cards-widget .sc-label {
    display: block;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    color: #666666;
    letter-spacing: 0.03em;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1.4;
}

/* ----------------------------------
   Main Heading
---------------------------------- */
.allo-split-cards-widget .sc-heading {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 20px 0;
    padding: 0;
}

/* ----------------------------------
   Body text
---------------------------------- */
.allo-split-cards-widget .sc-body {
    font-size: 1rem;
    color: #333333;
    line-height: 1.75;
}

.allo-split-cards-widget .sc-body p {
    margin: 0 0 1em 0;
    color: inherit;
    line-height: inherit;
}

.allo-split-cards-widget .sc-body p:last-child {
    margin-bottom: 0;
}

.allo-split-cards-widget .sc-body a {
    color: #00A1AD;
    text-decoration: none;
}

.allo-split-cards-widget .sc-body a:hover {
    color: #008A94;
    text-decoration: underline;
}

/* ----------------------------------
   Sub-section
---------------------------------- */
.allo-split-cards-widget .sc-sub-section {
    margin-top: 32px;
}

.allo-split-cards-widget .sc-sub-heading {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 14px 0;
    padding: 0;
}

.allo-split-cards-widget .sc-sub-body {
    font-size: 0.97rem;
}

/* ----------------------------------
   Service Cards Grid
---------------------------------- */
.allo-split-cards-widget .sc-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

/* ----------------------------------
   Individual Card — horizontal layout:
   small image left, title + desc right
---------------------------------- */
.allo-split-cards-widget .sc-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    background-color: #F7F5F0;
    border-radius: 12px;
    overflow: hidden;
    padding: 14px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.allo-split-cards-widget .sc-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

/* Card image — small fixed square on the left */
.allo-split-cards-widget .sc-card-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.allo-split-cards-widget .sc-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.35s ease;
}

.allo-split-cards-widget .sc-card:hover .sc-card-image img {
    transform: scale(1.06);
}

/* Card body (title + description) — takes remaining width */
.allo-split-cards-widget .sc-card-body {
    flex: 1;
    min-width: 0;
    padding: 2px 0 0;
}

.allo-split-cards-widget .sc-card-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.3;
    margin: 0 0 6px 0;
    padding: 0;
}

.allo-split-cards-widget .sc-card-desc {
    font-size: 0.88rem;
    color: #555555;
    line-height: 1.55;
    margin: 0;
    padding: 0;
}

/* ----------------------------------
   CTA Button
   (matches split-content-widget style)
---------------------------------- */
.allo-split-cards-widget .sc-cta {
    margin-top: 32px;
}

.allo-split-cards-widget .sc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 4px 5px 4px 20px;
    background-color: #00A1AD;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.allo-split-cards-widget .sc-cta-btn::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: #FFFFFF;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 11L11 5M11 5H5M11 5V11' stroke='%2300A1AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.allo-split-cards-widget .sc-cta-btn:hover {
    background-color: #008A94;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 161, 173, 0.3);
    color: #FFFFFF;
    text-decoration: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .allo-split-cards-widget .sc-columns {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .allo-split-cards-widget {
        padding: 44px var(--allo-gutter);
    }

    .allo-split-cards-widget .sc-columns {
        flex-direction: column;
        gap: 32px;
    }

    .allo-split-cards-widget .sc-image.is-sticky {
        position: static;
    }

    .allo-split-cards-widget .sc-image-col {
        flex: none;
        width: 100%;
        order: 0 !important;
    }

    .allo-split-cards-widget .sc-image img {
        max-height: 380px;
        object-fit: cover;
    }

    /* Cards: keep 2 columns on tablet */
    .allo-split-cards-widget .sc-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .allo-split-cards-widget {
        padding: 32px var(--allo-gutter);
    }

    /* Cards: 1 column on mobile */
    .allo-split-cards-widget .sc-cards-grid {
        grid-template-columns: 1fr;
    }

    .allo-split-cards-widget .sc-cta-btn {
        width: 100%;
        justify-content: space-between;
        padding: 4px 5px 4px 20px;
    }
}
