@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

:root {
    --main-color: #ff9f1a;
    --bg-color-1: #eee;
    --bg-color-2: #fff;
    --text-color-1: #444;
    --text-color-2: #666;
    --box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .1);
    --border: .1rem solid rgba(0, 0, 0, .1);
    --yellow:#ffa801;

}

* {
    font-family: "Cairo", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: none;
    transition: .2s linear;
}

html {
    font-size: 58.5%;
    overflow-x: hidden;
    scroll-padding-top: 7rem;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    width: 1rem;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 5rem;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    background: var(--bg-color-1);
}

body.active {
    --bg-color-1: #222;
    --bg-color-2: #333;
    --text-color-1: #fff;
    --text-color-2: #eee;
    --box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .3);
    --yellow:#ffa801;
}

section {
    padding: 2rem 9%;
}

.swal2-close {
    color: white !important;
    background: red;
    border-radius: 15%;
}

.swal2-close:hover {
    color: white !important;
    background: red;
    transform: scale(1.2);
    opacity: 70%;
}

.home-btn {
    display: inline-block;
    margin-top: 1rem;
    padding:.7rem 2.5rem;
    font-size: 1.7rem;
    color:#fff;
    border:.2rem solid var(--yellow);
    cursor: pointer;
    background:none;
    font-weight: bolder;
}

.home-btn:hover {
    background:var(--yellow);
    color:#fff;
}

.btn{
    display: inline-block;
    margin-top: 1rem;
    padding:.7rem 2.5rem;
    font-size: 1.7rem;
    color:var(--yellow);
    border:.2rem solid var(--yellow);
    cursor: pointer;
    background:none;
    font-weight: bolder;
  }
  
  .btn:hover{
    background:var(--yellow);
    color:#fff;
  }

.heading {
    text-align: center;
    color: var(--text-color-1);
    text-transform: uppercase;
    font-size: 4rem;
    padding-bottom: 2rem;
}

.heading span {
    color: var(--main-color);
    text-transform: uppercase;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color-2);
    padding: 1.5rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.header .logo {
    font-weight: bolder;
    font-size: 2.5rem;
    color: var(--text-color-1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header .logo img {
    width: 5rem;
}

.header .logo i {
    text-decoration: none;
    color: var(--main-color);
    font-weight: bolder;
    font-size: 2.5rem;
    font-style: normal;
}

.header .icons div {
    height: 4.5rem;
    line-height: 4.5rem;
    width: 4.5rem;
    text-align: center;
    border-radius: 50%;
    font-size: 1.7rem;
    color: var(--text-color-1);
    background: var(--bg-color-1);
    margin-left: .5rem;
    cursor: pointer;
}

.header .icons div:hover {
    background: var(--main-color);
    color: #fff;
}

#share {
    position: fixed;
    top: 50%;
    right: -29.5rem;
    display: flex;
    transform: translateY(-50%);
    box-shadow: 0 .3rem .5rem rgba(0, 0, 0, .3);
    z-index: 100;
}

#share.share-active {
    right: 0;
}

#share i,
#share a {
    font-size: 2rem;
    padding: 1.5rem 2rem;
}

#share i {
    background: #444;
    color: #fff;
    cursor: pointer;
}

#share a {
    background: var(--bg-color-1);
    color: var(--main-color);
    border-left: .1rem solid rgba(0, 0, 0, .3);
}

#share a:hover {
    background: var(--main-color);
    color: var(--bg-color-1);
}

#share i:hover {
    background: var(--main-color);
    ;
}

.home-section {
    padding: 0 7%;
    padding-top: 7.5rem;
    padding-bottom: 3rem;
    min-height: 100vh;
    background: var(--bg-color-1);
}

.home {
    display: flex;
    align-items: center;
    background: url(images/home-bg3.png) no-repeat;
    background-size: cover;
    background-position: center;
    flex-wrap: wrap;
}

.home .image {
    padding-top: 4rem;
    flex: 1 1 40rem;
    animation: float 3s linear infinite;

}


@keyframes float {

    0%,
    100% {
        transform: translateY(0rem);
    }

    50% {
        transform: translateY(-3.5rem);
    }
}

