.sticky-content-cards {
    --content-width: 33.333%;
    --cards-width: 66.667%;
    --gap: 2rem;
    --card-gap: 1.5rem;
    --sticky-content-cards-image-max-height: 220px;
    position: relative;
}

.sticky-content-cards.has-background:not(.sticky-content-cards--full-bleed) {
    border-radius: var(--en-border-radius);
    overflow: hidden;
    background-clip: padding-box;
}

.sticky-content-cards--full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    max-width: 100vw;
    background-color: transparent;
    padding-block: clamp(32px, 5vw, 80px);
    box-sizing: border-box;
}

.sticky-content-cards--full-bleed .sticky-content-cards__container {
    max-width: min(1200px, 92vw);
    padding-inline: clamp(24px, 4vw, 64px);
}

.sticky-content-cards--full-bleed:not(.has-background) {
    background-color: transparent;
}

.sticky-content-cards--full-bleed.has-background {
    border-radius: 0;
}

.sticky-content-cards__container {
    display: flex;
    gap: var(--gap);
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.sticky-content-cards.has-background:not(.sticky-content-cards--full-bleed) .sticky-content-cards__container {
    padding: clamp(32px, 4vw, 56px);
}

.sticky-content-cards__content {
    flex: 0 0 var(--content-width);
    position: sticky;
    top: 9rem;
    align-self: flex-start;
}

/* .sticky-content-cards__content-inner {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
} */

.sticky-content-cards__cards {
    flex: 0 0 var(--cards-width);
    display: flex;
    flex-direction: column;
    gap: var(--card-gap);
}

.sticky-content-cards--cards-double .sticky-content-cards__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sticky-content-cards--cards-double .sticky-content-cards__card {
    height: 100%;
}

.sticky-content-cards__card {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: var(--en-border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: inherit;
}

.sticky-content-cards__card[href] {
    cursor: pointer;
}

.sticky-content-cards__card:hover,
.sticky-content-cards__card:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #007cba;
    text-decoration: none !important;
}

.sticky-content-cards__card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.sticky-content-cards__card-heading,
.sticky-content-cards__card-text {
    text-decoration: none !important;
}

.sticky-content-cards__card-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.sticky-content-cards__card-cta-text {
    text-decoration: none;
    line-height: 1.2;
}

.sticky-content-cards__card-cta-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.sticky-content-cards__card-cta-icon .hello-elementor-child-phosphor-icon__icon {
    color: inherit !important;
    font-size: 20px;
}

.sticky-content-cards__card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sticky-content-cards__card-icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.sticky-content-cards__card-icon svg {
    width: 2.25rem;
    height: 2.25rem;
    display: block;
}

.sticky-content-cards__card-heading {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.sticky-content-cards__card-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.sticky-content-cards__card-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    max-height: var(--sticky-content-cards-image-max-height);
    height: auto;
    align-self: flex-end;
    padding: 2rem 2rem 0;
}

/* Reversed Layout */
.sticky-content-cards.layout-reversed .sticky-content-cards__container {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sticky-content-cards {
        --content-width: 40%;
        --cards-width: 60%;
    }
}

@media (max-width: 768px) {
    .sticky-content-cards--full-bleed {
        width: 100%;
        margin-left: 0;
        max-width: 100%;
        padding-inline: 0;
    }

    .sticky-content-cards__container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .sticky-content-cards__content,
    .sticky-content-cards__cards {
        flex: 1 1 100%;
    }

    .sticky-content-cards__content {
        position: relative;
        top: auto;
    }

    .sticky-content-cards__content-inner {
        padding: 1.5rem;
    }

    .sticky-content-cards__card {
        padding: 1.5rem;
        flex-direction: column;
    }

    .sticky-content-cards__card-image {
        order: 2;
        margin-top: 1rem;
        max-height: max(var(--sticky-content-cards-image-max-height), 200px);
        height: auto;
        padding: 0 2rem;
    }

    .sticky-content-cards__card-header {
        align-items: flex-start;
    }

    .sticky-content-cards.layout-reversed .sticky-content-cards__container {
        flex-direction: column;
    }

    .sticky-content-cards--cards-double .sticky-content-cards__cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sticky-content-cards__container {
        padding: 1rem 0.5rem;
        gap: 1rem;
    }

    .sticky-content-cards__content-inner,
    .sticky-content-cards__card {
        padding: 0;
    }

    .sticky-content-cards__card-heading {
        font-size: 1.25rem;
    }

    .sticky-content-cards__card-image {
        max-height: max(var(--sticky-content-cards-image-max-height), 150px);
        height: auto;
        padding: 0 2rem;
    }
}

/* Content area typography overrides */
.sticky-content-cards__content-inner h1,
.sticky-content-cards__content-inner h2,
.sticky-content-cards__content-inner h3,
.sticky-content-cards__content-inner h4,
.sticky-content-cards__content-inner h5,
.sticky-content-cards__content-inner h6 {
    margin-top: 0;
}

.sticky-content-cards__content-inner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sticky-content-cards__content-inner p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.sticky-content-cards__content-inner .wp-block-button {
    margin-top: 1.5rem;
}

@media (min-width: 769px) {
    .sticky-content-cards__card-image {
        flex: 0 0 38%;
        max-width: 320px;
        /* align-self: center; */
    }
}

.sticky-content-cards__card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}
