.banner-hero {
    display: flex;
    width: 100%;
    height: 363px;
    background-image: url("../img/banner-hero.png");
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    position: relative;
}

.nav-hero {
    position: absolute;
    display: flex;
    justify-content: center;
    left: 0;
    right: 0;
}

.nav-hero .btn-home {
    display: none;
}

.section-hero {
    width: 100%;
    height: 100%;
}

.section-hero h1 {
    text-align: center;
    font-size: 48px;
    color: #fff;
}

.section-hero p {
    font-size: 16px;
    color: #fff;
}

.section-hero img {
    display: none;
}

.section-wrap {
    background-color: #001133;
}

.section-wrap h2 {
    width: 100%;
    text-align: center;
    font-size: 40px;
    color: #FF6B17;
}

.wrap-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    padding: 16px;
    background-color: #fff;
    position: relative;
    gap: 12px !important;
}

.card-banner {
    display: flex;
    position: relative;
}

.card-banner img {
    display: block;
    width: 100%;
    object-fit: cover;
}


.card-banner span {
    display: none;
    background-color: #fff;
    font-weight: 500;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    position: absolute;
    top: 22px;
    left: 16px;
}

.card-info {
    width: 100%;
    gap: 12px !important;
    flex: 1;
    /* ADICIONADO: Faz a caixa branca esticar até o fim do card */
}

.card-info h3 {
    color: #054CFF;
    font-size: 26px;
    height: 67px;
    line-height: 28px;
}

.wrap-acoes {
    width: 100%;
    height: 40px;
    display: flex;
    border-radius: 55px;
    margin-top: auto;
    /* ADICIONADO: Empurra os botões sempre para a base do card */
}

.btn-regulamento {
    width: 80%;
    text-align: left;
    height: 100%;
    border: none;
    background-color: transparent;
    color: #5c5c5c;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 55px;
}

.btn-link-laranja {
    height: 100%;
    width: 100%;
    background-color: #FF6B17;
    border-radius: 55px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;
    overflow: hidden;
    text-decoration: none;
}