.home .content {
    padding: 1rem;
    flex: 1 1 40rem;
}

.home .content h1 {
    color: #eee;
    font-size: 5.5rem;
    text-transform: uppercase;
}

.home .content p {
    color: #fff;
    font-size: 1.7rem;
}

.home .image img {
    width: 100%;
}

.home .content .btn {
    color: #fff;
    background: var(--main-color);
}



.feature {
    padding-top: 5rem;

}

.feature .box-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.feature .box-container .box {
    margin: 1rem;
    text-align: center;
    padding: 2rem 4rem;
    border: .1rem solid rgba(0, 0, 0, .2);
    flex: 1 1 30rem;
    background: var(--bg-color-2);
}

.feature .box-container .box:hover {
    box-shadow: var(--box-shadow);
    border: var(--border);
    transform: scale(1.05);
}

.feature .box-container .box h3 {
    font-size: 2.5rem;
    color: var(--text-color-1);
    padding: 1rem 0;
}

.feature .box-container .box p {
    font-size: 1.3rem;
    color: var(--text-color-2);
    padding-bottom: 1rem;
}


.course-section {
    min-height: 100vh;
    padding: 1rem 7%;
    padding-top: 6rem;
}

.course .box-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.course .box-container .box {
    width: 35rem;
    border: .1rem solid rgba(0, 0, 0, .3);
    position: relative;
    margin: 1.5rem;
    background: var(--bg-color-2);
}

.course .box-container .box img {
    height: 20rem;
    width: 100%;
    object-fit: cover;
}

.course .box-container .box .content {
    padding: 1rem;
}

.course .box-container .box .content .stars i {
    color: #f39c12;
    font-size: 1.7rem;
    padding: 1rem .1rem;
}

.course .box-container .box .content .title {
    color: var(--text-color-1);
    font-size: 2.1rem;
}

.course .box-container .box .content .title:hover {
    text-decoration: underline;
}

.course .box-container .box .content p {
    padding: 1rem 0;
    color: var(--text-color-2);
    font-size: 1.5rem;
}

.course .box-container .box .content .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: .5rem;
    border-top: .1rem solid rgba(0, 0, 0, .3);
}

.course .box-container .box .content .info h3 {
    font-size: 1.5rem;
    padding: 1rem;
    color: var(--text-color-2);
}

.course .box-container .box .content .info h3 i {
    color: #f39c12;
}

.course .box-container .box .price {
    position: absolute;
    top: 16rem;
    right: 1rem;
    height: 8rem;
    width: 8rem;
    line-height: 8rem;
    text-align: center;
    border-radius: 50%;
    background: var(--main-color);
    color: #fff;
    font-size: 3rem;
}

.reviews .review-slider {
    padding-bottom: 3rem;
}

.reviews .review-slider .box {
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
    opacity: .4;
    transform: scale(.9);
    background: var(--bg-color-2);
}



.reviews .review-slider .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    box-shadow: var(--box-shadow);
    border: var(--border);
    border-radius: .5rem;
}

.reviews .review-slider .swiper-slide-active:hover {
    box-shadow: var(--box-shadow);
    border: var(--border);
    transform: scale(1.05);
}

.reviews .review-slider .box img {
    height: 7rem;
    width: 7rem;
    border-radius: 50%;
    object-fit: cover;
}

.reviews .review-slider .box .content p {
    color: var(--text-color-2);
    font-size: 1.4rem;
    padding: 1rem 0;
}

.reviews .review-slider .box .content h3 {
    color: var(--text-color-1);
    font-size: 2.2rem;
    padding-bottom: .5rem;
}

.reviews .review-slider .box .content .stars i {
    color: #f39c12;
    font-size: 1.7rem;
}

.contact .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    background: var(--bg-color-2);
}

.contact .row .image {
    flex: 1 1 35rem;
    animation: float 3s linear infinite;
}

@keyframes float {

    100%,
    0% {
        transform: translateY(0rem);
    }

    50% {
        transform: translateY(-3rem);
    }

}


.contact .row .image img {
    width: 100%;
}

.contact .row form {
    flex: 1 1 50rem;
    padding: 2rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .1);
    border-radius: .5rem;
}

.contact .row form .inputBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: var(--bg-color-2);
    color: var(--text-color-1);
}

