:root
,[data-bs-theme="dark"]{
  --bs-body-font-family: 'IBM Plex Sans Arabic','Space Grotesk', sans-serif;
    --bs-tertiary-bg-rgb:  0,0,0 !important;
    --back-plus: #fff;
    --text-plus: #000;
}
[data-bs-theme="light"]{
    --bs-tertiary-bg-rgb:  255, 255, 255 !important;
    --back-plus: #000;
    --text-plus: #fff;
}
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1050;
}
body { 
    font-family: 'IBM Plex Sans Arabic', sans-serif; 
    line-height: 1.8;
}
.btn {
    transition: all 0.3s ease;
    font-weight: 600;
}
.btn:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.img-fluid {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.kaiser{
  display: inline-block;
  transition: transform 0.3s ease;
  background: linear-gradient(45deg, #2037b9, #4c66ff);
  border-radius: 15px;
  box-shadow : rgb(32, 55, 185) 0px 9px 9px;
  padding: 10px;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px #2037b9; }
    to { box-shadow: 0 0 20px #4c66ff; }
}
.kaiser:hover {
    transform: scale(1.05) rotate(-2deg);
}

.lesson-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 20px !important;
    overflow: hidden;
}

.lesson-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(32, 55, 185, 0.4) !important;
}

/* حركة اللمعان الزجاجي على صورة الكارت */
.card-img-container {
    position: relative;
    overflow: hidden;
}

.shine-overlay {
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.5s;
}

.lesson-card:hover .shine-overlay {
    left: 150%;
    transition: 0.7s;
}

.card-title {
    font-size: 1.2rem;
    color: #fff;
}
.user-info-nav {
    transition: all 0.3s ease;
    cursor: default;
}

.user-info-nav:hover {
    border-color: #28a745 !important; /* تحول للون الأخضر عند الوقوف عليها */
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

.user-info-nav i {
    font-style: normal;
    font-family: sans-serif;
}
.main-hero {
    background-color: #0f172a;
    background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.img-container {
    overflow: hidden;
    display: inline-block;
    border-radius: 2rem;
    width: fit-content;
    margin: 0 auto;
}
.img-container img {
    display: block;
    width: 100%;
    height: auto;
}

/* صنع خيط اللمعان */
.img-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: glassShine 3s infinite;
}

/* أنميشن اللمعان رايح جاي */
@keyframes glassShine {
    0% {
        left: -150%;
    }
    30% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

.img-container {
    animation: floatingHero 5s ease-in-out infinite;
}


@keyframes scale-up {
  from {
    background-color: red;
    transform: scaleX(0);
  }
  to {
    background-color: darkred;
    transform: scaleX(1);
  }
}


#scroll-progress {
    position: fixed;
    top: 0;
    left: 0; /* لو موقعك عربي بيبدأ من اليمين للشمال */
    height: 5px; /* سمك الخط */
    background: linear-gradient(to left, #24fba8, #1e3a8a);
    z-index: 999999; /* رقم كبير عشان يبقى فوق أي حاجة */
    width: 0%;
    pointer-events: none; /* عشان ميمنعش كليك الماوس على الناف بار */
}
.swiper-slide {
    height: auto;
}
.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}