body {
  font-family: 'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
}

.instructor-section {
  background: #ffffff;
  width: 100%;
  padding: 60px 0;
}

.instructor-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.instructor-text {
  flex: 1 1 500px;
  margin-left: 0px;
  padding-left: 10px;
}

.instructor-text h2 {
  font-size: 32px;
  color: #152b5a;
  margin-bottom: 10px;
  line-height: 1.4;
}

.instructor-text h2 span {
  color: #F6C340;
  display: inline-block;
  margin-top: 8px;
}

.instructor-text p {
  font-size: 16px;
  color: #1A2C53;
  margin-bottom: 20px;
}

.instructor-perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  list-style: none;
  margin-bottom: 30px;
  padding-left: 0;
}

.instructor-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #1A2C53;
  font-weight: 600;
}

.instructor-perks li i {
  background: #152b5a;
  color: #fac535;
  padding: 10px;
  border-radius: 50%;
  min-width: 38px;
  min-height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instructor-btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  background-color: #F6C340;
  color: #1A2C53;
  padding: 12px 22px;
  font-weight: bold;
  font-size: 15px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  gap: 8px;
  transition: color 0.3s ease;
  z-index: 1;
}

.instructor-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: #1A2C53;
  z-index: 0;
  border-radius: 50px;
  transition: width 0.4s ease;
}

.instructor-btn:hover::before {
  width: 100%;
}

.instructor-btn i,
.instructor-btn span {
  position: relative;
  z-index: 2;
  color: inherit;
  transition: color 0.3s ease;
}

.instructor-btn:hover i,
.instructor-btn:hover span {
  color: #fff;
}

.instructor-image-desktop {
  flex: 1 1 300px;
  display: block;
}

.instructor-shape {
  width: 300px;
  height: 400px;
  background: linear-gradient(to bottom, #fff8d0);
  border: 3px dashed #F6C340;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 50% 40%;
  border-bottom-right-radius: 50% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 20px;
  box-sizing: border-box;
  margin: 0 auto 20px;
}

.instructor-shape img {
  width: auto;
  height: 500px;
  object-fit: contain;
  max-width: 100%;
  margin-top: 70px;
}

/* ---------- Tablet View ---------- */
@media (max-width: 992px) {
  .instructor-container {
    flex-direction: column;
    padding: 50px;
    gap: 40px;
    
  }

  .instructor-text {
    order: 2;
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    padding-left: 0;
    margin-top: 70px;
    
  }

  .instructor-image-desktop {
    order: 1;
    display: block;
  
  }

  .instructor-shape {
    width: 220px;
    height: 290px;
    margin: 0 auto;
    transform: translateY(120px);
  }

  .instructor-shape img {
    width: 240px;
    margin-top: 50px;
    
  }

  .instructor-text h2 {
    font-size: 28px;

  }

  .instructor-text p {
  font-size: 18px;
  margin-top: 30px;
  text-align: center;
  width: 100%;
}


  .instructor-perks {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: start;
  }

  .instructor-perks li {
    font-size: 16px;
    margin-top: 20px;
    gap: 8px;
  }

  .instructor-btn {
    width: 100%;
    max-width: 250px;
    font-size: 15px;
    margin-top: 10px;
  }
}


@media (max-width: 480px) {
  .instructor-text {
    position: relative;
  }

  .instructor-text h2 {
    position: absolute;
    top: -500px;
    left: 0;
    width: 100%;
    font-size: 20px;
    text-align: center;
    padding: 0 15px;
  }

  .instructor-image-desktop {
    margin-top: 60px;

  }
   .instructor-section {
    padding-bottom: 0px; /* or 0 if you want no space */
  }
  .instructor-container,
.instructor-text,
.instructor-image-desktop,
.instructor-shape,
.instructor-section {
  margin-bottom: 0 !important;
}

}
