html,
body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
}

body {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
}

a.btn,
button.btn {
    background: var(--link-color);
    color: white;
    padding: 15px 30px;
    display: inline-block;
    border-radius: 40px;
    appearance: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;

    i {
        margin-right: 10px;
    }
}

a.btn:hover,
button.btn:hover {
    background-color: var(--link-color-darkened)
}

.code {
    display: inline-block;
    background: #F8F8F8;
    border-radius: 6px;
    padding: 4px 10px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
}

.top-nav {
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
    width: 100%;
    padding: 40px;

    .top-nav-title img {
        max-width: 200px;
    }

    .top-nav-links {
        display: flex;
        align-items: center;

        .quickmenu {
            padding-right: 30px;
        }
    }

    .wrap {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .account {
        margin: 0 auto;
        padding-bottom: 30px;
    }

    .user_details {
        display: flex;
        align-items: center;

        .profile_image_thumb {
            width: 75px;
            height: 75px;
            border-radius: 50%;
            background-size: cover;
        }

        .name {
            padding-left: 20px;
            font-size: 18px;
        }
    }

    .access_buttons,
    .account {
        order: 2;
    }

    .access_buttons {
        a {
            display: inline-block;
            margin: 0 5px;
        }
    }

    .mobileMenu {
        order: 1;
        padding-right: 30px;

        ul {
            display: flex;
            flex-wrap: wrap;
            padding-left: 0;
            list-style: none;
            margin: 0;
        }

        li {
            padding: 0 10px;
        }

        li.divider {
            padding: 10px 0;
        }

        li.divider::after {
            content: "";
            display: block;
            width: 50px;
            height: 1px;
            margin: 0 auto;
            background: #ccc;
        }

        a {
            color: var(--text-color);
        }

        a:hover,
        li.active a {
            color: var(--link-color);
        }
    }

    .menubutton,
    .closeMenu {
        display: block;
        font-size: 32px;

        a {
            color: #3c3c3c;
        }
    }

    .mainmenu {
        display: none;
    }
}

body.menuOpen {
    overflow-y: hidden;

    .top-nav {
        .mainmenu {
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            right: 0;
            width: 100vw;
            height: 100%;
            z-index: 50000;
            background: rgba(235, 235, 235, 0.9);
            backdrop-filter: blur(5px);
            box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.08);
        }

        .closeMenu {
            position: absolute;
            top: 43px;
            right: 43px;
            font-size: 28px;
            color: #373737;
        }

        .access_buttons {
            order: 1;
            flex: 0 0 100%;
            padding-bottom: 40px;
            text-align: center;
        }

        .mobileMenu {
            order: 2;
            padding-right: 0;
            flex: 0 0 100%;

            ul {
                display: block;
                text-align: center;
                font-size: 20px;
            }

            li {
                padding: 10px 20px;
            }
        }

        .wrap {
            flex: 1;
            align-items: center;
            align-content: center;
        }
    }
}

body.searchPopupOpen {
    overflow-y: hidden;

    .main .searchPopup {
        overflow-y: auto;
    }
}

