@import url("root.css");
@import url("base.css");

html,body {
    scroll-behavior: smooth;
}

.header{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* padding: 1rem 5rem; */
    background-color: var(--default-background);
    box-shadow: 0px 4px 11.7px 0px rgba(0, 0, 0, 0.25);

    & .header__logo{
        display: flex;
        flex-direction: row;
        align-items: center;

        & .header__logo-icon{
            width: 75px;
            height: 75px;
        }

        & .header__logo-name{
            /* font-size: 1rem; */
            font-weight: 400;
            text-transform: uppercase;
            margin-left: 2rem;
        }
    }

    & .header__navigation{
        width: auto;

        & .header__navigation__list{
            flex-wrap: wrap;
            flex-direction: row;

            & .header__navigation__list-item:hover{
                & .header__navigation__list-item-href{
                    color: var(--red-background);

                    & svg path{
                        fill: var(--red-background);
                    }
                }
            }

            &.navigation__page{
                /* display: flex; */
                align-items: center;
                & .header__navigation__list-item{
                    font-weight: 700;
                    /* font-size: 1.25rem; */

                    /* &:not(:last-child){
                        margin-right: 2.5rem;
                    } */
                }
            }

            &.navigation__media{
                /* display: flex; */
                align-items: start;
                & .header__navigation__list-item{
                    font-weight: 300;
                    font-size: 1.35rem;

                    &:not(:last-child){
                        margin-right: 1rem;
                    }
                }
            }
        }
    }
}

main{
    display: flex;
    flex-direction: column;

    & .section{

        max-width:1600px;
        margin: auto;

        & .section-container-title{
            margin: 4rem 0;
            font-size: 2rem;
            color: var(--section-name-color);
        }

        &#banner{
            padding: 0;
            background-color: var(--banner-background);
            max-width: 100% !important;

            .section-container{
                width: 100%;
                height: auto;
                display: flex;
                justify-content: center;
                position: relative;

                & .media__container{
                    /* width: 1440px; */
                    /* height: 500px; */
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    overflow: hidden;
                    scroll-behavior: smooth;
                    position: relative;
                    
                    &::-webkit-scrollbar{
                        display: none;
                    }

                    & .media__container-item{
                        & .media__container-item-img{
                            display: block;
                            /* width: 1440px; */
                            height: 100%;
                            z-index: 1;
                        }
                    }

                    
                }

                & .container-btns{
                    position: absolute;
                    bottom: 10%;
                    right: 20%;
                    display: flex;
                    align-items: end;
                    flex-direction: row;
                    flex-wrap: nowrap;

                    & .media__container__btns{
                        display: flex;
                        flex-direction: row;
                        flex-wrap: nowrap;
                        
                        &:not(:last-child){
                            margin-right: 2rem;
                        }

                        & .media__container__btns-btn{
                            display: block;
                            width: 15px;
                            height: 15px;
                            background-color: var(--default-background);
                            border-radius: 50%;

                            &:not(:last-child){
                                margin-right: 0.5rem;
                            }

                            &:hover{
                                cursor: pointer;
                            }

                            &.active-btn{
                                background-color: var(--red-background);
                                transform: scale(1.25);
                            }
                        }

                        & .media__container__btns__control-btn{
                            width: 35px;
                            height: 35px;
                            border-radius: 0.25rem;
                            /* display: flex; */
                            align-items: center;
                            justify-content: center;
                            font-size: 1.25rem;

                            &:not(:last-child){
                                margin-right: 0.5rem;
                            }

                            &:hover{
                                cursor: pointer;
                            }
                        }
                    }
                }
            }
        }

        &#advantages{
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;

            .section-container{
                width: 100%;
                height: auto;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                justify-content: center;
                gap: 4rem;
                padding: 2rem 3rem;

                & .advantages__card{
                    padding: 40px;
                    display: flex;
                    flex-direction: column;
                    gap: 40px;
                    margin: auto auto;
                    border-radius: 20px;
                    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.50);
                    /* margin: 2rem; */
                    font-size: 1.2rem;
                    flex:1;
                    text-align: center;

                    & .advantages__card-img{
                        width: 250px;
                        display: block;
                        margin: 0px auto;
                    }
                }
            }
        }

        &#news{
            .section-container-title{
                margin-top: 0;
            }

            .section-container{
                display: flex;
                justify-content: center;
            }

            .media-container {
                display: flex;
                justify-content: space-between;
                flex-wrap: wrap;

                .media__container-item {
                    border: 3px solid #9F9F9F;
                    max-width: 480px;
                    width: 100vw;
                    flex: none;
                    padding: 20px;
                    margin: 20px auto;


                    .media__container-item-picture {
                        width: 100%;
                        height: 300px;
                        overflow: hidden;
                    }

                    .media__container-item-img {
                        width: 95%;
                        display: block;
                        margin: 0 auto;
                    }

                    .media__container-item-description {
                        padding: 10px;
                        font-size: 16px;
                        line-height: 24px;
                        max-height: 300px;
                        overflow-y: hidden;

                    }
                }
            }

            & .media__container-item-link{
                margin-top: 15px;
                color: #9F9F9F;
                font-size: 1.25rem;
                font-weight: 500;

                & .arrow{
                    margin-left: 0.5rem;
                    width: 50px;
                    transition: 0.25s linear width;

                    & path{
                        fill: #9F9F9F;
                    }
                }

                &:hover{
                    color: var(--red-background);

                    & .arrow{
                        margin-left: 0.5rem;
                        width: 90px;

                        & path{
                            fill: var(--red-background);
                        }
                    }
                }
            }

            & .section-container-news{
                font-weight: 600;
                display: block;
                margin: 2rem;
                font-size: 1.25rem;
                color: #9F9F9F;
            }
        }

        &#media{
            & .section-container-title{
                margin-bottom: 2rem;
            }

            & .media__container{
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                /* flex-direction: row; */
                align-items: center;
                justify-content: center;
                gap: 4rem;

                & .media__container-item{
                    display: flex;
                    flex-wrap: wrap;
                    flex-direction: column;
                    align-items: start;
                    padding: 30px;
                    /* width: 40%; */
                    box-sizing: border-box;
                    /* margin: 2rem; */
                    border: 4px solid #9F9F9F;
                    gap: 30px;
    
                    .media__container-item-picture {
                        width: 100%;
                        height: 250px;
                        overflow: hidden;
                    }

                    & .media__container-item-img{
                        width: 100%;
                        height: auto;
                    }

                    & .media__container-item-date{
                        font-size: 1rem;
                        font-weight: 300;
                    }

                    & .media__container-item-description{
                        font-size: 1.25rem;
                        font-weight: 700;
                        height: 4.2rem;
                    }

                    & .media__container-item-link{
                        color: #9F9F9F;
                        font-size: 1.25rem;
                        font-weight: 500;

                        & .arrow{
                            margin-left: 0.5rem;
                            width: 50px;
                            transition: 0.25s linear width;

                            & path{
                                fill: #9F9F9F;
                            }
                        }

                        &:hover{
                            color: var(--red-background);

                            & .arrow{
                                margin-left: 0.5rem;
                                width: 90px;
    
                                & path{
                                    fill: var(--red-background);
                                }
                            }
                        }
                    }
                }
            }

            & .section-container-news{
                font-weight: 600;
                display: block;
                margin: 2rem;
                font-size: 1.25rem;
                color: #9F9F9F;
            }
        }

        &#join, &#usp{
            .section-container-title{
                margin-bottom: 0;
            }
            .section-container{
                margin-top: 2rem;
                margin-bottom: 2rem;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 4rem;


                & .section-container__item{
                    padding: 4rem;
                    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.50);
                    border-radius: 19px;
                    /* width: 40%; */
                    box-sizing: border-box;
                    /* margin: 2rem; */
                    display: flex;
                    flex-direction: column;
                    gap: 32px;
                    position: relative;

                    /* &::after{
                        content: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" fill="none"><path d="M60 100C52.0435 100 44.4129 96.8393 38.7868 91.2132C33.1607 85.5871 30 77.9565 30 70C30 50 60 16.25 60 16.25C60 16.25 90 50 90 70C90 77.9565 86.8393 85.5871 81.2132 91.2132C75.5871 96.8393 67.9565 100 60 100Z" fill="#E1071C"/></svg>');
                        display: block;
                        width: 120px;
                        height: 120px;
                        right: 1rem;
                        position: absolute;
                        top: 1rem;
                    } */
                    
                    & .section-container__item-description{
                        font-size: 1.25rem;
                        font-weight: 700;
                    }

                    & .section-container__item-link{
                        font-size: 1.5rem;
                        font-weight: 700;
                        color: var(--red-background);
                    }
                }
            }
        }
    }
}

