:root{
    --primaryColor : #18113c;
    --secondaryColor : #754ffe;
    --greenColor : #19cb98;
    --darkColor : #000;
    --lightColor : #fff;
    --grayColor : #ededed;
    --grayColor2 : #d4d2d2;
}
/* start hero section */
.hero{
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--primaryColor);
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero .row{
    margin-left: 0px !important;
    margin-right: 0px !important;
}
.hero .hero-info ,
.hero .hero-img{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    overflow: hidden;
}
.hero .hero-info{
    padding-right: 70px;
    text-align: right;
    padding-bottom: 50px;
    margin-right: 0px !important;
}
.hero .hero-img{
    margin-left: 0px !important;
    overflow: hidden;
    z-index: inherit;
}
.hero .hero-img img{
    width: 80%;
    margin: 0px auto;
    margin-bottom: 100px;
    display: block;
}

.hero p{
    color: var(--grayColor);
    font-size: 30px;
    margin: 0px 0px 20px;
}
.hero h1{
    color: var(--lightColor);
    font-size: 50px;
    margin: 15px 0px;
}
.hero .hero-btn{
    width: 100%;
    margin: 20px 0px ;
}
.hero .hero-btn .btn1{
    color: var(--lightColor);
    font-size: 16px;
    margin: 0px 10px;
    text-decoration: none;
    padding: 8px 25px;
    border: 2px solid var(--lightColor);
    border-radius: 5px;
}
.hero .hero-btn .btn2{
    color: var(--lightColor);
    background-color: var(--secondaryColor);
     border: 2px solid var(--secondaryColor);
    font-size: 16px;
    margin: 0px 10px;
    text-decoration: none;
    padding: 8px 25px;
    border-radius: 5px;
}

/* end hero section */
/* start last-courses section */
.partner{
    width: 100%;
    background-color: var(--lightColor);
    padding: 260px 100px 50px;
    text-align: center;
    position: relative;
}
.partner .about-learning{
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.partner .about-learning .learning-type{
    width: 27%;
    padding: 35px;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1px;
    background-color: var(--lightColor);
    border-radius: 5px;
    box-shadow: 2px 2px 2px 2px rgb(232, 232, 232);
    transition: .5s ease-in;
    text-align: center;
}
.partner .about-learning .learning-type i{
    font-size: 26px;
    color: var(--secondaryColor);
    background-color: transparent;
}
.partner .about-learning .learning-type h1{
    font-size: 20px;
    color: var(--darkColor);
}
.partner .about-learning .learning-type p{
    font-size: 14px;
    color: var(--grayColor2);
    text-align: center;
}
.partner .about-learning .learning-type a{
    font-size: 14px;
    color: var(--lightColor);
    text-decoration: none;
    padding: 10px 27px;
    background-color: var(--secondaryColor);
    border-radius: 3px;
    border: 1px solid var(--secondaryColor);
}
.partner .about-learning .learning-type:hover{
    background-color: var(--secondaryColor);
}
.partner .about-learning .learning-type:hover i{
    color: var(--lightColor);
}
.partner .about-learning .learning-type:hover h1{
    color: var(--lightColor);
}
.partner .about-learning .learning-type:hover p{
    color: var(--lightColor);
}
.partner .about-learning .learning-type:hover a{
    color: var(--lightColor);
    background-color: transparent;
    border: 1px solid var(--lightColor) ;
}
.partner h1{
    color: var(--primaryColor);
    margin: 0px 0px 10px;
    font-size: 35px;
    font-weight: 700;
    text-align: center;
}
.partner span{
    color: var(--secondaryColor);
    margin: 0px;
    font-size: 20px;
    text-align: center;
    display: block;
}
.partner .logo-partner{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.partner .logo-partner img{
    width: 100px;
    height: 100px;
    margin: 20px;
}
.partner p{
    font-size: 18px;
    color: var(--darkColor);
    text-align: center;
    line-height: 2;
}
/* end last-courses section */
/* start last-courses section */
.last-courses{
    width: 100%;
    padding: 50px 100px;
}
.last-courses h1{
     font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}
.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto 30px !important;
    text-align: center;
}
.last-courses .course-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}
        
.last-courses .course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
        
