/* =================== MOBILE STYLES =================== */
@media (max-width: 67em) {
  body {
    max-width: 90vw;
    margin: 0;
    padding: 0;
    font-family: "Aleo", serif, "Times New Roman", Times, serif;
  }

  .hero-text h1,
  h1 {
    font-size: 2.5rem !important;
    line-height: 1.25;
    margin: 8px 0;
    text-align: center;
    font-weight: 700;
    text-overflow: ellipsis;
  }

  h2 {
    font-size: 20%;
    text-align: center;
    margin: 12px 0;
    padding: 0;
  }

  header {
    max-width: 60vw;
    display: flex;
    gap: 10px;
    padding: 10px 6px;
    margin: 8px auto;
    width: 70%;
    box-sizing: border-box;

    align-items: center;
  }

  .logo-img img {
    height: 50px;
    width: auto;
    border-radius: 38% 62% 52% 48% / 40% 72% 28% 60%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    object-fit: cover;
  }

  header nav {
    display: flex;
    gap: 8px;
  }

  header nav a {
    font-size: 1rem;
    font-family: "Aleo", serif;
    font-weight: 700;
  }

  .hero {
    position: none;
    border-radius: 36% 64% 53% 47% / 47% 52% 48% 53%;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 8px 6px;
  }

  .hero-image img {
    max-width: 60vw;
    margin: 0 auto;
    position: unset;
    height: auto;
    left: -10px;
    top: 0;
    transform: translateX(5%);
  }

  .hero-text {
    padding: 20px 0;
    font-size: 2rem;
  }
  .hero-cta-round {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 32px 0;
  }

  .services {
    flex-direction: column;
    gap: 18px;
    padding: 20px 8px;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 380px;
    padding: 12px;
  }

  .card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .certificates-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin: 0 8px 18px 8px;
  }

  .certificates-header h2 {
    font-size: 2rem;
    margin-bottom: 0;
  }

  .splide {
    width: 100%;
    max-width: 420px;
    margin: 8px auto;
    padding: 6px;
    box-sizing: border-box;
  }

  .splide__slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: #72876a;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
  .splide__arrow--prev {
    left: 6px;
  }
  .splide__arrow--next {
    right: 6px;
  }

  .press {
    width: 100%;
    min-width: 0;
    max-width: 380px;
    margin: 0 auto;
    padding: 0px 6px;
  }

  .press-grid {
    gap: 18px;
    max-width: 100vw;
    padding: 10px 8px;
  }

  .press-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .press-item {
    display: none;
  }

  .press-item img {
    display: none;
  }

  .press-text {
    padding: 14px 12px;
    font-size: 1rem;
  }
  .note-3-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
  }

  .about-item {
    width: 100%;
    max-width: 300px;
    padding: 26px;
    box-sizing: border-box;
  }

  .about-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .about-item p {
    font-size: 1.1rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .hero---1 {
    padding: 0px 10px;
    margin-bottom: 100px;
    margin-top: 55px;
  }
  .contact {
    position: none;
    border-radius: 36% 64% 53% 47% / 47% 52% 48% 53%;
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 98vw;
    padding: 18px 10px;
    align-items: flex-start;
  }

  .hero-image2 img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .main-footer {
    padding: 24px 0 8px 0;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
  }

  .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .footer-bottom {
    font-size: 0.9rem;
    margin-top: 12px;
    text-align: center;
  }

  @media (max-width: 460px) {
    body {
      padding: 8px;
      font-family: "Aleo", serif, "Times New Roman", Times, serif;
    }
    .header,
    .hero,
    .services,
    .about,
    .contact {
      max-width: 340px;
    }
    .splide__arrow {
      width: 30px;
      height: 30px;
      font-size: 14px;
    }
    html,
    body {
      overflow-x: hidden;
    }

    header {
      max-width: 460px;
      width: 100%;
      margin: 8px auto;
      padding: 8px 12px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      overflow: hidden;
    }

    .logo-img {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
    }

    .logo-img img {
      height: 36px;
      width: auto;
      display: block;
    }

    header nav {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: center;
      max-width: calc(100% - 100px); /* reserve space for the logo */
      box-sizing: border-box;
    }

    header nav a {
      font-size: 0.95rem;
      padding: 6px 8px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis; /* keep long links from breaking layout */
      display: inline-block;
      max-width: 120px;
      text-align: center;
    }
    h2 {
      font-size: 1.5rem !important;
      text-align: center !important;
      margin: 1px 0 !important;
      padding: 0 !important;
      line-height: 1.25;
      margin: 8px 0;
      font-weight: 700;
      text-overflow: ellipsis;
    }
    .note-grid-1 {
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
      justify-content: center;
      padding: 0;
      margin: 0 auto;
    }
    .note3-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
      justify-content: center;
      padding: 0;
      margin: 0 auto;
    }
  }
}
