﻿@@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

:root {
    --brand-red: #e0464d;
    --brand-purple: #3d3474;
    --brand-purple-d: #2f2967;
    --ink: #2b2b2f;
    --muted: #777;
    --stroke: #e8e8f0;
}

body {
    background: #fff;
    color: var(--ink);
    font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 18px 40px
}

/* HERO (top banner) */
.hero-section {
    background: #F2F1F3;
    border-radius: 16px;
    padding: 20px 20px 20px 20px;
    margin-top: 8px
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 13px;
    color: #0C0C0C;
    background: transparent;
    border: 1px solid #D2D2D2;
    border-radius: 8px;
    padding: 8px 16px
}

.hero h1 {
    font-family: Poppins, Inter, sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
    margin: 16px 0 10px 0px;
    color: #332e73;
}

.hero p {
    margin: 0;
    color: #444;
    line-height: 1.6;
    font-size: 14px;
}


.hero-img img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

/* Section Title */
.section-title {
    margin: 34px 0 18px;
    font-family: Poppins,Inter,sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: #2f2967;
    text-align: center
}

    .section-title span {
        color: var(--brand-red);
        font-style: italic;
    }

/* Topic Cards */
.qcard {
    background: #F2F1F3;
    border: 1px solid #D6D6D6;
    border-radius: 20px;
    padding: 14px;
}

.thumb {
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
}

    .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

.meta {
    font-size: 13px;
    color: #a1a1ad;
    margin: 2px 0 6px;
    display: flex;
    gap: 6px;
    align-items: center
}

.qtitle {
    margin: 11px 0 11px;
    font-size: 16px;
    font-weight: 600;
    color: #332e73;
}

.qdesc {
    margin: 0;
    color: #707070;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
}

    .qdesc a {
        color: var(--brand-red);
        font-weight: 600;
        text-decoration: none
    }

.cta {
    margin-top: 12px
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-red);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(224,70,77,.20)
}

    .btn-cta svg {
        width: 16px;
        height: 16px
    }

/* Responsive */
@@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .qcard {
        grid-template-columns: 1fr
    }

    .thumb {
        width: 100%;
        height: 180px
    }
}

.voting-results .progress {
    background-color: #eaeaea;
    border-radius: 6px;
    overflow: hidden;
}

.voting-results .progress-bar {
    transition: width 0.6s ease;
}

.vote-heading {
    font-weight: 600;
    font-size: 15px;
    color: #777;
}

.voting-results .vote-row {
    gap: 12px;
}

.vote-label {
    min-width: 45px;
    font-weight: 400 !important;
    font-size: 13px;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

    .vote-label.yes-label {
        background-color: #3d3474;
    }

    .vote-label.no-label {
        background-color: #e0464d;
    }

.vote-bar {
    flex-grow: 1;
    height: 10px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.vote-fill {
    height: 100%;
    transition: width 0.5s ease-in-out;
}

.yes-fill {
    background-color: #3d3474;
}

.no-fill {
    background-color: #e0464d;
}

.vote-percent {
    font-weight: 600;
    font-size: 13px;
    color: #444;
    min-width: 30px;
    text-align: right;
}


.vote-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vote-label {
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    white-space: nowrap;
}

    .vote-label.yes {
        background-color: var(--brand-purple);
    }

    .vote-label.no {
        background-color: var(--brand-red);
    }

.vote-bar {
    flex-grow: 1;
    height: 10px;
    background-color: #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.vote-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

    .vote-fill.yes {
        background-color: var(--brand-purple);
    }

    .vote-fill.no {
        background-color: var(--brand-red);
    }

.vote-percent {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    min-width: 35px;
    text-align: right;
}

.buttons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    position: relative;
    flex: 0 0 auto;
    background-color: rgb(233 151 160);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid;
    border-color: #e1e1e166;
    box-shadow: var(--shadows-shadow-xs);
}

.text {
    position: relative;
    width: fit-content;
    margin-top: 0px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-right: 3px !important;
    color: var(--primaryprimary-800);
    letter-spacing: var(--text-md-semibold-letter-spacing);
    line-height: var(--text-md-semibold-line-height);
    white-space: nowrap;
    font-style: var(--text-md-semibold-font-style);
}

.posted-time {
    font-size: 13px;
    color: #e39ca7;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 10px;
}

    .posted-time i {
        margin-right: 6px;
        font-size: 14px;
    }

.image-wrapper {
    width: 100%;
    height: 250px; /* Adjust as needed */
    overflow: hidden;
    position: relative;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    max-height: 350px !important;
}

    .slider-image.active {
        opacity: 1;
        position: relative;
    }
