﻿/* Styles ported from static MASAQY page: custom-ai-systems.html */

#lab-challenges {
      padding-bottom: clamp(4rem, 8vw, 7rem);
    }

    #lab-challenges .consulting-section-head {
      max-width: none;
      margin-inline: auto;
      text-align: center;
      justify-items: center;
    }

    #lab-challenges .consulting-section-head p {
      color: rgba(17, 24, 39, .76);
    }

    #lab-challenges .consulting-challenges-grid {
      align-items: stretch;
    }

    #lab-challenges .consulting-challenge-card {
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    #lab-challenges .consulting-challenge-head {
      justify-content: center;
      width: 100%;
    }

    #lab-challenges .consulting-challenge-card h2 {line-height: 1.45 !important;
    }

    #lab-challenges .consulting-challenge-card>p {
      margin-bottom: 0;
      max-width: 24ch;
    }

    #custom-solutions {
      padding-block: clamp(3rem, 6vw, 5rem);
    }

    #custom-solutions .enterprise-specialties-head {
      max-width: none;
      margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
      text-align: right;
    }

    #custom-solutions .enterprise-specialties-head h2 {
      color: #111827;
}

    #custom-solutions .enterprise-specialties-head p {
      margin: -.35rem 0 0;
      color: rgba(17, 24, 39, .62);
      font-size: 1rem;
      font-weight: 650;
    }

    #custom-solutions .enterprise-specialties-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(1rem, 2vw, 1.35rem);
      padding-bottom: clamp(2rem, 4vw, 4rem);
    }

    #custom-solutions .enterprise-specialty-card,
    #custom-solutions .enterprise-specialty-card:nth-child(4),
    #custom-solutions .enterprise-specialty-card:nth-child(5) {
      grid-column: auto;
    }

    #custom-solutions .enterprise-specialty-card {
      min-height: 210px;
      padding: clamp(1.25rem, 2.2vw, 1.75rem);
      border-radius: 12px;
      text-align: right;
    }

    #custom-solutions .enterprise-specialty-card::before {
      content: none;
    }

    #custom-solutions .enterprise-specialty-card-wide {
      display: grid;
      grid-column: span 2;
      grid-template-columns: minmax(190px, .88fr) minmax(0, 1.12fr);
      gap: clamp(1.2rem, 2.5vw, 2rem);
      align-items: center;
      min-height: 258px;
      direction: ltr;
    }

    #custom-solutions .enterprise-specialty-card-blue {
      grid-column: 1 / span 2;
      grid-row: 1;
      background: #dbeafe;
    }

    #custom-solutions .enterprise-specialties-grid .enterprise-specialty-card-compact:nth-child(2) {
      grid-column: 3;
      grid-row: 1;
    }

    #custom-solutions .enterprise-specialties-grid .enterprise-specialty-card-compact:nth-child(3) {
      grid-column: 3;
      grid-row: 2;
    }

    #custom-solutions .enterprise-specialties-grid .enterprise-specialty-card-dark,
    #custom-solutions .enterprise-specialties-grid .enterprise-specialty-card-dark:nth-child(4) {
      grid-column: 1 / span 2;
      grid-row: 2;
      background: #223247;
    }

    #custom-solutions .enterprise-specialty-card-dark .enterprise-specialty-media {
      grid-column: 2;
    }

    #custom-solutions .enterprise-specialty-card-dark .enterprise-specialty-copy {
      grid-column: 1;
      grid-row: 1;
    }

    #custom-solutions .enterprise-specialty-copy {
      direction: rtl;
    }

    #custom-solutions .enterprise-specialty-media {
      overflow: hidden;
      border-radius: 8px;
      aspect-ratio: 16 / 9;
    }

    #custom-solutions .enterprise-specialty-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    #custom-solutions .enterprise-specialty-card h3 {
      margin: 0 0 1rem;
      color: #111827;
      line-height: 1.45;
    }

    #custom-solutions .enterprise-specialty-card p {
      margin: 0;
      color: rgba(17, 24, 39, .66);
      font-weight: 650;
      line-height: 1.85;
    }

    #custom-solutions .enterprise-specialty-points {
      display: grid;
      gap: .45rem;
      margin-top: 1.1rem;
    }

    #custom-solutions .enterprise-specialty-points span {
      display: flex;
      align-items: center;
      gap: .5rem;
      color: rgba(17, 24, 39, .72);
      font-weight: 750;
    }

    #custom-solutions .enterprise-specialty-points i {
      color: var(--primary-color);
      font-size: .95rem;
    }

    #custom-solutions .enterprise-specialty-icon {
      display: block;
      margin-bottom: 1.4rem;
      color: var(--primary-color);
      font-size: 2.25rem;
      line-height: 1;
    }

    #custom-solutions .enterprise-specialty-link {
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      margin-top: 1.35rem;
      color: var(--primary-color);
      font-weight: 900;
      text-decoration: none;
    }

    #custom-solutions .enterprise-specialty-card-dark h3,
    #custom-solutions .enterprise-specialty-card-dark p {
      color: rgba(255, 255, 255, .84);
    }

    #custom-solutions .enterprise-specialty-card-dark .consulting-sub-tags {
      margin: 1.35rem 0 0;
    }

    #custom-solutions .enterprise-specialty-card-dark .consulting-sub-tags span {
      border-color: rgba(255, 255, 255, .12);
      color: rgba(255, 255, 255, .78);
      background: rgba(255, 255, 255, .1);
    }

    @media (max-width: 991.98px) {
      #custom-solutions .enterprise-specialties-grid {
        grid-template-columns: 1fr;
      }

      #custom-solutions .enterprise-specialty-card-blue,
      #custom-solutions .enterprise-specialties-grid .enterprise-specialty-card-compact:nth-child(2),
      #custom-solutions .enterprise-specialties-grid .enterprise-specialty-card-compact:nth-child(3),
      #custom-solutions .enterprise-specialties-grid .enterprise-specialty-card-dark,
      #custom-solutions .enterprise-specialties-grid .enterprise-specialty-card-dark:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
      }

      #custom-solutions .enterprise-specialty-card-wide {
        grid-column: auto;
        grid-template-columns: 1fr;
      }

      #custom-solutions .enterprise-specialty-card-dark .enterprise-specialty-media,
      #custom-solutions .enterprise-specialty-card-dark .enterprise-specialty-copy {
        grid-column: auto;
        grid-row: auto;
      }
    }

    @media (max-width: 575.98px) {
      #custom-solutions .enterprise-specialty-card {
        min-height: auto;
      }
    }

    #lab-methodology .method-shell {
      max-width: var(--masaqy-page-max-width, 1440px);
      margin-inline: auto;
    }

    #lab-methodology .method-flow {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
      justify-content: center;
      max-width: var(--masaqy-page-max-width, 1440px);
      margin-inline: auto;
    }

    #lab-methodology .method-flow-line {
      inset-inline: calc(12.5% + 1rem) !important;
    }

    @media (max-width: 991.98px) {
      #lab-methodology .method-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 720px;
      }
    }

    @media (max-width: 767.98px) {
      #lab-methodology .method-flow {
        grid-template-columns: 1fr !important;
        max-width: 440px;
      }

      #lab-methodology .method-flow-line {
        inset-inline-start: 42px !important;
        inset-inline-end: auto !important;
      }
    }

    #service-scope {
      padding-block: clamp(3rem, 6vw, 5rem);
      background: #f5f7fc;
      border-block: 1px solid rgba(var(--primary-rgb), .08);
    }

    #service-scope .service-scope-layout {
      display: grid;
      grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
      gap: clamp(2rem, 5vw, 4.5rem);
      align-items: center;
    }

    #service-scope .service-scope-copy {
      max-width: 620px;
    }

    #service-scope .service-scope-copy h2 {
      margin: 0 0 1rem;
      color: #111827;
