.result-progress {
    height: 30px;
    background-color: #f0f0f0;
}
.progress-bar-yes {
    background-color: #0A2647;
    margin-left: -7px;
    border-radius: 20px;
}
.progress-bar-no {
    background-color: #FF6B6B;
    margin-left: -7px;
    border-radius: 20px;
}
.progress-bar-probably {
    background-color: #212529;
    margin-left: -7px;
    border-radius: 20px;
}
.vote-count {
    color: #6c757d;
    font-size: 0.9em;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}
.progress-bar {
    cursor: pointer;
}
.carousel-item {
    position: relative;
    /*height: 586px;*/
    aspect-ratio: 8 / 4.5;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(90deg, rgba(26, 54, 93, 0.9) 0%, rgba(255, 255, 255, 0) 100%);*/
    pointer-events: none; /* Allow clicks through the overlay */
    z-index: 1; /* Set overlay behind caption */
}

.carousel-caption {
    /*position: relative; !* Ensure it respects z-index *!*/
    z-index: 2; /* Bring caption above overlay */
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: left;
    left: 0;
    right: 0;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-indicators {
    bottom: 20px;
    left: 30%;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

@media (max-width: 991.98px) {
    .carousel-caption h1 {
        font-size: 1.1rem;
        line-height: 1.5;
    }

}
@media (max-width: 767px) {
    .carousel-control-next, .carousel-control-prev {
        top: 27% !important;
        bottom: unset;
    }
    /*.carousel-inner{*/
    /*    border-radius: unset !important;*/
    /*    height: 300px !important;*/
    /*}*/

}













/*.profile-img{*/
/*    width: 100px !important;*/
/*    height: 100px !important;*/
/*    margin-top: -14px;*/
/*}*/
/*.opinion-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
/*    gap: 2rem; !* Space between cards *!*/
/*    padding: 1rem 0;*/
/*    position: relative;*/
/*}*/

/*.opinion-card {*/
/*    position: relative; !* For inner lines and consistent layout *!*/
/*    background: #f8f9fa; !* Light background *!*/
/*    border-radius: 8px; !* Smooth card edges *!*/
/*    padding: 1rem;*/
/*    overflow: hidden;*/
/*    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
/*}*/

/* Horizontal line within the card */
/*.card-content {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    padding-bottom: 1rem;*/
/*    border-bottom: 1px solid #dee2e6;*/
/*}*/

/*.card-content:last-child {*/
/*    border-bottom: none; !* Remove last horizontal line in card *!*/
/*}*/

/*.opinion-topics {*/
/*    font-size: 1.2rem;*/
/*    font-weight: bold;*/
/*    margin-bottom: 0.5rem;*/
/*    color: #343a40;*/
/*}*/

/*.opinion-by {*/
/*    font-size: 0.9rem;*/
/*    color: #6c757d;*/
/*}*/

/*.profile-img {*/
/*    width: 70px;*/
/*    height: 70px;*/
/*    object-fit: cover;*/
/*    border: 2px solid #adb5bd; !* Slight border around image *!*/
/*    border-radius: 50%;*/
/*}*/

/*!* Vertical line between cards *!*/
/*.opinion-card:not(:last-child)::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    right: -1rem; !* Slightly offset to avoid overlapping shadow *!*/
/*    width: 1px;*/
/*    height: 100%;*/
/*    background-color: #dee2e6;*/
/*}*/

/*@media (max-width: 768px) {*/
/*    .card-content {*/
/*        flex-direction: column;*/
/*        text-align: center;*/
/*    }*/

/*    .profile-img {*/
/*        !*margin-top: 1rem;*!*/
/*    }*/

/*    .opinion-card::after {*/
/*        display: none; !* Hide vertical lines on smaller screens *!*/
/*    }*/
/*}*/








/*New Version*/
.opinion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusts the column layout for responsiveness */
    gap: 2rem; /* Space between cards */
    padding: 1rem 0;
}

.opinion-card {
    position: relative; /* For pseudo-element positioning */
    padding: 0.5rem;
}

@media (min-width: 1025px) {
    /* Add vertical line between columns */
    .opinion-card:not(:nth-child(3n))::after {
        content: '';
        position: absolute;
        top: 0;
        right: -18px;
        width: 1px;
        height: 100%;
        background-color: #dee2e6;
    }


}



/* Horizontal separator inside each card */
.card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.card-content:last-child {
    border-bottom: none; /* Remove the bottom border from the last child */
}

.opinion-topics {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #343a40;
}

.opinion-by {
    font-size: 0.9rem;
    color: #6c757d;
}

.profile-img {
    width: 100px;
    height: 100px;
    margin-top: -14px;
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .card-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        margin-top: 0.1rem;
    }

    .opinion-card::after {
        display: none; /* Hide vertical lines on smaller screens */
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .opinion-card:not(:nth-child(2n))::after { /* Adjust number for column-based layout */
        content: '';
        position: absolute;
        top: 0;
        right: -18px;
        width: 1px;
        height: 100%;
        background-color: #dee2e6;
    }

}