body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: white;
    color: #131924;
}

header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

header .logo img {
    height: auto;
    width: 100px;
    display: block;
    margin: 0;
    align-items: center;
}

header .logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: #131924;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.hero {
    background: url(heroimg.jpg);
    position: relative;
    text-align: center;
    height: 100vh;
    min-height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    top: 0;
    padding: 0;
    background-size: cover;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content h1 {
    font-size: 3em;
    margin: 0;
    font-weight: bold;
    text-align: center;
}

.hero-content p {
    font-size: 1em;
    margin: 20px auto;
    max-width: 80%;
    text-align: center;
}

.cta-button {
    background-color: #f9f9f9;
    color: #131924;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #979eba;
}

.advert {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: #f7f7f7;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 1200px;
}

.advert-image {
  flex: 1;
  max-width: 50%;
  padding: 20px;
  text-align: center;
}

.advert-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.advert-content {
  flex: 1;
  max-width: 50%;
  padding: 20px;
  text-align: left;
}

.advert-content h2 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 15px;
}

.advert-content p {
  font-size: 1.2em;
  line-height: 1.6;
  color: #666;
  margin-bottom: 25px;
}

.advert-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.advert-cta-button:hover {
  background-color: #0056b3;
}

.features {
    display: flex;
    justify-content: space-around;
    text-align: center;
    background-color: white;
    padding: 60px 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .feature {
    flex: 1 1 250px;
    margin: 20px 10px;
    padding: 30px;
    border-radius: 10px;
    background-color: wheat;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .feature h3 {
    font-size: 1.8em;
    color: #131924;
    margin-bottom: 15px;
  }
  
  .feature p {
    font-size: 1.1em;
    color: #131924;
    line-height: 1.6;
  }

.cta {
    text-align: center;
    padding: 30px 20px;
    background-color: white
    color: #131924
}

  .cta button {
    background-color: #131924;
    color: white;
    border: none;
    padding: 15px 25px;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
}

  .cta button:hover {
    background-color: #979eba;
}

.testimonials {
    align-items: center;
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
  }
  
  .testimonials h2 {
    margin-bottom: 30px;
    color: #131924;
  }
  
  .testimonial-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    justify-content: center;
  }
  
  .testimonial {
    flex: 0 0 300px;
    border: 1px solid #979eba;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
  }

.student-name {
    font-weight: bold;
    margin-top: 10px;
    color: #131924;
  }

.tutors {
    padding: 50px 20px;
    text-align: center;
    background-color: white;
  }
  
.tutors h2 {
    margin-bottom: 30px;
    color: #131924;
  }
  
.tutor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
.tutor {
    border: 1px solid #979eba;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
  }
  
.view-profile {
    display: inline-block;
    padding: 10px 20px;
    background-color: #131924;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top:10px;
  }

.curriculum, .why-choose-us-section, .benefits-section {
    padding: 50px 20px;
    text-align: center;
    background-color: white;
  }
  
.curriculum h2, .why-choose-us-section h2, .benefits-section h2 {
    margin-bottom: 30px;
    color: #131924;
  }
  
  .curriculum-grid, .reason-grid, .benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .curriculum-item, .reason, .benefit {
    border: 1px solid #979eba;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
  }

  .enrollment-section, .booking-section {
    padding: 40px 20px;
    background-color: wheat;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    max-width: 800px;
    align-items: center;
    align-items: center;
}

.enrollment-section h2, .booking-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #131924;
}

.tutor-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #131924;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid white;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.form-group .radio-group {
    margin-bottom: 10px;
}

.form-group .radio-group input[type="radio"] {
    margin-right: 5px;
}

.form-group .required {
    color: red;
}

.submit-button {
    background-color: #131924;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: #979eba;
}

footer {
   background-color: white;
   padding: 20px 0;
   text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.social-icons {
    margin-top: 10px;
}

footer .footer-content .social-icons img {
    width: 30px;
    height: 30px;
    margin: 0 10px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    body {
        font-size: 16px;
    }

    .hero, .feature-illustration {
        height: 100vh;
        background-size: cover;
        background-position: center;
        padding-top: 0px;
        margin: 0;
        min-height: calc(100vh - 60px);
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
        margin-top: 15px;
        max-width: none;
    }

    .advert {
    flex-direction: column;
    text-align: center;
  }

  .advert-image,
  .advert-content {
    max-width: 100%;
    padding: 10px;
  }

  .advert-image img {
    width: 100%;
    height: auto;
  }

  .advert-content {
    margin-top: 20px;
  }

  .advert-content h2 {
    font-size: 2em;
  }

  .advert-content p {
    font-size: 1em;
  }

    .features {
        flex-direction: column;
        align-items: center;
      }
      
    .feature {
        width: 90%;
        margin: 20px auto;
      }

    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .testimonial-carousel {
        flex-wrap: wrap;
        justify-content: center;
      }
    
    .testimonial {
        flex: 0 0 90%;
      }
    
    .tutor-grid {
        grid-template-columns: 1fr;
      }

    .curriculum-grid, .reason-grid, .benefit-grid {
        grid-template-columns: 1fr;
      }

      .tutor-form {
        grid-template-columns: 1fr;
    }

    .social-icons img {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .hero, .feature-illustration {
        padding-top: 120px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }
}