/* SA Image Content Card — Sabbir Ahmed */
.sa-icc {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    overflow: hidden;
    box-sizing: border-box;
    isolation: isolate;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0a0a12;
}

@supports not (aspect-ratio: 1) {
    .sa-icc { min-height: 400px; }
}

/* Gradient border via ::before mask */
.sa-icc--border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg,
        rgba(255,255,255,0.45) 0%,
        rgba(255,255,255,0.08) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}

/* ── Background Image ── */
.sa-icc__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.sa-icc__bg--empty {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.sa-icc--zoom:hover .sa-icc__bg {
    transform: scale(1.06);
}

/* ── Overlay layers ── */
.sa-icc__overlay,
.sa-icc__tint {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.sa-icc__overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.90) 0%,
        rgba(0,0,0,0.40) 50%,
        rgba(0,0,0,0.0)  100%);
}

.sa-icc__tint {
    z-index: 2;
    background: transparent;
}

/* ── Inner layout ── */
.sa-icc__inner {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    height: 100%;
}

/* ── Content ── */
.sa-icc__content {
    padding: 0 24px 28px;
}

.sa-icc__heading {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.sa-icc__desc {
    margin: 0;
    color: rgba(255,255,255,0.80);
    font-size: 15px;
    line-height: 1.55;
}

/* Focus visible for linked cards */
a.sa-icc:focus-visible {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 3px;
}

/* Mobile */
@media (max-width: 767px) {
    .sa-icc__content { padding: 0 18px 20px; }
    .sa-icc__heading { font-size: 20px; }
    .sa-icc__desc    { font-size: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sa-icc, .sa-icc__bg { transition: none; }
    .sa-icc--zoom:hover .sa-icc__bg { transform: none; }
}