.contact .row form .inputBox input,
.contact .row form textarea {
    width: 49%;
    margin: 1rem 0;
    padding: 1rem;
    font-size: 1.7rem;
    background: var(--bg-color-2);
    color: var(--text-color-1);
    text-transform: none;
}

.contact .row form input::placeholder,
.contact .row form textarea::placeholder {
    color: var(--text-color-1)
}


.contact .row form textarea {
    height: 15rem;
    resize: none;
    width: 100%;
}

.contact .box-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.contact .box-container .box {
    flex: 1 1 30rem;
    margin: 1rem;
    padding: 3rem 1rem;
    background: var(--bg-color-2);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    border-radius: .5rem;
    text-align: center;
}

.contact .box-container .box:hover {
    box-shadow: var(--box-shadow);
    /* border: var(--border); */
    transform: scale(1.05);
}

.contact .box-container .box i {
    height: 6rem;
    width: 6rem;
    line-height: 6rem;
    border-radius: 50%;
    font-size: 3rem;
    background: var(--bg-color-1);
    color: var(--main-color);
}

.contact .box-container .box h3 {
    color: var(--text-color-1);
    padding: 1rem 0;
    font-size: 2rem;
}

.contact .box-container .box p {
    font-size: 1.5rem;
    color: var(--text-color-2);
}


.brand-container {
    text-align: center;
}


.footer{
    text-align: center;
  }
  
  .footer .icons{
    padding:3rem 0;
  }
  
  .footer .icons a{
    height:4.5rem;
    width: 4.5rem;
    line-height: 4.2rem;
    text-align: center;
    border-radius: 50%;
    color:var(--main-color);
    border:.2rem solid var(--main-color);
    font-size: 2rem;
    margin:0 .1rem;
    transition: .2s linear;
  }
  
  .footer .icons a:hover{
    color:#fff;
    background:var(--main-color);
    border-color: var(--main-color);
  }
  
  
  .footer .credit{
    font-size: 2rem;
    border-top: .1rem solid #999;
    margin:0 auto;
    margin-bottom: 2rem;
    color:#666;
    width:90%;
    padding:1rem 0;
  }
  
  .footer .credit span{
    color:var(--main-color);
  }
  



img {
    max-width: 100%;
    height: auto;
}

.home,
.contact .row,
.feature .box-container,
.course .box-container {
    min-width: 0;
}


.course-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    background: var(--bg-color-1);
    /* align-items: center; */
}

/* Title */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--text-color-1);
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid var(--bg-color-2);
    background: var(--bg-color-2);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    color: var(--text-color-1);
}

.icon {
    font-size: 20px;
    transition: 0.3s;
}

.accordion-item.active .icon {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* Lessons */
.lesson-list {
    list-style: none;
    padding: 0 18px 18px;
    margin: 0;
}

.lesson-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--text-color-1);
    font-size: 15px;
    color: var(--text-color-2);
}

.lesson-list li:last-child {
    border-bottom: none;
}

/* RTL ترتيب */
.lesson-name {
    text-align: right;
    flex: 1;
}

.duration {
    text-align: left;
    min-width: 60px;
    background: var(--bg-color-1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-color-1);
}





