
:root {
    --pv-red: #b71c1c;
    --pv-red-dark: #8e1111;
    --pv-bg: #f5f6f9;
    --pv-text: #202535;
    --pv-muted: #777e8e;
    --pv-border: #e7e9ee;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--pv-bg);
    color: var(--pv-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

/* Header */

.pv-site-header {
    background: var(--pv-red);
    color: #fff;
    overflow: hidden;
}

.pv-breaking-bar {
    display: flex;
    align-items: center;
    min-height: 48px;
    gap: 18px;
    padding: 0 22px;
}

.pv-breaking-label {
    background: #fff;
    color: var(--pv-red);
    font-size: 11px;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.css-marquee-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.css-marquee-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: pv-marquee 45s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
}

.marquee-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

@keyframes pv-marquee {
    to {
        transform: translateX(-50%);
    }
}

/* Page */

.pv-dashboard-layout {
    max-width: 1320px;
    margin: 0 auto;
    padding: 45px 22px 65px;
}

.pv-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.pv-heading-eyebrow {
    color: var(--pv-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.pv-page-heading h1 {
    font-size: 32px;
    margin: 8px 0;
    line-height: 1.2;
}

.pv-page-heading p {
    color: var(--pv-muted);
    margin: 0;
    font-size: 14px;
}

.pv-back-link {
    color: var(--pv-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

/* Grid */

.pv-polls-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.pv-poll-card-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.pv-poll-container-box {
    background: #fff;
    border: 1px solid var(--pv-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035);
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}

.pv-poll-container-box:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
    transform: translateY(-3px);
}

/* Image */

.pv-poll-top-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

.pv-poll-top-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card content */

.pv-poll-inner-body {
    padding: 22px;
    flex: 1;
}

.pv-poll-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.pv-poll-tag {
    background: #fff0f0;
    color: var(--pv-red);
    font-size: 10px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 5px;
    letter-spacing: .5px;
}

.pv-poll-number {
    color: #9ca3af;
    font-size: 12px;
}

.pv-poll-main-question {
    font-size: 19px;
    font-weight: 750;
    line-height: 1.45;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

.pv-poll-description {
    color: var(--pv-muted);
    font-size: 13px;
    margin: 0 0 20px;
}

/* Options */

.pv-options-interactive-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pv-option-selectable-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--pv-border);
    background: #fafbfc;
    border-radius: 9px;
    padding: 14px;
    cursor: pointer;
    transition: .2s;
    font-size: 14px;
}

.pv-option-selectable-row:hover {
    border-color: var(--pv-red);
    background: #fff8f8;
}

.pv-option-selectable-row:has(input:checked) {
    border-color: var(--pv-red);
    background: #fff1f1;
}

.pv-option-selectable-row:focus-within {
    outline: 2px solid var(--pv-red);
    outline-offset: 2px;
}

.pv-option-selectable-row input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.pv-selection-bullet-ui {
    width: 18px;
    height: 18px;
    border: 2px solid #c7cbd3;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

input:checked + .pv-selection-bullet-ui {
    border-color: var(--pv-red);
}

input:checked + .pv-selection-bullet-ui::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--pv-red);
    border-radius: 50%;
}

.pv-selection-label-text {
    overflow-wrap: anywhere;
}

/* Button */

.pv-submit-vote-btn {
    width: 100%;
    border: none;
    border-radius: 9px;
    padding: 13px;
    background: var(--pv-red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    transition: background .2s;
}

.pv-submit-vote-btn:hover:not(:disabled) {
    background: var(--pv-red-dark);
}

.pv-submit-vote-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Results */

.pv-results-metric-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pv-results-metric-group[hidden] {
    display: none;
}

.pv-metric-progress-row {
    width: 100%;
}

.pv-metric-label-layer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.pv-metric-percentage-value {
    font-weight: 800;
    white-space: nowrap;
}

.pv-metric-track {
    width: 100%;
    height: 9px;
    background: #edf0f3;
    border-radius: 20px;
    overflow: hidden;
}

.pv-metric-fill-bar {
    width: 0;
    height: 100%;
    background: #8993a5;
    border-radius: 20px;
    transition: width .7s ease;
}

.pv-user-voted-item .pv-metric-fill-bar {
    background: var(--pv-red);
}

.pv-user-voted-item .pv-metric-label-text {
    color: var(--pv-red);
}

.pv-metric-votes {
    color: var(--pv-muted);
    font-size: 11px;
    margin-top: 5px;
}

/* Footer */

.pv-poll-bottom-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--pv-border);
    padding: 16px 22px;
    background: #fcfcfd;
}

.pv-status-count-badge {
    font-size: 12px;
    font-weight: 800;
    color: #4b5563;
}

.pv-status-voted-notice {
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
}

.pv-status-voted-notice[hidden] {
    display: none;
}

.pv-poll-feedback {
    font-size: 12px;
    margin-top: 10px;
}

.pv-poll-feedback:empty {
    display: none;
}

.pv-poll-feedback.is-error {
    color: #b91c1c;
}

.pv-poll-feedback.is-success {
    color: #15803d;
}

/* Ads */

.pv-poll-standalone-ad,
.pv-row-break-inline-ad {
    background: #fff;
    border: 1px solid var(--pv-border);
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
}

.pv-poll-standalone-ad img,
.pv-row-break-inline-ad img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.pv-row-break-inline-ad {
    grid-column: 1 / -1;
    text-align: center;
}

.pv-row-break-inline-ad img {
    max-height: 250px;
    object-fit: contain;
}

.pv-empty-state {
    text-align: center;
    background: #fff;
    border-radius: 14px;
    padding: 60px 20px;
}
/* ==========================================
   COMMON AD SECTION
========================================== */

.pv-common-ads-section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 28px 0;
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    box-shadow: 0 5px 22px rgba(20, 30, 70, 0.06);
}

.pv-common-ads-heading,
.pv-fullwidth-ad-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pv-common-ads-heading h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    color: #171a32;
}

