/* Featured case studies sliders (script/featured.js) on index.html, arthayan-accelerator.html and
   startup-network.html. Builds on the existing .program-section / .program-card styles in style.css. */

/* style.css hides .program-section ("temp"); a featured section shows once its cards are in */
.program-section.fcs-ready {
    display: flex;
}

/* Home: the section follows the infra card, whose own bottom padding (80px; 60px on phones) already
   separates them; 100px more left a ~180px gap (2026-11-20) */
.infra-section + .program-section {
    padding-top: 40px;
}

.fcs {
    position: relative;
    text-align: left;
    z-index: 2; /* above the section's blurred side glows */
}

.fcs-swiper {
    padding: 4px 2px 8px; /* room for the cards' 1.5px gradient border */
}

.fcs .swiper-slide {
    height: auto;
    display: flex;
}

/* the card is one link; same frame as .program-card, full slide width and height */
.fcs .program-card.fcs-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
    .fcs .program-card.fcs-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(22, 42, 102, 0.12);
    }
}

.fcs .program-card.fcs-card:focus-visible {
    outline: 3px solid #1076F1;
    outline-offset: 3px;
}

/* image area: tinted title band, covered by the thumbnail when there is one */
.fcs-thumb {
    position: relative;
    display: block;
    flex: none;
    height: 200px;
    max-height: none;
    overflow: hidden;
}

.fcs-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fcs-band {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 22px 24px;
    text-align: center;
    color: #162A66;
    background: linear-gradient(180deg, #E0F2FE 0%, #BAE6FD 100%);
}

/* same tints as the case study title bands (style/case-study.css) */
.fcs-tint-periwinkle { background: linear-gradient(180deg, #E0E7FF 0%, #C7D2FE 100%); }
.fcs-tint-mint { background: linear-gradient(180deg, #CCFBF1 0%, #99F6E4 100%); }
.fcs-tint-lavender { background: linear-gradient(180deg, #EDE9FE 0%, #DDD6FE 100%); }

.fcs-band-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
}

.fcs-band-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 12px auto 6px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1076F1, #162A66);
}

.fcs-band-partner {
    font-size: 15px;
}

.fcs .card-bottom.fcs-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 26px 30px 28px;
}

.fcs .card-bottom h3 {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.fcs-partner {
    font-size: 15px;
    font-weight: 500;
    color: #0B57B8;
    margin-bottom: 12px;
}

.fcs-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    color: #081022;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.fcs .card-bottom .read-more {
    margin-top: auto;
    justify-content: flex-start;
}

/* arrows (mouse and trackpad) and dots; Swiper adds *-lock when every card already fits */
.fcs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 3;
    display: none;
}

.fcs-arrow img {
    width: 40px;
    height: 40px;
}

.fcs-arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

.fcs-prev { left: 0; }
.fcs-next { right: 0; }

.fcs-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 22px;
}

.fcs-dots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    background: #B9CCF5;
    opacity: 1;
}

.fcs-dots .swiper-pagination-bullet-active {
    background: #1076F1;
}

.fcs .swiper-button-lock,
.fcs .swiper-pagination-lock {
    display: none !important;
}

@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
    .fcs {
        padding: 0 56px;
    }
    .fcs-arrow {
        display: block;
    }
}

/* no Swiper (script failed to load): a plain row that scrolls sideways */
.fcs.fcs-static .swiper-wrapper {
    display: flex;
    gap: 24px;
    overflow-x: auto;
}

.fcs.fcs-static .swiper-slide {
    flex: 0 0 min(340px, 85%);
}

@media (max-width: 767px) {
    .fcs-thumb {
        height: 180px;
    }
    .fcs-band-title {
        font-size: 22px;
    }
    .fcs .card-bottom.fcs-body {
        padding: 22px 22px 24px;
    }
    .fcs .card-bottom h3 {
        font-size: 20px;
    }
}