.main {
    min-height: 0;

    .header {
        display: flex;
        justify-content: left;
        padding: 40px;
        height: 500px;
        align-items: center;
        background: url('../img/home/header-home.png') no-repeat right center;
        background-color: #F8F8F8;
        background-size: contain;
        color: #07242B;

        h1 {
            margin: 0;
            font-size: 58px;
        }

        h3 {
            margin: 0 0 30px;
            font-size: 24px;
            font-weight: normal;
        }

        .colored {
            color: #F98800;
        }

        a.cform-btn {
            padding: 20px;
            font-size: 20px;
            background-color: #F98800;
        }

        a.cform-btn:after {
            content: "⭢";
            margin-left: 80px;
            font-weight: bold;
        }
    }

    .subheader {
        .image {
            max-width: 1380px;
            margin: 0 auto;

            img {
                width: 100%;
            }
        }
    }

    .message {
        max-width: 800px;
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
        top: 140px;
        padding: 30px 30px;
        box-sizing: border-box;
        border-radius: 20px;
        background: var(--link-color);
        color: white;
        font-size: 18px;
        font-weight: 600;
        z-index: 200;
    }

    .message.success {
        background: #f98800;
        color: white;
    }

    .message.error {
        background: #990000;
        color: white;
    }

    .body.home {
        .cta {
            a.button {
                margin-bottom: 10px;
                margin-right: 10px;

                i {
                    margin-right: 10px;
                }
            }
        }
    }

    .container.article-container {
        box-sizing: border-box;
    }

    .searchPopup {
        position: fixed;
        box-sizing: border-box;
        z-index: 10000;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.07);

        h4 {
            margin-top: 20px;
            margin-bottom: 20px;
            margin-right: 50px;
            text-align: center;
        }

        .description {
            text-align: center;
        }

        ul {
            max-width: 600px;
            list-style: none;
            padding: 0;
            margin: 20px auto;

            li {
                padding: 5px 5px 0 0;
                flex: 0 0 33.3333%;
                box-sizing: border-box;
            }

            a {
                display: block;
                padding: 15px 20px;
                background: #f8f8fc;
                border-radius: 40px;
                color: #335;
                transition: all 0.2s;
            }

            .icons {
                padding-right: 7px;

                .bi-check-circle-fill {
                    display: none;
                }
            }

            a:hover,
            a.active {
                background: #F98800;
                color: white;
            }

            a.active {
                .icons {
                    .bi-check-circle-fill {
                        display: inline-block;
                    }

                    .bi-circle {
                        display: none;
                    }
                }
            }

            a.disabled {
                pointer-events: none;
                opacity: 0.2;
            }
        }

        .close {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 24px;
            font-weight: bold;
            display: inline-block;
            width: 45px;
            height: 45px;
            line-height: 45px;
            background: var(--link-color);
            color: white;
            text-align: center;
            border-radius: 50%;
        }

        .step {
            display: none;
        }

        .categories.list {
            overflow: scroll;
        }

        .step.visible {
            display: block;
        }

        .hidden {
            display: none;
        }

        .navigation {
            padding-top: 15px;
        }

        .buttons {
            text-align: center;
        }

        .button {
            margin: 0 5px;
        }

        .button.hidden {
            display: none;
        }

        .button.disabled {
            opacity: 0.5;
            cursor: default;
            pointer-events: none;
        }
    }

    section.wrap {
        padding: 40px;
        font-size: 16pt;

        h2.title {
            text-align: center;
        }

        .container {
            max-width: 1200px;
            margin: auto;
        }

        .center {
            text-align: center;
        }
    }

    .subject_cards_list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 25px;
        align-items: stretch;
        justify-content: center;
    }

    .subject_cards_list_mobile {
        display: none;
    }

    .subject_card {
        background: #F9F9F9;
        padding: 30px 5px;
        border-radius: 12px;

        .icon {
            font-size: 45pt;
            text-align: center;
        }

        .title {
            font-size: 14pt;
            font-weight: bold;
            text-align: center;
            word-break: break-word;
        }
    }

    .col-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;

        .text {
            display: flex;
            align-items: center;
        }

        .image {
            img {
                width: 100%;
                height: auto;
            }
        }
    }


    .random_profiles {
        margin-top: 40px;
        padding: 80px 40px;
        background: #F5F7F9;

        h2 {
            text-align: center;
        }

        .list {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding-top: 20px;
        }
    }

    .profile_card {
        position: relative;
        width: 260px;
        flex: 0 0 260px;
        padding: 40px 20px 90px;
        margin: 0 10px 40px;
        text-align: center;
        border-radius: 10px;
        background: white;

        a {
            display: block;
            height: 100%;
            box-sizing: border-box;
            text-decoration: none;
            color: #3c3c3c;
        }

        .photo {
            display: flex;
            justify-content: center;
            padding-bottom: 20px;

            .img {
                width: 150px;
                height: 150px;
                border-radius: 50%;
                background-size: cover;
                background-position: center;
            }
        }

        .name {
            padding-bottom: 8px;
            font-size: 24px;
        }

        .categories {
            font-size: 16px;
        }

        .price {
            position: absolute;
            bottom: 20px;
            left: 0;
            width: 100%;
            text-align: right;
            padding-right: 20px;
            box-sizing: border-box;

            span {
                display: inline-block;
                padding: 10px 15px;
                border-radius: 10px;
                background: #2196F3;
                color: white;
            }
        }
    }

    .container {
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }

    .pay {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 40px;

        .iban {
            font-size: 20px;
            font-weight: bold;
            padding-bottom: 20px;
        }

        .print {
            padding-top: 30px;
            font-weight: bold;

            a {
                color: #0580af;
            }

            i {
                margin-right: 8px;
                color: #0580af;
            }
        }
    }

    .profile_view {
        flex: 1;
        background: #f7f7f7;

        h4 {
            margin-top: 0;
            margin-bottom: 10px;
        }

        .wrap {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px;
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 0 20px;
        }

        .personal {
            box-sizing: border-box;
            display: flex;
            flex-wrap: wrap;
            grid-column: 1;
            grid-row: 1;
            align-self: start;

            .back {
                flex: 0 0 100%;
                padding-bottom: 30px;
                font-size: 18px;

                i {
                    margin-right: 10px;
                }
            }

            .photo {
                flex: 0 0 100%;
                text-align: center;

                .img {
                    width: 200px;
                    height: 200px;
                    background-size: cover;
                    background-position: center;
                    margin: 0 auto;
                    border-radius: 50%;
                    border: 8px #ddd solid;
                }
            }

            .details {
                padding-left: 0;
                flex: 0 0 100%;
                padding-top: 40px;
                text-align: center;

                h3 {
                    font-size: 28px;
                    margin-bottom: 10px;
                }

                h5 {
                    font-size: 18px;
                }
            }
        }

        .description {
            text-align: center;
        }

        .info {
            box-sizing: border-box;
            grid-column: 2;
            grid-row: 1 / 4;
            background: white;
            padding: 40px;
            margin-top: 50px;
            border-radius: 20px;

            .list>div {
                padding-bottom: 15px;
            }

            .label {
                font-weight: bold;
            }

            .contact {
                padding-top: 20px;

                a.btn {
                    background: var(--link-color);
                    color: white;
                    padding: 15px 30px;
                    display: inline-block;
                    border-radius: 40px;
                }
            }
        }

        .description {
            box-sizing: border-box;
            grid-column: 1;
            grid-row: 2;
            align-self: start;
            padding-top: 40px;
        }
    }

    .requests_add {
        flex: 1;
        background: #f7f7f7;
        padding: 40px 20px;

        h1 {
            text-align: center;
        }

        .form {
            box-sizing: border-box;
            max-width: 800px;
            margin: 0 auto;
            padding: 40px;
            background: white;
            border-radius: 20px;
        }

        fieldset {
            padding-top: 20px;
        }

        label {
            display: block;
            font-weight: 600;
        }

        .input.select,
        .input.radio {
            padding: 15px 0;

            .checkbox label,
            label:not(:first-child) {
                font-weight: normal;
            }
        }

        .buttons {
            a.cancel {
                display: inline-block;
                margin-right: 30px;
                color: var(--text-color);

                i {
                    margin-right: 8px;
                }
            }

            button {
                font-size: 16px;
            }
        }
    }

    .dashboard.teacher {
        padding: 40px 20px;
        background: #f7f7f7;

        .profiles {
            margin-bottom: 50px;

            h2 {
                margin-bottom: 15px;
                font-size: 32px;
                text-align: center;
            }

            .not_online {
                margin: 40px 0 20px;
                background: #900;
                padding: 20px;
                color: white;
                border-radius: 20px;
                text-align: center;

                h4 {
                    margin-bottom: 0;
                }

                p {
                    margin-top: 10px;
                    margin-bottom: 5px;
                }
            }

            .list {
                padding: 20px 0 40px;
                gap: 20px;

                .profile,
                .new_profile {
                    position: relative;
                    flex: 0 0 330px;
                    box-sizing: border-box;
                    padding: 30px;
                    margin-bottom: 20px;
                    background-color: white;
                    border-radius: 20px;
                }

                .new_profile {
                    padding: 0;
                    width: fit-content;
                    margin: 0px auto;
                    padding-top: 40px;
                    background: transparent;

                    a {
                        display: block;
                        text-align: center;
                        align-content: center;
                        padding: 15px 45px;
                        border-radius: 50px;
                        font-size: 18px;
                        background: #2196F3;
                        color: white;
                        transition: all 0.3s;
                    }

                    a:hover {
                        background: #1272c0;
                    }
                }

                .profile {
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: space-between;
                    padding-bottom: 25px;

                    .details {
                        flex: 1;

                        h4 {
                            margin-bottom: 10px;
                            font-size: 24px;
                        }
                    }

                    .price {
                        span {
                            display: inline-block;
                            padding: 10px 20px;
                            margin-top: 20px;
                            border-radius: 10px;
                            background: #36aaee;
                            color: white;
                        }
                    }
                }

                .profile.inactive {
                    opacity: 0.5;
                }

                .statusbar {
                    align-self: center;
                    text-align: right;

                    .status {
                        display: flex;
                        justify-content: right;
                        align-items: center;
                        padding-bottom: 10px;

                        .label {
                            padding-right: 20px;
                            font-weight: bold;
                        }
                    }

                    .switch {
                        position: relative;
                        display: inline-block;
                        width: 60px;
                        height: 34px;
                    }

                    /* Hide default HTML checkbox */
                    .switch input {
                        opacity: 0;
                        width: 0;
                        height: 0;
                    }

                    /* The slider */
                    .slider {
                        position: absolute;
                        cursor: pointer;
                        top: 0;
                        left: 0;
                        right: 0;
                        bottom: 0;
                        background-color: #c10900;
                        -webkit-transition: .4s;
                        transition: .4s;
                    }

                    .slider:before {
                        position: absolute;
                        content: "";
                        height: 26px;
                        width: 26px;
                        left: 4px;
                        bottom: 4px;
                        background-color: white;
                        -webkit-transition: .4s;
                        transition: .4s;
                    }

                    input:checked+.slider {
                        background-color: #2196F3;
                    }

                    input:focus+.slider {
                        box-shadow: 0 0 1px #2196F3;
                    }

                    input:checked+.slider:before {
                        -webkit-transform: translateX(26px);
                        -ms-transform: translateX(26px);
                        transform: translateX(26px);
                    }

                    /* Rounded sliders */
                    .slider.round {
                        border-radius: 34px;
                    }

                    .slider.round:before {
                        border-radius: 50%;
                    }
                }

                .actions {
                    text-align: right;

                    a {
                        display: inline-block;
                        color: var(--text-color);
                        font-size: 16px;
                        padding: 10px 20px;
                        border: 1px #333 solid;
                        border-radius: 50px;
                        transition: all 0.3s;
                    }

                    a:hover {
                        background: #333;
                        color: white;
                    }

                    i {
                        margin-right: 10px;
                    }

                    ul {
                        list-style: none;
                    }

                    li {
                        padding: 5px 0;
                    }

                    li.delete_profile a {
                        border-color: #990000;
                        color: #990000;
                    }

                    li.delete_profile a:hover {
                        background: #990000;
                        color: white;
                    }
                }

                .status a {
                    color: var(--text-color);
                }
            }
        }

        .newest_requests {
            padding: 30px 40px;
            margin-bottom: 50px;
            border-radius: 20px;
            background: white;

            h2 {
                font-size: 32px;
                padding-bottom: 25px;
                text-align: center;
            }

            .no_requests {
                text-align: center;
                font-size: 20px;
                color: #777;
            }

            table {
                width: 100%;
                border-collapse: collapse;

                a.btn {
                    font-size: 14px;
                    padding: 10px 15px;
                }
            }

            th,
            td {
                padding: 10px;
                border: none;
                font-size: 14px;
                border-bottom: 1px #ddd solid;
            }

            th {
                text-align: left;
            }

            td.status span {
                display: inline-block;
                padding: 10px 15px;
                border-radius: 10px;
            }

            tr.status_0 {
                td.status span {
                    background-color: rgb(15, 95, 255);
                    color: white;
                }
            }

            tr.status_1,
            tr.status_2 {
                td.status span {
                    background-color: rgb(255, 238, 0);
                    color: #3d3d3d;
                }
            }

            tr.status_3 {
                td.status span {
                    background-color: #7dcb00;
                    color: white;
                }
            }

            tr.status_4,
            tr.status_5 {
                td.status span {
                    background-color: rgb(217, 5, 5);
                    color: white;
                }

                a {
                    color: white;
                }
            }

            .all {
                padding-top: 30px;
            }
        }
    }

    .dashboard.teacher.all_requests {
        .back-to-dashboard {
            i {
                margin-right: 15px;
            }
        }

        .pagination {
            padding-top: 40px;

            ul {
                display: flex;
                padding-left: 0;
                margin: 0;
                list-style: none;
            }

            li {
                padding-right: 15px;
            }

            a {
                display: inline-block;
                width: 40px;
                padding: 10px 0;
                text-align: center;
                border-radius: 50px;
                color: #333;
            }

            li.first,
            li.prev,
            li.next,
            li.last {
                a {
                    width: auto;
                }
            }

            li.disabled a {
                pointer-events: none;
                opacity: 0.7;
                color: #aaa;
            }

            li.active a {
                background: var(--link-color);
                color: white;
                border-radius: 50%;
            }
        }
    }

    .container > .verify_email,
    .container > .verify_phone_number,
    .container > .upload_image {
        .back {
            padding-bottom: 50px;

            i {
                margin-right: 10px;
            }
        }

        .form {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 20px;

            .buttons a,
            .buttons button {
                margin-bottom: 15px;
                font-size: 15px;
            }
        }
    }

    .requests_respond {
        flex: 1;
        background: #f7f7f7;
        padding: 40px 30px;

        h3 {
            margin-bottom: 0;
        }

        p {
            margin-top: 0;
        }

        form {
            padding-top: 20px;
        }

        .wrap {
            max-width: 600px;
            margin: 0 auto;
            padding: 30px;
            border-radius: 20px;
            background: white;
        }

        .otherplans,
        .hidden_inputs {
            display: none;
        }

        .abort {
            padding-bottom: 30px;

            i {
                padding-right: 5px;
            }
        }

        .buttons {
            display: flex;
            flex-wrap: wrap;
            padding-top: 10px;
            text-align: center;
            flex-direction: column;
            align-items: center;

            a {
                display: block;
                width: fit-content;
                margin: 10px 0;
            }
        }

        .replanOpen {
            .otherplans {
                display: block;
            }

            .back {
                padding-bottom: 20px;
                font-weight: bold;
            }

            .weekdays,
            .input.text {
                padding-bottom: 25px;
            }

            .checkbox>label {
                font-weight: normal;
            }

            .weekdays>label,
            .input.text>label {
                font-weight: 600;
                padding-bottom: 5px;
                display: block;
            }
        }

        .replanOpen>.buttons {
            display: none;
        }
    }

    .requests_replan {
        background: #f7f7f7;
        flex: 1;
        padding: 40px;

        .wrap {
            max-width: 600px;
            margin: 0 auto;
            padding: 30px 40px;
            background: white;
            border-radius: 20px;
        }

        .abort {
            padding-bottom: 30px;

            i {
                padding-right: 5px;
            }
        }

        .teacher,
        .description {
            text-align: center;
        }

        .hidden_inputs {
            display: none;
        }

        .buttons {
            display: flex;
            flex-wrap: wrap;
            padding-top: 10px;
            text-align: center;
            flex-direction: column;
            align-items: center;

            a {
                display: block;
                width: fit-content;
                margin: 10px 0;
            }
        }
    }

    .view.request {
        flex: 1;
        background: #f7f7f7;
        padding: 40px 30px;

        .wrap {
            padding: 30px 20px;
            background: white;
            border-radius: 20px;
        }

        dt {
            font-weight: bold;
        }

        dd {
            margin-left: 0;
            padding-bottom: 20px;
        }

        .buttons {
            padding-top: 30px;
        }

        .back {
            padding-bottom: 20px;

            i {
                padding-right: 10px;
            }
        }
    }

    .thanks {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 40px;
    }

    .settings {
        display: flex;
        flex-wrap: wrap;
        padding: 50px 40px;
        gap: 80px;

        .sidebar {
            flex: 0 0 200px;
        }

        .row {
            flex: 1;
        }

        ul.sidemenu {
            list-style: none;
            padding-left: 0;
            margin: 0 0 80px;

            li {
                margin: 7px 0;
            }

            a {
                padding: 5px 10px;
                color: var(--text-color);
            }

            li.active a,
            a:hover {
                color: var(--link-color);
            }
        }

        .delete.user {
            text-align: center;
            padding-top: 50px;

            a {
                color: #a00;
            }
        }
    }
}