.pv-ads-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #1a206d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.pv-advertisement-label {
    color: #777b8e;
    font-size: 10px;
    white-space: nowrap;
}

/* ==========================================
   SMALL ADS CAROUSEL
========================================== */

.pv-common-ads-carousel {
    width: 100%;
}

.pv-common-ad-slide {
    padding: 4px 5px 10px;
    box-sizing: border-box;
}

.pv-common-ad-card {
    display: block;
    height: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #e7e9f0;
    border-radius: 12px;
    transition: box-shadow 0.25s ease;
}

.pv-common-ad-card:hover {
    color: inherit;
    box-shadow: 0 8px 22px rgba(20, 30, 70, 0.12);
}

.pv-common-ad-image-wrap {
    width: 100%;
    height: 175px;
    overflow: hidden;
    background: #f3f4f8;
}

.pv-common-ad-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pv-common-ad-card-content {
    padding: 13px;
}

.pv-common-ad-card-content h4 {
    margin: 9px 0;
    color: #191c36;
    font-size: 15px;
    font-weight: 700;
}

.pv-ad-sponsored-label {
    display: inline-block;
    color: #777b8e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.pv-ad-learn-more {
    display: block;
    color: #1a206d;
    font-size: 12px;
    font-weight: 700;
}

/* Owl Carousel arrows */

.pv-common-ads-carousel .owl-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.pv-common-ads-carousel .owl-nav button.owl-prev,
.pv-common-ads-carousel .owl-nav button.owl-next {
    width: 35px;
    height: 35px;
    color: #1a206d !important;
    background: #f0f1fa !important;
    border: 1px solid #e0e2f3 !important;
    border-radius: 50%;
    font-size: 23px !important;
    line-height: 1 !important;
}

.pv-common-ads-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.pv-common-ads-carousel .owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    margin: 0;
    background: #d8dbea !important;
    border-radius: 50%;
}

.pv-common-ads-carousel .owl-dot.active span {
    width: 20px;
    background: #1a206d !important;
    border-radius: 10px;
}

/* ==========================================
   FULL-WIDTH BANNER
========================================== */

.pv-static-fullwidth-ad {
    padding: 16px;
}

.pv-fullwidth-ad-heading {
    margin-bottom: 12px;
}

