/* custom */
/*************************/
/*************************/
/*************************/
.center {
    text-align: center;
}

img {
    max-width: 100%;
}

.maxw-100 {
    max-width: 100% !important;
}

.maxw-50 {
    max-width: 50% !important;
}

/****spin***/
.spin {
    animation-name: spin;
    animation-duration: 1000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear
}

.spinfast {
    animation-name: spin;
    animation-duration: 500ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear
}

@keyframes spin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

/****form****/
.loading .ajaxnow {
    display: none;
}

.ajaxloading {
    display: none;
}

.loading .ajaxloading {
    display: block;
}

.pointer-none {
    pointer-events: none;
}

.errnotediv {
    color: #e50029;
    min-height: 1px;
}

/****span err****/
span.err {
    display: block;
    font-size: 14px;
    background: #ddd;
    padding: 4px 10px;
    margin-top: 5px;
    border-radius: 3px;
}

span.err.success {
    color: #06a022;
    background: #76dc7240;
}

span.err.danger {
    color: #e50029;
    background: #ff696940;
}

span.err.warning {
    color: #dc8d00;
    background: #d6c33340;
}

span.err.info {
    color: #343689;
    background: #6f71b340;
}

span.err.light {
    color: #444444;
    background: #6a6a6a40;
}

/****player****/
ul.vjs-menu-content {
    max-width: 70px;
}

ul.vjs-menu-content>li {
    background: #2B333F !important;
    color: #fff !important;
}


/* global */
/************/
:root {
    --primary-red: #ea252c;
    --light-gray: #f7f7f7;
    --gray: lightgray;
    --dark-gray: #4e4e4e;
    --success: #14cd8f;
    --warning: #f9c80e;
    --light-text: #777980;
    --dark-text: #4a4c56;
    --dark-bg: #1c1e2b;
}

html {
    font-size: 14px;
}

body {
    font-family: "Baloo Da 2", sans-serif;
    font-optical-sizing: auto;
}

h1 {
    font-weight: bold;
}

.light-text {
    color: var(--light-text) !important;
}

.dark-text {
    color: var(--dark-text) !important;
}

.wide-text {
    letter-spacing: 1px;
}

.primary-red {
    color: var(--primary-red) !important;
}

.primary-bg {
    background: var(--primary-red);

    &:hover {
        opacity: 80%;
        background-color: var(--primary-red) !important;
    }

    &:active {
        background-color: var(--primary-red) !important;
    }
}

.btn-outline {
    background: transparent;
    color: var(--primary-red) !important;
    border: 1px var(--primary-red) solid;

    &:hover {
        border: 1px var(--primary-red) solid !important;
        opacity: 80%;
    }
}

.primary-hover:hover {
    transition: 0.3s all ease-in-out;
    color: var(--primary-red) !important;
}

.btn-cta {
    width: 100%;

    @media (min-width: 992px) {
        width: auto;
    }
}

.bg-transparent {
    background: transparent !important;
}

.bg-lightgray {
    background-color: var(--light-gray);
}

.dark-bg {
    background-color: var(--dark-bg);
}

.success-text {
    color: var(--success) !important;
}

.success-bg {
    background-color: var(--success);

    &:hover {
        opacity: 80%;
        background-color: var(--success);
    }
}

.warning {
    background: #f9c60e18;
    border: 2px solid var(--warning);
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    background: white;
    height: 40px;
    width: 40px;
    border-radius: 100%;
    color: white;

    &:hover {
        .c-btn {
            color: var(--primary-red);
        }
    }

    &::after {
        display: none;
    }
}

.swiper-pagination-bullet {
    background: var(--primary-red);
    width: 40px;
    height: 6px;
    border-radius: 5px;
}

.c-btn {
    color: gray;
}

label {
    display: block;
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

input,
select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid var(--gray);
    margin-bottom: 1rem;
}


/* header */
/************/
nav {
    z-index: 999;

    .active {
        color: var(--primary-red) !important;
        font-weight: 600;
    }
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--gray);

    @media (max-width: 992px) {
        display: none;
    }
}

