@font-face {
    font-family: "din-next-lt-arabic";
    src: url("../fonts/din-next-lt-arabic-ultralight.ttf");
    font-weight: 200;
    ascent-override: 90%;
}
@font-face {
    font-family: "din-next-lt-arabic";
    src: url("../fonts/din-next-lt-arabic-light.ttf");
    font-weight: 300;
    ascent-override: 90%;
}
@font-face {
    font-family: "din-next-lt-arabic";
    src: url("../fonts/din-next-lt-arabic-regular.ttf");
    font-weight: 400;
    ascent-override: 90%;
}
@font-face {
    font-family: "din-next-lt-arabic";
    src: url("../fonts/din-next-lt-arabic-medium.ttf");
    font-weight: 500;
    ascent-override: 90%;
}
@font-face {
    font-family: "din-next-lt-arabic";
    src: url("../fonts/din-next-lt-arabic-bold.ttf");
    font-weight: 700;
    ascent-override: 90%;
}
@font-face {
    font-family: "din-next-lt-arabic";
    src: url("../fonts/din-next-lt-arabic-black.ttf");
    font-weight: 800;
    ascent-override: 90%;
}
@font-face {
    font-family: "din-next-lt-arabic";
    src: url("../fonts/din-next-lt-arabic-heavy.ttf");
    font-weight: 900;
    ascent-override: 90%;
}

:root {
    --bs-body-font-family: "din-next-lt-arabic", sans-serif;
    --app-colors-orange: #ff8d28;
    --app-colors-orange-light: #ecae5b;
    --app-colors-teal: #16b3be;
    --app-colors-teal-light: #28b8bb;
    --app-colors-teal-dark: #149da7;
    --app-colors-teal-light-rgb: 40, 184, 187;
    --app-colors-primary: #1d447a;
    --app-colors-gray: #a5a5a5;
    --app-colors-gray-light: #e2e2e2;
    --app-colors-gray-dark: #3f3f3f;
    --app-colors-red: #f46562;
}

.side-bottom-radius {
    border-bottom-left-radius: 100px;

    @media (min-width: 576px) {
        border-bottom-left-radius: 190px;
    }
}

header {
    position: relative;
    overflow: hidden;
    &::after {
        content: "";
        position: absolute;
        z-index: -1;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, #144789 35.51%, #5ca4b3 87%);
    }
}

.page-header-img {
    opacity: 0.15;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    @media (min-width: 992px) {
        height: auto;
        object-fit: contain;
    }
}

.navbar {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-top: 32px;
    padding-bottom: 20px;

    .navbar-brand {
        .logo {
            height: 50px;
            width: 190px;
            object-fit: contain;
        }
    }

    .navbar-nav {
        .nav-link {
            color: white;
            opacity: 0.8;
            font-size: 18px;

            &.active {
                color: var(--app-colors-orange-light);
            }

            &:hover {
                opacity: 1;
                color: var(--app-colors-orange-light);
            }
        }

        &.end-nav {
            .nav-link {
                color: var(--app-colors-teal-light);
            }
        }
    }
}

.btn {
    --bs-btn-font-size: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    --bs-btn-bg: var(--app-colors-primary);
    --bs-btn-border-color: var(--app-colors-primary);
    --bs-btn-disabled-bg: var(--app-colors-primary);
    --bs-btn-disabled-border-color: var(--app-colors-primary);
}

.btn-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--app-colors-teal);
    --bs-btn-border-color: var(--app-colors-teal);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--app-colors-teal-dark);
    --bs-btn-hover-border-color: var(--app-colors-teal-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--app-colors-teal-dark);
    --bs-btn-active-border-color: var(--app-colors-teal-dark);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--app-colors-teal);
    --bs-btn-disabled-border-color: var(--app-colors-teal);
}
.btn-outline-light {
    --bs-btn-color: var(--app-colors-gray-light);
    --bs-btn-border-color: var(--app-colors-gray-light);
    /* --bs-btn-hover-bg: var(--app-colors-gray-light); */
    --bs-btn-hover-border-color: var(--app-colors-gray-light);
    /* --bs-btn-active-bg: var(--app-colors-gray-light); */
    --bs-btn-active-border-color: var(--app-colors-gray-light);
    --bs-btn-disabled-color: var(--app-colors-gray-light);
    --bs-btn-disabled-border-color: var(--app-colors-gray-light);
}

.header-img {
    opacity: 0.15;
    height: 100%;
    width: 100%;
    object-fit: cover;
    bottom: 0;
}