font-weight: 950;
      line-height: 1.3;
    }

    #service-scope .service-scope-copy p {
      margin: 0;
      color: rgba(17, 24, 39, .68);
      font-weight: 650;
      line-height: 1.9;
    }

    #service-scope .service-scope-highlights {
      display: grid;
      gap: .85rem;
      margin-top: 1.6rem;
    }

    #service-scope .service-scope-highlight {
      display: flex;
      align-items: center;
      gap: .8rem;
      color: #111827;
      font-weight: 900;
    }

    #service-scope .service-scope-highlight span {
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      color: #7c3aed;
      background: rgba(124, 58, 237, .12);
      font-size: 1rem;
    }

    #service-scope .service-scope-cards {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1.1rem;
    }

    #service-scope .service-scope-card {
      position: relative;
      min-height: 112px;
      padding: 1.15rem 1.25rem;
      border: 1px solid rgba(17, 24, 39, .06);
      border-inline-end: 4px solid var(--scope-card-color, var(--primary-color));
      border-radius: 7px;
      background: #fff;
      box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
      text-align: right;
    }

    #service-scope .service-scope-card h3 {
      margin: 0 0 .45rem;
      color: #111827;
      font-size: 1rem !important;
      font-weight: 950;
      line-height: 1.45 !important;
    }

    #service-scope .service-scope-card p {
      margin: 0;
      color: rgba(17, 24, 39, .62);
      font-size: .88rem !important;
      font-weight: 650;
      line-height: 1.7 !important;
    }

    @media (max-width: 991.98px) {
      #service-scope .service-scope-layout {
        grid-template-columns: 1fr;
      }

      #service-scope .service-scope-copy {
        max-width: none;
      }
    }

    @media (max-width: 575.98px) {
      #service-scope .service-scope-cards {
        grid-template-columns: 1fr;
      }
    }

