/* General Styles */
.nav-bar {
  height: 40px;
}

#topLogo {
  height: 45px;
  width: 45px;
  margin-left: 0px;

}

/* Gradient Text with Glow Effect & Animation */


.first-section h2 span {
  background: -webkit-linear-gradient(90deg, var(--blog-secondary) 0%, var(--blog) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: max-content;
  text-shadow: 0px 0px 10px rgba(224, 11, 11, 0.6);
  animation: textGlow 1s infinite alternate, fadeIn 1s ease-in-out;
}

@keyframes textGlow {
  0% {
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.6);
  }
  100% {
    text-shadow: 0px 0px 20px rgba(255, 255, 255, 1);
  }
}

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

/* Button Styles with Hover Animation */
.first-section a {
  background: linear-gradient(90deg, var(--blog-secondary) 30%, rgb(0, 179, 255)
   100%);
  border-radius: 99px;
  box-sizing: border-box;
  cursor: pointer;
  color: #ffffff;
  margin-top: 25px;
  line-height: 24px;
  opacity: 1;
  outline: 0 solid transparent;
  user-select: none;
  width: fit-content;
  border: 0;
  padding: 12px 24px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1.5s ease-in-out;
}

.first-section a:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

/* Header Image Animation with Smooth Movement */
 




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

/* Section Styles */
.second-section {
  background: rgb(32, 190, 185);
  box-sizing: border-box;
  position: relative;
  color: #fff;
  border-radius: 1.2rem;
   
}

.second-section:hover {
  background: rgb(25, 150, 150); /* Darker shade on hover */
}

/* Third Section */
.third-section {
  padding: 5% 10%;
  color: var(--primary-color);
  background-color: var(--secondary-bg);
}

/* Card Styles */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: auto;
  padding: 1.25rem;
  border-radius: 0.5rem;
  border-width: 1px;
  background-color: var(--primary-bg);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 15px;
}

/* Course Thumbnail */
.course-thumbnail {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.course-thumbnail:hover {
  transform: scale(1.05);
}

/* Card Level */
.card-level {
  display: inline;
  padding: 0.15rem 0.7rem;
  border-radius: 99px;
  color: #00eaff;
  font-size: 0.7rem;
  border: 2px solid #fffb00;
}

/* Course Title */
.course-title {
  margin: 20px 0px;
  font-size: 1.7rem;
  color: var(--primary-color);
}

/* Price Section */
.course-price-section {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Final Price */
.final-price {
  color: var(--blog);
  margin-left: 5px;
  font-size: 1.3rem;
}

/* Previous Price */
.prev-price {
  margin-left: 15px;
  font-size: 1.3rem;
  text-decoration: line-through;
  color: var(--acsent-color);
}

/* Discount Percent */
.discount-percent {
  color: #fff;
  font-size: 1rem;
  border-radius: 0.375rem;
  padding: 6px 10px;
  margin-left: 15px;
  background-color: #000000;
}

/* Instructor Title */
.instructor-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* Button Styles */
.button-61 {
  align-items: center;
  appearance: none;
  border-radius: 4px;
  border-style: none;
  box-shadow: rgba(0, 0, 0, 0.2) 0 3px 1px -2px, rgba(0, 0, 0, 0.14) 0 2px 2px 0, rgba(0, 0, 0, 0.12) 0 1px 5px 0;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font-family: Roboto, sans-serif;
  justify-content: center;
  letter-spacing: 0.0892857em;
  min-width: 64px;
  outline: none;
  overflow: visible;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.button-61:hover {
  box-shadow: rgba(0, 0, 0, 0.2) 0 2px 4px -1px, rgba(0, 0, 0, 0.14) 0 4px 5px 0, rgba(0, 0, 0, 0.12) 0 1px 10px 0;
  background-color: var(--blog-dark); /* Darker shade on hover */
}

/* Social Card Section */
.social-card-section {
  font-size: 1.5rem;
  line-height: 2rem;
  gap: 3rem;
  display: grid;
  justify-content: center;
  margin-top: 4rem;
}

/* Social Card */
.social-card {
  gap: 1rem;
  flex-direction: column;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.social-card:hover {
  transform: scale(1.05);
}

/* Media Queries */
@media only screen and (min-width: 900px) {
  /* For Desktop */
  .title {
    font-size: 42px;
  }

  .first-section {
    text-align: left;
    margin-top: 3%;
    margin-left: 3%;
    
    display: flex;
    flex-direction: row;
  }

  .first-section h2 {
    font-size: 50px;
  }

  .first-section h3 {
    font-weight: 200;
    font-size: 22px;
    margin: 0px 0px 37px 0px;
  }

  .headerText {
    width: 60%;
  }

  .headerImage-div {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  
  .headerImage {
    width: 100%;
    height: 100%;
  }

  .first-section a {
    font-size: 20px;
    padding: 5px 10px;
  }

  .social-card-section {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 900px) {
  /* For Phone */
  .title {
    font-size: 40px;
  }

  .first-section {
    padding: 40px 1px;
    text-align: center;
     margin-bottom: 0%;
  }

  .first-section h2 {
    font-size: 30px;
  }

  .first-section h3 {
    font-size: 20px;
    font-weight: normal;
    margin: 0px 0px 38px 0px;
  }

  .headerImage {
    width: 100%;
    margin-top: 50px;
  }

  .first-section a {
    font-size: 20px;
    padding: 10px 25px;
  }

  .social-card-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keyframes for Animation */
@keyframes animate {
  from {
    bottom: 0;
  }
  to {
    bottom: 20px;
  }
}