/* ================ media query ================ */
@media (max-width: 1200px) {
  .header {
    /* padding: 1rem 2rem; */
  }
  section {
    padding: 8rem 5%;
  }
}

@media (max-width: 991px) {
  html {
    font-size: 55%;
  }
  section {
    padding: 5rem 2rem;
  }
  .header {
    #menu-btn {
      display: inline-block;
    }
    .navbar {
      position: absolute;
      top: 99%;
      left: 0;
      right: 0;
      background-color: var(--white);
      border-top: var(--border);
      border-bottom: var(--border);
      clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);

      &.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
      }
      a {
        display: block;
        margin: 2rem;
      }
    }
  }
}

@media (max-width: 768px) {

  .content {
    flex: 1 1 41rem;
text-align:center;
    h3 {
      font-size: 3.5rem;
      color: var(--primary-color-dark);
      text-transform: capitalize;
      margin-bottom: 15px;
    }
    p {
      font-size: 1.5rem;
      padding: 1rem 0;
      margin-bottom: 20px;
      letter-spacing: 1px;
      line-height: 1.5;
    }
  }
  form {
    .box {
        width: 100%;
        padding: 1.2rem 1.4rem;
        /* background: var(--extra-light); */
        border-bottom: var(--border);
        margin: 1.7rem 0;
        font-size: 1.6rem;
        color: black;
    }
}
  .home {
    padding: 0;
    margin: 15px !important;
    margin-top: 115px !important;
  }
  .home .slide {
    justify-content: center;

    .content {
      text-align: center;
      align-items: center;
      display: flex;
      flex-direction: column;

      h3 {
        font-size: 3rem;
      }
    }
    button {
      margin: o auto !important;
    }
  }
  section {
    padding: 5rem 2rem;
  }
  /* ========== Footer */
  .footer-container {
    display: grid;
    grid-template-columns: 1fr; /* Creates two equal columns */
    gap: 1rem;
  }


  .footer-container .footer-box {
    justify-content: center;
    align-items: center;
    margin-bottom: 5rem;
  }
  .footer-box p {
    font-size: 1.5rem;
    color: #818181;
    font-weight: 400;
    margin-bottom: 10px;
    text-align: center;
  }
  .footer-box h3 {
    font-size: 2.3rem;
    font-weight: 400;
    margin-bottom: 5rem;
    color: var(--primary-color-dark);
    font-weight: bold;
  }

  .footer-box a,
  .footer-box p {
    font-size: 1.8rem;
    color: #818181;
    font-weight: 500;
    margin-bottom: 22px;
  }
  .contact_container {
    flex-direction: column;
  }

  /* Contact information styling */
  .contact_container .contactInfo {
    width: 100%;
  }

  .form-container {
    width: 100%;
  }
  .contact_container .contactInfo {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--primary-color-dark);
    border-radius: 10px;
    padding: 0;
  }
  
  .footer-box h3::after {
    content: "";
    display: block;
    width: 50%;
    height: 3px;
    background-color: var(--green-color);
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    margin: 0 auto;
  }

  
}
@media (max-width: 451px) {
  html {
    font-size: 50%;
  }

  .about {
    & .content {
      align-items: center;
      display: flex;
      flex-direction: column;
      h3 {
        font-size: 2.5rem;
        color: var(--primary-color-dark);
        text-transform: capitalize;
      }
      p {
        font-size: 2rem;
        /* padding: 3rem 0; */
      }
    }
  }

  .product_container {
    display: grid;
    grid-template-columns: 1fr;
    margin: 20px;
    grid-gap: 30px;
  }

  .popular_product {
    display: flex;
    flex-direction: column;
    margin: 0px auto;
    padding: 60px 0px 20px 0px;
    border-radius: 20px;
    background-color: #ecf7ee;
    border: 1px solid #f3f3f3;
    margin: 30px 11px !important;
  }

  .product_box {
    margin-top: 0px;
  }
}

@media (max-width: 768px) {
  .certificate-card {
    flex: 0 0 calc(50% - 5px);
  }
}

@media (max-width: 480px) {
  .certificate-card {
    flex: 0 0 100%;
  }
}
