/* Services Card Stacking & Premium Design System */

:root {
    --card-bg: #ffffff;
    --card-border: rgba(87, 88, 214, 0.12);
    --card-shadow: 0 20px 50px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.02);
    --brand-primary: #5758d6;
    --brand-dark: #22223f;
    --text-muted: #6a6b9a;
}

/* Page wrapper adjustments to make cards wider and reduce side spaces */
.page {
    max-width: 1760px !important;
    margin: 80px auto 0 !important;
    padding: 0 6px 50px !important;
}

/* Stacking is now handled by the theme's native .stack-card/.stack-item
   plugin (see main.js) via position:sticky - no custom wrapper/absolute
   positioning needed here anymore. */

/* Every card is the exact same fixed rectangle - content length no longer
   changes a card's size, since .row-copy/.row-media both stretch to fill
   this fixed height instead of sizing themselves from their own content. */
.stack-card-item {
    height: 580px;
    background-color: #dff0ff !important;
}
.stack-card-item .row {
    height: 100%;
}
.stack-card-item .row > [class*="col-"] {
    height: 100%;
    box-sizing: border-box;
}
/* Image sits inset with visible padding on all sides, instead of a full-bleed
   edge-to-edge photo - a small, contained, consistently-sized image. */
.stack-card-item .row > [class*="col-"]:first-child {
    padding: 32px;
}

.row-media {
    border-radius: 16px !important;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    height: 100% !important;
    width: 100%;
}

.row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.stack-card-item:hover .row-media img {
    transform: scale(1.05);
}

.row-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100% !important;
}

.row-index {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--brand-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.row-copy h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.row-copy .row-org {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    border-left: 3px solid var(--brand-primary);
    padding-left: 12px;
}

.row-copy p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: justify;
}

.row-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.row-stat {
    background: rgba(87, 88, 214, 0.05);
    border: 1px solid rgba(87, 88, 214, 0.1);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-dark);
    transition: all 0.3s ease;
}

.row-stat:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

.row-stat b {
    font-weight: 700;
}

/* Responsive adjustments - below lg the two columns stack full-width, so the
   shared fixed height would squash them together; let each size itself. */
@media (max-width: 991px) {
    .stack-card-item {
        height: auto;
    }
    .stack-card-item .row > [class*="col-"] {
        height: auto;
    }
    .row-media {
        height: auto !important;
        min-height: 260px;
    }
    .row-copy {
        height: auto !important;
    }
}
