

.container{
    width:min(92%,1280px);
    margin:auto;
}

/* HERO */

.hero{
    padding:50px 0 0;
}

.hero-container{
    display:grid;
    grid-template-columns: 1fr 1.2fr;
    gap:70px;
}
.hero-image img{
    
   max-width:100%;
   width:100%;
}


.badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 20px;
    border:1px solid #dce4ff;
    border-radius:30px;
    color:#1844d5;
    font-size:14px;
}

.hero h1{
    margin-top:25px;
   font-size: clamp(32px, 6vw, 64px);
    line-height:1.2;
    font-weight:900;
}

.hero h1 span{
    color:#1652ff;
}

.hero p{
    color:#8c8c8c;
    font-size:18px;
    line-height:1.8;
    margin:18px 0 35px;
}

.hero-buttons{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.btn{
    height:58px;
    border:none;
    border-radius:12px;
    font-size:20px;
    font-weight:700;
    cursor:pointer;
}

.btn-orange{
    background:#f9a72b;
    color:white;
}

.btn-blue{
    background:#1742d3;
    color:white;
}

.btn-outline{
    background:white;
    color:#222;
    border:1px solid #d7d7d7;
}

/* CONTACT SUPPORT MODAL POPUP */

.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 580px;
    padding: 30px 24px 34px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.92) translateY(15px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.contact-modal-overlay.active .contact-modal-card {
    transform: scale(1) translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 18px;
    left: 22px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.contact-modal-close:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.contact-modal-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 5px;
    margin-bottom: 26px;
}

.contact-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-whatsapp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #25D366; /* WhatsApp Vibrant Green */
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 16px 24px;
    border-radius: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
    direction: rtl;
}

.contact-whatsapp-item:hover {
    background-color: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
}

