
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body  {
  padding: 0;
  display: grid;
  font-family: 'Poppins-Regular';
}

  /* Header Section */
  .header {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 1em 2em;
    background-color: #0056b3;
    color: white;
  }
  
  .header .logo {
    font-size: 1.5em;
    font-weight: bold;
  }
  
  .header .menu a {
    color: white;
    text-decoration: none;
    font-size: 1em;
  }

  .header img {
    width: 100%;
    height: 400px; /* Adjust height as needed */
    overflow: hidden;
  }
  
  .hero-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }


  main {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    justify-self: center;
    grid-column-gap: 30px;
    grid-row-gap: 50px;
    margin: 50px 144px 50px 144px;
    
    }
    
    
  

 /* Exam Section */
.exam-section {
  display: flex;
  align-items: center;
  
  
}


#practical {
  grid-column-start: 1;
  grid-column-end: 2;
  
}

#theory {
  grid-column-start: 2;
  grid-column-end: 3;
}


/* Exam Card */
.exam-card {
  display: grid;
  background-color: rgba(0, 147, 237, 0.3);
  border: 0.3px solid var(--white);
  border-radius: 30px;
  text-align: center;
  width: 100%;
  transition: all 0.5s;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;



}

.exam-card a {
  width: 100%;
  justify-items: center;
  align-self: end;
}

.exam-card img {
  width: 100%;
  max-width: 500px;
  justify-items: center;
}

.exam-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.exam-card h2 {
  color:var(--dark-blue);
  font-size: 2rem;
  justify-self: center ;
  align-self: start;
  margin: 0.5em;
}

 
  /* Requirements Section */
  .requirements-section {
    background-color: var(--dark-blue);
    color: var(--white);
    border-radius: var(--border-radius);
    grid-column-start: 1;
    grid-column-end: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;

  }


  .requirements-section h1 {
    margin: 15px 0px 15px 15px;
    font-size: 2rem;
  }

  .requirements-text {
    align-items: flex-start;
    align-self: center;
    display: grid;
    width: 80%;
  }

  .requirements-text a {
    align-self: center;
    justify-self: center;
  }

  .requirements-img {
    display: grid;
    height: auto;
  }

  .requirements-text p {
    display: flex;
    text-align: left;
    align-items: center;
    padding: 20px;
    width: 100%;
  }
  .requirements-section img{
    width: 80%; 
    height: auto;
    align-self: center;
    justify-self: center;
  }

  
  /* Car Section */
  .car-section {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height to fit your layout */
    background-color: #fff; /* White background */
    display: flex;
    align-items: center;
    overflow: hidden; /* Ensures nothing spills out */
    grid-column-start: 1;
    grid-column-end: 3;
  }
  
  .car-info {
    color: #0093ED;
    padding: 1.5em;
    text-align: left;
    width: 300px;
    opacity: 0; /* Hidden initially */
    position: absolute;
    left: 100%; /* Positioned off-screen to the right */
    transform: translateX(-20px);
    transition: all 1s ease-in-out;
  }
  
  .car-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0; /* Space between car and text */
    width: 100%;
    position: relative;
    transition: transform 1s ease-in-out;
  }
  
  .car-image {
    width: 430px; /* Larger car image */
    height: auto;
    position: absolute;
    right: auto; /* Initially on the right side */
    transition: transform 1s ease-in-out;
  }

  .car-container.moved .car-image {
    transform: translateX(-40%); /* Move the car to the left */
    transition: all 1s ease-in-out;
  }
  
  .car-container.moved .car-info {
    opacity: 1; /* Make the text visible */
    transform: translateX(0); /* Move to its final position */
    left: 55%; /* Place on the right side */
  }

  .progress-section {
    text-align: left;
    padding: 20px;
    background-color: rgba(0, 147, 237, 0.7);
    color: #ffffff;
    border-radius: 30px;
    max-width: 170em;

    border: 1px solid #ddd;

    grid-column-start: 1;
    grid-column-end: 3;

  }

  .progress-section h1 {
    margin-bottom: 15px;
  }

.progress-section img{ 
  max-width: 70%;
}
  

/* Video and Info Section */
.video-info-section {
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  width: 90%;
}
  

  .info-card {
    padding: 3em;
    background-color: rgba(0, 147, 237, 0.7);
    color: #ffffff;
    border-radius: 30px;
    border: 1px solid #ddd;
    flex-wrap: wrap;
  }

  /* Explore more button */
  .explore-more{
    background-color: #ffffff;
    text-decoration: none;
    color: #FE6D00;
    padding: 1em 1em;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.5s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
  }

  .explore-more:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
 

  @media (max-width: 768px) {
    main{
      display: grid;
      grid-template-columns: 350px;
      grid-row-gap: 20px;

      margin: 20px 10px 20px 10px;
    }

    * {
      grid-column: 1;
    }

    #theory {
      grid-row-start: 1;
      grid-row-end: 2;
      grid-column: 1
    }

    #practical {
      grid-row-start: 2;
      grid-row-end: 3;
    }

    .requirements-section {
      grid-template-columns: 1fr;
      grid-column-start: 1;
      grid-column-end: 2;
    }

    .car-section {
      display: none;
    }

    .progress-section {
      grid-column-start: 1;
      grid-column-end: 2;
    }




  }