.election-period {
    background: linear-gradient(90deg, #EEEEEE 0%, #D9F2EF 100%);
    border: 0.0625rem solid #C5C5C5;
    border-radius: 1rem;
    padding: 0 3.125rem 0 0;
    margin: 2rem 0;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-height: 19.4375rem;
    height: 19.4375rem;
    overflow: hidden;
}
.election-period h2 {
    color: #005baa;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}
.election-period p {
    color: #222;
    font-size: 1.1rem;
    margin: 0;
}
.election-period img {
    height: 100%;
    max-height: 19.4375rem;
    width: auto;
    padding: 0 !important;
    margin: 0;
    background: none;
    box-shadow: none;
    object-fit: cover;
    object-position: 60% center !important;
    display: block;
}
.election-period .card-body {
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.election-period > .card-body.d-flex.align-items-center.w-100 {
    padding: 0 !important;
}
.election-period > .card-body.d-flex.align-items-center.w-100 img {
    margin: 0;
    padding: 0 !important;
    background: none;
    box-shadow: none;
    height: 100%;
    max-height: 19.4375rem;
    width: auto;
    object-fit: contain;
    display: block;
}
.election-period .flex-grow-1,
.election-period .flex-grow-1 * {
    flex-grow: unset;
    width: 100%;
    box-sizing: border-box;
}

/* ====== Alto Contraste (Apenas Cores) ====== */
body.body-contraste .election-period {
    background: #000 !important;
    border-color: #FFF !important;
    box-shadow: none !important;
}

body.body-contraste .election-period .card-body,
body.body-contraste .election-period .election-period-content {
    background: #000 !important;
}

body.body-contraste .election-period div,
body.body-contraste .election-period span {
    color: #FFF !important;
}

@media (max-width: 991.98px) {
    .election-period {
        width: 100%;
        max-height: none;
        height: auto;
        padding: 0;
        margin: 1.5rem 0;
        overflow: hidden;
        display: block;
    }

    .election-period .card-body,
    .election-period .election-period-content,
    .election-period > .card-body.d-flex.align-items-center.w-100 {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 1rem 1rem 0 !important;
        display: flex;
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem !important;
        box-sizing: border-box;
    }

    .election-period .election-period-img-container {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        width: calc(100% + 2rem) !important;
        max-width: calc(100% + 2rem) !important;
        margin-right: -1rem;
        margin-left: -1rem;
        margin-top: 0.25rem;
        order: 2;
    }

    .election-period img,
    .election-period > .card-body.d-flex.align-items-center.w-100 img {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        max-height: none;
        margin-top: 3.5rem !important;
        object-fit: contain;
        object-position: right bottom !important;
        border-radius: 0 0 0.75rem 0.75rem !important;
    }

    .election-period .flex-grow-1 {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem !important;
        order: 1;
    }

    .election-period .flex-grow-1 > div {
        width: 100%;
        min-width: 0;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .election-period .flex-grow-1 > div:first-child {
        font-size: 2rem !important;
        line-height: 1.1 !important;
    }

    .election-period .flex-grow-1 > div:nth-child(2) {
        font-size: 1.125rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 575.98px) {
    .election-period {
        border-radius: 0.75rem;
        margin: 1rem 0;
    }

    .election-period .election-period-img-container {
        width: calc(100% + 2.5rem) !important;
        max-width: calc(100% + 2.5rem) !important;
        margin-right: -1.25rem;
        margin-left: -1.25rem;
    }

    .election-period img,
    .election-period > .card-body.d-flex.align-items-center.w-100 img {
        height: 17.5rem !important;
        object-fit: cover;
        object-position: 68% bottom !important;
    }

    .election-period .card-body,
    .election-period .election-period-content,
    .election-period > .card-body.d-flex.align-items-center.w-100 {
        padding: 0rem 0rem 0 !important;
    }

    .election-period .flex-grow-1 {
        padding: 2rem 1.5rem 0rem 1.5rem;
        gap: 1rem !important;
    }

    .election-period .flex-grow-1 > div:first-child {
        width: 100%;
        max-width: none;
        margin-right: 0;
        font-size: 2.5rem !important;
        line-height: 1.03 !important;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .election-period .election-period-title-line {
        display: block;
    }

    .election-period .flex-grow-1 > div:nth-child(2) {
        font-size: 1rem !important;
    }
}
