:root {
    /* Colors */
    --colors-main: #370808;
    --colors-second: #E60000;
    --colors-blue: #1C1D74;
    --colors-lightblue: #66EBFE;
    --colors-pink: #FF25AA;
    --colors-white: #ffffff;
    --colors-black: #131313;
    --colors-yellow: #f3e38b;
    --colors-grey: #535353;
    --colors-greyish: #f5f5f5;

    /* Headings & Paragraphs */
    --vot-font: "Ubuntu", sans-serif;
    --vot-h1: 2rem;
    --vot-h2: 1.7rem;
    --vot-h3: 1.4rem;
    --vot-h4: 1.3rem;
    --vot-h5: 1.1rem;
    --vot-p: 1rem;
    --vot-light: 300;
    --vot-regular: 400;
    --vot-medium: 500;
    --vot-bold: 700;
    --vot-small: 0.75rem;
}

* {
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

.page-body {
    /* background-image: url("../images/vote/background-VR.png"); */
    background-color: var(--colors-main);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    padding-bottom: 50px !important;
}

.page-wrapper {
    overflow: visible;
    position: relative;
    min-height: 100vh;
    pointer-events: none;
}

.sequence__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-wrapper .page-body-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: all;
    background-color: transparent;
    min-height: 100vh;
    height: 100%;
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body {
    min-height: 100vh;
}

.voting-hero {
    background-image: url("../images/vote/header_vocea_sezon_curent2.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    aspect-ratio: 20 / 7;
}

.header-hero .container {
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1000px;
    position: relative;
    display: block;
    margin: 0 auto;
    z-index: 1;
}

.white-container {
    background-color: var(--colors-white);
}

.grayish-container {
    background-color: var(--colors-greyish);
}

.bg-main {
    background-color: var(--colors-second);
}

.bg-second {
    background-color: var(--colors-main);
}

.bg-tert {
    background-color: var(--colors-blue);
}

.main-title {
    font-family: var(--vot-font);
    font-size: var(--vot-h1);
    font-weight: var(--vot-bold);
    color: var(--colors-black);
    padding: 30px 0;
    margin: 0 auto;
}

.main-intro {
    font-family: var(--vot-font);
    font-size: var(--vot-h4);
    font-weight: var(--vot-medium);
    color: var(--colors-black);
}

.cta-content {
    font-family: var(--vot-font);
    font-size: var(--vot-p);
    font-weight: var(--vot-regular);
    color: var(--colors-black);
    margin-bottom: 0;
}

.cta-content strong {
    color: var(--colors-pink);
}

.cta-content a {
    color: var(--colors-main);
    font-weight: var(--vot-bold);
    cursor: pointer;
    text-transform: uppercase;
}

.cta-content a:hover {
    text-decoration: underline;
}

.cta-small {
    font-family: var(--vot-font);
    font-size: var(--vot-small);
    font-weight: var(--vot-light);
    color: var(--colors-black);
}

.concurent {
    position: relative;
    display: block;
}

.concurent .figure-concurent {
    max-width: 220px;
    position: relative;
    display: block;
    margin: 0 auto;
}

.concurent .figure-concurent .figure-caption {
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
    font-weight: var(--vot-medium);
    margin: 15px 0;
    color: var(--colors-black);
    font-size: 14px;
}

.concurent .figure-concurent div {
    position: absolute;
    bottom: 44px;
    right: 0;
    background: var(--colors-second);
    width: 50%;
    height: 30px;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.concurent .figure-concurent div span {
    position: absolute;
    bottom: 5px;
    right: 20px;
    color: var(--colors-black);
    text-transform: uppercase;
    font-weight: var(--vot-medium);
}

.concurent .figure-concurent img {
    border-radius: 15px;
    border: 2px solid var(--colors-second);
    width: 100% !important;
    height: 220px;
    object-fit: cover;
    object-position: top;
}

/* Modal Voting */
.modal-dialog {
    width: 100%;
    max-width: 500px;
}

.modal-content {
    border: none !important;
    border-radius: 0 !important;
    background-color: var(--colors-main);
    /* background-image: url("../images/vote/background-VR.png"); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;*/
    min-height: 300px;
    z-index: 10;
}

.modal-content .modal-header {
    border: none !important;
}

.modal-content .modal-header .close {
    color: #fff;
    opacity: 0.8;
    transition: all 0.3s ease-in-out;
}

.modal-content .modal-body h4 {
    color: var(--colors-white);
    margin-bottom: 20px;
}

.modal-content .modal-body h4 span {
    color: var(--colors-black);
    text-transform: capitalize;
    font-size: var(--vot-p);
}

.modal-content .modal-body h5 {
    color: var(--colors-white);
    font-size: var(--vot-p);
}

.modal-content .modal-body form input {
    padding: 10px 30px;
    margin: 10px auto;
}

.modal-content .modal-body form input[type="text"] {
    width: 100%;
    border-radius: 4px;
}

.modal-content .modal-body form .form-group input[type="submit"] {
    background-color: var(--colors-second);
    border: none !important;
    border-radius: 4px;
    color: var(--colors-white);
    text-transform: uppercase;
    font-weight: var(--vot-medium);
}

.form-group input[type="submit"] {
    backface-visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.form-group input[type="submit"]:hover {
    backface-visibility: hidden;
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
}

.modal-body .voteaza {
    opacity: 1 !important;
}

#overlayDiv {
    display: none;
    width: 100%;
    height: 100%;
    background: #000000b0;
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.modal-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.close-button {
    background: var(--colors-second);
    border: 0;
    border-radius: 48%;
    width: 30px;
    height: 30px;
    position: absolute;
    right: -12px;
    top: -14px;
    color: var(--colors-white);
    font-size: 18px;
    text-align: center;
}

.footer-reg {
    display: block;
    position: relative;
    margin: 30px auto;
}

.footer-reg a {
    color: var(--colors-main);
    cursor: pointer;
    font-weight: 500;
}

.footer-reg a:hover {
    text-decoration: underline;
    cursor: pointer;
}

.validation-height {
    display: block;
    position: relative;
    height: 200px;
}

.validation-height p {
    margin: 60px auto;
}

#tapad_url {
    display: none;
    height: 0;
}

.parent {
    padding: 15px;
    display: grid;
    grid-column-gap: 1rem;
    grid-row-gap: 2rem;
    grid-template-columns: repeat(4, 1fr);
    /* default: 4 columns for 8+ items */
}

/* 1 item */
.parent:has(:nth-child(1)):not(:has(:nth-child(2))) {
    grid-template-columns: 1fr;
}

/* 2 items & 4 items : 2 columns */
.parent:has(:nth-child(2)):not(:has(:nth-child(3))),
.parent:has(:nth-child(4)):not(:has(:nth-child(5))) {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 items & 5-6 items : 3 columns */
.parent:has(:nth-child(3)):not(:has(:nth-child(4))),
.parent:has(:nth-child(5)):not(:has(:nth-child(7))) {
    grid-template-columns: repeat(3, 1fr);
}

/* 7-8 items : 4 columns */
.parent:has(:nth-child(7)):not(:has(:nth-child(9))) {
    grid-template-columns: repeat(4, 1fr);
}

.div1,
.div2,
.div3,
.div4,
.div5,
.div6,
.div7,
.div8,
.div9,
.div10,
.div11,
.div12 {
    max-width: none;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--colors-white);
    padding: 10px;
    /* border-radius: 6px; */
}

.div1:hover,
.div2:hover,
.div3:hover,
.div4:hover,
.div5:hover,
.div6:hover,
.div7:hover,
.div8:hover,
.div9:hover,
.div10:hover,
.div11:hover,
.div12:hover,
.div1:focus,
.div2:focus,
.div3:focus,
.div4:focus,
.div5:focus,
.div6:focus,
.div7:focus,
.div8:focus,
.div9:focus,
.div10:focus,
.div11:focus,
.div12:focus {
    border: 1px solid var(--colors-second);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.div1:hover .wrap-image img,
.div2:hover .wrap-image img,
.div3:hover .wrap-image img,
.div4:hover .wrap-image img,
.div5:hover .wrap-image img,
.div6:hover .wrap-image img,
.div7:hover .wrap-image img,
.div8:hover .wrap-image img,
.div9:hover .wrap-image img,
.div10:hover .wrap-image img,
.div11:hover .wrap-image img,
.div12:hover .wrap-image img,
.div1:focus .wrap-image img,
.div2:focus .wrap-image img,
.div3:focus .wrap-image img,
.div4:focus .wrap-image img,
.div5:focus .wrap-image img,
.div6:focus .wrap-image img,
.div7:focus .wrap-image img,
.div8:focus .wrap-image img,
.div9:focus .wrap-image img,
.div10:focus .wrap-image img,
.div11:focus .wrap-image img,
.div12:focus .wrap-image img {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

.svg-indicators-inline {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 2px 0 0 0;
}

.svg-indicators {
    display: flex;
}

.svg-indicators .filled {
    fill: var(--colors-white);
}

.svg-indicators .stroked {
    stroke: var(--colors-lightblue);
    stroke-width: 1;
}

.svg-indicators.voted .filled {
    fill: var(--colors-lightblue);
}

.svg-indicators.voted .stroked {
    stroke: var(--colors-lightblue);
    stroke-width: 1;
}

.voteaza {
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.voteaza:hover {
    /* opacity: 0.8; */
    transition: all 0.3s ease-in-out;
}

.vote-label {
    position: absolute;
    bottom: -1px;
    right: 5px;
    background-color: var(--colors-second);
    color: var(--colors-white);
    padding: 5px 20px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0px;
    border-radius: 12px 0 12px 0;
    border: 1px solid var(--colors-white);
    transform: skewX(-10deg);
}

.voteaza-btn {
    display: block;
    width: 100%;
    margin: 0 auto 0 auto;
    text-align: center;
    background-color: var(--colors-second);
    color: var(--colors-white);
    padding: 10px 0;
    font-weight: var(--vot-medium);
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 12px 0 12px 0;
    border: 1px solid var(--colors-white);
    transform: skewX(-10deg);
}

.voteaza:hover .vote-label,
.voteaza:focus .vote-label {
    background-color: var(--colors-lightblue);
    color: var(--colors-black);
}

.voteaza:hover .voteaza-btn,
.voteaza:focus .voteaza-btn,
.voteaza-btn:hover,
.voteaza-btn:focus {
    background-color: var(--colors-blue);
    color: var(--colors-white);
    transition: all 0.3s ease-in-out;
}

.border-radius {
    border-radius: 6px;
}

.footer {
    background-color: var(--colors-blue);
    -webkit-box-shadow: 0 0 20px rgba(89, 102, 122, 0.1);
    box-shadow: 0 0 20px rgba(89, 102, 122, 0.1);
}
.footer-copyright {
    color: var(--colors-white);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    padding: 15px 0;
}
.nav-voting-sessions {
    border: unset;
    padding: 1rem 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: auto;
}

.nav-voting-sessions .nav-link {
    border: unset;
    font-weight: 500;
}

.nav-voting-sessions .nav-link {
    color: var(--colors-black);
    border-radius: 4px;
    padding: 10px 15px;
    margin-right: 10px;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
}

.nav-voting-sessions .nav-link.active,
.nav-voting-sessions .nav-item.show .nav-link {
    color: var(--colors-black);
    background-color: var(--colors-lightblue);
    border: unset;
}

@media screen and (max-width: 992px) {

    .parent {
        grid-column-gap: 1rem;
        grid-row-gap: 1rem;
        grid-template-columns: repeat(3, 1fr);
        /* tablet: max 3 */
    }

    .parent:has(:nth-child(1)):not(:has(:nth-child(2))) {
        grid-template-columns: 1fr;
    }

    .parent:has(:nth-child(2)):not(:has(:nth-child(3))) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .parent {
        grid-template-columns: repeat(2, 1fr);
        /* mobile: max 2 */
    }

    .parent:has(:nth-child(1)):not(:has(:nth-child(2))) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .parent {
        grid-template-columns: 1fr;
        /* small mobile: 1 column always */
    }
}

.wrap-image {
    position: relative;
    aspect-ratio: 1 / 1 auto;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.wrap-image img {
    object-position: top center;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media (max-width: 1020px) {
    .vote-label {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .page-wrapper.compact-wrapper .page-body-wrapper .page-body {
        margin-top: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .modal-dialog {
        max-width: 300px;
    }

    .nav-voting-sessions {
        display: flex !important;
        flex-wrap: nowrap;
        flex-direction: row;
        overflow: auto;
    }

    .parent,
    /* 2 items → 2 columns */
    .parent:has(:nth-child(2)):not(:has(:nth-child(3))),
    /* 3 items → 3 columns */
    .parent:has(:nth-child(3)):not(:has(:nth-child(4))),
    /* 4 items → 2 columns (2×2) */
    .parent:has(:nth-child(4)):not(:has(:nth-child(5))),
    /* 5-6 items → 3 columns */
    .parent:has(:nth-child(5)):not(:has(:nth-child(7))) {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        grid-column-gap: .25rem;
        grid-row-gap: .25rem;
    }

}

@media (max-width: 390.98px) {

    .parent,
    /* 2 items → 2 columns */
    .parent:has(:nth-child(2)):not(:has(:nth-child(3))),
    /* 3 items → 3 columns */
    .parent:has(:nth-child(3)):not(:has(:nth-child(4))),
    /* 4 items → 2 columns (2×2) */
    .parent:has(:nth-child(4)):not(:has(:nth-child(5))),
    /* 5-6 items → 3 columns */
    .parent:has(:nth-child(5)):not(:has(:nth-child(7))) {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-column-gap: 1rem;
        grid-row-gap: 1rem;
    }

    .div1,
    .div2,
    .div3,
    .div4,
    .div5,
    .div6,
    .div7,
    .div8,
    .div9,
    .div10,
    .div11,
    .div12 {
        grid-area: auto !important;
    }
}