/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Aptos; 
}
body {
  background-image: url("../images/ba-home1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
  background-attachment: fixed;
  text-align: center;
}



/* Header styles */
header {
  display: block;
  align-items: center;
  padding: 10px;
  position: relative;
}

/* Logo */
.logo img {
  width: 150px;
}

/* Styling the nav-links */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 10px; /* مسافة بين الروابط */
}

.nav-links a {
  color: #13bedb; 
  border-left: #13bedb solid 2px;
  text-decoration: none;
  font-size: 20px; 
  padding: 5px 5px;
}

.nav-links a:hover {
  color: #fbc85d;
  border-left: #fbc85d solid;
}



/* Hide the menu toggle button and keep nav-links visible on larger screens */
.menu-toggle, .menu-close {
  display: none; /* Hidden on larger screens */
}



@media (max-width: 768px) {
  header {
    display: flex;
    justify-content: space-evenly;
    height: 129px;
  }
  .logo {
    flex: 2;
    text-align: left;
  }
  .menu-toggle {
    display: block; /* Show menu toggle button on mobile */
    background-color: #333;
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 0 auto;
  }

  .menu-close {
    display: none; /* Hidden by default */
    background-color: #333;
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .nav-links {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.8); /* خلفية شفافة */
    position: absolute;
    top: 60px; /* Adjust based on header height */
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1000;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-open .menu-toggle {
    display: none;
  }

  .nav-open .menu-close {
    display: block;
  }

  .nav-links a {
    padding: 15px 0;
  }

  /* Hover and active states */
  .nav-links a:hover {
    color: #fbc85d;
    transform: scale(1.1) translateY(-3px);
    border-bottom: #fbc85d solid 2px;
  }

  .nav-links a:active {
    border-bottom: #fbc85d solid 2px;
  }
}



/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  padding: 50px;
  color: #000000;
}


.hero-content {
  width: 50%;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.highlight {
  background-color: #fbc85d;
  padding: 5px 10px;
  color: #fff;
  border-radius: 5px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.6;
}

.form-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 40%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-header {
  background-color: #13bedb;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 5px 5px 0 0;
}

.form-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

input,
select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
}



.button {
  cursor: pointer;
  border: solid 1px #13bedb;
  border-radius: 4px;
  font-weight: 600;
  margin: 0 10px;
  width: 200px;
  padding: 10px 0;
  transition: 0.4s;
}

button:hover {
  background-color: #13bedb;
  color: #fff;
  border: solid #13bedb 2px;
}

.pricing-btn{
  padding: 10px;
  margin-bottom: 15px;
}

.pricing-btn:active{
  background-color: #007bb5;
}
.privacy {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

.privacy a {
  color: #063647;
  text-decoration: underline;
}

.privacy a:hover {
  color: #0b3d03;
}

.h2-programs{
  width: 90%;
  margin: 10px auto 0 auto;
  padding: 10px;
  border: #13bddb98 solid 1px;
  border-radius: 20px;
}

.courses-header .h2-programs h2 {
  font-size: 36px;
  color: #13bddbc9;
}

.courses-header .h2-programs p {
  font-size: 20px;
  margin: 5px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #13bddb;
  font-weight: 500;
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ثلاث أعمدة */
  gap: 20px;
  margin: 30px auto 0 auto;
  padding: 0 20px;
}

.course-card {
  position: relative;
  margin-bottom: 20px;
  color: #f7f7f7;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 2s ease;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/backgraonde-home.jpg");
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: 0;
}

.course-card:hover::before {
  opacity: 0.3;
}

.course-card:hover {
  background-color: white;
}

.course-card * {
  position: relative;
  z-index: 1;
}

.card-header {
  color: white;
  background-color: #13bedb;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  display: flex; /* Flexbox to align icon and text */
  align-items: center; /* Vertically center the text and icon */
  justify-content: center;
  position: relative;
}

.card-header .icon {
  font-size: 16px; /* Adjust icon size */
  margin-right: 10px; /* Space between icon and text */
  position: absolute;
  left: 10px; /* Align icon to the far left */
  top: 50%;
  transform: translateY(-50%); /* Vertically center icon */
}

.course-card ul {
  list-style-type: none;
  padding: 20px;
  display: none; /* مخفي افتراضيًا */
}

.course-card ul li {
  padding: 10px 0;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
  color: black;
}

.course-card ul li:last-child {
  border-bottom: none;
}

.course-card.active ul {
  display: block; /* إظهار المحتوى عند التفعيل */
}



/* Pricing Section */
.pricing-section {
  text-align: center;
}
.h2-pricing {
  width: 90%;
  margin: 15px auto 30px auto;
  padding: 10px;
  border: #13bddb98 solid 1px;
  border-radius: 20px;
}
.pricing-header h2 {
  font-size: 36px;
  color: #13bddbc9;
}

.pricing-header p {
  font-size: 20px;
  margin: 20px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #13bddb;
}

.duration-toggle {
  display: inline-block;
  background-color: #f4f4f4;
  padding: 10px;
  border-radius: 30px;
  margin-bottom: 40px;
}

.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}


