* {
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
    box-sizing: border-box;
}

input, button, textarea, select {
    font-size: 16px;
    border-radius: 5px;
}

body {
    background: #000;
    font-size: 16px;
    color: #000;
    padding-top: 80px;
    overflow-x: hidden;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #e74c30;
}

a.btn {
    line-height: 30px;
    padding: 0 0.6em;
    border: 2px solid #E74C30;

    &:hover {
        background: #E74C30;
        color: #fff;
        text-decoration: none;
    }
}

.wrapper {
    width: 1200px;
    margin: 0 auto;
    position: relative;
}


header {
    background: #000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9;

    .wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 80px;
    }

    .logo {
        width: 88px;
        fill: #fff;
    }
}

nav ul {
    display: flex;
    gap: 20px;

    li a {
        display: inline-block;
        line-height: 40px;
        padding: 0 14px;
        color: #fff;
        font-size: 18px;
        position: relative;

        &:before, &:after {
            content: "";
            position: absolute;
        }

        &:before {
            top: 0;
            left: 0;
            border-top: 12px solid #000;
            border-right: 12px solid transparent;
        }

        &:after {
            bottom: 0;
            right: 0;
            border-bottom: 12px solid #000;
            border-left: 12px solid transparent;
        }

        &:hover {
            background: #ffffff33;
        }
    }

    li.active a {
        background: #e74c30;
        color: #fff;
    }
}

footer {
    background: #000;
    padding: 60px 0;
    color: #fff;
    position: relative;

    .wrapper {
        display: flex;
        justify-content: space-between;
        gap: 80px;
    }

    .cpr {
        font-size: 14px;
        color: #999;

        strong {
            font-weight: normal;
            color: #ccc;
        }

        p {
            margin-bottom: 10px;
        }
    }

    .logos {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 20px;

        div {
            display: flex;

            img {
                max-width: 100px;
            }
        }
    }
}

main.error {
    position: fixed;
    top:0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    padding: 0;

    section {
        background: #fff;
        padding: 40px;
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 10px;

        h3 {
            background: #ffeba8;
            font-weight: normal;
        }

        hr {
            height: 1px;
            border-color: #0000001a;
            margin: 10px 0;
            width: 100%;
        }
    }
}

main section {
    padding: 80px 0;

    &.generalTitle {

        padding: 80px 0 0 0;
        color: #fff;

        .bg {
            position: absolute;
            pointer-events: none;
            top: -80px;
        }

        h1 {
            font-size: 80px;
            font-weight: normal;
        }

        span {
            color: #ffffff99;
            display: block;
            width: 61.8%;
        }
    }

    &.generalContent {
        display: flex;
        gap: 120px;

        .wrapper {
            background: #fff;

            &:before, &:after {
                content: "";
                position: absolute;
                z-index: 1;
            }

            &:before {
                top: 0;
                left: 0;
                border-right: 48px solid transparent;
            }

            &:after {
                bottom: 0;
                right: 0;
                border-left: 48px solid transparent;
            }
        }
    }
}