body.searchPage {
    .container {
        background: #f7f7f7;
        position: relative;
    }

    .container>.search {
        display: flex;
        flex-wrap: wrap;

        .heading_title {
            display: flex;
            justify-content: center;
            align-items: baseline;

            #btn__filter {
                display: none;
            }
        }

        .filters {
            flex: 0 0 350px;
            margin: 40px;
            background: white;
            border-radius: 20px;

            #filter__close {
                display: none;
            }

            form {
                padding: 40px;

                .filter {
                    margin-bottom: 15px;
                    border-radius: 10px;
                }

                label {
                    display: block;
                    font-size: 15px;
                    font-weight: 600;
                }

                button {
                    font-size: 13px;
                    font-weight: bold;
                }

                input[type="range"] {
                    margin-bottom: 0;
                }

                .checkbox {
                    display: flex;

                    input {
                        width: auto;
                        margin-right: 10px;
                    }

                    label {
                        cursor: pointer;
                    }
                }
            }

            button.styled {
                border: none;
                appearance: none;
                cursor: pointer;
                font-size: 16px;
                font-weight: normal;
            }
        }

        .center {
            padding-right: 40px;
            padding-left: 40px;
            flex: 1;

            h1 {
                text-align: center;
                padding-top: 70px;
            }

            h2 {
                text-align: center;
            }

            .emptyResult {
                flex: 0 0 100%;
            }
        }

        .results {
            display: flex;
            flex-wrap: wrap;
            background: #f7f7f7;
            padding: 40px;
        }
    }
}