.scroll-top {
    position: fixed;
    bottom: 7.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.scroll-top img {
    width: 8rem;
    animation: float 3s linear infinite;
}

@keyframes float {

    100%,
    0% {
        transform: translateY(0rem);
    }

    50% {
        transform: translateY(-3rem);
    }

}





/* =========================================
   PROFESSIONAL RESPONSIVE SYSTEM
   يعمل على كل الأجهزة باحتراف
========================================= */

/* ---------- تحسين عام ---------- */


@media (max-width:450px) {

    html {
        font-size: 50%;
    }

    .contact form .inputBox input {
        width: 100%;
    }

}




/* =========================================
   TABLET
========================================= */
@media (max-width: 991px) {

    html {
        font-size: 55%;
    }

    section {
        padding: 2rem 4%;
    }

    .header {
        padding: 1.5rem 4%;
    }

    /* HOME */
    .home {
        flex-direction: column;
        text-align: center;
    }

    .home .content h3 {
        font-size: clamp(3rem, 6vw, 4rem);
        line-height: 1.3;
        text-transform: none;
        margin-top: 5rem;
    }

    .home .image {
        padding-top: 2rem;
    }

    /* FEATURES */
    .feature .box-container {
        gap: 2rem;
    }

    /* COURSES */
    .course .box-container {
        gap: 2rem;
    }

    .course .box-container .box {
        width: 45%;
    }

    /* CONTACT */
    .contact .row {
        flex-direction: column;
    }

}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 768px) {

    html {
        font-size: 52%;
    }

    section {
        padding: 2rem 5%;
    }

    /* HEADER */
    .header {
        padding: 1rem 5%;
    }

    .header .navbar,
    .header .search-form,
    .header .colors-palette {
        width: 92%;
        right: 4%;
    }

    /* HOME */
    .home {
        flex-direction: column;
        text-align: center;
        overflow: hidden;
    }

    .home .content {
        width: 100%;
        padding: 2rem 0;
    }

    .home .content h3 {
        font-size: clamp(2.4rem, 7vw, 3.2rem);
        line-height: 1.4;
        word-break: break-word;
    }

    .home .content p {
        font-size: clamp(1.4rem, 4vw, 1.6rem);
        padding: 0 1rem;
    }

    .home .image img {
        width: min(90%, 350px);
        margin: auto;
    }

    /* FEATURES */
    .feature .box-container {
        flex-direction: column;
    }

    .feature .box-container .box {
        width: 100%;
        padding: 2rem;
    }

    /* COURSES */
    .course .box-container {
        flex-direction: column;
    }

    .course .box-container .box {
        width: 100%;
        margin: 1rem 0;
    }

    .course .box-container .box .price {
        top: 13rem;
        width: 6.5rem;
        height: 6.5rem;
        line-height: 6.5rem;
        font-size: 2.2rem;
    }

    /* CONTACT */
    .contact .row form .inputBox input {
        width: 100%;
    }

    .contact .box-container {
        flex-direction: column;
    }

    .contact .box-container .box {
        width: 100%;
    }

    /* FOOTER */
    .footer .box-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

}

/* =========================================
   SMALL MOBILE
========================================= */
@media (max-width: 480px) {

    html {
        font-size: 50%;
    }

    .heading {
        font-size: 2.6rem;
    }

    .scroll-top img {
        width: 6rem;
    }

}






/* =============================
   Mobile First Responsive Design
   مناسب لجميع أحجام هواتف المحمول
============================= */

/* الهواتف الصغيرة جداً */
@media (max-width: 360px) {

    .course-content {
        padding: 10px;
        margin: 20px auto;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    /* الفيديو */
    .video-preview {
        width: 100%;
    }

    .video-preview iframe {
        height: 160px;
        border-radius: 8px;
    }

    /* الأكوردين */
    .accordion-header {
        font-size: 14px;
        padding: 12px 8px;
    }

    .icon {
        font-size: 16px;
    }

    /* الدروس */
    .lesson-list {
        padding: 0 10px 10px;
    }

    .lesson-list li {
        font-size: 13px;
        gap: 8px;
    }

    .duration {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* الهواتف المتوسطة (معظم الموبايلات) */
@media (min-width: 361px) and (max-width: 480px) {

    .course-content {
        padding: 14px;
        margin: 25px auto;
    }

    .section-title {
        font-size: 20px;
    }

    .video-preview iframe {
        height: 190px;
    }

    .accordion-header {
        font-size: 15px;
        padding: 14px 10px;
    }

    .lesson-list li {
        font-size: 14px;
    }
}

/* الهواتف الكبيرة / الفابلت */
@media (min-width: 481px) and (max-width: 768px) {

    .course-content {
        max-width: 650px;
        padding: 18px;
    }

    .video-preview {
        width: 100%;
    }

    .video-preview iframe {
        height: 240px;
    }

    .section-title {
        font-size: 24px;
    }

    .accordion-header {
        font-size: 16px;
    }
}

.swal2-html-container {
    background: var(--bg-color-1);
}

.swal2-html-container {
    background: var(--bg-color-1);
}

.swal2-popup {
    background: var(--bg-color-1);
}