.pricing-card {
  padding: 20px;
  text-align: center;
  width: 25%;
  position: relative;
  margin-bottom: 20px;
  color: #f7f7f7;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 2s ease; /* يحدد مدة الانتقال ونوعه */
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/backgraonde-home.jpg");
  background-position: center;
  background-size: cover;
  opacity: 0; /* يبدأ بدون شفافية */
  transition: opacity 1.5s ease; /* انتقال الشفافية */
  z-index: 0; /* لضمان أن تكون الصورة خلف المحتوى */
}

.pricing-card:hover::before {
  opacity: 0.2; /* مستوى الشفافية عند التحويم */
}

.pricing-card:hover {
  background-color: white;
  color: white;
}

.pricing-card * {
  position: relative;
  z-index: 1; /* لضمان أن المحتوى يظهر فوق الخلفية */
}

.pricing-card p , .pricing-card label {
  color: #063647;
}


.card-header {
  font-size: 18px;
  color: #f7f7f7;
  margin-bottom: 10px;
}

.card-header span {
  display: block;
  font-weight: bold;
}

.price {
  font-size: 24px;
  color: #063647;
  margin: 15px 0;
}

.price strong {
  font-size: 40px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  color: #666;
}

ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.subscription {
  margin: 20px 0;
}

.subscription p {
  font-size: 14px;
  color: #666;
}

.subscription .save {
  color: red;
  font-weight: bold;
}

.demo-btn {
  background-color: #063647;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.demo-btn:hover {
  background-color: #0b3d03;
}

.faq-tabs {
  display: flex;
  padding: 50px;
}

.tab-container {
  display: flex;
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

/* Tab menu styling */
.tab-menu {
  flex-basis: 25%;
  background-color: #13bedb;
  padding: 20px;
  border-radius: 8px 0 0 8px;
}

.tab-menu .tab-link {
  display: flex;
  align-items: center;
  background-color: transparent;
  color: white;
  font-size: 18px;
  padding: 15px;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 10px;
}

.tab-menu .tab-link i {
  margin-right: 10px;
  font-size: 20px;
}

.tab-menu .tab-link:hover,
.tab-menu .tab-link.active {
  background-color: #007bb5;
}

/* Tab content area */
.tab-content {
  flex-basis: 75%;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  border-left: 3px solid #0e90d2;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* FAQ accordion styling */
.faq h3 {
  font-size: 18px;
  color: white;
  background-color: #fbc85d;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq p {
  font-size: 16px;
  color: #333;
  margin-left: 20px;
  margin-bottom: 20px;
  display: none;
}

.faq.active p {
  display: block;
}

.faq {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.faq h3 .icon {
  font-size: 18px;
  color: #fff;
  transition: transform 0.3s ease;
}

/* Rotate the icon when the FAQ is expanded */
.faq.active h3 .icon {
  transform: rotate(45deg);
}

/* Footer Styling */
.footer {
  background-color: #13bedb;
  color: white;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fafafa;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 10px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.social-icons {
  margin: 15px 0;
}

.social-icons a {
  color: white;
  margin-right: 15px;
  font-size: 20px;
  text-decoration: none;
}

.app-links img {
  width: 120px;
  margin-right: 10px;
}

.payment-icons img {
  width: 60px;
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  border-top: 1px solid #666;
}

.footer-bottom p {
  color: #aaa;
}

/* Icons */
.fab,
.fas {
  font-weight: 900;
}

#whatsapp-icon {
  position: fixed;
  bottom: 70px;
  right: 20px;
  color: #25d366;
  font-size: 4rem;
  border-radius: 50%;
  z-index: 1000;
}

#whatsapp-icon:hover {
  transform: scale(1.2);
}

/* Styles for the fixed "Contact Us" button */
.contact-button {
  position: fixed;
  bottom: 5px;
  right: 20px;
  color: #021685;
  font-size: 4rem;
  border-radius: 50%;
  z-index: 1000;
}

.contact-button:hover {
  transform: scale(1.2);
}

.register-now-btn {
  background-color: #063647;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.register-now-btn:hover {
  background-color: #0b3d03;
}

.price-container {
  position: relative;
  display: inline-block;
}

.currency-symbol {
  position: absolute;
  left: 10px; 
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #000;
}

#price {
  padding-left: 25px;
}


/* Form Pop-up */
.form-popup {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow-y: hidden; /* Prevent automatic scrolling */
}

/* Form Container */
.form-container {
  background-color: white;
  padding: 15px; /* Reduced padding */
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  margin: auto;
  max-height: 100vh; /* Limit the form's height */
  overflow-y: auto; /* Allow vertical scrolling */
}

/* Reduced Spacing for Inputs */
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 8px; /* Reduced padding */
  margin: 5px 0; /* Reduced margin */
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Submit and Close Buttons */
button[type="submit"] {
  background-color: #28a745;
  color: white;
  padding: 8px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #218838;
}

.close-button {
  background-color: #dc3545;
  color: white;
  padding: 8px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.close-button:hover {
  background-color: #c82333;
}

/* Scroll Down Button */
.scroll-down-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background-color: #007bff;
  color: white;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1001;
}

.scroll-down-btn:hover {
  background-color: #0056b3;
}

/* Scrollbar Styling (Optional) */
.form-container::-webkit-scrollbar {
  width: 8px;
}

.form-container::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 5px;
}