.article-container {
    width: 100%;
    max-width: 1380px;
    padding: 0 15px;
    margin: 30px auto;

    .accordion {
        background: var(--bg);
        border-radius: var(--radius);
        box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
        overflow: hidden;
    }

    .accordion__item {
        h3 {
            margin: 0;
        }
    }

    .accordion__item+.accordion__item {
        border-top: 1px solid #eef2f7;
    }

    .accordion__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .accordion__button {
        all: unset;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem;
        cursor: pointer;
        gap: 1rem;
    }

    .accordion__title {
        font-weight: 600;
    }

    .accordion__meta {
        color: var(--muted);
        font-size: .95rem;
    }

    .icon {
        width: 1.25rem;
        height: 1.25rem;
        flex: 0 0 1.25rem;
        display: inline-grid;
        place-items: center;
        transition: transform .22s ease;
    }

    .accordion__button[aria-expanded="true"] .icon {
        transform: rotate(45deg);
    }

    .accordion__panel {
        padding: 0 1rem 1rem;
        background: var(--panel);
        animation: fade .18s ease;
    }

    .accordion__panel[hidden] {
        display: none;
    }

    @keyframes fade {
        from {
            opacity: 0;
            transform: translateY(-4px)
        }

        to {
            opacity: 1;
            transform: none
        }
    }

    .faq p {
        margin: .5rem 0;
    }
}

