:root {
    --red: #d2232a;
    --dark: #212121;
    --white: #ffffff;
    --yellow: #f2ca8c;
    --gray: #5f6774;
    --off-white: #fcfbf9;
    --nav-bg: #fcfbf9;
    --radius: 6px;
    --border-color: rgba(33, 33, 33, 0.1);
}

.header_area .main_menu ul li ul.leftcontrol_submenu {
    left: auto !important;
    right: 100% !important;
}

.items-center {
    align-items: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.flex {
    display: flex;
}

.gap-20 {
    gap: 20px;
}

.w-full {
    width: 100%;
}

.header_area {
    /* padding-top: 20px;
  padding-bottom: 20px; */
    padding: 20px;
    background-color: var(--nav-bg);
}

nav {
    display: grid;
    place-items: center;

    img {
        width: 100%;
        object-fit: cover;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    a:hover {
        color: var(--red);
    }

    .primary-btn-new {
        background-color: var(--red) !important;
        border: 1px solid transparent !important;
        color: var(--white) !important;
        font-size: 13px;
        font-weight: 700;
        line-height: 16.25px;
        text-align: center;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
    }

    .secondary-btn-new {
        background-color: transparent !important;
        border: 1px solid var(--red) !important;
        color: var(--red) !important;
        font-size: 13px;
        font-weight: 700;
        line-height: 16.25px;
        text-align: center;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
    }

    button {
        border: none;
        outline: none;
        padding: 10px 20px;
        border-radius: var(--radius);
        cursor: pointer;
        transition: transform 0.2s ease-in-out;
    }
}

.nav-container {
    margin: 0 auto;
    z-index: 9999;
    width: 100%;
}

nav .logo,
.nav_mobile .logo {
    height: 30px;
    width: 150px;
}

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

nav .search-input {
    flex: 1;
    max-width: 300px;
    height: 38px;
    /* border: 1px solid var(--border-color); */
    outline: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding-inline: 20px;

    input {
        border: none;
        color: #000000;
        border-radius: 8px;
        background: #fff;
        height: 42px;
        font-size: 14px;
        line-height: 1.4;
        font-style: normal;
        font-weight: 300;
        line-height: 30px;
    }
}

nav .search-input .icon {
    color: var(--border-color);
}

nav button {
    padding-inline: 30px;
}

nav .auth_buttons {
    display: flex;
    gap: 20px;
}

nav .search-input input::placeholder {
    font-family: poppins;
    font-weight: 400;
}

.navbar-new .menu {
    display: none;
}

@media (max-width: 1080px) {
    .navbar-new {
        .nav_inner_content {
            display: none;
        }

        .menu {
            display: block;
        }
    }
}

/* drop down menu index issue */

@media (max-width: 768px) {
    .header__right.login_user .profile_info_iner {
        top: 40px;
    }
}

@media (max-width: 576px) {
    .header__right.login_user .profile_info_iner {
        top: 70px;
    }
}

/* Course dropdown */

.course_menu {
    position: relative;
    display: flex;
    font-size: 14px;
    font-weight: 500;
    line-height: 17.5px;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    cursor: pointer;
    color: #212121;
    padding: 15px 0;
    transition: all 0.4s;
}

.course_menu:hover {
    color: var(--red);
}

.course_dropdown {
    position: absolute;
    top: 44px;
    left: 0;
    border: 1px solid #2121211a;
    box-shadow: 0px 4px 10px 0px #2121210a;
    background-color: #fcfbf9;
    padding: 20px;
    width: 100%;
    min-width: 554px;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    display: none;

    z-index: 99999;
    height: 370px;

    .course_menu_item {
        text-decoration: none;
        font-size: 12px;
        font-weight: 500;
        line-height: 15px;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
        color: #000;
        width: 246px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.4s;

        span {
            display: flex;
        }
    }

    .course_menu_item:hover {
        color: var(--red);
    }
}

.course_menu:hover {
    .course_dropdown {
        display: flex;
    }
}

/* Login popup */

header {
    /* Button to open modal */
    .open-modal-btn {
        padding: 10px 20px;
        font-size: 16px;
        color: #fff;
        background-color: #dc3545;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    /* Modal styling */
    .modal {
        display: none;
        /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        padding: 0px 20px;
        z-index: 9999;
    }

    .modal-content {
        background-color: #fff;
        width: 100%;
        max-width: 500px;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        text-align: center;
        overflow-y: auto;
        max-height: 93vh;
    }
}

.modal-content h2 {
    margin-bottom: 40px;
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.modal-content label {
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    margin-bottom: 5px;
    color: #212121;
    width: 100%;
}

.modal-content .recaptcha,
.modal-content .social-login {
    margin: 15px 0;
}

.modal-content .submit-btn {
    width: 100%;
    padding: 14px;
    color: #fff;
    background-color: #dc3545;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 17.5px;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    max-width: 180px;
    margin-top: 30px;
}

.modal-content .social-login button {
    margin: 5px;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content .social-login .facebook {
    background-color: #3b5998;
    color: #fff;
}

.modal-content .social-login .google {
    background-color: #db4437;
    color: #fff;
}

.modal-content .social-login .apple {
    background-color: #333;
    color: #fff;
}

.modal-content .forgot-password {
    display: flex;
    justify-content: flex-end;
}

.modal-content .forgot-password a {
    margin: 10px 0;
    font-size: 10px;
    font-weight: 500;
    line-height: 12.5px;
    text-align: right;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    opacity: 40%;
    color: #212121;
}

.social-login p {
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    margin-bottom: 24px;
}

.social-login-btn {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-login-btn a {
    border: 1px solid #2121211a;
    display: flex;
    gap: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 17.5px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #212121;
    padding: 14px 22px;
}

/* Otp Modal */

.all_otp_modal {
    .modal-content h2 {
        font-size: 24px;
        font-weight: 500;
        line-height: 30px;
        text-align: center;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
        margin: 0;
        margin-top: 20px;
        color: #000000;
        margin-bottom: 30px;
    }

    .otp_top {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;

        p {
            font-family: Quicksand;
            font-size: 12px;
            font-weight: 500;
            line-height: 15px;
            text-align: left;
            text-underline-position: from-font;
            text-decoration-skip-ink: none;
            color: #212121;
        }

        button {
            font-size: 12px;
            font-weight: 500;
            line-height: 15px;
            text-align: right;
            text-decoration-line: underline;
            text-decoration-style: solid;
            text-underline-position: from-font;
            text-decoration-skip-ink: none;
            cursor: pointer;
            background: none;
            border: none;
            color: #d2232a;
        }
    }

    .otp_number {
        display: flex;
        gap: 20px;
        margin-bottom: 30px;

        input {
            margin: 0;
            text-align: center;
            color: #212121;
            font-size: 14px;
            font-weight: 500;
            line-height: 17.5px;
            text-underline-position: from-font;
            text-decoration-skip-ink: none;
            width: 100%;
        }
    }

    .otp_bottom {
        font-size: 12px;
        font-weight: 500;
        line-height: 15px;
        text-align: center;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
        color: #212121;
    }

    @media (max-width: 768px) {
        .otp_number {
            gap: 10px;
        }
    }

    .send_otp_form_text {
        font-size: 12px;
        font-weight: 500;
        line-height: 15px;
        text-align: center;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
        color: #212121;
        opacity: 50%;
        margin: 0;
        margin-bottom: 20px;
        margin-top: 20px;
    }
}

.send_otp_sub {
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #212121;
    opacity: 50%;
    margin-bottom: 16px;
}

#sendOtpModel {
    h2 {
        margin-bottom: 12px;
    }

    @media (max-width: 768px) {
        .otp_number {
            gap: 10px;
        }

        h2 {
            margin-top: 0;
        }

        .modal-content .submit-btn {
            margin-top: 0;
        }
    }
}

.input-wrapper {
    display: flex;
    align-items: center;
    border-radius: 6px;
    padding: 14px 16px;
    border: 1px solid #2121211a;
}

.input-wrapper svg {
    margin-right: 10px;
}

.input-wrapper input {
    border: none;
    outline: none;
    font-size: 14px;
    color: #000;
    background: transparent;
    flex-grow: 1;
    height: 100%;
    border-radius: 0;
    padding: 0;
    line-height: 1;
}

.input-wrapper input::placeholder {
    color: #212121;
    opacity: 40%;
}

.input_field_row {
    display: flex;
    justify-content: center;
    gap: 30px;
}

/* Or divider */

.divider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.divider {
    flex: 1;
    height: 1px;
    background-color: #ddd;
    margin: 0 10px;
}

.divider-text {
    font-size: 14px;
    color: #212121;
    font-weight: bold;
    white-space: nowrap;
    opacity: 20%;
}

#signupModal {
    .modal-content {
        max-width: 850px;
    }

    .modal-content h2 {
        display: grid;
        grid-template-columns: repeat(3, auto);
        align-items: center;

        p {
            grid-column: 2 / 3;
            font-size: 24px;
            font-weight: 500;
            line-height: 30px;
            text-align: center;
            text-underline-position: from-font;
            text-decoration-skip-ink: none;
        }

        button {
            grid-column: 3 / 4;
            color: #d2232a;
            font-size: 12px;
            font-weight: 500;
            line-height: 15px;
            text-align: right;
            text-decoration-line: underline;
            text-decoration-style: solid;
            text-underline-position: from-font;
            text-decoration-skip-ink: none;
            border: none;
            outline: none;
            background: none;
            width: max-content;
            justify-self: end;
        }
    }

    .checkbox_input_container {
        display: flex;
        align-items: center;
        gap: 12px;

        input {
            height: auto;
        }

        label {
            margin: 0;
        }
    }
}

.input_field_row {
    margin-bottom: 24px;
}

.input_container {
    width: 100%;
}

.select_input_container {
    .input-wrapper {
        padding-bottom: 9px;

        svg {
            margin-bottom: 5px;
        }

        select {
            width: 100%;
            border: none;
            padding-bottom: 5px;
            outline: 0;
            cursor: pointer;
        }
    }
}

@media (max-width: 768px) {
    .input_field_row {
        flex-direction: column;
    }
}

.modal_close_btn {
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
    margin-bottom: 5px;

    svg {
        width: 100%;
        height: auto;
        max-width: 24px;
    }
}

.forget_pass_text {
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #212121;
    margin: 0 auto;
    margin-top: 10px;
    max-width: 303px;
}

/* Header Mobile */

.nav_mobile {
    display: none;

    position: fixed;
    top: 0;
    z-index: 999;
    background: #fff;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;

    .header_top {
        margin-bottom: 20px;
    }

    .search-input {
        flex: 1;
        max-width: 300px;
        height: 38px;
        /* border: 1px solid var(--border-color); */
        outline: 1px solid var(--border-color);
        border-radius: var(--radius);
        display: flex;
        align-items: center;
        background-color: var(--white);
        padding-inline: 20px;

        input {
            border: none;
            color: #000000;
            border-radius: 8px;
            background: #fff;
            height: 42px;
            font-size: 14px;
            line-height: 1.4;
            font-style: normal;
            font-weight: 300;
            line-height: 30px;
        }
    }
}

@media (max-width: 992px) {
    .nav_mobile {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: 0.4s all;

        .search_bar {
            margin-bottom: 20px;
        }

        .search-input {
            max-width: 100%;

            input {
                width: 100%;
            }
        }

        .courses_menu {
            display: flex;
            flex-direction: column;
            gap: 15px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, opacity 0.3s ease;
            opacity: 0;

            .course_menu_item {
                color: #000;
            }
        }

        .courses_menu.open {
            max-height: none;
            opacity: 1;
        }

        .course_main_title {
            font-size: 14px;
            font-weight: 500;
            line-height: 17.5px;
            text-align: left;
            text-underline-position: from-font;
            text-decoration-skip-ink: none;
            margin-bottom: 10px;
            cursor: pointer;
        }

        .course_menu_item {
            color: #000;
            font-size: 12px;
            font-weight: 500;
            line-height: 15px;
            text-align: left;
            text-underline-position: from-font;
            text-decoration-skip-ink: none;
        }

        .mobile_menu_item {
            font-size: 14px;
            font-weight: 500;
            line-height: 17.5px;
            text-align: left;
            text-underline-position: from-font;
            text-decoration-skip-ink: none;
            color: #212121;
            display: flex;
            margin-top: 10px;
        }

        .auth_buttons {
            margin-top: 15px;

            button:nth-child(1) {
                background-color: var(--red) !important;
                border: 1px solid transparent !important;
                color: var(--white) !important;
                font-size: 13px;
                font-weight: 700;
                line-height: 16.25px;
                text-align: center;
                text-underline-position: from-font;
                text-decoration-skip-ink: none;
                padding: 8px 12px;
                border-radius: 6px;
            }

            button:nth-child(2) {
                background-color: transparent !important;
                border: 1px solid var(--red) !important;
                color: var(--red) !important;
                font-size: 13px;
                font-weight: 700;
                line-height: 16.25px;
                text-align: center;
                text-underline-position: from-font;
                text-decoration-skip-ink: none;
                padding: 8px 12px;
                border-radius: 6px;
            }
        }
    }

    .nav_mobile_overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        /* Black overlay with transparency */
        display: none;
        /* Hidden by default */
        z-index: 999;
        /* Above content, below sidebar */
    }

    .nav_mobile.open {
        transform: translateX(0);
    }

    .nav_mobile_overlay.show {
        display: block;
        /* Show overlay */
    }
}

/* User logged in avatar */

.auth_logged_in {
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;

    .cart_number {
        display: flex;
        font-size: 10px;
        background-color: #000;
        color: #fff;
        border-radius: 50%;
        padding: 1px 5.5px;
        position: absolute;
        top: -5px;
        left: -6px;
    }
    div:first-child {
        position: relative;
    }

    div:nth-child(2) {
        display: flex;

        img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            object-position: center;
        }
    }
    div:last-child {
        position: relative;

        .auth_user_menu {
            position: absolute;
            top: 200%;
            right: 0;
            padding: 0;
            box-shadow: 0px 0px 20px 0px #0000000f;
            border-radius: 15px;
            display: flex;
            flex-direction: column;
            width: 340px;
            background-color: #fff;
            display: none;

            .auth_user_menu_title {
                font-size: 16px;
                font-weight: 700;
                line-height: 20px;
                color: #212121;
                padding-bottom: 10px;
                padding: 20px;
                padding-bottom: 10px;
                border-bottom: 1px solid #21212130;
                margin: 0;
            }

            .auth_user_menu_item {
                text-decoration: none;
                margin: 10px 20px;
                font-size: 16px;
                font-weight: 500;
                line-height: 20px;
                color: #5f6774;
                transition: all 0.4s;
            }
            .auth_user_menu_item:hover {
                color: #d2232a;
            }
            .auth_user_menu_item:first-child {
                margin-top: 20px;
            }
        }
    }
}

.auth_logged_in.active {
    div:last-child {
        .auth_user_menu {
            display: flex;
        }
    }
}

@media all and (max-width: 992px) {
    .auth_logged_in {
        margin-top: 10px;
        display: flex;
        align-items: flex-start;
        flex-direction: column;

        div {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        div:first-child {
            img {
                width: 30px;
                height: 30px;
            }
        }

        .auth_user_menu_mobile {
            position: static;
            padding: 0;
            display: flex;
            flex-direction: column;
            width: 100%;
            background-color: #fff;
            align-items: flex-start;
            transition: max-height 0.3s ease, opacity 0.3s ease;
            opacity: 0;
            max-height: 0;

            .auth_user_menu_title {
                font-size: 16px;
                font-weight: 700;
                line-height: 20px;
                color: #212121;
                padding-bottom: 10px;
                padding: 20px;
                padding-bottom: 10px;
                border-bottom: 1px solid #21212130;
                margin: 0;
                padding: 0;
            }

            .auth_user_menu_item {
                text-decoration: none;
                font-weight: 500;
                color: #5f6774;
                margin: 0;
                font-size: 14px;
                line-height: 18px;
                transition: all 0.4s;
            }
            .auth_user_menu_item:hover {
                color: #d2232a;
            }
            .auth_user_menu_item:first-child {
                margin-top: 20px;
            }
        }
    }
}

/* Newsletter Popup */

#popupContentDiv {
    display: none;
}

/* Body */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#back-top{
    bottom: 75px !important;
}
