
/* RESPONSIVE OVERRIDES FOR DASH HOME AND HEADER */
@media (max-width: 1200px) {
    #top-header {
        height: auto !important;
        margin-top: 20px !important;
    }
    #my-results {
        margin-top: 15px;
    }
    #my-results .d-flex {
        justify-content: center !important;
    }
    #my-results .itens {
        margin-bottom: 10px;
        margin-left: 5px;
        margin-right: 5px;
        margin-left: 0 !important; /* Reset default margin-left */
        margin-top: 5px !important;
    }
    /* .context-page {
        padding: 0 15px;
    } */
}

@media (max-width: 768px) {
    #logo-top {
        margin-right: 0 !important;
        margin-bottom: 5px !important;
        display: flex;
        justify-content: center;
        width: 100% !important;
        order: 1; /* Force logo to be first */
    }
    #top-page-name {
        text-align: center !important;
        width: 100% !important;
        order: 2; /* Force title to be second */
        margin-top: 5px !important;
    }
    #top-page-name p {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    .txt-link-card-home {
        font-size: 16px !important;
    }
    .dash-home .menu-category .item-menu {
        height: 110px !important;
    }
    .item-menu    .quizz-info {
        font-size: 12px !important;
    }

    /* CONTATO PAGE RESPONSIVE */
    .contact-page, .contato-page {
        margin-top: 40px !important;
    }
    .form-contato .info-form-contato {
        font-size: 14px !important;
        text-align: center;
        br { display: none; }
    }
    .form-contato .list-contacts {
        padding-left: 0;
        text-align: center;
        list-style: none;
    }
    .form-contato label {
        font-size: 14px !important;
    }
    .form-contato .btn-enviar-contato {
        width: 100% !important;
        margin-top: 10px;
    }
    .btn-group-contacts .contact-whats {
        width: 100% !important;
        margin-top: 20px;
        text-align: center;
    }
    .item-menu .iconlink {
        font-size: 24px !important;
    }
    #top-menu .dropdown-toggle {
        font-size: 18px !important;
    }
    #my-results .itens {
        /* font-size: 14px !important; */
        height: auto !important;
        padding: 5px 10px !important;
    }
    #my-results .user-name {
        width: 100% !important;
        text-align: center;
    }
    #my-results .user-points {
        width: calc(50% - 5px) !important;
        margin-right: 5px !important;
    }
    #my-results .user-position {
        width: calc(50% - 5px) !important;
        margin-left: 5px !important;
    }
    #my-results .btn-logout {
        width: 100% !important;
        margin-top: 5px;
    }
    #my-results .btn-logout a {
        justify-content: center;
    }
    .ranking-filters {
        width: 100% !important;
    }
    .btn-type-ranking {
        font-size: 24px !important;
    }
    .ranking-grid .line-header, .ranking-grid .line-result, .ranking-grid .line-result-first {
        font-size: 14px !important;
    }
    .ident15 {
        text-indent: 5px !important;
    }

    /* PREMIAÇÕES PAGE RESPONSIVE */
    .premiacoes-page .p-title {
        font-size: 24px !important;
        text-align: center;
    }
    .premiacoes-page .descricao {
        font-size: 14px !important;
        text-align: center;
        margin-bottom: 20px;
    }
    .premiacoes-page .btn-portal .link-portal {
        font-size: 18px !important;
        padding: 15px 10px !important;
    }
    .premiacoes-page .descricao-premio .p-title {
        text-align: center;
    }
    .premiacoes-page .img-destaque {
        width: 100% !important;
        height: auto !important;
        margin-top: 15px;
    }
    .premiacoes-page .img-detail {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 10px;
    }
    .premiacoes-page .frase-efeito {
        font-size: 20px !important;
        margin-top: 30px !important;
    }

    /* FIX FOR RANKING ROW ALIGNMENT WHEN WRAPPING */
    .ranking-grid .row.line-result, 
    .ranking-grid .row.line-result-first {
        display: flex !important;
        align-items: center !important;
    }
    .ranking-grid .row.line-result > div,
    .ranking-grid .row.line-result-first > div {
        border-top: none !important;
        border-bottom: none !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    /* DESAFIO DO CRAQUE RESPONSIVE */
    .box-desafio {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        min-height: 480px !important;
        padding: 30px 15px !important;
    }
    .box-desafio .title {
        font-size: 24px !important;
        height: auto !important;
        margin-bottom: 15px;
    }
    .box-desafio .level, .box-desafio .points .stars {
        font-size: 20px !important;
    }
    .box-desafio .btn-aceite-desafio {
        font-size: 18px !important;
        height: auto !important;
        padding: 10px 5px !important;
        margin-top: 20px !important;
    }
    .modal-informacaoes-desafio-craque {
        padding: 20px !important;
        min-height: auto !important;
    }
    .modal-informacaoes-desafio-craque .card-title {
        font-size: 22px !important;
    }
    .modal-informacaoes-desafio-craque .card-text {
        font-size: 14px !important;
    }
    .btn-close-info {
        top: 10px !important;
        right: 10px !important;
    }
}

/* SWIPER STATIC CONTROLS (Common for all screens) */
.swiper-controls-container .static-control {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-controls-container .swiper-button-prev,
.swiper-controls-container .swiper-button-next {
    width: 40px !important;
    height: 40px !important;
    background-color: #cecece;
    border-radius: 50%;
    color: #7E5D19 !important;
}

.swiper-controls-container .swiper-button-prev:after,
.swiper-controls-container .swiper-button-next:after {
    font-size: 16px !important;
}

.swiper-controls-container .swiper-pagination {
    width: auto !important;
    display: flex;
    gap: 5px;
}

.swiper-scrollbar {
    position: relative !important;
    margin-top: 10px;
}