footer {
    background: #3c3c3c;
    color: white;
    padding: 60px 40px 40px;

    a {
        color: white;
        text-decoration: none;
        transition: opacity 0.2s;
    }

    a:hover {
        opacity: 0.7;
    }

    .wrap {
        display: flex;
        justify-content: space-between;
        max-width: 1400px;
        margin: 0 auto;
        gap: 60px;
    }

    .left {
        display: flex;
        gap: 60px;
        flex: 1;
    }

    .block {
        flex: 0 0 280px;
        max-width: 280px;

        h3 {
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 18px;
            font-weight: 600;
        }

        p {
            margin: 0;
            line-height: 1.6;
            font-size: 14px;
        }

        ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        li {
            padding: 5px 0;
            font-size: 14px;
        }

        .logoFooter {
            padding-bottom: 15px;

            img {
                max-width: 150px;
            }
        }

        .description {
            font-size: 14px;
            line-height: 1.6;
        }
    }

    .right {
        flex: 0 0 auto;

        .socials ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            gap: 15px;
        }

        .socials li {
            display: inline-block;
        }

        .socials a {
            display: block;
            padding: 10px 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
            font-weight: 600;
        }

        .socials a:hover {
            background: rgba(255, 255, 255, 0.2);
            opacity: 1;
        }
    }
}

