﻿/*.SC-card.SCustom {
    border-radius: 20px;
    box-shadow: 0 0 4px #CFCFCF40;
    margin-left: 0.5%;
    min-width: 250px;
    min-height: 420px ;
    transition: 1s ease-in-out;
    transform-style: preserve-3d;
}*/

/*.SC-card.SCustom:hover {
    box-shadow: 1px 6px 8px 0px #f98bec;
}*/

/*.SC-card.SCustom:hover {
    transform: rotateY(0.5turn);
}

.SC-card__face.SC-card__face--front > .SC-card-img-top {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    height: 350px;
}


.SC-card-body.SCustom {
    line-height: 0.9;
    height:150px;
}

.SC-card__face {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: 1s ease-in-out;
}

.SC-card__face--back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(0.5turn);
}

.Deck {
    display: flex;
    overflow: initial;
}

.SC-card-backtext {
    padding:5.8%
}

.slick-dots li button:before {
    color: white !important;
}*/

/*@media(Max-width:600px){
    .SC-card.SCustom {
        max-width:375px;
    }
}*/

/*@media( max-width:426px) {
    .SC-card.SCustom {
        max-width:370px;
    }
}

@media( max-width:416px) {
    .SC-card.SCustom {
        max-width: unset;
    }
}*/

/* ──────────────────────────────────────────────────────────────────────────
       GLOBAL RESET & BASE STYLES
       - box-sizing: border-box to avoid unexpected sizing.
       - clamp() on the heading to scale nicely between mobile and desktop.
    ─────────────────────────────────────────────────────────────────────────── */
/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #001e4b;
    padding: 2.5%;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #fff;
    margin-bottom: 3%;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: bold;
}*/

/* ──────────────────────────────────────────────────────────────────────────
       CAROUSEL WRAPPERS
       - .carousel-container holds controls + viewport.
       - .viewport hides overflow so only whole SC-cards appear.
    ─────────────────────────────────────────────────────────────────────────── */
.carousel-container {
    position: relative;
    margin: 0 auto;
}

.viewport {
    overflow: hidden;
    /* hide peek of next/prev SC-cards */
    margin: 0 auto;
    /* center the viewport itself */
}

/* ──────────────────────────────────────────────────────────────────────────
       SC-card DECK + SC-card STYLES
       - Flex layout for horizontal scrolling.
       - perspective + backface-visibility for 3D flip.
    ─────────────────────────────────────────────────────────────────────────── */
.deck {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
    padding: 1rem 0;
    justify-content: flex-start;
}

.SC-card {
    position: relative;
    width: 320px;
    min-width: 320px;
    /* ensure no shrinking */
    height: 400px;
    perspective: 1000px;
    /* for flip effect */
    cursor: pointer;
    flex-shrink: 0;
}

.SC-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    /* keep 3D children */
    animation: SC-cardIntro 2s ease-out;
    /* subtle entrance */
}

@keyframes SC-cardIntro {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* flip on hover (desktop) */
.SC-card:hover .SC-card-inner {
    transform: rotateY(180deg);
}

.SC-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    /* hide rear when flipped */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* back face styling */
.SC-card-face--back {
    transform: rotateY(180deg);
    /* back face background color */
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* color: #fff; */
    color: #000;
    padding: 1.5rem;
/*    justify-content: center;*/
    align-items: center;
}

/* image styling */
.SC-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

.SC-card-body {
    padding: 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.SC-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #001e4b;
}

.SC-card-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.3rem;
}

    .SC-card-text strong {
        color: #001e4b;
        font-weight: bold;
    }

.SC-card-backtext {
    padding-top: 0.5rem;
    text-align: left;
    line-height: 1.6;
    font-size: 0.95rem;
}

    .SC-card-backtext strong {
        /* color: #fff; */
        font-weight: bold;
    }

/* ──────────────────────────────────────────────────────────────────────────
       CONTROLS & INDICATORS
       - Positioned absolutely over the container.
       - disabled state for UX clarity.
    ─────────────────────────────────────────────────────────────────────────── */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #001e4b;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .carousel-nav:hover {
        background: #fff;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .carousel-nav.prev {
        left: 20px;
    }

    .carousel-nav.next {
        right: 20px;
    }

    .carousel-nav:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: translateY(-50%) scale(0.9);
    }

.carousel-indicators {
    position: unset !important;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-indicator {
 
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .carousel-indicator.active {
        background: #fff;
        transform: scale(1.2);
    }

/* placeholder SC-cards (coming soon) */
.placeholder-SC-card .SC-card-face {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.placeholder-SC-card .SC-card-img {
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
}

/* ─── enable JS‐driven flip ──────────────────────────────────────── */
.SC-card.flipped .SC-card-inner {
    transform: rotateY(180deg);
}

/* ─── allow vertical scroll on back face if text overflows ─────── */
.SC-card-face--back {
    overflow-y: auto;
}


/* ──────────────────────────────────────────────────────────────────────────
       RESPONSIVE TWEAKS
       - Adjust SC-card size, gaps, nav sizes at breakpoints.
       - @media (hover:none) for touch devices.
    ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
/*    body {
        padding: 1rem;
    }*/

    .SC-card {
        width: 280px;
        min-width: 280px;
        height: 350px;
    }

    .deck {
        gap: 1.5rem;
    }

    .SC-card-img {
        height: 200px;
    }

    .SC-card-body {
        padding: 0.5rem;
    }

    .SC-card-title {
        font-size: 1.2rem;
    }

    .SC-card-text {
        font-size: 0.9rem;
    }

    .SC-card-backtext {
        margin-top: 0.5rem;
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

        .carousel-nav.prev {
            left: 10px;
        }

        .carousel-nav.next {
            right: 10px;
        }
}

@media (max-width: 480px) {
/*    h1 {
        margin-bottom: 1.5rem;
    }
*/
    .SC-card {
        width: 250px;
        min-width: 250px;
        height: 320px;
    }

    .deck {
        gap: 1rem;
    }

    .SC-card-img {
        height: 220px;
    }



    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

        .carousel-nav.prev {
            left: 5px;
        }

        .carousel-nav.next {
            right: 5px;
        }
}

@media (hover: none) and (pointer: coarse) {

    /* on touch devices, flip on tap rather than hover */
    .SC-card:active .SC-card-inner {
        transform: rotateY(180deg);
    }

    .SC-card:hover .SC-card-inner {
        transform: none;
    }
}

.placeholder-SC-card .SC-card-img {
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-SC-card .SC-card-body {
    display: none !important;
}