.contact-whatsapp-icon {
    font-size: 44px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.contact-whatsapp-content {
    flex-grow: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.contact-whatsapp-number {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    color: #ffffff;
    direction: ltr;
    display: inline-block;
}

.contact-whatsapp-subtext {
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
}

@media (max-width: 576px) {
    .contact-modal-card {
        padding: 24px 16px 28px;
        border-radius: 16px;
    }
    .contact-modal-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .contact-whatsapp-item {
        padding: 14px 16px;
        border-radius: 14px;
    }
    .contact-whatsapp-number {
        font-size: 18px;
    }
    .contact-whatsapp-subtext {
        font-size: 12px;
        white-space: normal;
    }
    .contact-whatsapp-icon {
        font-size: 36px;
    }
}
.register-header-btn{
    border-radius:13px !important;
}
.header-btn{
    border-radius:13px !important;
}
/* FEATURES */

.features{
    margin-top:60px;
    background-image:url('/images/featers.png');
    padding:70px 0;
    color:white;
}

.features h2{
    text-align:center;
    font-size:35px;
    font-weight:700;
}

.features p{
    text-align:center;
    color:#FFFFFF9E;
    margin-top:12px;
    font-size:24px;
    font-weight:400;
}

.features-grid{
    margin-top:60px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.feature-card{
    background:#f5f7fb;
    border-radius:22px;
    padding:45px 25px;
    text-align:center;
    color:black;
}

.icon{
    width:84px;
    height:84px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    margin:auto auto 25px;
   background-color:#E9E8FF;
}

.feature-card h3{
    font-size:25px;
    font-weight:700;
    margin-bottom:12px;
}

.feature-card span{
    color:#777;
    font-size:16px;
    font-weight:400;
}
/* plarforms */
.section-title{
    text-align:center;
    margin-bottom:40px;
}

.section-title h2{
    font-size: clamp(24px, 4vw, 35px);
    font-weight:700;
    color:#111;
}
.video-image video {
    width: 100%;
    border-radius: 18px;
    height: 354px;
}
.section-title p{
    color:#727272;
    font-size:24px;
    font-weight:400;
    margin-top:10px;
}

.videos-section{
    width:min(95%,1400px);
    margin:auto;
    padding:60px 0;
}

.videos-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:24px;
}

.video-card{
    background:#fff;
    border-radius:28px;
    padding:28px;
}

.success-card{
    border:1px solid #FBD79F;
    background-color: #FEFBF6;
}

.guide-card{
    border:1px solid #D9E4F9;
    background:#F4F6FD;
}

.small-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#f0a300;
    font-size:20px;
    font-weight:400;
}

.guide-card .small-title{
    color: #003696;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 400;
}

.video-card h3{
    text-align:center;
    font-size:25px;
    margin:10px 0;
    font-weight:700;
}

.video-card p{
    text-align:center;
    color:#525252;
    font-size:14px;
    font-weight:400;
    line-height:1.8;
    margin-bottom:25px;
}

.video-image{
    position:relative;
    border-radius:18px;
    overflow:hidden;
}

.video-image img{
    width:100%;
    display:block;
    border-radius:18px;
}

.play-btn{
    width:90px;
    height:90px;
    border:none;
    border-radius:50%;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:#1665ff;
    color:white;
    font-size:30px;
    box-shadow:0 0 40px rgba(22,101,255,.4);
    cursor:pointer;
}

.watch-btn{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-top:22px;
    height:58px;
    border:2px solid #2c66ff;
    border-radius:50px;
    text-decoration:none;
    color:#2c66ff;
    font-weight:700;
}

/* grades */

.grades{
    width:min(96%,1500px);
    margin:0px auto;
}

.grades-slider{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.grade-card{
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
}

.grade-card img{
    width:100%;
    display:block;
}

.swiper {
  position: unset !important;
  margin-bottom: 20px !important;
}

.swiper-slide {
  position: unset !important;
}

.swiper-controls {
  display: grid;
  grid-template-columns: 40px auto 40px;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.swiper-button-prev,
.swiper-button-next {
  position: static !important;
  margin: 0;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: #3872E5 !important;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: white !important;
}

.controls-container {
  height: 50px;
  width: 50px;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #00000005;
  box-shadow: 2px 0px 11.9px 0px #0000000A;

}

.swiper-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content !important;
  margin: 0px 10px 0px 0px;
}

.swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  margin: 0 3px !important;
  flex-shrink: 0;
}

.swiper-pagination-bullet-active {
  transform: scale(1.2);
  background-color: #3872E5 !important;
}

.swiper-button-prev,
.swiper-button-next {
  height: 27px !important;
  width: 27px !important;
  border-radius: 50%;
  border: 2px solid #3872E5;
  margin-top: 0px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.swiper-pagination {
  position: unset !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #3872E5 !important;
}
.swiper-slide {
    position: unset !important;
    height:unset !important; 
    display:flex !important; 
    flex-direction:coulmn !important;
}
.subjects-flag{
    background-color:#F4F6FDCC;
    border-radius: 30px;
    border: 1px solid #D9E4F94D;
    padding:20px;
}
.subjects-flag img{
    max-width: 100%;
}
/* --- 1. قسم أحدث الكورسات --- */
.courses-section {
    padding: 60px 20px;
    text-align: center;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0b132b;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: #7a869a;
    margin-bottom: 45px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* كارت الكورس */
.course-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f2f5;
    text-align: right;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

/* صورة الكورس النائبة */
.course-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #003366, #0055a5);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* محاكاة لتصميم البانر الداخلي */
.course-image-placeholder::before {
    content: '';
    position: absolute;
    left: -20px;
    top: -20px;
    width: 180px;
    height: 180px;
    background: #ffb703;
    border-radius: 50%;
    opacity: 0.8;
}

.banner-text {
    position: relative;
    z-index: 1;
    text-align: center;
}
.banner-badge {
    background: #ffb703;
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
}

/* تفاصيل الكورس */
.course-info {
    padding: 16px 4px 0 4px;
}

.course-title {
    font-size: 23px;
    font-weight: 600;
    color: #0e1e38;
    margin-bottom: 6px;
    line-height: 1.4;
}

.course-category {
    font-size: 12px;
    color: #010304;
    margin-bottom: 16px;
}

/* صف المحاضر والتقييم والسعر */
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-badge {
    background-color: #6646F3;
    color: white;
    padding: 6px 14px;
    border-radius: 46px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
}

.instructor-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating {
    font-size: 13px;
    color: #4a5568;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating i {
    color: #ffb703;
}

.instructor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.instructor span {
    font-size: 12px;
    font-weight: 400;
    color: #4a5568;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;  
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.course-image-placeholder.has-custom-image::before {
    display: none;
}

/* أزرار التحكم */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-subscribe {
    background-color: #fca311;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 65px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-subscribe:hover {
    background-color: #e59500;
}

.btn-details {
    background-color: transparent;
    color: #075BD3;
    border: 2px solid #075BD3;
    padding: 12px;
    border-radius: 65px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.btn-details:hover {
    background-color: #075BD3;
    color: white;
}


/* --- 2. قسم انضم إلينا (البانر السفلي) --- */
.join-section {
    background-image: url('/images/recomendation.png');
    margin-top: 60px;
    position: relative;
    background-size: contain;
}
.join-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 40px;
    height: 326px;
}

/* الأيقونة ثلاثية الأبعاد التوضيحية المجسمة للورقة واليد */
.join-image-side {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position:absolute;
    top:-106px;
    left:-94px;
}

/* محاكاة مجسم المفكرة الطائرة */
.notebook-mockup {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: rotate(-5deg);
    width: 200px;
    position: relative;
    text-align: center;
}
.notebook-mockup::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #ffb703;
    border-radius: 10px;
}
.notebook-mockup h4 {
    color: #002244;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}
.notebook-btn {
    background: #7a869a;
    color: white;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 12px;
    display: inline-block;
}

/* الجانب النصي */
.join-text-side {
    width: 572px;
    text-align: right;
    color: #ffffff;
    margin-top: 40px;
}

.join-text-side h3 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.join-text-side p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 30px;
   
}

.btn-join-now {
    background-color: #ffb703;
    color: #FFFFFF;
    border: none;
    padding: 12px 44px;
    border-radius: 65px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-join-now:hover {
    background-color: #e5a600;
}

.btn-join-now i {
    background: #ffffff;
    color: #ffb703;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .join-container {
        text-align: center;
    }
    .videos-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .hero-content {
        width: 100%;
    }
    .hero-image {
        width: 100%;
    }
    .hero-container{
        grid-template-columns: 1fr;
        text-align: center;
    }
    .join-text-side {
        text-align: center;
    }
    .join-text-side p {
        margin: 0 auto 30px auto;
    }
    .join-image-side{
        display:none;
    }
    .join-text-side{
       width: 80%;
        margin: 34px auto;
    }
    .join-container{
        height: auto;
    }
}