@media print {

    .top-nav-links,
    .print {
        display: none;
    }
}

@media(max-width: 1100px) {
    body.searchPage {
        .container>.search {
            .center {
                padding-right: 15px;
                padding-left: 15px;
            }

            .heading_title {
                justify-content: space-between;

                #btn__filter {
                    display: block;
                }
            }

            &>.filters {
                display: none;
                position: absolute;
                inset: 0;
                margin: 40px auto;
                width: min(700px, calc(100vw - 30px));

                &.show {
                    display: block;
                }

                form.styled {
                    background: white;
                }

                #filter__close {
                    display: block;

                    i {
                        margin-right: 0;
                    }
                }
            }
        }
    }

    .main {
        .searchPopup {
            ul li {
                flex: 0 0 50%;
            }
        }
    }

    body.searchFiltersOpen {
        .center,
        footer {
            filter: blur(10px);
            opacity: 0.8;
            pointer-events: none;
        }

        #search__filters {
            z-index: 100;
        }
    }
}

@media(max-width: 1024px) {
    .main {
        .header {
            h1 {
                font-size: 38px;
            }

            h3 {
                font-size: 20px;
            }

            a.button.styled.big {
                padding: 18px 40px;
                font-size: 18px;
            }
        }

        .profile_view {
            .wrap {
                grid-template-columns: 1fr;
                /* Single column */
                grid-template-rows: auto;
                /* Let rows size naturally */
            }

            .personal {
                grid-column: 1;
                grid-row: 1;
            }

            .info {
                grid-column: 1;
                grid-row: 2;
            }

            .description {
                grid-column: 1;
                grid-row: 3;
            }
        }
    }

    footer {
        .wrap {
            flex-direction: column;
            gap: 40px;
        }

        .left {
            flex-wrap: wrap;
            gap: 40px;
        }

        .block {
            flex: 0 0 calc(50% - 20px);
            max-width: calc(50% - 20px);
        }

        .right {
            .socials ul {
                justify-content: center;
            }
        }
    }
}

