@media (max-width: 850px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: linear-gradient(
      to right,
      rgba(16, 0, 152, 0.973),
      rgb(2, 96, 192),
      rgb(2, 160, 208),
      rgb(0, 92, 206)
    );
    text-align: center;
    padding: 20px 0;
  }

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

  .hamburger {
    display: flex;
  }

  .login-btn {
    display: none;
  }

  /* hero */
  .slide {
    min-height: 100dvh;
    padding: 50px 20px;
  }

  .slide.active {
    min-height: 100dvh;
  }

  .content-wrapper {
    flex-direction: column;
    text-align: center;
    width: 100%;
    height: auto;
    top: 25px;
  }

  .content {
    width: 100%;
  }

  .feature-container {
    width: 100%;
    justify-content: space-between;
  }

  /* Courses section */
  .courses-container {
    padding: 0 20px 0 20px;
  }
  .small-courses {
    grid-template-columns: 1fr !important;
  }

  .form-container {
    width: 90%;
  }

  /* Self-Learning Section */
  .self-learning-section {
    background-size: cover;
  }
  .item-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* offer section  */
  .offer-content h1 {
    font-size: 28px;
  }

  .offer-content p {
    font-size: 16px;
  }

  .offer-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  /* Training Section */
  .training-container {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  /* Blog Section */
  .blog-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Clients Section */
  .logo-wrapper {
    width: 100%;
  }

  .logo-slider img {
    width: 100px;
  }

  /* subscribe us form */
  .subscribe-container {
    padding: 15px;
  }

  .subscribe-form input,
  .subscribe-form button {
    padding: 12px;
  }

  /* Modal form */
  .modal-container {
    width: 95%;
  }

  /* offer modal */
  .offermodal-container {
    width: 95%;
  }
  .offermodal-body h2 {
    font-size: 20px;
  }
  .offermodal-body p {
    font-size: 14px;
  }

  /* bottom nav */
  .bottom-nav {
    display: block;
    z-index: 9999;
  }

  /* .captcha-container {
    flex-direction: column;
    align-items: stretch;
  } */

  .captchaButtonDiv,
  #captchaInput {
    width: 100%;
  }

  /* subscribe now */
  .subscribe-section {
    padding: 50px 0;
  }

  /* our clients */
  .clients {
    padding: 50px 0;
  }

  /* featured category */
  .featured-topics-category svg {
    display: block;
  }
  .featured-topics {
    grid-template-columns: 1fr;
  }
  .featured-topics-category ul {
    display: none;
  }
  .featured-topics-category.active ul {
    display: block;
  }

  /* Carrer section */
  .career-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .career-content {
    max-width: 100%;
  }

  .jobs-section {
    width: 95%; /* Allow it to take most of the screen */
    margin: 10px auto;
    padding: 15px;
    border-radius: 10px;
  }

  .job-card {
    width: 100%;
    max-width: 350px;
    margin: 10px auto; /* Add space between job cards */
    padding: 15px;
  }

  .stat-card {
    width: 90%;
    max-width: 320px;
    margin: 10px auto;
  }

  .cta-button {
    width: 100%;
    max-width: 320px;
  }

  /* Phone Mockups */
  .section-wrapper h1 {
    font-size: 1.6rem;
  }

  .mockup {
    width: 90%;
    max-width: 300px;
    height: 500px;
  }

  /* Read More */
  #readMore {
    padding: 15px;
  }

  #readMore h2 {
    font-size: 22px;
  }

  #readMore h3 {
    font-size: 20px;
  }

  #readMore p {
    font-size: 14px;
  }

  #readMore ul {
    padding-left: 15px;
  }
}

@media (max-width: 1024px) {
  /* hero */
  .slide {
    min-height: 100dvh;
    padding: 50px 20px;
  }

  .slide.active {
    min-height: 100dvh;
  }

  /* Courses section */
  .courses-container {
    grid-template-columns: 1fr;
  }
  .small-courses {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Self-Learning Section */
  .item-container {
    grid-template-columns: repeat(3, 1fr);
  }

  /* offer section  */
  .offer-section {
    flex-direction: column;
    text-align: center;
  }

  .offer-content {
    width: 100%;
    text-align: center;
  }

  .offer-image {
    width: 100%;
    text-align: center;
    display: none;
  }

  .offer-btn {
    display: block;
    margin: 15px auto 0;
  }

  .offer-image img {
    max-width: 80%;
  }

  /* Training Section */
  .training-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Blog Section */
  .blog-container {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Subscribe us form */
  .input-group {
    flex-direction: column;
  }

  .input-group input {
    width: 100%;
  }

  .subscribe-form button {
    width: 100%;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-column {
    width: 100%;
    margin-bottom: 20px;
  }

  /* why us */
  .whyus-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .whyus-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .whyus-right {
    align-items: center;
  }

  .whyus-list {
    text-align: left;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  /* hero */
  .slide {
    min-height: 100dvh;
    padding: 50px 20px;
  }

  .slide.active {
    min-height: 100dvh;
  }

  .form-container {
    width: 105%;
  }

  /* Self-Learning Section */
  .item-container {
    grid-template-columns: repeat(1, 1fr);
  }

  /* .offer-content */
  .offer-content h1 {
    font-size: 24px;
  }

  .offer-content p {
    font-size: 14px;
  }

  .offer-btn {
    font-size: 14px;
    padding: 8px 18px;
  }

  /* Training Section */
  .training-section h1 {
    font-size: 28px;
  }

  .training-card h2 {
    font-size: 18px;
  }

  .training-card p {
    font-size: 14px;
  }

  /* Blog Section */
  .blog-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .blog-card img {
    height: 160px;
  }

  .captchaButtonDiv {
    flex-direction: row;
  }

  .captcha-box {
    width: 70%;
  }

  .captcha-refresh {
    width: 30%;
  }

  /* Carrer section */
  .career-container {
    flex-direction: column;
    align-items: center;
    min-width: fit-content;
    padding: 20px; 
  }

  .career-content {
    width: 100%;
    text-align: center;
  }

  .career-stats {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .stat-card {
    width: 90%;
    max-width: 320px;
    margin: 10px auto;
  }

  .cta-button {
    width: 90%;
    max-width: 320px;
    text-align: center;
  }

  .jobs-section {
    width: 90%;
    max-width: 350px;
    margin: 20px auto;
    text-align: center;
  }

  .job-card {
    width: 80%;
    margin: 10px auto;
  }

  /* Read More */
  #readMore {
    padding: 10px;
  }

  #readMore h2 {
    font-size: 20px;
  }

  #readMore h3 {
    font-size: 18px;
  }

  #readMore p {
    font-size: 12px;
  }

  #readMore ul {
    padding-left: 10px;
  }
}