.pv-fullwidth-ad-heading .pv-ads-eyebrow {
    margin-bottom: 0;
}

.pv-fullwidth-ad-link {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #f3f4f8;
    border-radius: 10px;
}

.pv-fullwidth-ad-link img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.pv-fullwidth-ad-link:hover img {
    transform: scale(1.01);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 767px) {

    .pv-common-ads-section {
        margin: 20px 0;
       
        border-radius: 10px;
    }

    .pv-common-ads-heading h3 {
        font-size: 17px;
    }

    .pv-common-ad-image-wrap {
        height: 150px;
    }

    .pv-common-ad-card-content {
        padding: 10px;
    }

    .pv-fullwidth-ad-link img {
        max-height: 240px;
    }
}



/* Tablet */

@media (max-width: 991px) {
    .pv-polls-masonry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .pv-page-heading h1 {
        font-size: 27px;
    }
}

/* Mobile */

@media (max-width: 640px) {
    .pv-dashboard-layout {
        padding: 25px 14px 40px;
    }

    .pv-polls-masonry-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pv-page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .pv-page-heading h1 {
        font-size: 25px;
    }

    .pv-poll-inner-body {
        padding: 18px;
    }

    .pv-poll-main-question {
        font-size: 17px;
    }

    .pv-breaking-bar {
        padding: 0 12px;
        gap: 10px;
    }

    .pv-breaking-label {
        font-size: 10px;
        padding: 6px 8px;
    }
}
/* Ads section must occupy the complete poll grid width */
.pv-common-ads-section {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
   
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
}

/* Carousel must use full available width */
.pv-common-ads-carousel {
    display: block;
    width: 100%;
    min-width: 0;
}

/* Three ads visible in the same row */
.pv-common-ads-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.pv-common-ads-carousel .owl-item {
    display: flex;
    min-width: 0;
}

.pv-common-ads-carousel .pv-common-ad-slide {
    width: 100%;
    min-width: 0;
    padding: 5px;
    box-sizing: border-box;
}

.pv-common-ad-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e7e9f0;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
}

.pv-common-ad-image-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f3f4f8;
}

.pv-common-ad-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pv-common-ad-card-content {
    padding: 12px;
}

/* Full-width banner remains full width */
.pv-static-fullwidth-ad {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

.pv-fullwidth-ad-link {
    display: block;
    width: 100%;
    overflow: hidden;
}

.pv-fullwidth-ad-link img {
    display: block;
    width: 100%;
    height: auto;
}
/* Remove ad section background and outer box */
.pv-common-ads-section,
.pv-static-small-ads {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Keep carousel and dragging inside the section */
.pv-common-ads-carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.pv-common-ads-carousel .owl-stage-outer {
    overflow: hidden !important;
}

.pv-common-ads-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.pv-common-ads-carousel .owl-item {
    min-width: 0;
}

/* Remove navigation arrows */
.pv-common-ads-carousel .owl-nav {
    display: none !important;
}

/* Only dots */
.pv-common-ads-carousel .owl-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
}

.pv-common-ads-carousel .owl-dot {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 4px !important;
}

.pv-common-ads-carousel .owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: #d5d8e5 !important;
    border-radius: 50% !important;
}

.pv-common-ads-carousel .owl-dot.active span {
    width: 20px;
    background: #1a206d !important;
    border-radius: 8px !important;
}

/* Keep the ad cards within their slide */
.pv-common-ads-carousel .pv-common-ad-slide {
    width: 100%;
    min-width: 0;
    padding: 4px;
    box-sizing: border-box;
}

/* Remove unnecessary card backgrounds if desired */
.pv-common-ad-card {
    background: transparent !important;
    box-shadow: none !important;
}

/* Hide advertisement heading if you want only images */
.pv-static-small-ads .pv-common-ads-heading {
    display: none;
}

/* Full-width banner without a background box */
.pv-static-fullwidth-ad {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
@media (max-width: 767px) {
    .pv-common-ad-image-wrap {
        height: 150px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .css-marquee-wrapper {
        animation: none;
    }

    .pv-metric-fill-bar,
    .pv-poll-container-box {
        transition: none;
    }
}