@media(max-width: 800px) {
    .top-nav {
        .access {
            display: none;
        }
    }
}

@media(max-width: 640px) {
    .top-nav {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main {
        .header {
            background-image: url('../img/home/header-home-mobile.png');
            background-position: center;

            h1 {
                font-size: 32px;
            }

            h3 {
                font-size: 18px;
            }
        }

        .col-2 {
            grid-template-columns: 1fr;

            .text {
                order: 2;
            }
        }

        .profile_view {
            .wrap {
                padding-left: 20px;
                padding-right: 20px;
            }

            .personal {
                .photo {
                    flex: 0 0 100%;

                    .img {
                        width: 100%;
                        height: auto;
                    }

                    .img::after {
                        content: "";
                        display: block;
                        padding-top: 85%;
                    }
                }

                .details {
                    padding-left: 0;
                    padding-top: 20px;
                }
            }

            .info {
                background: transparent;
                padding: 0;
            }
        }

        .requests_add {
            padding: 1px 0 40px;

            .form {
                border-radius: 0;
                padding: 40px 20px;
            }

            .buttons {
                text-align: center;

                a.cancel {
                    margin-right: 15px;

                    i {
                        margin-right: 5px;
                    }
                }

                button.btn {
                    padding: 15px 20px;
                }
            }
        }

        .searchPopup {
            ul li {
                flex: 0 0 100%;
            }
        }

        section.wrap {
            font-size: 16px;
            line-height: normal;
        }
    }

    footer {
        padding: 40px 20px 30px;

        .left {
            flex-direction: column;
            gap: 30px;
        }

        .block {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }
}

@media(max-width: 480px) {
    .main {
        .subject_cards_list {
            display: none;
        }

        section.subjects.wrap {
            padding: 40px 0;
            width: 100vw;
        }

        .subject_cards_list_mobile {
            display: block;
            background: #F9F9F9;
        }
    }
    
    .top-nav {
        align-items: center;

        .top-nav-title {
            img {
                max-width: 140px;
            }
        }

        .top-nav-links {
            .quickmenu {
                a.btn {
                    padding: 15px 20px;
                    font-size: 14px;
                }
            }
        }
    }

    .body.home {
        .random_profiles {
            padding-left: 20px;
            padding-right: 20px;

            .profile_card {
                flex: 1;
                width: auto;
            }
        }
    }

    body.searchPage {
        .container>.search {
            .results {
                padding: 40px 0;
            }

            .profile_card {
                flex: 1;
                margin-left: 0;
                margin-right: 0;
            }

            .filters {
                form {
                    padding: 30px 20px;
                }
            }
        }
    }
}

@media(max-width: 400px) {
    .main {
        .header {
            background-size: 430px;
        }
    }

    .top-nav {
        .top-nav-links {
            .quickmenu {
                display: none;
            }
        }
    }
}