
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Header Styles */
  .header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid #3498db;
  }
  
  .navbar {
    padding: 1rem 0;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
  }
  .nav-logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #0f172a; /* لون داكن للأحرف */
  font-weight: bold;
  font-size: 1.25rem;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.logo-link:hover {
  color: #0284c7; /* لون أزرق عند التحويم */
}

.logo-icon {
  font-size: 1.8rem;
  background-color: #e0f2fe; /* خلفية فاتحة خلف الأيقونة */
  border-radius: 50%;
  padding: 0.3rem 0.5rem;
  color: #0284c7; /* لون أزرق للأيقونة */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: "Cairo", sans-serif; /* خط عربي جميل */
}

  .logo-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
  }
  
  .nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
  }
  
  .nav-link:hover, .nav-link.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
  }
  
  .cta-btn {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  }
  
  .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(45deg, #2980b9, #27ae60) !important;
  }
  
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }
  
  .hamburger .bar {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
  }

  /* Dropdown container */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 1000;
    text-align: right;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    display: block;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* Make dropdown button same as cta-btn */
.dropdown-toggle {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(45deg, #2980b9, #27ae60) !important;
}

  
  /* Hero Section */
  .hero {
    margin-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
  }
  
  .lab-elements {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .lab-elements > div {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
  }
  
  .dna-helix {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
  }
  
  .microscope-icon {
    top: 60%;
    right: 80%;
    animation-delay: 2s;
  }
  
  .molecule {
    top: 30%;
    right: 70%;
    animation-delay: 4s;
  }
  
  .lab-tube {
    top: 80%;
    right: 20%;
    animation-delay: 1s;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
  }
  
  .hero-content {
    /* padding-right: 3rem; */
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  
  .hero-text {
    color: white;
  }
  
  .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #f39c12;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.9;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
  }
  
  .btn-primary {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
  }
  
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
  }
  
  .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
  }
  
  .btn-secondary:hover {
    background: white;
    color: #667eea;
  }
  
  .btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
  }
  
  .btn-outline:hover {
    background: #3498db;
    color: white;
  }
  
  .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .lab-setup {
    position: relative;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  .microscope {
    font-size: 4rem;
    animation: rotate 10s linear infinite;
  }
  
  @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  .test-tubes {
    display: flex;
    gap: 1rem;
  }
  
  .tube {
    width: 20px;
    height: 60px;
    border-radius: 0 0 10px 10px;
    position: relative;
    animation: bubble 3s ease-in-out infinite;
  }
  
  .tube.green { background: linear-gradient(to bottom, transparent 40%, #2ecc71 100%); }
  .tube.blue { background: linear-gradient(to bottom, transparent 60%, #3498db 100%); }
  .tube.red { background: linear-gradient(to bottom, transparent 30%, #e74c3c 100%); }
  
  .tube:nth-child(2) { animation-delay: 1s; }
  .tube:nth-child(3) { animation-delay: 2s; }
  
  @keyframes bubble {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }
  
  .petri-dish {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
  }
  
 /* Sections */
.featured-courses {
  padding: 5rem 0;
  background: #f8fbff;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #1e2a38;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #2980b9, #27ae60);
  margin: 1rem auto;
  border-radius: 3px;
}

/* Course Cards Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Course Card */

.courses-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* يخلّي العناصر دائمًا في المنتصف */
  gap: 20px; /* مسافة بين الكروت */
}
.course-card {
  max-width: 370px;
  width: 100%; /* يخلي الكارت مرن */
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e1e5ec;
  flex: 1 1 300px; /* يجعل الكارت يستجيب حسب حجم الشاشة */
}



.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.course-image {
  width: 370px;
  height: 200px;
  margin: 0 auto; 
  overflow: hidden;
  flex-shrink: 0;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* Content Area */
.course-content {
  padding: 1.5rem;
}

.course-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.course-description {
  font-size: 0.95rem;
  color: #6c7a89;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* Price Box */
.course-pricing {
  background: #ecf6ff;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-label {
  font-weight: 600;
  color: #2980b9;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #27ae60;
}

/* Buttons */
.course-btn,
.btn-outline {
  display: block;
  width: 100%;
  padding: 0.7rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
  border: none;
}

.course-btn {
  background: linear-gradient(90deg, #3498db, #2ecc71);
  color: #fff;
  margin-top: 10px;
}

.course-btn:hover {
  opacity: 0.9;
}

.btn-outline {
  background: none;
  color: #3498db;
  border: 2px solid #3498db;
  margin-top: 10px;
}

.btn-outline:hover {
  background: #3498db;
  color: #fff;
}

/* Coupon Input */
.coupon-input {
  margin-top: 10px;
  display: none;
}

.coupon-input input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  transition: border-color 0.3s;
}

.coupon-input input:focus {
  outline: none;
  border-color: #3498db;
}

/* Bottom Centered Link */
.text-center {
  text-align: center;
}

  /* Features Grid */
  .features-grid {
    display: grid;
    margin-bottom: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  
  .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
  }
  
  .feature-description {
    color: #7f8c8d;
    line-height: 1.6;
  }
  
  /* Footer */
  .footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
  }
  
  .footer-description {
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.8;
  }
  
  .social-links {
    display: flex;
    gap: 1rem;
  }
  
  .social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  
  .social-link:hover {
    background: #3498db;
    transform: translateY(-2px);
  }
  
  .footer-links {
    list-style: none;
  }
  
  .footer-links li {
    margin-bottom: 0.5rem;
  }
  
  .footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }
  
  .footer-links a:hover {
    opacity: 1;
    color: #3498db;
  }
  
  .contact-info p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    opacity: 0.8;
  }


    /* Additional styles for login page */
    .login-section {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding: 20px 0 50px;
    }
    .register-section {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding: 120px 0 50px;
    }

    .form-container {
      background: white;
      max-width: 450px;
      margin: 0 auto;
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }

    .form-header {
      background: linear-gradient(135deg, #3498db, #2ecc71);
      color: white;
      padding: 3rem 2rem;
      text-align: center;
    }

    .form-title {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .form-subtitle {
      opacity: 0.9;
      font-size: 1rem;
    }

    .form-options {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 2rem;
    }

    .checkbox-container {
      display: flex;
      align-items: center;
      cursor: pointer;
      font-size: 0.9rem;
    }

    .checkbox-container input[type="checkbox"] {
      margin-left: 0.5rem;
      transform: scale(1.2);
    }

    .forgot-password {
      color: #3498db;
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
    }

    .forgot-password:hover {
      text-decoration: underline;
    }

    .social-login {
      padding: 0 2rem 2rem;
      text-align: center;
    }

    .social-title {
      color: #7f8c8d;
      margin-bottom: 1rem;
      position: relative;
    }

    .social-title::before,
    .social-title::after {
      content: '';
      position: absolute;
      top: 50%;
      width: 30%;
      height: 1px;
      background: #ecf0f1;
    }

    .social-title::before {
      right: 0;
    }

    .social-title::after {
      left: 0;
    }

    .social-buttons {
      display: flex;
      gap: 1rem;
    }

    .social-btn {
      flex: 1;
      padding: 1rem;
      border: 2px solid #ecf0f1;
      background: white;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      font-family: 'Cairo', sans-serif;
      font-weight: 500;
    }

    .social-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .social-btn.google:hover {
      border-color: #ea4335;
      color: #ea4335;
    }

    .social-btn.facebook:hover {
      border-color: #1877f2;
      color: #1877f2;
    }

    .social-icon {
      font-size: 1.2rem;
    }

    @media (max-width: 768px) {
      .form-container {
        margin: 0 20px;
        max-width: none;
      }

      .form-header {
        padding: 2rem 1.5rem;
      }

      .form-title {
        font-size: 1.5rem;
      }

      .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
      }

      .social-buttons {
        flex-direction: column;
      }
    }
  
  /* Modal Styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
  }
  
  .modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
  }
  
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: translateY(-50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
  }
  
  .modal-close {
    font-size: 2rem;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .modal-close:hover {
    color: #e74c3c;
  }
  
  .modal-body {
    padding: 2rem;
  }
  
  .purchase-options {
    margin-top: 1rem;
  }
  
  .option {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    transition: all 0.3s ease;
  }
  
  .option:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
  }
  
  .option input[type="radio"] {
    margin-left: 1rem;
  }
  
  .option label {
    cursor: pointer;
    font-weight: 500;
  }
  
  .modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #ecf0f1;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
  }
  
  /* Utility Classes */
  .text-center {
    text-align: center;
  }
  
  .text-right {
    text-align: right;
  }
  
  .text-left {
    text-align: left;
  }
  
    /* Additional styles for courses page */
    .page-header {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      padding: 150px 0 80px;
      text-align: center;
    }

    .page-title {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 1rem;
    }

    .page-subtitle {
      font-size: 1.3rem;
      opacity: 0.9;
    }

    .course-filters {
      background: white;
      padding: 3rem 0;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .filter-controls {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 2rem;
      flex-wrap: wrap;
    }

    .search-container {
      position: relative;
      flex: 1;
      max-width: 400px;
    }

    .search-input {
      width: 100%;
      padding: 1rem 3rem 1rem 1rem;
      border: 2px solid #ecf0f1;
      border-radius: 50px;
      font-size: 1rem;
      font-family: 'Cairo', sans-serif;
      transition: border-color 0.3s ease;
    }

    .search-input:focus {
      outline: none;
      border-color: #3498db;
    }

    .search-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      font-size: 1.2rem;
      color: #95a5a6;
    }

    .filter-buttons {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .filter-btn {
      padding: 0.8rem 1.5rem;
      border: 2px solid #ecf0f1;
      background: white;
      border-radius: 25px;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      font-family: 'Cairo', sans-serif;
    }

    .filter-btn:hover, .filter-btn.active {
      background: #3498db;
      color: white;
      border-color: #3498db;
    }

    .all-courses {
      padding: 4rem 0;
      background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }

    .courses-grid-extended {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 2rem;
    }

    @media (max-width: 768px) {
      .page-title {
        font-size: 2rem;
      }

      .filter-controls {
        flex-direction: column;
        align-items: stretch;
      }

      .search-container {
        max-width: none;
      }

      .filter-buttons {
        justify-content: center;
      }

      .courses-grid-extended {
        grid-template-columns: 1fr;
      }
    }

    .alert-box {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    position: relative;
    font-size: 16px;
    font-weight: bold;
    animation: fadeIn 0.5s ease-in-out;
}

.alert-box.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}




  /* Responsive Design */
  @media (max-width: 768px) {
    .hamburger {
      display: flex;
    }
  
    .nav-menu {
      position: fixed;
      right: -100%;
      top: 70px;
      flex-direction: column;
      background: white;
      width: 100%;
      text-align: center;
      transition: 0.3s;
      box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
      padding: 2rem 0;
    }
  
    .nav-menu.active {
      right: 0;
    }
  
    .hero-content {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
    }
  
    .hero-title {
      font-size: 2rem;
    }
  
    .hero-subtitle {
      font-size: 1.5rem;
    }
  
    .courses-grid {
      grid-template-columns: 1fr;
    }
  
    .features-grid {
      grid-template-columns: 1fr;
    }
  
    .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .hero-buttons {
      justify-content: center;
    }
  
    .btn {
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
    }
  
    .lab-setup {
      width: 250px;
      height: 250px;
    }
  }
  
  @media (max-width: 480px) {
    .hero-title {
      font-size: 1.8rem;
    }
  
    .hero-subtitle {
      font-size: 1.3rem;
    }
  
    .hero-description {
      font-size: 1rem;
    }
  
    .section-title {
      font-size: 2rem;
    }
  
    .course-card {
      margin: 0 10px;
    }
  
    .modal-content {
      width: 95%;
      margin: 10% auto;
    }
  }
  
  /* Form Styles for other pages */
  .form-container {
    max-width: 500px;
    margin: 120px auto 50px;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
  }
  
  .form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Cairo', sans-serif;
  }
  
  .form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  }
  
  .form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
  }
  
  .form-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2c3e50;
  }
  
  .form-link {
    text-align: center;
    margin-top: 1rem;
  }
  
  .form-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
  }
  
  .form-link a:hover {
    text-decoration: underline;
  }
  


    /* About page specific styles */
    .about-hero {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      padding: 150px 0 80px;
      margin-top: 80px;
    }

    .hero-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }

    .hero-title {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .hero-subtitle {
      font-size: 1.5rem;
      color: #f39c12;
      margin-bottom: 1.5rem;
    }

    .hero-description {
      font-size: 1.2rem;
      line-height: 1.6;
      margin-bottom: 2rem;
      opacity: 0.9;
    }

    .hero-badges {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .badge {
      background: rgba(255, 255, 255, 0.2);
      padding: 0.5rem 1rem;
      border-radius: 25px;
      font-size: 0.9rem;
      backdrop-filter: blur(10px);
    }

    .doctor-avatar {
      position: relative;
      width: 300px;
      height: 300px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(10px);
      overflow: hidden;
    }

    .avatar-icon {
      font-size: 8rem;
      z-index: 2;
      position: relative;
    }
    .avatar-icon img {
        display: block;
        width: 200px;
        height: 200px;
        border-radius: 50%;
      }


    .lab-background {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .lab-background > div {
      position: absolute;
      font-size: 2rem;
      opacity: 0.3;
      animation: float 6s ease-in-out infinite;
    }

    .dna-animation {
      top: 20%;
      right: 10%;
      animation-delay: 0s;
    }

    .molecule-animation {
      bottom: 20%;
      left: 15%;
      animation-delay: 2s;
    }

    .microscope-animation {
      top: 60%;
      left: 80%;
      animation-delay: 4s;
    }

    .biography {
      padding: 5rem 0;
      background: white;
    }

    .bio-content {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 4rem;
      align-items: start;
    }

    .bio-paragraphs p {
      margin-bottom: 1.5rem;
      line-height: 1.8;
      color: #2c3e50;
      font-size: 1.1rem;
    }

    .bio-highlights {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .highlight-card {
      background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
      padding: 2rem;
      border-radius: 15px;
      text-align: center;
      transition: transform 0.3s ease;
    }

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

    .highlight-icon {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    .highlight-title {
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: #2c3e50;
    }

    .highlight-text {
      color: #7f8c8d;
      line-height: 1.5;
    }

    .experience {
      padding: 5rem 0;
      background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }

    .experience-timeline {
      position: relative;
      max-width: 800px;
      margin: 0 auto;
    }

    .experience-timeline::before {
      content: '';
      position: absolute;
      right: 50%;
      top: 0;
      bottom: 0;
      width: 2px;
      background: #3498db;
      transform: translateX(50%);
    }

    .timeline-item {
      display: flex;
      align-items: center;
      margin-bottom: 3rem;
      position: relative;
    }

    .timeline-item:nth-child(odd) {
      flex-direction: row-reverse;
    }

    .timeline-item:nth-child(odd) .timeline-content {
      text-align: left;
      margin-right: 3rem;
    }

    .timeline-item:nth-child(even) .timeline-content {
      text-align: right;
      margin-left: 3rem;
    }

    .timeline-date {
      background: #3498db;
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 25px;
      font-weight: 600;
      white-space: nowrap;
      position: relative;
      z-index: 2;
    }

    .timeline-content {
      flex: 1;
      background: white;
      padding: 2rem;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .timeline-title {
      font-size: 1.3rem;
      font-weight: 600;
      color: #2c3e50;
      margin-bottom: 0.5rem;
    }

    .timeline-description {
      color: #7f8c8d;
      line-height: 1.6;
    }

    .achievements {
      padding: 5rem 0;
      background: white;
    }

    .achievements-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
    }

    .achievement-card {
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: white;
      padding: 2rem;
      border-radius: 20px;
      text-align: center;
      transition: transform 0.3s ease;
    }

    .achievement-card:hover {
      transform: translateY(-10px);
    }

    .achievement-icon {
      font-size: 3rem;
      margin-bottom: 1rem;
    }

    .achievement-title {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .achievement-description {
      opacity: 0.9;
      line-height: 1.5;
    }

    .teaching-philosophy {
      padding: 5rem 0;
      background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }

    .philosophy-principles {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

    .principle {
      display: flex;
      align-items: flex-start;
      gap: 2rem;
      background: white;
      padding: 2rem;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .principle-icon {
      font-size: 3rem;
      flex-shrink: 0;
    }

    .principle-title {
      font-size: 1.3rem;
      font-weight: 600;
      color: #2c3e50;
      margin-bottom: 0.5rem;
    }

    .principle-description {
      color: #7f8c8d;
      line-height: 1.6;
    }

    .contact-section {
      padding: 5rem 0;
      background: white;
    }

    .contact-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: start;
    }

    .contact-info {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

    .contact-item {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .contact-icon {
      font-size: 2rem;
      background: linear-gradient(135deg, #3498db, #2ecc71);
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 15px;
      flex-shrink: 0;
    }

    .contact-title {
      font-size: 1.2rem;
      font-weight: 600;
      color: #2c3e50;
      margin-bottom: 0.25rem;
    }

    .contact-text {
      color: #7f8c8d;
    }

    .contact-form {
      background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
      padding: 2rem;
      border-radius: 20px;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .hero-content {
        padding:0 8px;
        grid-template-columns: 1fr;
        text-align: center;
      }

      .hero-title {
        font-size: 2rem;
      }

      .doctor-avatar {
        width: 200px;
        height: 200px;
      }

      .avatar-icon {
        font-size: 5rem;
      }

      .bio-content {
        grid-template-columns: 1fr;
      }

      .experience-timeline::before {
        right: 20px;
        transform: none;
      }

      .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-right: 3rem;
      }

      .timeline-item .timeline-content {
        text-align: right !important;
        margin: 1rem 0 0 0;
      }

      .achievements-grid {
        grid-template-columns: 1fr;
      }

      .contact-content {
        grid-template-columns: 1fr;
      }

      .principle {
        flex-direction: column;
        text-align: center;
      }
    }