.form-container::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}


@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

#whatsapp-icon.scrolled {
  animation: bounce 1.5s infinite;
}




@media (max-width: 768px) or  (max-width: 1024px){
  * {
    margin: 0;
    padding: 0;
  }
  body{
    background-image: url("../images/BG-Mobile-01.png");
    background-size: cover;

  }
  .he-main{
    background-size: 90% 80%;
  }

  .hero {
    display: block;
  }
  .hero .form-container form {
    padding: 20px;
    box-sizing: border-box;
    }
  .recaptcha-container {
    transform: scale(0.7); 
    transform-origin: 0 0;  
    width: 100%;            
    margin-top: 10px;        
  }
  .g-recaptcha {
    margin-top: 10px; 
}
  .pricing-cards{
    flex-direction: column;
    width: 100%;
    justify-content: center;
  }
  .pricing-card{
    width: 100%;
  }
  .courses-container {
    display: block;
  }
  .course-card {
    margin-bottom: 15px;
  }
  .h2-programs {
    margin: 0 auto;
  }
  .h2-programs p { 
    font-size: 15px;
    margin: 5px 0;

  }
  .h2-pricing p { 
    font-size: 20px;
    margin: 5px 0;
  }
  



  .faq-tabs {
    padding: 20px;
    flex-direction: column;
  }

  .tab-container {
    flex-direction: column;
  }

  .tab-menu {
    flex-basis: 100%;
    padding: 10px;
    border-radius: 8px 8px 0 0;
  }

  .tab-content {
    flex-basis: 100%;
    border-radius: 0 0 8px 8px;
    border-left: none;
    margin-top: 10px;
  }

  .tab-link {
    font-size: 16px;
    padding: 10px;
  }

  .faq h3 {
    font-size: 16px;
  }

  .faq p {
    font-size: 14px;
  }

  .footer {
    background-color: #13bedb;
    color: white;
    padding: 40px 20px;
  }

  .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding-right: 10px; /* Add padding to avoid scrollbar overlap */
  }



  .footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fafafa;
    padding-bottom: 10px;
  }

  .footer-section p {
    font-size: 15px;
  }


  .footer-section ul {
    list-style: none;
    padding: 0;
  }

  .footer-section ul li {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .footer-section ul li a {
    color: white;
    text-decoration: none;
  }

  .footer-section ul li a:hover {
    text-decoration: underline;
  }
  .social-icons{
    margin: 5px auto 10px auto;
  }
  .social-icons a {
    margin: 15px auto;
  }
}

