/* ================================================
   Cards Grid Split - Section Styles
   Flexible grid with 2-column internal card layout
   ================================================ */

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

.cards-grid-split--inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------------
   Section Header
   ------------------------------------------------ */
.cards-section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.cards-section-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #1e1e23;
}

/* ------------------------------------------------
   Cards Grid (Using data-columns pattern)
   ------------------------------------------------ */
.cards-grid {
    display: grid;
    gap: 1.5rem;
    grid-auto-rows: 1fr; /* Force equal height rows */
}

/* 1 Column */
.cards-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

/* 2 Columns */
.cards-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 Columns */
.cards-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

/* ------------------------------------------------
   Individual Card
   ------------------------------------------------ */
.card-split {
    border-radius: 12px;
    /* Padding on top, left, bottom ONLY - no right padding */
    padding: 1.75rem 0 1.75rem 1.75rem;
    /* Transparent border for smooth hover transition */
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    height: 100%; /* Fill full grid cell */
    display: flex;
    flex-direction: column;
}

/* Card link wrapper - makes entire card clickable */
.card-split-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    flex: 1; /* Fill remaining space in card */
    height: 100%; /* Fill full card height */
}

/* Remove underlines from all text inside clickable cards - all states */
.card-split-link *,
.card-split-link:hover *,
.card-split-link:focus *,
.card-split-link:active * {
    text-decoration: none !important;
}

.card-split:has(.card-split-link) {
    cursor: pointer;
}

.card-split:hover {
    border-color: var(--hover-color);
}

/* Internal 2-column layout - CONTENT WIDER (1.5fr vs 1fr) */
.card-split-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    align-items: stretch; /* Allow content to use full height */
    flex: 1; /* Fill remaining space */
}

/* ------------------------------------------------
   Card Content (Left Side)
   ------------------------------------------------ */
.card-split-content {
    display: flex;
    flex-direction: column;
    height: 100%; /* Fill full grid cell height */
    /* NO right padding on desktop */
}

/* Icon with Circle Background - SMALLER SIZE */
.card-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
}

.icon-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
}

.card-icon-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    padding: 10px;
}

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

.card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1e1e23;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.card-button-wrapper {
    margin-top: auto;
}

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

/* Button hover - ONLY when hovering the button itself, NOT the card */
.button.button-secondary:hover,
span.button.button-secondary:hover {
    background-color: #00a843; /* DARKER GREEN */
    color: #1e1e23; /* TEXT STAYS BLACK */
}

/* ------------------------------------------------
   Card Image (Right Side)
   ------------------------------------------------ */
.card-split-image {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.card-split-image img {
    max-height: 240px;
    width: auto;
    height: auto;
    display: block;
}
}

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

    .cards-section-header {
        margin-bottom: 3rem;
    }

    .cards-section-description {
        font-size: 1rem;
    }

    .card-split {
        padding: 1.5rem 0 1.5rem 1.5rem;
    }

    .card-title {
        font-size: 1.125rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .card-icon-wrapper {
        width: 44px;
        height: 44px;
        margin-bottom: 1rem;
    }

    .card-icon-img {
        padding: 9px;
    }

    .card-split-image img {
        max-height: 200px;
    }
}

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

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

    /* All grids become 1 column on mobile */
    .cards-grid[data-columns="2"],
    .cards-grid[data-columns="3"] {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        gap: 1.25rem;
    }

    /* Cards become single column internally */
    .card-split-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card-split-content {
        order: 1;
        /* Content has right padding ONLY ON MOBILE */
        padding-right: 1.5rem;
    }

    .card-split-image {
        order: 2;
        /* Image sits at right edge - no padding */
        margin-right: 0;
        justify-content: flex-end;
    }

    .card-split {
        padding: 1.5rem 0 1.5rem 1.5rem;
    }

    .card-title {
        font-size: 1.125rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .card-icon-wrapper {
        width: 42px;
        height: 42px;
    }

    .card-icon-img {
        padding: 8px;
    }

    .card-split-image img {
        max-height: 250px;
    }
}

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

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

    .cards-grid {
        gap: 1rem;
    }

    .card-split {
        padding: 1.25rem 0 1.25rem 1.25rem;
    }

    .card-split-content {
        padding-right: 1.25rem;
    }

    .card-split-inner {
        gap: 1rem;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }

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

    .card-icon-wrapper {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }

    .card-icon-img {
        padding: 8px;
    }

    .card-split-image img {
        max-height: 220px;
    }

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