main.home {
    height: 760px;
    background-size: cover;
    position: relative;

    .wrapper {
        display: flex;
        flex-direction: column;
        align-items: end;
        justify-content: space-between;
        padding: 80px 0;
        height: 100%;
    }

    .dot {
        display: flex;
        gap: 10px;
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;

        li {
            display: inline-block;
            border-radius: 12px;
            width: 12px;
            height: 12px;
            background: #ffffff80;
            transition: width 0.4s;
            cursor: pointer;

            &.active {
                width: 36px;
                background-color: #fff;
            }
        }
    }

    .color {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .logo {
        width: 420px;
        fill: #fff;
    }

    .cover {
        position: absolute;
        width: 480px;
        bottom: 80px;
        left: 0;

        a {
            padding: 20px;
            color: #fff;
            display: flex;
            gap: 20px;
            background: #ffffff33;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);

            &:hover {
                background: #ffffff80;
            }
        }

        img {
            height: 140px;
            border: 2px solid #000;
        }

        div {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
    }

    .url {
        display: flex;
        flex-direction: column;
        text-align: right;

        a {
            color: #fff;
            font-size: 30px;

            &:hover {
                text-decoration: underline;
            }
        }
    }
}

main.about {
    background: #F2EFDC;

    section.header {
        display: flex;
        flex-direction: column;
        gap: 40px;

        h1 {
            font-size: 80px;
            font-weight: normal;
        }

        span {
            color: #E74C30;
            font-size: 24px;

            strong {
                font-style: italic;
            }
        }

        .bg {
            position: absolute;
            top: 80px;
            right: -100px;
            pointer-events: none;
        }


        .title {
            display: flex;
            justify-content: space-between;
            position: relative;

            div.cover {
                display: flex;
                flex-direction: column;
                align-items: end;
                gap: 10px;
                margin-right: 120px;

                img {
                    width: 187px;
                    border: 2px solid #000;
                }
            }

            div.info {
                width: 500px;
                display: flex;
                flex-direction: column;
                gap: 10px;
            }
        }

        .summary {
            background: #0000000d;
            column-count: 2;
            column-gap: 60px;
            padding: 40px;
            color: #666;
            position: relative;

            &:before, &:after {
                content: "";
                position: absolute;
            }

            &:before {
                top: 0;
                left: 0;
                border-top: 48px solid #F2EFDC;
                border-right: 48px solid transparent;
            }

            &:after {
                bottom: 0;
                right: 0;
                border-bottom: 48px solid #F2EFDC;
                border-left: 48px solid transparent;
            }
        }

        .info {
            display: flex;
            flex-direction: column;
            gap: 20px;

            strong {
                color: #E74C30;
            }

            p {
                color: #666;
            }
        }
    }

    section.editors {
        background: #024959;
        color: #fff;

        h1 {
            font-size: 60px;
            font-weight: normal;
        }

        .wrapper {
            display: flex;
            flex-direction: column;
            gap: 40px;
            align-items: center;
        }

        ul {
            display: flex;
            gap: 120px;

            li {
                width: 200px;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 10px;
                text-align: center;

                img {
                    width: 100%;
                    border-radius: 200px;
                    margin-bottom: 10px;
                }

                h3 {
                    font-size: 22px;
                }

                span {
                    color: #ffffff99;
                }
            }
        }
    }

    section.committee {
        display: flex;
        flex-direction: column;
        gap: 40px;

        h1 {
            font-size: 60px;
            font-weight: normal;
        }

        ul {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;

            li {
                background: #ffffff80;
                position: relative;
                padding: 20px;
                display: flex;
                flex-direction: column;
                gap: 10px;

                &:hover {
                    background: #fff;
                }

                img {
                    width: 80px;
                    height: 80px;
                    border-radius: 80px;
                }

                div {
                    display: flex;
                    flex-direction: column;
                    font-size: 14px;

                    h3 {
                        font-size: 18px;
                    }

                    span {
                        max-width: 260px;
                        margin-bottom: 10px;
                    }

                    a {
                        height: 20px;
                        line-height: 20px;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                        max-width: 260px;

                        &:hover {
                            text-decoration: underline;
                        }
                    }
                }

                &:before, &:after {
                    content: "";
                    position: absolute;
                }

                &:before {
                    top: 0;
                    left: 0;
                    border-top: 24px solid #F2EFDC;
                    border-right: 24px solid transparent;
                }

                &:after {
                    bottom: 0;
                    right: 0;
                    border-bottom: 24px solid #F2EFDC;
                    border-left: 24px solid transparent;
                }
            }
        }
    }
}

main.abstracts {
    background: #024959;

    section.generalContent .wrapper {
        display: flex;

        &:before {
            border-top: 48px solid #024959;
        }

        &:after {
            border-bottom: 48px solid #024959;
        }
    }

    .categories {
        width: 280px;
        background: #f5f5f5;
        padding: 40px;
        flex-shrink: 0;

        div {
            display: flex;
            flex-direction: column;
            align-items: start;
            position: sticky;
            top: 120px;
            gap: 10px;

            a {
                white-space: nowrap;
                padding: 0 1em;
                line-height: 40px;
                position: relative;
                color: #fff;

                &:before, &:after {
                    content: "";
                    position: absolute;
                }

                &:before {
                    top: 0;
                    left: 0;
                    border-top: 12px solid #f5f5f5;
                    border-right: 12px solid transparent;
                }

                &:after {
                    bottom: 0;
                    right: 0;
                    border-bottom: 12px solid #f5f5f5;
                    border-left: 12px solid transparent;
                }

                &.active {
                    font-weight: bold;
                }

                &.cat-all {
                    background: #000;
                }

                &.cat-1 {
                    background: #f59a23;
                }

                &.cat-2 {
                    background: #e74c30;
                }

                &.cat-3 {
                    background: #004e9b;
                }

                &.cat-4 {
                    background: #0091b9;
                }

                &.cat-5 {
                    background: #03b64d;
                }
            }
        }
    }

    .list {
        padding: 40px;

        h1 {
            border-bottom: 1px solid #000;
            display: flex;
            justify-content: space-between;
            height: 60px;

            div {
                font-size: 16px;
                font-weight: normal;
                display: flex;
                align-items: center;
                gap: 10px;
            }
        }

        li {
            border-bottom: 1px solid #0000001a;
            display: flex;
            flex-direction: column;
            align-items: start;
            padding: 30px 0;
            gap: 10px;

            &:last-child {
                border: none;
            }


            h2 {
                color: #000;

                &:hover {
                    color: #e74c30;
                }
            }

            h3 {
                line-height: 20px;
                font-size: 18px;
                padding-left: 0.5em;

                &.cat-1 {
                    color: #f59a23;
                    border-left: 3px solid #f59a23;
                }

                &.cat-2 {
                    color: #e74c30;
                    border-left: 3px solid #e74c30;
                }

                &.cat-3 {
                    color: #004e9b;
                    border-left: 3px solid #004e9b;
                }

                &.cat-4 {
                    color: #0091b9;
                    border-left: 3px solid #0091b9;
                }

                &.cat-5 {
                    color: #03b64d;
                    border-left: 3px solid #03b64d;
                }
            }

            span {
                color: #666;
            }
        }
    }
}

main.post {
    background: #f5f5f5;

    section.content {
        a:hover {
            text-decoration: underline;
        }

        a.btn {
            margin-right: 10px;

            &:hover {
                text-decoration: none;
            }
        }

        .wrapper {
            background: #fff;
            padding: 40px;

            &:before, &:after {
                content: "";
                position: absolute;
            }

            &:before {
                top: 0;
                left: 0;
                border-top: 48px solid #f5f5f5;
                border-right: 48px solid transparent;
            }

            &:after {
                bottom: 0;
                right: 0;
                border-bottom: 48px solid #f5f5f5;
                border-left: 48px solid transparent;
            }
        }

        .title {
            padding-bottom: 40px;
            border-bottom: 1px solid #000;
            display: flex;
            align-items: start;
            flex-direction: column;
            gap: 10px;
        }

        article {
            padding: 40px 0;
        }
    }
}

main.bibliography {
    background: #6c201a;

    section.generalTitle .bg {
        right: -20%;
    }

    section.generalContent .wrapper {
        padding: 40px;

        &:before {
            border-top: 48px solid #6c201a;
        }

        &:after {
            border-bottom: 48px solid #6c201a;
        }
    }

    .list {
        display: flex;
        flex-direction: column;

        li {
            display: flex;
            align-items: start;
            margin-bottom: 30px;
            padding: 0 30px 30px 30px;
            border-bottom: 1px solid #0000001a;
            gap: 40px;

            &:last-child {
                margin: 0;
                padding-bottom: 0;
                border-bottom: 0;
            }

            > div {
                display: flex;
                flex-direction: column;
                gap: 5px;
            }

            img, .img {
                width: 150px;
                flex-shrink: 0;
            }

            .img {
                border: 1px solid #0000001a;
                justify-content: center;
                align-items: center;
                color: #666;
                height: 150px;
            }

            h4 {
                font-weight: normal;
                color: #e74c30;
            }

            span {
                color: #666;
            }

            p {
                position: relative;
                background: #0000000d;
                padding: 15px 20px;
                font-size: 14px;
                color: #666;
                margin-top: 10px;

                &:before, &:after {
                    content: "";
                    position: absolute;
                }

                &:before {
                    top: 0;
                    left: 0;
                    border-top: 12px solid #fff;
                    border-right: 12px solid transparent;
                }

                &:after {
                    bottom: 0;
                    right: 0;
                    border-bottom: 12px solid #fff;
                    border-left: 12px solid transparent;
                }
            }
        }
    }
}

main.resources {
    background: #33164f;

    section.generalTitle .bg {
        right: -20%;
    }

    section.generalContent .wrapper {
        &:before {
            border-top: 48px solid #33164f;
        }

        &:after {
            border-bottom: 48px solid #33164f;
        }

        h1 {
            font-size: 40px;
        }

        .videos {
            padding: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;

            ul {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;

                a {
                    color: #000;
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    padding: 20px;
                    height: 100%;
                    position: relative;

                    &:before, &:after {
                        content: "";
                        position: absolute;
                    }

                    &:before {
                        top: 0;
                        left: 0;
                        border-top: 24px solid #fff;
                        border-right: 24px solid transparent;
                    }

                    &:after {
                        bottom: 0;
                        right: 0;
                        border-bottom: 24px solid #fff;
                        border-left: 24px solid transparent;
                    }

                    &:hover {
                        background: #f5f5f5;
                        color: #e74c30;

                        svg {
                            opacity: 1;
                        }
                    }
                }

                span {
                    color: #666;

                    strong {
                        color: #e74c30;
                        font-weight: normal;
                    }
                }

                .cover {
                    position: relative;
                }

                img {
                    width: 100%;
                }

                svg {
                    width: 48px;
                    height: 48px;
                    fill: #fff;
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    opacity: 0;
                    filter: drop-shadow(0 0 10px #000);
                }
            }
        }

        .papers {
            padding: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;
            background: #f5f5f5;

            ul {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                flex-wrap: wrap;
                gap: 20px;

                li {
                    background: #fff;
                    position: relative;
                    padding: 20px;
                    display: flex;
                    flex-direction: column;
                    gap: 10px;

                    a:hover {
                        text-decoration: underline;
                    }

                    p {
                        font-size: 14px;
                    }

                    &:before, &:after {
                        content: "";
                        position: absolute;
                    }

                    &:before {
                        top: 0;
                        left: 0;
                        border-top: 24px solid #f5f5f5;
                        border-right: 24px solid transparent;
                    }

                    &:after {
                        bottom: 0;
                        right: 0;
                        border-bottom: 24px solid #f5f5f5;
                        border-left: 24px solid transparent;
                    }
                }
            }
        }
    }
}

main.news {
    background: #205300;

    section.generalTitle .bg {
        right: -20%;
    }

    section.generalContent .wrapper {

        &:before {
            border-top: 48px solid #205300;
        }

        &:after {
            border-bottom: 48px solid #205300;
        }

        ul.list {
            display: flex;
            flex-direction: column;

            li {
                position: relative;
                padding: 40px 70px;
                display: flex;
                gap: 10px;
                flex-direction: column;

                &:nth-child(even) {
                    background: #f5f5f5;
                }

                a {
                    color: #000;

                    &:hover {
                        color: #e74c30;
                    }

                    p {
                        font-size: 14px;
                    }
                }
            }
        }
    }

}

main.podcasts {
    background: #0a1259;

    section.generalTitle .bg {
        right: -20%;
    }

    section.generalContent .wrapper {
        padding: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;

        &:before {
            border-top: 48px solid #0a1259;
        }

        &:after {
            border-bottom: 48px solid #0a1259;
        }

        .list {

        }
    }

    .list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;

        a {
            color: #000;
            display: flex;
            justify-content: space-between;
            gap: 40px;
            padding: 20px;
            background: #f5f5f5;
            height: 100%;
            position: relative;

            &:before, &:after {
                content: "";
                position: absolute;
            }

            &:before {
                top: 0;
                left: 0;
                border-top: 24px solid #fff;
                border-right: 24px solid transparent;
            }

            &:after {
                bottom: 0;
                right: 0;
                border-bottom: 24px solid #fff;
                border-left: 24px solid transparent;
            }

            &:hover {
                color: #e74c30;
            }
        }

        span {
            color: #666;

            strong {
                color: #e74c30;
                font-weight: normal;
            }
        }

        .cover {
            position: relative;
            display: flex;
            height: 100px;
        }

        img {
            height: 100%;
        }
    }
}