/* =========================================================
   SISGAIN Case Studies - Shared Card Styles
   Reused by the Case Studies archive (.csa-page) and
   reusable category sections (.csa-cards-scope).
   ========================================================= */

.csa-cards-scope {
    color: #f5f7fa;
    font-size: 17px;
    line-height: 1.6;
    text-align: left;
}

.csa-cards-scope *,
.csa-cards-scope *::before,
.csa-cards-scope *::after {
    box-sizing: border-box;
}

.csa-cards-scope :focus-visible {
    outline: 2px solid #38d6ff;
    outline-offset: 3px;
    border-radius: 4px;
}

.sg-cs-sec .sg-cs-head {
    margin-bottom: 28px;
}

.sg-cs-sec .sg-cs-desc {
    margin-bottom: 0;
}

/* tighter gutters for card rows */
.csa-page .csa-row,
.csa-cards-scope .csa-row {
    margin-left: -10px;
    margin-right: -10px;
}

.csa-page .csa-row > [class*="col-"],
.csa-cards-scope .csa-row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

/* card container */
.csa-page .csa-col,
.csa-cards-scope .csa-col {
    margin-bottom: 20px;
}

.csa-page .csa-card,
.csa-cards-scope .csa-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid #222b38;
    border-radius: 6px;
    background: #0d1117;
    color: #f5f7fa;
    text-align: left;
    transition: border-color .25s, transform .25s;
}

.csa-page .csa-card:hover,
.csa-cards-scope .csa-card:hover {
    border-color: #3a4658;
    transform: translateY(-3px);
}

/* thumbnail & placeholder */
.csa-page .csa-thumb,
.csa-cards-scope .csa-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    background: #141a23;
}

.csa-page .csa-thumb img,
.csa-cards-scope .csa-thumb img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.csa-page .csa-thumb--empty,
.csa-cards-scope .csa-thumb--empty {
    aspect-ratio: 16/9;
}

.csa-page .csa-thumb .csa-image-placeholder,
.csa-cards-scope .csa-thumb .csa-image-placeholder {
    height: auto;
    aspect-ratio: 16/9;
}

.csa-page .csa-image-placeholder,
.csa-cards-scope .csa-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #9aa4b2;
    font-size: 14px;
    background: radial-gradient(circle at 70% 25%, rgba(56, 214, 255, .2), transparent 40%), linear-gradient(135deg, #141a23, #0d1117);
}

/* card body */
.csa-page .csa-card .csa-body,
.csa-cards-scope .csa-card .csa-body {
    padding: 22px 22px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.csa-page .csa-tag,
.csa-cards-scope .csa-card .csa-tag {
    display: inline-block;
    font-size: 13px;
    color: #38d6ff;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color .2s ease;
}

.csa-page a.csa-tag:hover,
.csa-cards-scope .csa-card a.csa-tag:hover {
    color: #00c8ff;
    text-decoration: underline;
}

.csa-cards-scope .csa-card h3 {
    margin: 0;
    color: #f5f7fa;
    font-size: clamp(19px, 1.8vw, 24px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.csa-page .csa-title-link,
.csa-cards-scope .csa-card .csa-title-link {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.csa-page .csa-title-link:hover,
.csa-cards-scope .csa-card .csa-title-link:hover {
    color: #38d6ff;
    text-decoration: none;
}

.csa-page .csa-card p,
.csa-cards-scope .csa-card p {
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
    margin: 10px 0 0;
}

/* service chips */
.csa-page .csa-chips,
.csa-cards-scope .csa-card .csa-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.csa-page .csa-card .csa-chips,
.csa-cards-scope .csa-card .csa-chips {
    margin-bottom: 20px;
}

.csa-page .csa-chips span,
.csa-cards-scope .csa-card .csa-chips span {
    font-size: 12px;
    padding: 3px 10px;
    border: 1px solid #222b38;
    border-radius: 999px;
    color: #fff;
    background: rgba(13, 17, 23, .6);
    display: inline-flex;
    align-items: center;
    transition: border-color .2s ease, background .2s ease;
}

.csa-page .csa-chips span a,
.csa-cards-scope .csa-card .csa-chips span a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: color .2s ease;
}

.csa-page .csa-chips span:hover,
.csa-cards-scope .csa-card .csa-chips span:hover {
    border-color: #38d6ff;
    background: rgba(56, 214, 255, .1);
}

.csa-page .csa-chips span:hover a,
.csa-cards-scope .csa-card .csa-chips span:hover a {
    color: #38d6ff;
    text-decoration: none;
}

/* gradient CTA button */
.csa-page .csa-more,
.csa-cards-scope .csa-card .csa-more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 18px;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(8, 200, 232, 0.45);
    background: linear-gradient(110deg, #0875F9, #08C8E8);
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(8, 117, 249, 0.22);
    transition: all .25s ease;
}

.csa-page .csa-card .csa-more,
.csa-cards-scope .csa-card .csa-more {
    display: flex;
    width: 100%;
    margin-top: auto;
    padding: 12px 18px;
    align-self: stretch;
}

.csa-page a.csa-more:hover,
.csa-page .csa-more:hover,
.csa-cards-scope .csa-card a.csa-more:hover,
.csa-cards-scope .csa-card .csa-more:hover {
    background: linear-gradient(110deg, #0d7efd, #14d5f5);
    border-color: #08C8E8;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(8, 200, 232, 0.45), 0 0 16px rgba(8, 117, 249, 0.35);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.csa-page .csa-more-text,
.csa-cards-scope .csa-card .csa-more-text {
    flex: 1;
    text-align: left;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.35;
}

.csa-page .csa-more-arr,
.csa-cards-scope .csa-card .csa-more-arr {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    transition: transform .25s ease;
}

.csa-page a.csa-more:hover .csa-more-arr,
.csa-page .csa-more:hover .csa-more-arr,
.csa-cards-scope .csa-card a.csa-more:hover .csa-more-arr,
.csa-cards-scope .csa-card .csa-more:hover .csa-more-arr {
    transform: translateX(4px);
}

@media (max-width: 767.98px) {
    .csa-cards-scope {
        font-size: 16px;
    }

    .csa-page .csa-card .csa-more,
    .csa-cards-scope .csa-card .csa-more {
        padding: 11px 16px;
        font-size: 14px;
        min-height: 46px;
        border-radius: 14px;
    }
}

@media (max-width: 399.98px) {
    .csa-page .csa-card .csa-more,
    .csa-cards-scope .csa-card .csa-more {
        padding: 10px 14px;
        font-size: 13.5px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .csa-cards-scope *,
    .csa-cards-scope *::before,
    .csa-cards-scope *::after {
        animation: none !important;
        transition: none !important;
    }
}
