/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background-color: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: #2563eb;
  transition: color 0.3s ease;
}

a:hover {
  color: #1d4ed8;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto;
}

.divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 3rem 0;
}

/* Navbar */
.navbar {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 5rem;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 5.5rem;
  width:7rem;
  padding: 0.5rem;

}


.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #64748b;
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  color: #2563eb;
}

.register-btn {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.register-btn:hover {
  background-color: #1d4ed8;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
}

.mobile-menu {
  position: absolute;
  top: 60px;
  /* يمكنك تعديله حسب الحاجة */
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .container {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.mobile-menu a {
  color: #64748b;
  font-weight: 500;
  padding: 0.5rem 0;
}

.mobile-menu a:hover {
  color: #2563eb;
}

  /* تنسيق العنصر الرئيسي */
  .dropdown {
    position: relative;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 150px;
    flex-direction: column;
    /* ترتيب العناصر عموديًا */
  }

  /* عند تفعيل القائمة عبر JavaScript */
  .dropdown-menu.active {
    display: block;
  }

  /* تنسيق عناصر القائمة المنسدلة */
  .dropdown-menu a {
    display: block;
    padding: 10px;
    color: #64748b;
    text-decoration: none;
    text-align: left;
    width: 100%;
  }

  /* عند تمرير الماوس على العناصر */
  .dropdown-menu a:hover {
    background: #f4f4f4;
    color: #2563eb;
  }

  /* دعم خاص للموبايل */
  @media (max-width: 768px) {
    .dropdown {
      position: relative;
    }

    .dropdown-menu {
      position: static;
      width: 100%;
    }
  }

/* Hero Section */
.hero {
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=1920&q=80");
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem;
  width: 100%;}

.hero-text {
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: #2563eb;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #fafafa;
  color: #2563eb;
}

.security-badges {
  display: flex;
  gap: 1rem;
  position: absolute;
  bottom: 2rem;
  right: 2rem;
}

.badge {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 0.75rem;
  border-radius: 50%;
}

.badge-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.shield {
  background-color: rgba(37, 99, 235, 0.8);
}

.lock {
  background-color: rgba(34, 197, 94, 0.8);
}

.cloud {
  background-color: rgba(168, 85, 247, 0.8);
}

/* Courses Section */
.courses-section {
  padding: 5rem 0;
  background-color: #f8fafc;
}

.courses-filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-container input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.search-container i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.filter-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-container i,
.filter-container span {
  color: #64748b;
}

.filter-container select {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background-color: white;
  font-size: 0.875rem;
  min-width: 180px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.course-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.course-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-image {
  transform: scale(1.05);
}

.course-content {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
  flex-grow: 1;
}

.course-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.course-details {
  flex: 1;
}

.course-outcomes {
  flex: 1;
  padding-left: 1.5rem;
  margin: 60px 0;
}

.course-price {
  margin: auto;
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
}

.course-payment {
  text-align: center;
  padding: 1rem;
}

.stripe-payment {
  background-color: #170dc8;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.stripe-payment:hover {
  background-color: #5046e5;
}

.course-date {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #64748b;

}

.course-date i {
  margin-right: 0.375rem;
  color: #2563eb;
}

.meta-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #64748b;
}

.meta-item i {
  width: 1rem;
  margin-right: 0.5rem;
  color: #2563eb;
}

.course-outcomes {
  margin-bottom: 1.25rem;
}

.outcomes-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #475569;
}

.outcomes-list {
  font-size: 0.875rem;
  color: #64748b;
}

.outcomes-list li {
  display: flex;
  margin-bottom: 0.25rem;
}

.check {
  color: #22c55e;
  margin-right: 0.375rem;
}

.course-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: right;
  margin-bottom: 1rem;
}

.register-now-btn {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem 0;
  border-radius: 0.375rem;
  font-weight: 500;
  width: 100%;
  transition: background-color 0.3s ease;
}

.register-now-btn:hover {
  background-color: #1d4ed8;
}

.no-courses {
  text-align: center;
  padding: 3rem 0;
  display: none;
}

.no-courses h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.no-courses p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.reset-btn {
  background-color: white;
  color: #2563eb;
  border: 1px solid #2563eb;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  background-color: #2563eb;
  color: white;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background-color: #f1f5f9;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.about-mission h3,
.about-background h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.about-mission p,
.about-background p {
  color: #64748b;
  line-height: 1.7;
}

.instructors-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2.5rem;
  color: #1e293b;
}

.instructors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.instructor-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  width: 300px;
  height: 350px;
  overflow: hidden;
}

.instructor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.instructor-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.instructor-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(37, 99, 235, 0.1);
}

.instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-info h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.credentials {
  font-size: 0.875rem;
  color: rgba(37, 99, 235, 0.8);
  font-weight: 500;
}

.expertise {
  margin-bottom: 1rem;
}

.expertise h5,
.instructor-bio h5 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #475569;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.expertise-tags span {
  font-size: 0.75rem;
  background-color: rgba(37, 99, 235, 0.05);
  color: #2563eb;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.instructor-bio p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.contact-team {
  text-align: center;
  margin-top: 2rem;
}

.contact-team p {
  color: #64748b;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-btn {
  background-color: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #2563eb;
  color: white;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: #f8fafc;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-form-container {
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form-container h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #475569;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.submit-btn {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  width: 100%;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #1d4ed8;
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card,
.social-media-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-info-card h3,
.social-media-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item i {
  color: #2563eb;
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.info-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #475569;
}

.contact-info-item a {
  color: #2563eb;
}

.contact-info-item p {
  color: #64748b;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #f1f5f9;
  color: #2563eb;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #2563eb;
  color: white;
}

/* Footer */
.footer {
  background-color: #1e293b;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-company {
  grid-column: span 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.logo-img {
  width: 2rem;
  height: 2rem;
}

.footer-company p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #94a3b8;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: white;
}

.footer-links h3,
.footer-legal h3,
.footer-contact h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: white;
}

.footer-links ul,
.footer-legal ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-legal a {
  color: #94a3b8;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: white;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
}

.footer-contact i {
  color: #64748b;
}

.footer-contact a {
  color: #94a3b8;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: white;
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.newsletter-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.newsletter-text p {
  color: #94a3b8;
}

.newsletter-form {
  display: flex;
  flex: 1;
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #334155;
  border-right: none;
  border-radius: 0.375rem 0 0 0.375rem;
  background-color: #1e293b;
  color: white;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0.375rem 0.375rem 0;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #1d4ed8;
}

.copyright {
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 1rem 0;
  }

  .nav-links,
  .navbar .register-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu.active {
    display: block;
  }

  .hero {
    height: auto;

    padding: 5rem 0;
  }

  .hero-text {
    width: 100%;

  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .security-badges {
    display: none;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .courses-filters {
    flex-direction: column;
  }

  .search-container {
    max-width: 100%;
  }

  .contact-grid,
  .about-grid,
  .instructors-grid {
    grid-template-columns: 1fr;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-form {
    max-width: 100%;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
