  * {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
  }

  :root {
    --serviceorders-bg: #f9f9f9;
    --serviceorders-text: #333;
    --serviceorders-subtext: #666;
    --serviceorders-button: #11205e;
    --serviceorders-button-text: #fff;
    --serviceorders-radius: 12px;
    --serviceorders-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    --serviceorders-gap: 2rem;
    --serviceorders-font: 'Arial', sans-serif;
  }

  .serviceorders-section {
    padding: 3rem 1.5rem;
    font-family: var(--serviceorders-font);
  }

  .serviceorders-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--serviceorders-gap);
    justify-content: center;
    max-width: 1200px;
    margin: auto;
  }

  .serviceorders-card {
    display: flex;
    background: #fff;
    border-radius: var(--serviceorders-radius);
    box-shadow: var(--serviceorders-shadow);
    overflow: hidden;
    flex: 1 1 calc(50% - var(--serviceorders-gap));
    min-height: 280px;
    max-width: 560px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .serviceorders-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    cursor: pointer;
  }

  .serviceorders-card:hover .serviceorders-image {
    transform: scale(1.05);
  }

  .serviceorders-card:hover .serviceorders-title {
    color: var(--serviceorders-button);
  }

  .serviceorders-image-wrapper {
    flex: 1.2;
    min-width: 220px;
    overflow: hidden;
    position: relative;
  }

  .serviceorders-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }

  .serviceorders-content {
    flex: 2;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
  }

  .serviceorders-title {
    font-size: 1.6rem;
    color: var(--serviceorders-text);
    font-weight: 700;
    transition: color 0.3s ease;
  }

  .serviceorders-subtitle {
    font-size: 1rem;
    color: var(--serviceorders-subtext);
    font-weight: 500;
  }

  .serviceorders-description {
    font-size: 0.95rem;
    color: var(--serviceorders-subtext);
    line-height: 1.5;
  }

  /* ✅ Button */
  .serviceorders-button {
    padding: 0.6rem 1.2rem;
    background-color: var(--serviceorders-button);
    color: var(--serviceorders-button-text);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: fit-content;
    outline: none;
    text-decoration: none;
    display: inline-block;
  }

  .serviceorders-button:hover {
    background-color: white;
    border: 2px solid #11205e;
    color: #11205e;
    transform: scale(1.05);
  }

  /* Responsive for smaller screens */
  /* @media (max-width: 1112px) { */
  @media (max-width: 962px) {
    .serviceorders-card {
      flex-direction: column;
      flex: 1 1 100%;
      max-width: 380px;
      margin: 0 auto;
      max-height: none;
    }

    .serviceorders-image-wrapper {
      width: 100%;
      height: 0;
      padding-top: 65%;
      position: relative;
    }

    .serviceorders-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .serviceorders-content {
      padding: 0.8rem 1rem 0.6rem;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      gap: 0.3rem;
    }

    .serviceorders-title {
      margin-top: 0;
      margin-bottom: 0.4rem;
    }

    .serviceorders-subtitle {
      margin-bottom: 0.5rem;
    }

    .serviceorders-button {
      margin: 10px auto 2px auto;
    }
  }
/* ✅ Between 780px and 701px → 2 cards per row, column layout */
@media (max-width: 880px) and (min-width: 701px) {
  .serviceorders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
  }

  .serviceorders-card {
    flex-direction: column; /* Image top, content bottom */
    align-items: center;
    flex: 1 1 calc(50% - 1.5rem); /* 2 cards per row */
    max-width: 360px;
    min-height: 260px;
    margin: 0 auto;
  }

  .serviceorders-image-wrapper {
    width: 100%;
    height: 0;
    padding-top: 65%;
    position: relative;
  }

  .serviceorders-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .serviceorders-content {
    padding: 1rem;
    text-align: center;
  }

  .serviceorders-title {
    font-size: 1.4rem;
  }

  .serviceorders-subtitle {
    font-size: 0.95rem;
  }

  .serviceorders-description {
    font-size: 0.9rem;
  }

  .serviceorders-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin: 10px auto;
  }
}

/* ✅ Below 700px → 1 card per row */
@media (max-width: 700px) {
  .serviceorders-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .serviceorders-card {
    flex-direction: column;
    flex: 1 1 100%;
    max-width: 320px;
    min-height: 240px;
    margin: 0 auto;
  }

  .serviceorders-image-wrapper {
    width: 100%;
    height: 0;
    padding-top: 60%;
    position: relative;
  }

  .serviceorders-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .serviceorders-content {
    padding: 0.8rem 1rem;
    text-align: center;
  }

  .serviceorders-title {
    font-size: 1.3rem;
  }

  .serviceorders-subtitle {
    font-size: 0.9rem;
  }

  .serviceorders-description {
    font-size: 0.85rem;
  }

  .serviceorders-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin: 0px auto;
  }
}