.nav-divider-horizontal {
    width: 100%;
    height: 1px;
    margin-top: 1rem;
    background: var(--gray);

    @media (min-width: 992px) {
        display: none;
    }
}


/* footer */
/************/
footer {
    background: #101719;
    padding: 6rem 0 3rem 0;

    a {
        display: block;
        width: 150px;
        color: var(--light-text);
        text-decoration: none;
        font-weight: 300;

        &:hover {
            text-decoration: underline;
        }
    }

    .logo {
        width: 200px;
    }

    span {
        color: var(--light-text);
    }

    .social {
        img {
            width: 33px;
            height: 33px;
        }
    }

    hr {
        height: 1px;
        border-color: white;
    }
}

/* home */
/************/


.hr {
    margin-top: 1rem;
    position: relative;
    height: 1.5px;
    background: var(--gray);
    width: 100%;

    .center {
        position: absolute;
        height: 100%;
        width: 20%;
        left: 40%;
        background: var(--primary-red);
    }
}

.carousel {
    img {
        max-height: calc(100vh - 90px);
    }

    .indicator {
        background-color: #ffffff66;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 100%;

        span {
            width: 20px;
            height: 20px;
        }
    }
}

.services {
    img {
        height: 60px;
        width: 60px;
    }

    h1 {
        font-weight: bold;
    }

    @media (min-width: 576px) {
        margin-top: -6rem;
    }
}

.courses {
    .course {
        border-radius: 1rem;
        overflow: hidden;
        position: relative;

        .tag {
            position: absolute;
            top: 10px;
            right: 10px;
            color: #fff;
            border: 0;
            cursor: auto;

            &.online {
                background-color: #0cd08f;
            }

            &.offline {
                background-color: royalblue;
            }
        }

        img {
            width: 100%;
        }

        .teacher {
            height: 30px;
            width: 30px;
            border-radius: 100%;
        }

        h5 {
            font-weight: bold;

            @media (max-width: 767px) {
                font-size: 1rem;
            }
        }
    }
}

.stars {
    i {
        font-size: 1.3rem;
        color: var(--warning);

        &:last-child {
            color: var(--gray);
        }
    }
}

.aboutus {
    padding-top: 6rem;
    background: #fdf3f3;

    .left {
        @media (min-width: 992px) {
            padding-bottom: 5rem;
        }
    }

    img {
        width: 100%;
    }

    p {
        margin: 2rem 0;
        color: var(--light-text);
    }

    .list {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;

        i {
            font-size: 2rem;
        }

        p {
            margin: 0;
            color: #000;
            font-weight: 500;
        }
    }
}

.teachers {
    padding-top: 6rem;

    img {
        width: 100%;
        border-radius: 100%;
    }
}

.reviews {
    padding-top: 6rem;

    img {
        height: 50px;
        width: 50px;
        border-radius: 100%;
    }
}


/* all courses */
/************/
.all-courses {
    .top {
        background-color: var(--dark-bg);

        h1 {
            font-size: 3rem;

            @media (min-width: 992px) {
                font-size: 4rem;
            }
        }
    }

    img {
        width: 100%;
        max-width: 600px;
    }
}

