/*
 * APEO - Catálogo Tutor LMS
 * Cabeçalho fotográfico integrado com Astra
 */

/* Fundo fotográfico do cabeçalho */
body.post-type-archive-courses.ast-theme-transparent-header .site-header {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.30),
            rgba(0, 0, 0, 0.30)
        ),
        url('https://apeo.pt/wp-content/uploads/2023/12/Workshop-APEO4.jpg')
        center center / cover no-repeat;
}

/* Altura adicional do cabeçalho em desktop */
@media (min-width: 922px) {
    body.post-type-archive-courses.ast-theme-transparent-header .site-header {
        min-height: 420px;
    }
}

/* Adaptação a dispositivos móveis */
@media (max-width: 921px) {
    body.post-type-archive-courses.ast-theme-transparent-header .site-header {
        min-height: 180px;
        background-position: center center;
    }
}
/* APEO - Corrigir sobreposição do cabeçalho no catálogo */
@media (min-width: 922px) {
    body.post-type-archive-courses.ast-theme-transparent-header #masthead {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100%;
    }
}
/* Título do catálogo sobre a fotografia */
@media (min-width: 922px) {
    body.post-type-archive-courses .site-header {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    body.post-type-archive-courses .site-header::after {
        content: "CURSOS E WORKSHOPS";
        display: block;
        position: absolute;
        top: 65%;
        left: 50%;
        transform: translate(-50%, -50%);

        width: 90%;
        text-align: center;
        color: #ffffff;
        font-size: clamp(36px, 4.5vw, 64px);
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.01em;
        pointer-events: none;
    }
}
/* APEO - Nova imagem e altura do cabeçalho do catálogo */

@media (min-width: 922px) {
    body.post-type-archive-courses.ast-theme-transparent-header .site-header {
        min-height: 500px;
        background-image:
            linear-gradient(
                rgba(0, 0, 0, 0.30),
                rgba(0, 0, 0, 0.30)
            ),
            url('https://apeo.pt/wp-content/uploads/2018/11/about-bg-5.jpg');
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }
}
/* APEO - Ícones sociais do rodapé */

body.post-type-archive-courses .site-footer a {
    color: #ffffff !important;
}

/* Esconder o texto dos elementos Font Awesome */
body.post-type-archive-courses .site-footer i.fab {
    font-size: 0 !important;
}

/* Mostrar apenas os ícones */
body.post-type-archive-courses .site-footer i.fa-facebook-f::before,
body.post-type-archive-courses .site-footer i.fa-instagram::before {
    font-size: 20px !important;
    color: #ffffff !important;
}
/* Ocultar visualmente os textos de acessibilidade do Elementor */
body.post-type-archive-courses .site-footer .elementor-screen-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* APEO - Cor dos ícones sociais do rodapé */
body.post-type-archive-courses .site-footer .elementor-social-icon,
body.post-type-archive-courses .site-footer .elementor-social-icon i,
body.post-type-archive-courses .site-footer .elementor-social-icon i::before {
    color: rgb(105, 114, 125) !important;
}