.last-courses .course-img img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    display: block;
}
        
       .last-courses  .course-content {
            padding: 25px;
        }
        
        .last-courses .course-title {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: #2c3e50;
            line-height: 1.3;
            min-height: 70px;
        }
        
       .last-courses  .course-instructor {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            color: #7f8c8d;
        }
        
        .last-courses .instructor-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            margin: 12px;
        }
        
        .last-courses .instructor-name {
            font-weight: 500;
        }
        
       .last-courses .course-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }
        
        .last-courses .course-price {
            font-size: 1.8rem;
            font-weight: 700;
            color: #2c3e50;
        }
        
        .last-courses .course-price.free {
            color: #27ae60;
        }
        
        .last-courses .course-rating {
            display: flex;
            align-items: center;
            color: #f39c12;
        }
        
        .last-courses .rating-count {
            color: #7f8c8d;
            margin-left: 5px;
            font-size: 0.9rem;
        }
        
        .last-courses .enroll-btn {
            background-color: var(--secondaryColor);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 10px 20px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        
        .last-courses.enroll-btn:hover {
            background-color: #2980b9;
        }
/* end last-courses section */
/* start features section */
 .features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 100px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
     font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}
.subtitle {
    color: #555;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 25px auto 0;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.feature-box {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to left, #18113c, #6950e1);
    transition: height 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-box:hover::before {
    height: 100%;
    opacity: 0.05;
    z-index: 0;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--greenColor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
}

.feature-icon i {
    font-size: 2.2rem;
    color: white;
}

.feature-title {
    color: var(--darkColor);
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.feature-description {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: block;
    width: fit-content;
    margin: 60px auto 0;
    padding: 16px 40px;
    background: var(--greenColor);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    border: 1px solid var(--greenColor);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(26, 95, 122, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(26, 95, 122, 0.3);
    background: var(--lightColor);
   color: var(--greenColor);
}

/* تنسيقات للهواتف */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-box {
        padding: 25px 20px;
    }
}

/* تأثيرات إضافية */
.feature-box:hover .feature-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-title {
    color: #154f66;
}
/* end feature section */
/* start accred section */
 .accreditations-section {
    padding: 50px 0100px;
}
  /* بطاقات الاعتماد */
.accreditation-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    border-top: 5px solid var(--accent-color);
    height: 100%;
    margin-bottom: 30px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);

}

.accreditation-card {
    border-top: 5px solid var(--gold-color);
    transform: scale(1.02);
}

.card-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--greenColor);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: var(--dark-color);
}

.card-header {
    background: var(--secondaryColor);
    color: white;
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
}

.card-icon-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.card-title h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.card-title p {
    font-size: 1rem;
    opacity: 0.9;
}

.card-body {
    padding: 35px;
}
.card-body a{
    text-decoration: none;
    color: var(--secondaryColor);
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    border: 1px solid var(--secondaryColor);
    border-radius: 50px;
    padding: 10px 20px;
}

