/* ================================================
   Cards Static Image - Section Styles
   2-column: Stacked cards (60%) | Static image (40%)
   ================================================ */

/* ------------------------------------------------
   Base Section
   ------------------------------------------------ */
.cards-static-image {
    padding: 6rem 0;
    position: relative;
}

.cards-static-image--inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100% !important; /* Prevent external CSS from breaking layout */
}

/* ------------------------------------------------
   Section Header
   ------------------------------------------------ */
.cards-static-header {
    margin-bottom: 3rem;
}

.cards-static-header .feature_block_heading {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.316;
    color: #1e1e23;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 1rem;
}

/* Green underline on title */
.cards-static-header .feature_block_heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #00e65f;
}

/* ------------------------------------------------
   Main Layout (60% cards | 40% image)
   ------------------------------------------------ */
.cards-static-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: flex-start;
}

/* ------------------------------------------------
   Cards Stack (Left Side)
   ------------------------------------------------ */
.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ------------------------------------------------
   Individual Static Card
   ------------------------------------------------ */
/* Card Link Wrapper - Makes entire card clickable */
.static-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: none;
}

/* Remove all link styling */
.static-card-link:hover,
.static-card-link:focus,
.static-card-link:active,
.static-card-link:visited {
    text-decoration: none;
    color: inherit;
    outline: none;
}

/* Prevent card from showing hover effects */
.static-card-link .static-card {
    transition: none;
}

/* Card itself */
.static-card {
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid transparent;
}

/* Ensure text doesn't look like links */
.static-card-link .static-card-title,
.static-card-link .static-card-description {
    color: #1e1e23;
    text-decoration: none;
}

.static-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1e1e23;
}

.static-card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #1e1e23;
    margin-bottom: 1.5rem;
}

/* Button inside clickable card - can receive hover events */
.static-card-link .button {
    display: inline-block;
    transition: background-color 0.3s ease;
    pointer-events: auto; /* Allow button to receive hover events */
}

/* Button hover - only when hovering directly over button */
.static-card-link .button.button-secondary:hover {
    background-color: #00a843;
    color: #1e1e23;
}

.static-card-button-wrapper {
    /* Button wrapper */
}

/* Green Secondary Button Style */
.button.button-secondary {
    background-color: #00e65f;
    color: #1e1e23;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize !important;
    letter-spacing: normal !important;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button.button-secondary:hover {
    background-color: #00a843;
    color: #1e1e23;
}

/* ------------------------------------------------
   Static Image (Right Side)
   ------------------------------------------------ */
.static-image-wrapper {
    position: sticky;
    top: 2rem;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.static-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 1024px) {
    .cards-static-image {
        padding: 4rem 0;
    }

    .cards-static-header {
        margin-bottom: 2.5rem;
    }

    .cards-static-layout {
        gap: 2.5rem;
    }

    .static-card {
        padding: 1.75rem;
    }

    .static-card-title {
        font-size: 1.375rem;
    }

    .static-card-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .cards-static-image {
        padding: 3rem 0;
    }

    .cards-static-header {
        margin-bottom: 2rem;
    }

    /* Stack layout becomes single column */
    .cards-static-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cards-stack {
        order: 1;
        gap: 1.25rem;
    }

    .static-image-wrapper {
        order: 2;
        position: relative;
        top: 0;
        max-width: 500px;
        margin: 0 auto;
    }

    .static-card {
        padding: 1.5rem;
    }

    .static-card-title {
        font-size: 1.25rem;
    }

    .static-card-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .cards-static-image {
        padding: 2.5rem 0;
    }

    .cards-static-header {
        margin-bottom: 1.5rem;
    }

    .cards-static-layout {
        gap: 1.5rem;
    }

    .cards-stack {
        gap: 1rem;
    }

    .static-card {
        padding: 1.25rem;
    }

    .static-card-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .static-card-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .button.button-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}