.footer{
    padding: 5rem 5%;
    background-color: var(--footer-background);
    display: flex;
    flex-direction: column;
    gap: 3rem;

    & .footer__container{
        width: 100%;
        display: flex;

        &.container-top{
            align-items: center;
            justify-content: end;

            & .footer__navigation{
                width: auto;
        
                & .footer__navigation__list{
                    display: flex;
                    flex-wrap: wrap;
                    flex-direction: row;
        
                    & .footer__navigation__list-item{
                        & .footer__navigation__list-item-href{
                            color: var(--default-background);
                            font-size: 1.4rem;
                            font-weight: 300;
        
                            & svg path{
                                fill: var(--default-background);
                            }
                        }

                        &:not(:last-child){
                            margin-right: 0.5rem;
                        }
                    }

                    & .footer__navigation__list-item:hover{
                        & .footer__navigation__list-item-href{
                            color: var(--red-background);
        
                            & svg path{
                                fill: var(--red-background);
                            }
                        }
                    }
                }
            }
        }

        &.container-bottom{
            padding: 7.5rem 0;
            align-items: center;
            justify-content: space-around;
            border: 2px solid #FFF;
            font-size: 1.5rem;

            & .footer__navigation__list-item{
                color: var(--default-background);
                & .footer__navigation__list-item-href{
                    color: var(--footer-font-color);
                    
                }

                &:not(:last-child){
                    margin-bottom: 1rem;
                }
            }
        }
    }
}

.media__container-fadeAway {
    height: 40px;
    width: 100%;
    background-image: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
    position: relative;
    margin-top: -40px;
}


.advantages__card-img-container {
    flex: none;
    height: 250px;
    display: flex;
    justify-content: center;
    align-content: center;
}

.advantages__card-img-container img {
    flex: none !important;
}

#advantages h2 {
    flex: none;
    width: 100%;
    margin-bottom: -10px;
}

#advantages {
    display: block !important;
}


.files-container {
    
}

.files-container ul {
    list-style: none;
}

.files-container ul li {
    background-image: url(/assets/icons/pdf.png);
    background-repeat: no-repeat;
    background-size: 50px 50px;
    background-position-x: 10px;
    background-position-y: center;
    padding: 20px 20px 20px 70px;
    margin: 5px;
    border: 1px solid #CCC;
    color: var(--red-background);
}

.files-container ul li a {
    color: inherit;
    text-decoration: underline;
    font-size: 20px;
    font-weight: bold;
}