﻿:root {
    --bg-image: url('your-background.jpg');
    --overlay: rgba(4,10,18,0.55);
    --card-bg: rgba(6,12,25,0.22);
    --muted: #9fb0c8;
    --radius: 14px;
    --glass-border: rgba(255,255,255,0.03);
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-thumb {
    background-color: #1195be;
    border-radius: 4px;
}

    body::-webkit-scrollbar-thumb:hover {
        background-color: #006e90;
    }

.BackgroundImage {
    /* background-image: url('/files/site/S8/Images/slide2.jpg?v=2');*/
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

    .BackgroundImage::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgb(56, 0, 0, 0.35);
        z-index: -1;
    }

.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    float: right;
}

.hero {
    min-height: 420px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 36px 48px;
}

    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--overlay);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

.stats-title {
    margin-left: auto;
    margin-right: 12px;
    text-align: right;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.95;
}

.cards {
    display: flex;
    gap: 18px;
    flex: 1;
    justify-content: flex-end;
}

.card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 14px 8px;
    margin: 14px 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 230px;
    box-shadow: 0 8px 28px rgba(2,6,23,0.65);
    border: 1px solid rgba(255,255,255,0.02);
    transform: translateY(10px);
    opacity: 0;
    transition: all .6s cubic-bezier(.2,.9,.2,1);
}

    .card.show {
        transform: none;
        opacity: 1;
    }

    .card .icon {
        width: 74px;
        height: 74px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        flex-shrink: 0;
        box-shadow: inset 0 -8px 18px rgba(0,0,0,0.35);
    }

.g-blue {
    background: linear-gradient(135deg,#0ea5ff 0%,#1162ff 100%);
    color: #fff;
}

.g-green {
    background: linear-gradient(45deg,var(--primary-color) 0,var(--secondary-color) 100%);
    color: #023e2a;
}

.g-orange {
    background: linear-gradient(135deg,#ffd08a 0%,#ff8a5b 100%);
    color: #3b1400;
}

.g-pink {
    background: linear-gradient(135deg,#ff9bde 0%,#ff6f9a 100%);
    color: #3b0016;
}

.card-body {
    text-align: left;
    flex: 1
}

.num-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: flex-end;
}

.num {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
}

.unit {
    font-size: 13px;
    color: var(--muted);
    margin-right: 6px;
    font-weight: 600;
}

.subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
    text-align: left;
}

.icon svg {
    width: 52px;
    height: 52px;
}

@media (max-width:980px) {

    .cards {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .card {
        min-width: 180px;
        width: 48%;
    }

    .stats-title {
        margin-left: 0;
        margin-right: 0;
        align-self: flex-end;
    }
}

@media (max-width:560px) {
    .card {
        width: 100%;
        min-width: unset;
    }

    .cards {
        gap: 10px;
        flex-direction: column;
    }
}

.stories-wrap {
    position: relative
}

.stories-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    mask-image: linear-gradient(to left, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%);
}

    .stories-rail::-webkit-scrollbar {
        height: 4px
    }

    .stories-rail::-webkit-scrollbar-thumb {
        background: #dfdfdf;
        border-radius: 999px
    }

.stories-wrap::-webkit-scrollbar-thumb:hover {
    background-color: #dfdfdf;
}

.story-card {
    position: relative;
    max-width: clamp(190px, 18vw, 160px);
    flex: 0 0 auto;
    aspect-ratio: 9/16;
    border-radius: 16px;
    overflow: hidden;
    background: #0b0b0b;
    scroll-snap-align: start;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.14);
    transition: transform .18s ease, box-shadow .18s ease, outline .18s ease;
    outline: 0 solid transparent;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

    .story-card img {
        user-select: none;
        -webkit-user-drag: none;
        pointer-events: none
    }

    .story-card:focus-visible {
        outline: 3px solid #fb923c
    }

    .story-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(0,0,0,.18)
    }

.story-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-gradient {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 52%;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
    pointer-events: none;
}

.story-title {
    position: absolute;
    inset-inline: 10px;
    bottom: 8px;
    color: #fff;
    font-size: 12.5px;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

.play-bubble {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: .0;
    transition: opacity .18s;
    pointer-events: none;
}

.story-card:hover .play-bubble {
    opacity: .95
}

.play-bubble i {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-style: normal;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,.3)
}

.stories-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #333;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: .95;
}

    .stories-arrow:hover {
        opacity: 1
    }

    .stories-arrow.prev {
        inset-inline-start: -6px
    }

    .stories-arrow.next {
        inset-inline-end: -6px
    }

@media (max-width: 640px) {
    .stories-arrow {
        display: none
    }
}

#stories-rail {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    user-select: none;
    cursor: grab;
}

    #stories-rail:active {
        cursor: grabbing;
    }