#homeCarousel {
    .carousel-inner .carousel-item {
        .carousel-caption {
            position: relative;
            color: var(--app-colors-orange);
            top: 0;
            left: 0;
            right: 0;
            text-align: start;

            .title {
                font-size: 36px;
                @media (min-width: 992px) {
                    font-size: 50px;
                }
            }

            p {
                font-size: 18px;
                color: #fff;
                @media (min-width: 992px) {
                    font-size: 24px;
                }
            }

            .btn {
                width: 150px;
            }

            img:nth-child(1) {
                @media (max-width: 767px) {
                    margin-top: -40px;
                }
            }
            img:nth-child(2) {
                width: 60%;
                @media (min-width: 767px) {
                    margin-top: 70px;
                }
            }
        }
    }
}

.section-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    color: var(--app-colors-primary);

    &::after,
    &::before {
        content: "";
        position: relative;
        z-index: -1;
        margin-top: 16px;
        top: 0;
        width: 70px;
        height: 1px;
        background-color: #e0aa62;
    }
}

.course-card {
    border: 1px solid var(--app-colors-gray-light);
    border-radius: 20px;
    transition: all 0.2s linear;

    &:hover {
        cursor: pointer;
        transform: translateY(-10px);
    }

    > img {
        border-radius: 20px 20px 0 0;
        height: 200px;
        width: 100%;
        object-fit: cover;
    }

    .course-card-title {
        color: var(--app-colors-gray-dark);
        padding: 22px 50px;
        font-size: 24px;
        background-color: rgba(var(--app-colors-teal-light-rgb), 0.2);
    }

    .course-card-info {
        li {
            list-style: none;
            .title {
                color: var(--app-colors-teal);
            }
        }
    }
}

.fav-btn {
    width: 32px;
    height: 32px;
    color: var(--app-colors-gray-dark);
    &:hover {
        .bi {
            color: var(--app-colors-red);

            &::before {
                content: "\F415";
            }
        }
    }
    .bi {
        font-size: 16px;
    }
}

.currency-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--app-colors-gray-light);
    border-radius: 6px;
    padding: 0 8px;
    height: 32px;
    color: var(--app-colors-red);

    .currency-badge-icon {
        width: 16px;
        height: 16px;
        /* fill: currentColor; */
    }
}

footer {
    position: relative;
    overflow: hidden;

    .logo-effect {
        position: absolute;
        z-index: -1;
        bottom: -50px;
        inset-inline-end: 0;
        width: 260px;
        height: 380px;
        object-fit: contain;
        pointer-events: none;
    }

    .logo {
        width: 220px;
        height: 194;
        object-fit: contain;
    }

    .footer-title {
        font-size: 20px;
        margin-bottom: 32px;
    }

    .nav {
        .nav-item {
            margin-bottom: 8px;
        }

        .nav-link {
            color: var(--app-colors-gray);
            padding-inline-start: 0;

            &:hover {
                font-weight: 500;
                color: var(--app-colors-teal);
            }
        }

        &.social {
            .nav-link {
                padding: 0;
                width: 40px;
                height: 40px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                border-radius: 100%;
                border: 1px solid var(--app-colors-gray-light);
                color: var(--app-colors-gray);

                &:hover {
                    color: var(--app-colors-teal);
                    rotate: 180%;
                }
            }
        }
    }
}

.auth-layout {
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;

    .auth-title {
        font-size: 32px;
        font-weight: 500;
        text-align: center;
        margin-bottom: 24px;
        color: var(--app-colors-primary);
    }

    .auth-subtitle {
        font-size: 18px;
        text-align: center;
        color: var(--app-colors-gray);
    }

    /* .auth-form {
        width: 400px;
        max-width: 100%;
        padding: 20px;
        border-radius: 10px;
        background-color: var(--app-colors-gray-light);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    } */
}

.tabs {
    padding: 12px;
    border-radius: 20px;
    background-color: #ebf0f3;

    .nav-link {
        text-align: center;
        color: var(--app-colors-primary);
        padding: 12px;
        border-radius: 12px;
        width: 100%;

        &.active {
            color: #fff;
            background-color: var(--app-colors-teal);
        }
    }
}

.form-layout {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
}

.form-control-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 12px;

    .form-control-icon {
        position: absolute;
        top: 50%;
        inset-inline-end: 0;
        transform: translateY(-50%);
        color: var(--app-colors-gray);
    }
}

.form-label {
    font-size: 18px;
    margin-bottom: 0;
    color: var(--app-colors-primary);
}

