.header-card {
    background-color: #ececec;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.25);
    border-radius: 0.75rem;
}

.header-bg {
    background: linear-gradient(135deg, #23006e, #f600c1, #23006e);
}

.vote-box {
    background: linear-gradient(#fff, #eaeaea, #c7c7c7);
    border-radius: 0.5rem;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.25);
}

.vote-fs {
    font-size: 2rem !important;
    font-weight: bold;
}

.vote-fs-sm {
    font-size: 1rem !important;
}

.vote-img {
    width: 60px;
}

.vote-signal {
    width: 30px; 
    height: 30px;
    background-color: rgb(166, 14, 14);
    border-radius: 50%;
}

.vote-btn {
    width: 120px; 
    height: 50px;
    background: linear-gradient(135deg, #006aff, #006aff, #7fb4ff);
    border-radius: 25px;
    margin-left: 20px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-weight: 700;
    display: inline-block;
    animation: pulse 1.2s infinite ease-in-out;
}

.voted {
    background-color: rgb(243, 33, 33);
    box-shadow: 0px 0px 10px rgba(255, 27, 27, 0.635);
}

.hd-text {
    font-size: 1rem !important;
}

.title-img {
    width: 100px;
    border: 2px solid #3a3a3a;
    border-radius: 10px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
}

.cp-heading {
    font-size: 1.5rem !important;
    font-weight: bold;
}

.cp-text {
    font-size: 1rem !important;
    margin-top: 30px;
    font-weight: bold;
}

.cp-text-main {
    font-size: 1rem !important;
    text-align: justify;
    margin-top: 30px;
}

.reels-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    padding: 20px;
}

/* Hide scrollbar (optional) */
.reels-wrapper::-webkit-scrollbar {
    display: none;
}

.reel-card {
    position: relative;
    flex: 0 0 auto;
    width: 220px;
    height: 390px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reel-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 16px;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reel-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    color: #fff;
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.play-icon:hover {
    transform: scale(1.2);
}

.btn {
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
}

.reel-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.reel-modal.hidden {
    display: none;
}

.reel-modal-content {
    position: relative;
    width: 90%;
    height: 80%;
    max-width: 350px;
    max-height: 700px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.nav-btn.left { left: 20px; }
.nav-btn.right { right: 20px; }

.stacked-card {
    position: relative;
    width: 90%;
    aspect-ratio: 11/10; 
    margin: auto;
}

.stack-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s, filter 0.3s;
}

/* Offset layers slightly and darken bottom layers */
.stack-layer.layer-3 { transform: translate(10px, 10px); filter: brightness(20%); z-index: 1; }
.stack-layer.layer-2 { transform: translate(5px, 5px); filter: brightness(40%); z-index: 2; }
.stack-layer.layer-1 { transform: translate(0, 0); filter: brightness(100%); z-index: 3; }

/* Card content on top */
.stack-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px 5px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 0 0 16px 16px;
    z-index: 4;
    text-align: center;
    font-size: 0.9rem;
}

/* Hover effect: lift front card slightly */
.stacked-card:hover .stack-layer.layer-1 {
    transform: translate(0, -5px);
}

.member-scroll-section {
    overflow: hidden;
    position: relative;
}

.scroll-container {
    width: 100%;
    overflow: hidden;
}

.scroll-track {
    display: flex;
    width: calc(300%); /* Because we duplicated items */
    animation: scroll-left 25s linear infinite;
}

.member-card {
    flex: 0 0 auto;
    width: 150px;
    margin: 0 15px;
    text-align: center;
}

.member-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.member-card img:hover {
    transform: scale(1.05);
}

.member-info {
    margin-top: 8px;
    font-size: 0.9rem;
}

@media (max-width: 767px) {

    .header-card {
        border-radius: 0;
    }

    .vote-box {
        border-radius: 0;
        box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.25);
    }

    .vote-fs {
    font-size: 12px !important;
    font-weight: bold;
    }

    .vote-fs-sm {
        font-size: 7px !important;
    }

    .vote-img {
        width: 100%;
    }

    .vote-signal {
        width: 15px; 
        height: 15px;
    }

    .vote-btn {
        width: 48px; 
        height: 20px;
        font-size: 7px !important;
        border-radius: 10px;
        margin-left: 8px;
    }

    .vote-pb {
        padding-bottom: 5px !important;
    }

    .hd-text {
        font-size: 12px !important;
    }

    .title-img {
        width: 30px;
        border-radius: 5px;
    }

    .cp-heading {
        font-size: 18px !important;
        font-weight: bold;
        line-height: 1;
    }

    .cp-text {
        font-size: 12px !important;
        margin-top: 10px;
        line-height: 1.1;
    }

    .cp-text-main {
        text-align: justify;
        margin-top: 12px;
        line-height: 0.8;
    }


    .reel-card {
        width: 88px;
        height: 156px;
    }

    .reel-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .scroll-track { 
        animation: scroll-left 8s linear infinite;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1); /* scale up */
    }
    100% {
        transform: scale(1);
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}