/* Altura do conteúdo principal para não ficar atrás do header fixo */
.main-content-home {
    padding-top: 1000px; /* Altura aumentada do slide para telas grandes */
}
.main-content-other {
    padding-top: 150px; /* Altura do header fixo */
}

/* Fundo do slide na home */
.background-slider {
    position: fixed; /* Alterado para fixed para ficar fixo no fundo */
    top: 0;
    left: 0;
    width: 100%;
    height: 1000px; /* Altura aumentada do slide para telas grandes */
    z-index: -1;
    overflow: hidden;
}

/* Media queries para tornar o slider responsivo */
@media (max-width: 1200px) {
    .background-slider {
        height: 900px;
    }
    .main-content-home {
        padding-top: 900px;
    }
}

@media (max-width: 992px) {
    .background-slider {
        height: 800px;
    }
    .main-content-home {
        padding-top: 800px;
    }
}

@media (max-width: 768px) {
    .background-slider {
        height: 700px;
    }
    .main-content-home {
        padding-top: 700px;
    }
}

@media (max-width: 576px) {
    .background-slider {
        height: 600px;
    }
    .main-content-home {
        padding-top: 600px;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation-duration: 20s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

/* Ajustes para garantir que as imagens fiquem bem posicionadas em telas menores */
@media (max-width: 768px) {
    .slide {
        background-position: center center;
    }
}

.slide.active {
    opacity: 1;
    animation-name: zoomEffect;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(2.2);
    }
}

/* Versões do efeito de zoom para diferentes tamanhos de tela */
@media (max-width: 1200px) {
    @keyframes zoomEffect {
        0% {
            transform: scale(1);
        }
        100% {
            transform: scale(1.8);
        }
    }
}

@media (max-width: 992px) {
    @keyframes zoomEffect {
        0% {
            transform: scale(1);
        }
        100% {
            transform: scale(1.6);
        }
    }
}

@media (max-width: 768px) {
    @keyframes zoomEffect {
        0% {
            transform: scale(1);
        }
        100% {
            transform: scale(1.4);
        }
    }
}

@media (max-width: 576px) {
    @keyframes zoomEffect {
        0% {
            transform: scale(1);
        }
        100% {
            transform: scale(1.3);
        }
    }
}

/* === ESTILOS DO HEADER === */

/* Estado inicial na HOME */
.header-home {
    transition: background-color 0.4s ease-in-out;
}

/* Fundo semi-transparente para os menus na home */
.header-home .secondary-menu-bg,
.header-home .main-menu-bg {
    background-color: rgba(0, 0, 0, 0.3); /* Fundo preto com 30% de opacidade */
}

/* Menu secundário mais fino */
.secondary-menu-bg {
    padding: 0; /* Remove o padding padrão */
}

.secondary-menu-bg .nav-link {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 0.9rem;
}

.secondary-menu-bg .hebrew-text {
    font-size: 1rem;
    padding-top: 2px;
    padding-bottom: 2px;
}

.secondary-menu-bg .separator {
    height: 12px; /* Separador menor */
}

.header-home .nav-link,
.header-home .hebrew-text,
.header-home .fa-search {
    color: white !important; /* Texto branco no estado inicial */
    transition: color 0.4s ease-in-out;
}
.header-home .donation-button {
    border: 2px solid;
    border-image: linear-gradient(to right, red, yellow) 1;
    color: white !important; /* Texto branco no estado inicial */
    transition: color 0.4s ease-in-out;
}
.header-home .separator {
    background-color: yellow;
}

/* Estilo para o dropdown menu na home */
.header-home .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.4); /* Fundo preto com 30% de opacidade */
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-home .dropdown-menu .dropdown-item {
    color: white !important; /* Texto branco */
}

.header-home .dropdown-menu .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.5); /* Um pouco mais opaco no hover */
}

/* Estado FIXO (após rolar na home) e em OUTRAS PÁGINAS */
.header-fixed, .header-other {
    background-color: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.4s ease-in-out;
}

/* Garantir que os menus tenham fundo totalmente branco quando fixos */
.header-fixed .secondary-menu-bg,
.header-fixed .main-menu-bg,
.header-other .secondary-menu-bg,
.header-other .main-menu-bg {
    background-color: white !important;
}
.header-fixed .nav-link, .header-other .nav-link,
.header-fixed .hebrew-text, .header-other .hebrew-text,
.header-fixed .fa-search, .header-other .fa-search {
    color: #00008B !important; /* Azul quando fixo */
    transition: color 0.4s ease-in-out;
}
.header-fixed .donation-button, .header-other .donation-button {
    border: 2px solid;
    border-image: linear-gradient(to right, red, yellow) 1;
    color: #00008B !important; /* Azul quando fixo */
    transition: color 0.4s ease-in-out;
}

/* Estilo para o dropdown menu quando fixo */
.header-fixed .dropdown-menu, .header-other .dropdown-menu {
    background-color: white;
    border: 1px solid rgba(0,0,0,0.1);
}

.header-fixed .dropdown-menu .dropdown-item, .header-other .dropdown-menu .dropdown-item {
    color: #00008B !important; /* Azul quando fixo */
}

.header-fixed .dropdown-menu .dropdown-item:hover, .header-other .dropdown-menu .dropdown-item:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Estilo para o botão de toggle do menu mobile */
.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.35); /* Fundo branco com opacidade igual ao logo */
    padding: 8px 10px;
    border-radius: 8px;
}

/* Estilo para o ícone do botão de toggle */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 139, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Estilos para o seletor de idiomas */
.language-selector-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.language-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    color: #00008B;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-button:hover,
.language-button.active {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Estilos para suporte a RTL (Right-to-Left) */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .navbar-nav {
    padding-right: 0;
}

.rtl .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.rtl .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.rtl .dropdown-menu-end {
    right: auto;
    left: 0;
}
.header-fixed .separator, .header-other .separator {
    background-color: yellow;
}

/* Estilo do separador */
.separator {
    display: inline-block;
    width: 1px;
    height: 16px;
    margin: 0 8px;
}

.hebrew-text {
    font-size: 1.2rem;
}

/* Ajuste na janela de busca do Bootstrap */
.search-window {
    width: 280px;
}

/* Estilos do Logo */
.navbar-brand {
    margin-left: 50px; /* Move o logo mais para a direita */
    background-color: rgba(255, 255, 255, 0.35); /* Fundo branco com 35% de opacidade */
    padding: 5px 15px; /* Espaço interno para o fundo não ficar colado no logo */
    border-radius: 8px; /* Cantos arredondados */
}

.logo {
    height: 80px; /* Altura aumentada para o logo */
    width: auto; /* Mantém a proporção */
    margin-right: 20px; /* Espaço entre o logo e os itens do menu */
}

/* Ajustes responsivos para o logo */
@media (max-width: 768px) {
    .navbar-brand {
        margin-left: 20px; /* Menos margem em telas pequenas */
    }
    
    .logo {
        height: 60px; /* Logo um pouco menor em telas pequenas, mas ainda maior que antes */
    }
}