/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navbar */
/* Navbar container */
.custom-navbar {
  position: sticky;
  top: 0;
  z-index: 999;   
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  color: #041E3A;
  padding: 10px 30px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  direction: rtl;
}

/* Logo area */
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-area img {
  width: 75px;
}

.logo-area .brand {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.2;
}

.logo-area small {
  font-size: 0.8rem;
  font-weight: normal;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #041E3A;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.nav-links i {
  margin-right: 5px;
}

/* Right actions */
.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-actions a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
}

.login-link {
  border-bottom: 1px solid white;
  padding-bottom: 2px;
}

.signup-btn {
  background-color: #23B2B2;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
}

.signup-btn:hover {
  background-color: #23B2B2;
}
/* ✅ Responsive adjustments for mobile */
@media (max-width: 768px) {
  .custom-navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 20px;
  }

  .logo-area {
    flex: 1;
    justify-content: space-between;
  }

  /* زر المينيو */
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: #041E3A;
    cursor: pointer;
    margin-left: 20px;
  }

  /* إخفاء الروابط وأزرار الدخول */
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 65px;
    right: 30px;
    width: 200px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 1rem;
    color: #041E3A;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-actions {
    display: none;
  }
}
.menu-toggle {
  display: none; /* افتراضيًا مخفي */
}

/* تظهر فقط لما الشاشة تبقى صغيرة */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}
/* رابط الصفحة الحالية */
.nav-links a.active {
  position: relative;
  color: #23B2B2;
  font-weight: bold;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  left: 0;
  height: 4px;
  width: 50%;
  margin: auto;
  background-color: #23B2B2;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Badge for cart */
.badge {
  position: absolute;
  top: -8px;
  left: -5px;
  background-color: #007bff;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
}


/* Hero Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  animation: shakeZoom 1s ease-out;
  z-index: 1;
}

@keyframes tileReveal {
  0% {
    clip-path: inset(100% 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes shakeZoom {
  0% {
    transform: scale(0.8) rotate(0deg);
    opacity: 0;
  }
  20% {
    transform: scale(1.05) rotate(2deg);
  }
  40% {
    transform: scale(0.98) rotate(-2deg);
  }
  60% {
    transform: scale(1.02) rotate(1deg);
  }
  80% {
    transform: scale(0.99) rotate(-1deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}



/* .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
} */

/* Overlay with text */
/* .overlay {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.4);
  height: 100%;
  width: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
} */

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
}

/* Chat Icon */
.chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007bff;
  color: white;
  padding: 15px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}
/* Box-style caption inside the slide */
/* .caption-box {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  background-color: #23B2B2; 
  padding: 30px;
  border-radius: 12px;
  color: white;
  max-width: 500px;
  animation: fadeInUp 1s ease-in-out;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
} */

.caption-box.always-visible {
  opacity:80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #23B2B2;
  background: linear-gradient(to bottom, #f5faff 40%, white 100%);
  padding: 50px 60px;
  border-radius: 16px;
  color: #041E3A;
  max-width: 800px;
  width: 80%;
  z-index: 10;
  animation: fadeIn 1s ease-in-out;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}


.caption-box h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-family: 'Tajawal', sans-serif;
  font-weight:550; 
}

.caption-box p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 15px;
  font-family: 'Tajawal', sans-serif;
  font-weight:550; 
}

.caption-box .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #00c8ff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s;
}

.caption-box .btn:hover {
  background: #00a3cc;
}

@media (max-width: 768px) {
  .caption-box.always-visible {
    padding: 30px 20px;
    width: 90%;
  }

  .caption-box h2 {
    font-size: 1.8rem;
  }

  .caption-box p {
    font-size: 1rem;
  }

  .caption-box .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}


/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-10px, 40px);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}
/* diploms */
.card-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-card {
  position: relative;
  width: 350px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}

.profile-card img {
  width: 100%;
  height: auto;
  display: block;
}

.profile-info {
  padding: 15px;
  text-align: center;
}

.profile-info h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #0e1d34;
}

.profile-info p {
  margin: 0;
  color: #606c80;
  font-size: 14px;
}

/* Caption on Hover */
.profile-caption {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  transition: bottom 0.4s ease;
}

/* Hover Effects */
.profile-card:hover {
  transform: translateY(-10px);
}

.profile-card:hover .profile-caption {
  bottom: 0;
}
/* Courses */
.event-section {
  padding: 20px 20px;
  background-color: #fff;
  font-family: 'Tajawal', sans-serif;
  /* direction: rtl; */
}
.lined-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 50px 0;
  font-family: 'Tajawal', sans-serif;
}

.lined-title .text {
  font-size: 2rem;
  font-weight: 900;
  color: #041E3A;
  white-space: nowrap;
  position: relative;
}

/* الخط قبل وبعد الكلمة */
.lined-title .line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, #23B2B2, #041E3A);
  border-radius: 10px;
  /* animation: glowLine 2s ease-in-out infinite; */
}