.btn-link-laranja .txt-branco {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-right: auto;
    padding-left: 24px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.wrap-encerrado {
    background-color: #001C56;
}

.wrap-encerrado h2 {
    color: #fff;
}

.wrap-grid-encerrado {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.card-encerrado {
    width: 100%;
    background-color: #00133B;
    padding: 24px;
    border-radius: 24px;
}

.card-encerrado .justify-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Centraliza verticalmente o botão e o badge */
    gap: 8px;
    /* Dá um pequeno respiro para não colarem */
}

.card-image-encerrado {
    height: 135px;
    overflow: hidden;
    border-radius: 12px;
}

.card-encerrado img {
    width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transform: scale(1.0);
    transition: transform 0.2s ease;
}

.card-encerrado:hover img {
    transform: scale(1.1);
}

.card-encerrado h3 {
    font-size: 24px;
    height: 64px;
    line-height: 28px;
    color: #FF6B17;
}

.card-encerrado button {
    color: #849AC8;
    font-size: 12px;
    text-decoration: underline;
    border: none;
    cursor: pointer;
    background-color: transparent;
}

.card-encerrado span {
    padding: 6px 12px;
    font-size: 11px;
    /* Reduzido um pentelhésimo para caber confortavelmente */
    font-weight: 600;
    color: #991B1B;
    background-color: #FEE2E2;
    border-radius: 25px;

    /* AS MÁGICAS AQUI: */
    white-space: nowrap;
    /* Impede o texto de quebrar para a linha de baixo */
    flex-shrink: 0;
    /* Impede que o navegador amasse essa tag */
}

/* =========================================
   MODAL DE REGULAMENTOS
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 17, 51, 0.6);
    backdrop-filter: blur(8px);
    /* Efeito de Fundo Desfocado */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.ativo {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: #ffffff;
    width: 100%;
    max-width: 700px;
    border-radius: 24px;
    padding: 32px;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.modal-overlay.ativo .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #E4E4E4;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #575757;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: #FF6B17;
    color: #ffffff;
}

.modal-title {
    color: #054CFF;
    font-size: 24px;
    margin-bottom: 24px;
    padding-right: 40px;
}

.modal-content {
    overflow-y: auto;
    padding-right: 12px;
}

.modal-content p {
    color: #575757;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 10px;
}

footer {
    background-color: #00133B;
}

.footer-social a {
    background-color: #fff;
    width: 34px;
    height: 34px;
    fill: #020E26;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
}

.footer-social a:hover {
    background-color: #fff;
    transform: translateY(0px);
}

.footer-social img:hover {
    transition: filter 0.1s ease;
    filter: invert(48%) sepia(89%) saturate(1850%) hue-rotate(346deg) brightness(101%) contrast(101%);
}

.bottom-footer {
    background-color: #020E26;
}

.bottom-footer p {
    font-size: 10px;
    text-align: center;
    color: #fff;
}

footer .container {
    max-width: 430px;
}

@media screen and (min-width: 400px) {

    .nav-hero {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-hero a {
        display: block;
    }

    .section-hero img {
        display: none;
    }

    .section-hero p {
        text-align: center;
    }

    .section-wrap .container {
        max-width: 720px;
    }

    .section-wrap h2 {
        width: 100%;
        text-align: center;
        font-size: 40px;
        color: #FF6B17;
    }

    .card-banner img {
        display: block;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

    .footer-social a {
        background-color: #fff;
        width: 34px;
        height: 34px;
        fill: #020E26;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 25px;
    }

    .footer-social a:hover {
        background-color: #fff;
        transform: translateY(0px);
    }

    .wrap-card {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 769px) {

    .nav-hero {
        position: absolute;
        display: flex;
        justify-content: space-between;
        align-items: center;
        left: 0;
        right: 0;
    }

    .banner-hero {
        display: flex;
        width: 100%;
        height: 463px;
        background-image: url("../img/banner-hero.png");
        background-repeat: no-repeat;
        background-size: cover;
        overflow: hidden;
        position: relative;
    }

    .nav-hero .btn-home {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 22px;
        color: #0283FC;
        background-color: #fff;
        border-radius: 16px;
        font-size: 14px;
        font-weight: 500;
        transition: padding 0.2s ease, margin 0.2s ease;
    }

    .btn-home:hover {
        padding: 12px 28px;
        margin: -6px;
    }

    .section-hero img {
        display: block;
        margin-top: 132px;
        height: 620px;
    }

    .banner-hero .container {
        width: 798px;
    }

    .section-hero h1 {
        font-size: 54px;
        color: #fff;
    }

    .section-hero p {
        text-align: left;
    }

    .wrap-card {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .section-wrap h2 {
        width: 100%;
        text-align: center;
        font-size: 40px;
        color: #FF6B17;
    }

    .card {
        width: 100%;
        overflow: hidden;
        border-radius: 25px;
        padding: 16px;
        background-color: #fff;
        position: relative;
        gap: 12px !important;
    }

    .card-banner {
        display: flex;
        position: relative;
    }

    .card-banner span {
        display: none;
        background-color: #fff;
        font-weight: 500;
        font-size: 12px;
        padding: 4px 12px;
        border-radius: 12px;
        position: absolute;
        top: 22px;
        left: 16px;
    }

    .card-info {
        width: 100%;
        gap: 12px !important;
    }

    .card-info h3 {
        color: #054CFF;
        font-size: 26px;
        height: 67px;
        line-height: 32px;
    }

    .wrap-acoes {
        width: 100%;
        height: 40px;
        display: flex;
        border-radius: 55px;
        gap: 20px;
    }

    .btn-regulamento {
        width: 100%;
        height: 100%;
        border: none;
        background-color: transparent;
        color: #5c5c5c;
        text-decoration: underline;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        border-radius: 55px;
    }

    .btn-link-laranja {
        height: 100%;
        width: 100%;
        background-color: #FF6B17;
        border-radius: 55px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 14px;
        overflow: hidden;
        text-decoration: none;
    }

    .btn-link-laranja .txt-branco {
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        margin-right: auto;
        padding-left: 24px;
        white-space: nowrap;
        transition: opacity 0.2s ease;
    }

    .wrap-grid-encerrado {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-wrap .container {
        max-width: 798px;
    }

    .card-encerrado {
        width: 345px;
    }

    .wrap-encerrado .container {
        max-width: 730px;
    }

    footer .container {
        max-width: 730px;
    }
}

@media screen and (min-width: 1160px) {

    .banner-hero .container {
        width: 1095px;
    }

    .section-hero h1 {
        font-size: 72px;
        color: #fff;
    }

    .wrap-card {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .section-wrap h2 {
        width: 100%;
        text-align: left;
        font-size: 40px;
        color: #FF6B17;
    }

    .section-wrap .container {
        max-width: 980px;
    }

    .card {
        width: 300px;
        overflow: hidden;
        border-radius: 25px;
        padding: 0;
        position: relative;
        background-color: #ffffff;
        /* Correção para o vazamento escuro da borda */
    }

    .card::before {
        content: "";
        position: absolute;
        top: 100px;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1;
    }

    .card-banner {
        display: flex;
        position: relative;
        margin-bottom: -85px;
    }

    .card-banner img {
        display: block;
        width: 100%;
        object-fit: cover;
        transform: scale(1.2);
        transition: transform 0.2s ease;
    }

    .card-banner:hover img {
        transform: scale(1.02);
        /* Escala de 1.02 evita o vazamento do fundo */
    }

    .card-banner span {
        background-color: #fff;
        font-weight: 500;
        font-size: 12px;
        padding: 4px 12px;
        border-radius: 12px;
        position: absolute;
        top: 22px;
        left: 16px;
    }

    .card-info {
        width: 100%;
        background-color: #fff;
        margin-top: 6px;
        padding: 18px 16px 16px;
        border-radius: 25px 25px 0 0;
        z-index: 2;
        transition: transform 0.2s ease;
    }

    .card-banner:hover+.card-info {
        transform: translateY(57px);
    }

    .card-info h3 {
        color: #054CFF;
        font-size: 26px;
        height: 67px;
        line-height: 32px;
    }

    .wrap-acoes {
        position: relative;
        width: 100%;
        height: 40px;
        border-radius: 55px;
    }

    .btn-regulamento {
        width: calc(100% - 47px);
        height: 100%;
        border: none;
        background-color: #E4E4E4;
        font-size: 13px;
        font-weight: 500;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        border-radius: 55px;
        transition: all 0.2s ease;
    }

    .btn-regulamento:hover {
        color: #3d3d3d;
        background-color: #cacaca;
    }

    .btn-link-laranja {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 39px;
        background-color: #FF6B17;
        border-radius: 55px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 14px;
        transition: width 0.2s ease;
        overflow: hidden;
        text-decoration: none;
        z-index: 2;
    }

    .btn-link-laranja .txt-branco {
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        opacity: 0;
        margin-right: auto;
        padding-left: 24px;
        white-space: nowrap;
        transition: opacity 0.2s ease;
    }

    .btn-link-laranja:hover {
        width: 100%;
    }

    .btn-link-laranja:hover .txt-branco {
        opacity: 1;
    }

    .wrap-grid-encerrado {
        grid-template-columns: repeat(3, 1fr);
    }

    .wrap-encerrado .container {
        max-width: 1100px;
    }

    .footer-social a {
        background-color: #fff;
        width: 34px;
        height: 34px;
        fill: #020E26;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 25px;
        transition: transform 0.2s ease;
    }

    .footer-social a:hover {
        background-color: #FF6B17;
        transform: translateY(-5px);
    }

    footer .container {
        max-width: 1100px;
    }
}

@media screen and (min-width: 1540px) {

    .nav-hero {
        position: absolute;
        display: flex;
        justify-content: space-between;
        align-items: center;
        left: 0;
        right: 0;
    }

    .banner-hero .container {
        width: 1350px;
    }

    .section-hero h1 {
        font-size: 72px;
        color: #fff;
    }

    .wrap-card {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .section-wrap h2 {
        width: 100%;
        font-size: 40px;
        color: #FF6B17;
    }

    .section-wrap .container {
        max-width: 1350px;
    }

    .card {
        width: 300px;
        overflow: hidden;
        border-radius: 25px;
        position: relative;
        background-color: #ffffff;
        /* Correção para o vazamento escuro da borda */
    }

    .card::before {
        content: "";
        position: absolute;
        top: 100px;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1;
    }

    .card-banner {
        display: flex;
        position: relative;
        margin-bottom: -85px;
    }

    .card-banner img {
        display: block;
        width: 100%;
        object-fit: cover;
        transform: scale(1.2);
        transition: transform 0.2s ease;
    }

    .card-banner:hover img {
        transform: scale(1.02);
        /* Escala de 1.02 evita o vazamento do fundo */
    }

    .card-banner span {
        background-color: #fff;
        font-weight: 500;
        font-size: 12px;
        padding: 4px 12px;
        border-radius: 12px;
        position: absolute;
        top: 22px;
        left: 16px;
    }

    .card-info {
        width: 100%;
        background-color: #fff;
        margin-top: 6px;
        padding: 18px 16px 16px;
        border-radius: 25px 25px 0 0;
        z-index: 2;
        transition: transform 0.2s ease;
    }

    .card-banner:hover+.card-info {
        transform: translateY(57px);
    }

    .card-info h3 {
        color: #054CFF;
        font-size: 26px;
        height: 67px;
        line-height: 32px;
    }

    .wrap-acoes {
        position: relative;
        width: 100%;
        height: 40px;
        border-radius: 55px;
    }

    .btn-link-laranja {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 39px;
        background-color: #FF6B17;
        border-radius: 55px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 14px;
        transition: width 0.2s ease;
        overflow: hidden;
        text-decoration: none;
        z-index: 2;
    }

    .btn-link-laranja .txt-branco {
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        opacity: 0;
        margin-right: auto;
        padding-left: 24px;
        white-space: nowrap;
        transition: opacity 0.2s ease;
    }

    .btn-link-laranja:hover {
        width: 100%;
    }

    .btn-link-laranja:hover .txt-branco {
        opacity: 1;
    }

    .wrap-grid-encerrado {
        grid-template-columns: repeat(4, 1fr);
    }

    footer .container {
        max-width: 1300px;
    }

    /* Redefinição removida pois já estava especificado acima com a cor branca. */
    .card {
        width: 100%;
        overflow: hidden;
        border-radius: 25px;
        position: relative;
        background-color: #ffffff;
        /* Correção para o vazamento escuro da borda */
    }
}