.card-description {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.8;
}
/* end accred section */
/* start becom-instructor section */
.becom-instructor{
    width: 100%;
    padding: 5px 100px 0px;
    background-color: var(--secondaryColor);
}
.becom-instructor .img-instructor{
    display: flex;
    justify-content: center;
    align-items: center;
}
.becom-instructor .about-instrucor{
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
}
.becom-instructor .about-instrucor h4{
    color: var(--lightColor);
    margin-bottom: 35px;
    font-size: 24px;
    font-weight: 500;
    line-height: 37px;
    font-style: normal;
}
.becom-instructor .about-instrucor a{
    text-decoration: none;
    color: var(--lightColor);
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    padding: 10px 20px;
    margin: 0px 2px;
    border-radius: 5px;
}
.becom-instructor .about-instrucor .btn-start{
    color: var(--greenColor);
    background-color: var(--lightColor);
}
.becom-instructor .about-instrucor .btn-becom{
    color: var(--lightColor);
    background-color: var(--greenColor);
}
.becom-instructor img{
    width: 100%;
}
/* end becom-instructor section */
/* start news-latter section */
.news-latter{
    width: 100%;
    padding: 50px ;
    background-color: var(--secondaryColor);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.news-latter h2{
    font-size: 2.8rem;
    color: var(--lightColor);
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}
.news-latter p{
    font-size: 16px;
    color: var(--lightColor);
}
.news-latter form{
    width: 40%;
    background-color: var(--lightColor);
    padding: 10px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-latter form input{
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
}
.news-latter form button{
    width: 30%;
    background-color: var(--greenColor);
    padding: 10px;
    color: var(--lightColor);
    border-radius: 50px;
    border: none;
    outline: none;
    text-align: center;
}
/* end news-latter section */
/* end FAQ section */
  .faq-section {
    background: #f6f4ff;
    padding: 50px 100px;
    direction: rtl;
    font-family: "Tajawal", sans-serif;
    color: #2e235a;
  }

  .faq-title {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
  }

  .faq-item {
    border-bottom: 1px solid #d7d1f5;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: right;
    font-size: 1.1rem;
    color: #4c2dbf;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
  }

  .faq-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4c2dbf;
    transition: transform 0.3s ease;
  }

  .faq-answer {
    display: none;
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
    padding-right: 15px;
  }

  .faq-answer.show {
    display: block;
    animation: fadeIn 0.4s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .faq-footer {
    text-align: center;
    margin-top: 30px;
  }

  .faq-chat {
    display: inline-block;
    background: #5b4dbe;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
  }

  .faq-chat:hover {
    background: #4c3cb3;
  }
/* end FAQ section */
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .hero {
      align-items: flex-start;
      padding: 30px 15px 40px;
  }

  .hero .hero-img {
      display: none;
  }

  .hero .hero-info{
      padding: 10px 0;
      flex-direction: column;
      align-items: center;  
      justify-content: center;
      text-align: center;
  }

  .hero .hero-info h1{
      font-size: 38px;
      text-align: center;
  }

  .hero .hero-info p{
      font-size: 25px;
      text-align: center;
      color: rgb(234, 234, 234);
  }

  .hero .hero-btn {
      width: auto; 
  }

  /* partner */
  .partner{
      padding: 700px 50px 40px;
  }

  .partner .about-learning{
      flex-direction: column;
      align-items: center;
  }

  .partner .about-learning .learning-type{
      width: 100%;
      margin: 10px 0px;
  }

  /* الأقسام الداخلية – مساحات مريحة على الموبايل */
  .last-courses,
  .last-posts,
  .features-section,
  .accreditations-section,
  .faq-section{
      padding: 40px 45px;
  }

  .last-courses h1,
  .faq-title,
  .news-latter h2 {
      font-size: 2rem;
  }

  /* فورم النشرة البريدية */
  .news-latter {
      padding: 40px 30px;
  }

  .news-latter form {
      width: 100%;
  }

  /* قسم كن مدربًا */
  .becom-instructor{
    padding: 40px 45px 0px
  }
  .becom-instructor .about-instrucor{
      align-items: center;
      text-align: center;
      margin-top: 20px;
  }
  .becom-instructor .about-instrucor h4 {
    text-align: center;
}
.becom-instructor .img-instructor{
    margin-top: 30px;
}
  /* كروت الاعتماد */
  .accreditations-section .row > div {
      margin-bottom: 20px;
  }
}

/* Small devices (portrait tablets and large phones, 600px - 767px) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
  .hero {
      height: auto;
      padding: 40px 20px 50px;
  }

  .hero .hero-info{
      padding-right: 0;
      text-align: center;
      align-items: center;
  }

  .hero .hero-img{
      margin-top: 20px;
      justify-content: center;
  }

  .hero .hero-img img{
      width: 70%;
      margin-bottom: 40px;
  }

  .partner{
      padding: 700px 50px 50px;
  }

  .last-courses,
  .features-section,
  .accreditations-section,
  .becom-instructor,
  .faq-section,
  .news-latter {
      padding: 45px 30px;
  }

  .news-latter form{
      width: 80%;
  }
}

/* Medium devices (landscape tablets, 768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .hero{
      height: auto;
      padding: 50px 40px;
  }

  .hero .hero-info{
      padding-right: 30px;
      padding-bottom: 30px;
  }

  .hero .hero-img img{
      width: 90%;
      margin-bottom: 40px;
  }

  .partner{
      padding: 320px 40px 60px;
  }

  .last-courses,
  .features-section,
  .accreditations-section,
  .becom-instructor,
  .faq-section,
  .news-latter{
      padding: 50px 40px;
  }

  .news-latter form{
      width: 60%;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
/* تترك بلوك 992px اللي كتبته أنت كما هو، ممتاز 👍 */

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
 
}

/* تصحيح هوفر زر التسجيل في الكورسات */
.last-courses .enroll-btn:hover {
    background-color: #2980b9;
}