/* course details */
/************/
.course-details {
    position: relative;

    .top {
        padding-bottom: 12rem;

        @media (min-width: 767px) {
            padding-bottom: 18rem;
        }

        @media (min-width: 992px) {
            padding-bottom: 0;
        }

        .top-title {
            font-weight: 600;
            font-size: 2rem;
        }
    }

    .teacher {
        width: 40px;
        height: 40px;
        border-radius: 100%;
    }

    img {
        width: 100%;
    }

    .card {
        position: relative;
        top: -19rem;

        @media (min-width: 992px) {
            top: -16rem;
        }
    }

    .video {
        margin-top: -13rem;

        @media (min-width: 992px) {
            margin-top: 0;
        }
    }

    .nav-tabs .nav-link.active {
        color: var(--primary-red);
        border: none;
        border-bottom: 2px solid var(--primary-red);
    }

    .nav-tabs .nav-link {
        border: none;
        color: #535353;
        font-weight: 600;
    }

    .tab-content>.tab-pane {
        display: none;
    }

    .tab-content>.tab-pane.active {
        display: block;
    }

    .text-container {
        position: relative;
        max-height: 100px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .text-container::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background: linear-gradient(to bottom, #ffffff00, white);
        transition: opacity 0.3s ease;
    }

    .text-container.expanded {
        max-height: none;
    }

    .text-container.expanded::after {
        opacity: 0;
    }

    .full-text {
        display: block;
    }

    .show-more {
        cursor: pointer;
        color: var(--primary-red);
        font-weight: bold;
        display: flex;
        align-items: center;
        margin-top: 10px;
    }

    .accordion-button:not(.collapsed) {
        background-color: #d3d3d341;
    }

    .accordion-button:focus {
        box-shadow: none;
    }

    .course-list {
        border-top: 1px solid var(--gray);

        img {
            width: 80px;
        }
    }

    .admission {
        margin-top: 5rem;
        padding: 5rem 0;
        background-color: var(--primary-red);

        .contact {
            h5 {
                @media (min-width: 992px) and (max-width: 1200px) {
                    font-size: 1rem;
                }
            }
        }
    }
}


/************/
/************/
/************/
/************/


/****TEMP****/
/* global */
.input1 {
    padding: 7px 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.select1 {
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0 5px;
}

.btn1 {
    border-radius: 3px;
    padding: 8px 15px;
}

.card1 {
    background: #fff;
    border-radius: 3px;
    padding: 15px;
    box-shadow: 0px 0px 10px -4px rgba(0, 0, 0, 0.5);
}

.heading1 span {
    background: var(--apcolorgr);
    color: #fff;
    padding: 5px 50px;
    border-radius: 0px 40px;
    box-shadow: 0 .3rem 1rem rgba(0, 0, 0, .5) !important;
}

@media only screen and (max-width: 768px) {

    .toplogo,
    .nav li.opt {
        display: none !important;
    }

    footer .jYjs {
        margin-bottom: 20px;
    }

    ul.nav {
        margin-right: 10px;
    }

    header {
        padding-top: 5px;
    }

    header .btn-apsp {
        margin-top: 0 !important;
    }
}

/************** TMP END *******/

/* purchase page */
.promodiv {
    border: 1px solid #ddd;
    margin: 20px 0;
    border-radius: 8px;
}

.promodiv input {
    margin: 0;
    border: 0;
    padding-left: 20px;
}

.promodiv .btn {
    padding: 0;
    width: 50px;
    text-align: center;
    line-height: 40px;
}

/***** FOOTER *****/
/* long test */
.longtxt {
    padding: 50px 0;
    font-size: 16px;
}

.longtxt h3 {
    text-decoration: underline;
    font-size: 35px;
}

.longtxt h4 {
    font-weight: 700;
}

p.licence {
    display: block;
    color: #eee;
    padding-top: 30px;
    padding-left: 12px;
}


/* nav */
.mainnavbar li a{
    color: #111;
}
@media (min-width: 992px) {
    #navbarNavDropdown{
        margin-top: 10px;
    }
    .mainnavbar li{
        border-right: 1px solid #ddd;
    }
    .mainnavbar li:last-child{
        border-right: none;
    }
}
@media (max-width: 991px) {
    #navbarNavDropdown{
        margin-top: 10px;
    }
    .mainnavbar{
        border: 1px solid #ddd;
        border-radius: 7px;
        background-color: #f8f8f8;
        background: linear-gradient(90deg, rgba(248,248,248,1) 0%, rgba(232,232,232,1) 51%, rgba(248,248,248,1) 100%);
    }
    .mainnavbar li{
        border-bottom: 1px solid #ccc;
    }
    .mainnavbar li:last-child{
        border-bottom: none;
    }
}