.form-control {
    width: 100%;
    height: 48px;
    outline-color: var(--app-colors-teal-light);
    border: 1px solid var(--app-colors-gray-light);

    &::placeholder {
        color: var(--app-colors-gray);
    }

    &:focus {
        outline-color: var(--app-colors-teal-light);
        border-color: var(--app-colors-teal-light);
        box-shadow: 0 0 0 0.25rem rgba(var(--app-colors-teal-light-rgb), 0.2);
    }
}

.faq-section,
.admission-section {
    position: relative;
    margin-top: -120px;
    z-index: 10;

    @media (min-width: 768px) {
        margin-top: -150px;
    }
}

.faq-content-box,
.admission-content-box {
    max-width: 1200px;
    margin: 0 auto;
    border-color: var(--app-colors-gray-light) !important;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12);

    @media (min-width: 768px) {
        padding: 60px 80px !important;
        border-radius: 80px !important;
    }
}

.faq-title,
.admission-title {
    color: var(--app-colors-primary);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;

    @media (min-width: 768px) {
        font-size: 32px;
    }
}

.admission-body {
    font-size: 16px;
    line-height: 1.7;
    color: black;

    @media (min-width: 768px) {
        font-size: 18px;
    }

    p {
        margin-bottom: 1.2rem;
    }

    .section-heading {
        color: var(--app-colors-orange-light);
        font-size: 20px;
        font-weight: 700;
        margin-top: 2.5rem;
        margin-bottom: 1.2rem;

        @media (min-width: 768px) {
            font-size: 24px;
            margin-top: 3rem;
        }
    }

    .content-list {
        list-style-position: outside;
        padding-right: 1.5rem;
        margin-bottom: 1.5rem;

        li {
            margin-bottom: 0.8rem;
            line-height: 1.7;

            @media (min-width: 768px) {
                margin-bottom: 1rem;
            }
        }

        &.numbered-list {
            list-style-type: decimal;
        }
    }

    .alert-box {
        background-color: #f8f9fa;
        border-right: 4px solid var(--app-colors-primary);
        border-radius: 8px;
        margin: 1.5rem 0;

        strong {
            color: var(--app-colors-primary);
            font-weight: 700;
        }
    }
}

.faq-accordion {
    .accordion-item {
        border: 1px solid var(--app-colors-primary);
        border-radius: 30px;
        margin-bottom: 18px;
        background-color: transparent;
        overflow: visible;

        @media (min-width: 768px) {
            border-radius: 35px;
        }

        &:last-child {
            margin-bottom: 0;
        }
    }

    .accordion-header {
        .accordion-button {
            background-color: transparent;
            color: var(--app-colors-primary);
            font-size: 16px;
            font-weight: 400;
            padding: 22px 35px 22px 75px;
            border: none;
            box-shadow: none;
            line-height: 1.5;
            min-height: 76px;
            display: flex;
            align-items: center;
            position: relative;
            border-radius: 30px;

            @media (min-width: 768px) {
                font-size: 18px;
                padding: 26px 40px 26px 85px;
                border-radius: 35px;
            }

            &:not(.collapsed) {
                background-color: transparent;
                color: var(--app-colors-primary);
            }

            &:focus {
                box-shadow: none;
                border: none;
            }

            &::after {
                content: "+";
                position: absolute;
                left: 12px;
                top: 12px;
                width: 50px;
                height: 50px;
                border: 1px solid var(--app-colors-primary);
                border-radius: 18px;
                background-color: white;
                color: var(--app-colors-primary);
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 36px;
                font-weight: 400;
                line-height: 1;
                background-image: none;
                margin: 0;
                flex-shrink: 0;
                transform: none;

                @media (min-width: 768px) {
                    font-size: 40px;
                    width: 52px;
                    height: 52px;
                    border-radius: 20px;
                }
            }

            &:not(.collapsed)::after {
                content: "−";
                background-color: var(--app-colors-primary);
                color: white;
                border-color: var(--app-colors-primary);
            }
        }
    }

    .accordion-collapse {
        border: none;
    }

    .accordion-body {
        background-color: rgba(var(--app-colors-teal-light-rgb), 0.15);
        color: var(--app-colors-gray);
        font-size: 15px;
        line-height: 1.65;
        padding: 18px 35px;
        margin: 0 12px 12px 12px;
        border-radius: 8px;

        @media (min-width: 768px) {
            font-size: 18px;
            line-height: 1.7;
            padding: 22px 40px;
            margin: 0 12px 12px 12px;
            border-radius: 10px;
        }
    }
}