/* حركة نبض خفيفة على الخط */
/* @keyframes glowLine {
  0%, 100% {
    box-shadow: 0 0 8px #23B2B2;
  }
  50% {
    box-shadow: 0 0 15px #041E3A;
  }
} */

/* .section-title {
  text-align: center;
  font-size: 2rem;
  color: #041E3A;
  margin-bottom: 40px;
} */
.custom-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #00203f;
  /* display: inline-block; */
  position: relative;
  padding-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase; 
}

/* الخط الفني اللي تحت */
.custom-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 150px;
  height: 10px;
  background: linear-gradient(90deg, #00d2ff, #3a7bd5, #00d2ff);
  border-radius: 30px;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.6),
              0 0 5px rgba(0, 210, 255, 0.8),
              inset 0 0 8px rgba(255, 255, 255, 0.3);
  animation: glowLine 2s infinite ease-in-out;
}

/* تأثير نبض على الخط */
@keyframes glowLine {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6),
                0 0 5px rgba(0, 210, 255, 0.8),
                inset 0 0 8px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(58, 123, 213, 0.9),
                0 0 10px rgba(58, 123, 213, 0.9),
                inset 0 0 12px rgba(255, 255, 255, 0.5);
  }
}
.event-container {
  margin-top: 20px;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}
.event-card {
  width: 100%;
  max-width: 300px;

  background-color: transparent;
  font-family: 'Tajawal', sans-serif;
  border-radius: 8px;
  overflow: hidden;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
}

.card-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.card-content {
  background-color: white;
  padding: 20px;
  width: 90%;               /* ← أصغر من الصورة */
  margin: -40px auto 0 auto; /* ← يركب فوق الصورة من تحت */
  border-top: 5px solid #23B2B2;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}

.card-content h3 {
  font-size: 1rem;
  color: #041E3A;
  margin-bottom: 15px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  color: #777;
}

.meta .tag {
  background-color: #23B2B2;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  color: black;
}

.event-card-link {
  color:#041E3A;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card-link:hover {
  transform: scale(1.07);
}

.event-card h3,
.event-card .meta,
.event-card .tag,
.event-card .date {
  color: inherit; /* يخلي النص يورث اللون الطبيعي بدون ما يكون رابط أزرق */
}
@media (max-width: 768px) {
  .event-card {
    width: 100%;
    margin-bottom: 20px;
  }

  .event-container {
    flex-direction: column;
    align-items: center;
  }

  .card-content h3 {
    font-size: 0.95rem;
  }
}

/* .event-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 350px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-info {
  padding: 20px;
}

.event-info h3 {
  font-size: 1.1rem;
  color: #041E3A;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.5;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  background-color: #FFD700;
  color: #000;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

.date {
  color: #666;
  font-size: 0.9rem;
}

.date i {
  margin-left: 5px;
} */

/* الكورسات */
/* الخلفية الرئيسية */
.scroll-gallery {
  margin-top: 20px;

  width: 100%;
  overflow: hidden;
  background-color: #041E3A;
  padding: 20px 0;
  position: relative;
}

.scroll-wrapper {
  display: flex;
  gap: 12px;
  width: fit-content;
  animation: scrollLeft 20s linear infinite;
}

.gallery-card {
  position: relative;
  width: 450px;
  height: 300px;
  overflow: hidden;
  border-radius: 5px;
  flex-shrink: 0;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.gallery-card:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 0.95rem;
  line-height: 1.6;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .gallery-card {
    width: 280px;
    height: 200px;
  }

  .overlay h3 {
    font-size: 1.1rem;
  }

  .overlay p {
    font-size: 0.85rem;
  }
}

/* للللللللللللللللللللللللل */
.ranking-section {
  padding: 40px 0;
  background-color: #f7f7f7;
  display: flex;
  justify-content: center;
}

.ranking-container {
  max-width: 900px; /* العرض محدود */
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.ranking-box img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #041E3A;
  transition: transform 0.3s ease;
}

.ranking-box img:hover {
  transform: scale(1.08);
}
@media (max-width: 600px) {
  .ranking-box img {
    width: 90px;
    height: 90px;
  }

  .ranking-container {
    gap: 12px;
  }
}
/*footer*/
.main-footer {
  background-color: #041E3A;
  color: #fff;
  padding: 40px 20px 10px;
  font-family: 'Tajawal', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-brand h2 {
  color: #23B2B2;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #23B2B2;
}

.footer-contact p {
  margin: 6px 0;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  margin-top: 30px;
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links ul {
    padding: 0;
  }
}



/*   About   */
.about-section {
  padding: 60px 20px;
  font-family: 'Tajawal', sans-serif;
  background-color: #fff;
  direction: rtl;
}

.about-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.about-image img {
  width: 100%;
  max-width: 650px;
}

.about-content {
  flex: 1;
  color: #2c2c2c;
}

.about-content h2 {
  color: #23B2B2;
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content ul {
  padding-right: 20px;
  margin: 20px 0;
  line-height: 1.8;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.7;
}

