/* Configurações gerais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Apenas títulos de páginas com fonte cursiva */
.custom-heading {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
}

/* Títulos normais mantêm fonte padrão */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

/* Estilos para campanhas */
.campanha-img {
    width: 100%;
    height: 200px; /* Ajuste a altura conforme necessário */
    object-fit: cover; /* Mantém a proporção da imagem */
}

.card-body {
    text-align: center; /* Centraliza o texto dentro do card */
}

.descricao {
    text-align: center; /* Centraliza o texto de descrição */
}

.progress {
    height: 20px; /* Altura da barra de progresso */
}

.progress-bar {
    background-color: #007bff; /* Cor da barra de progresso */
}

/* Responsividade para o botão de voltar nas conquistas */
.btn-voltar[href*='conquistas'] {
    /* Mantém o estilo padrão, mas pode ser sobrescrito abaixo */
}

@media (max-width: 768px) {
  .btn-voltar[href*='conquistas'] {
    top: 120px !important; /* Ajuste conforme a altura do seu menu mobile */
    left: 10px !important;
    z-index: 9999;
  }
}

/* Estilos básicos para navbar e footer */
.navbar {
    background-color: #00288e !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.footer {
    background-color: #00288e;
    margin-top: auto;
    padding: 30px 0;
    min-height: 120px;
}

.navbar-brand, .navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Dropdown menu melhorado */
.dropdown-menu {
    background-color: #00288e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    display: none;
    z-index: 1050;
    max-height: 80vh;
    overflow-y: auto;
}

/* Hover apenas em desktop */
@media (hover: hover) and (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block !important;
    }
}

.dropdown-item {
    color: white;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(5px);
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.3);
    margin: 5px 0;
}

/* Estilos para botões da biblioteca */
.list-group-item-action {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 500;
}

.list-group-item-action:hover {
    background-color: #00288e !important;
    color: white !important;
    border-left: 4px solid #ffc107;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 40, 142, 0.3);
}

.list-group-item-action:active {
    background-color: #001a5e !important;
    color: white !important;
}

/* Estilos para textos justificados */
.text-justify-custom p {
    text-align: justify;
}

/* Estilos para imagens responsivas */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Estilos para cards */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Estilos para botões */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

/* Estilos para alertas */
.alert {
    border-radius: 8px;
    border: none;
}

/* Estilos para formulários */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #00288e;
    box-shadow: 0 0 0 0.2rem rgba(0, 40, 142, 0.25);
}

/* Ajuste do espaçamento do main */
main {
    min-height: calc(100vh - 120px);
}

/* Estilos para ícones Material Symbols */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    vertical-align: middle;
}

/* Responsividade melhorada */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #00288e;
        border-radius: 0 0 8px 8px;
        padding: 10px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        background-color: rgba(0, 40, 142, 0.9);
        border: none;
        box-shadow: none;
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        border-radius: 0;
        max-height: none;
        overflow-y: visible;
    }
    
    .dropdown-item {
        padding: 8px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* Footer mobile melhorado */
    .footer {
        padding: 20px 0;
        min-height: auto;
    }
    
    .footer .d-md-none {
        padding: 15px 0;
    }
    
    .footer .col-auto {
        margin: 0 5px;
    }
    
    .footer .col-auto img {
        max-width: 35px;
    }
    
    .footer p {
        font-size: 0.85rem;
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .footer .col-auto img {
        max-width: 30px;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
    
    .navbar-collapse {
        max-height: 70vh;
    }
}

/* Garantir que o dropdown funcione */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Melhorar a visibilidade do dropdown */
.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ajustes específicos para tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        width: auto !important;
        min-width: 200px;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .navbar-nav .dropdown {
        position: relative;
    }
}

/* Seta de voltar - estilo unificado */
.btn-voltar {
    transition: all 0.3s ease !important;
}

.btn-voltar:hover {
    transform: scale(1.2) translateX(-5px) !important;
}

/* Seta de voltar específica para biblioteca */
.back-arrow {
    transition: all 0.3s ease;
}

.back-arrow:hover {
    transform: scale(1.2) translateX(-5px) !important;
}

/* Imagens responsivas para página junte-se a nós */
.responsive-image {
    transition: all 0.3s ease;
    object-fit: cover;
}

/* Primeira imagem da página junte-se a nós - maior */
.responsive-image-main {
    transition: all 0.3s ease;
    object-fit: cover;
}

/* Alinhar imagem à direita na coluna */
.col-md-5 .responsive-image-main {
    display: block !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right !important;
    float: right !important;
}



/* Telas grandes (desktop) */
@media (min-width: 1200px) {
    .responsive-image {
        max-width: 420px !important;
        width: 100%;
        height: auto;
    }
    
    .responsive-image-main {
        max-width: 800px !important;
        width: 100%;
        height: auto;
    }
    
    /* Forçar tamanho maior para desktop */
    .col-md-5 .responsive-image-main {
        max-width: 800px !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* Telas médias (tablets) */
@media (min-width: 768px) and (max-width: 1199px) {
    .responsive-image {
        max-width: 300px !important;
        width: 100%;
        height: auto;
    }
    
    .responsive-image-main {
        max-width: 600px !important;
        width: 100%;
        height: auto;
    }
}

/* Telas pequenas (mobile) */
@media (max-width: 767px) {
    .responsive-image {
        max-width: 250px !important;
        width: 100%;
        height: auto;
    }
    
    .responsive-image-main {
        max-width: 400px !important;
        width: 100%;
        height: auto;
    }
}
