@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --primary-color: #0a6cb5;
    --primary-dark-color: #063c6a;
    --accent-color: #fcb825;
    --third-color: #daaf60;
    --fourth-color: #65a3d4;
    --text-color: #051a2d;
    --bg-color: #dbe9f4;
    --white-color: #ffffff;
    --black-color: #000200;
    --arabic-font: "Tajawal", sans-serif;
    --Poppins-font: "Poppins", serif;
    --transition: all 0.3s ease-in-out;
    --border-color: rgb(238, 238, 238);
    --border-radius: 10px;
}

@media (min-width: 992px) {
    .dropdown-menu{
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 0;
        min-width: 200px;
        animation: dropdown 0.3s ease forwards;
        top: 30px;
        overflow: hidden;
    }
    .dropdown:hover .dropdown-menu , .dropdown:hover .dropdown-menu.show {
        display: block;
        animation: dropdown_hover 0.3s ease forwards;
        transform: none !important;
    } 
}

@media (max-width: 1440px) and (min-width: 776px) {
    .btn_up , .btn_whatsApp_chat{
        width: 30px;
        height: 30px;
        font-size: 15px;
        bottom: 10px;
    }
    .btn_whatsApp_chat{
        left: 10px;
    }
    .btn_up.show{
        right: 10px;
    }
}

@media (max-width: 991px) {
    #nav{
        padding: 0 1rem;
    }
    #navbar_content:not(.show){
        display: flex !important;
        flex-direction: column;
        position: fixed;
        transform: translateX(-100%);
        top: 0;
        background: var(--white-color);
        height: 100vh;
        overflow: auto;
    }
    #navbar_content.collapse_content_shadow:not(.show){
        display: flex;
        transform: translateX(-100%);
        height: 100vh;
        overflow: auto;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: #000000cc;
    }
    #navbar_content.collapse_content_shadow{
        display: flex !important;
        position: fixed;
        height: 100%;
        width: 100%;
        transition: transform 0.4s, visibility 0.4s;
        will-change: transform, visibility;
        background: #000000cc;
        overflow: auto;
        overflow-x: hidden !important;
        left: 0;
        transform: translateX(0);
        padding: 1rem;
        z-index: 99;
    }
    #navbar_content{
        /* display: block !important; */
        flex-direction: column;
        position: fixed;
        top: 0;
        width: 320px;
        transition: transform 0.4s, visibility 0.4s;
        will-change: transform, visibility;
        background: var(--white-color);
        height: 100vh;
        overflow: auto;
        overflow-x: hidden !important;
        left: 0;
        transform: translateX(0);
        z-index: 99;
        padding: 1rem 1rem 1rem;
    }
    #navbar_content.navbar_collapse_shadow{
        width: 100%;
        background: #04233ed8;
        z-index: 99;
    }
    #nav-item{
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        margin-bottom: 0.5rem;
        padding: 0.7rem;
    }
    .dropdown-menu{
        margin-bottom: 0.5rem;
    }
    #dropdown-menu #nav-item{
        border: 0;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }
    #nav-item.enroll_nav{
        color: var(--white-color);
        background: var(--primary-dark-color);
    }
    #Btnnav_toggler{
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--primary-color);
        width: 30px;
        height: 30px;
        transition: var(--transition);
        font-size: 20px;
        border-radius: 5px;
        color: var(--white-color);
        background: var(--primary-color);
    }
    #Btnnav_toggler.btnClose_nav{
        border-color: var(--accent-color);
        background: var(--accent-color);
        margin-left: auto;
        margin-bottom: 2rem;
    }
    #Btnnav_toggler.btnClose_nav i{
        line-height: 1rem;
    }
 
    .cta_section {
        text-align: center;
    }

    .cta_content h2 {
        font-size: 2.2rem;
    }

    .cta_image {
        margin-top: 30px;
    }
    .footer {
        padding-top: 60px;
    }
    .faq-accordion-wrapper,
    .ask-question-wrapper {
        margin-bottom: 30px;
    }
    .course-hero {
        padding: 60px 0;
    }

    .course-header h1 {
        font-size: 1.5rem;
    }

    .course-preview-card {
        margin-top: 40px;
    }

    .learning-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #logo img{
        width: 70px;
    }
    /* .banner_home{
        padding: 70px 0;
    } */
    .banner_text h1{
        font-size: 30px;
    }
    .course_content h3{
        font-size: 1rem;
    }
    .testimonials_section {
        padding: 60px 0;
    }

    .testimonial_card {
        padding: 25px;
    }

    .testimonial_content p {
        font-size: 0.95rem;
    }
    .breadcrumb-blog{
        min-height: 150px;
    }
    .blog-header h1{
        font-size: 25px;
    }
    .blog-content{
        padding: 30px 0;
    }
    .banner_home .carousel-item{
        text-align: center;
    }
    .banner_home .img-fluid{
        max-width: 70%;
        width: 100%;
        margin: 0 auto;
    }
    
}
@media (max-width: 767px) {
    .section_header h2 {
        font-size: 2rem;
    }
    .cta_content h2 {
        font-size: 1.8rem;
    }
    .footer_bottom {
        text-align: center;
        padding-top: 0;
    }

    .footer_bottom_links {
        justify-content: center;
        margin-top: 15px;
    }
    .faq-section {
        padding: 50px 0;
    }

    .faq-accordion-wrapper,
    .ask-question-wrapper {
        padding: 20px;
    }
    .blog-details{
        padding: 20px;
    }
    .course-stats {
        flex-direction: column;
        gap: 15px;
    }

    .feature-box {
        margin-bottom: 20px;
    }
    .course-hero{
        padding-top: 30px;
    }
    /* #btn_carousel_home{
        top: 35%;
    } */
}
@media screen and (max-width: 650px){
    .login-section .container{ height: calc(100vh - 40px); }

    .login-section .form-box{
        bottom: 0;
        width: 100%;
        height: 70%;
        padding-top: 0px;
    }

    .login-section .container.active .form-box{
        right: 0;
        bottom: 30%;
    }

    .login-section .toggle-box::before{
        left: 0;
        top: -270%;
        width: 100%;
        height: 300%;
        border-radius: 20vw;
    }

    .login-section .container.active .toggle-box::before{
        left: 0;
        top: 70%;
    }

    .login-section .container.active .toggle-panel.toggle-left{
        left: 0;
        top: -30%;
    }

    .login-section .toggle-panel{ 
        width: 100%;
        height: 30%;
    }
    .login-section .toggle-panel.toggle-left{ top: 0; }
    .login-section .toggle-panel.toggle-right{
        right: 0;
        bottom: -30%;
    }
    .breadcrumb-blog h2{
        font-size: 30px;
    }
    .login-section .container.active .toggle-panel.toggle-right{ bottom: 0; }
    .content-body h2 , .content-body h3 , .share-section h4{
        font-size: 20px;
    }
    .content-body p{
        font-size: 15px;
    }
}
@media (max-width: 567px) {
    .footer_bottom_links a{
        font-size: 0.9rem;
    }
    .blog-header h1{
        font-size: 20px;
    }
    .banner_text h1{
        font-size: 22px;
    }
    #btn_carousel_home{
        display: none;
    }
}
@media screen and (max-width: 400px){
    .login-section .form-box { padding: 20px; }

    .login-section .toggle-panel h1{font-size: 30px; }
}
@media (max-width: 340px) {
    .topbar_header{
        padding: 0.5rem;
    }
    .list_contactInfo{
        flex-wrap: wrap;
        gap: 0.1rem;
    }
}
