/* ==== FONTS ==== */
@font-face {
  font-family: Koodak;
  src: url(/static/Font/B_Koodak.ttf);
}

/* ==== end FONTS ==== */

/* ==== Solutions Section ==== */
.solutions-section {
  padding: 40px 0 60px 0;
  width: 100%;
  background-color: #ffffff;
  direction: rtl;
}

.solutions-container {
  max-width: 1754px;
  margin: 0 auto;
  padding: 0 24px;
}

.solutions-header {
  text-align: center;
  margin-bottom: 36px;
}

.solutions-main-title {
  color: #0b1a2f;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  font-family: 'Koodak';
}

.solutions-main-subtitle {
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

.solutions-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 80%;
  margin: 0 auto;
}

.solution-item-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  min-height: 380px;
}

.card-image-box {
  width: 100%;
  padding: 16px 16px 0 16px;
  display: flex;
  justify-content: center;
}

.solution-card-image {
  width: 100%;
  height: 160px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #f1f5f9;
}

.services-1 {
  background-image: url('/static/icons/services-1.png');
}

.services-2 {
  background-image: url('/static/icons/services-2.png');
}

.services-3 {
  background-image: url('/static/icons/services-3.png');
}

.services-4 {
  background-image: url('/static/icons/services-4.png');
}

.card-text-body {
  padding: 40px 16px 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.card-item-title {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-item-description {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* Dots hidden by default on desktop & tablet */
.solutions-carousel-dots {
  display: none;
}

/* ==== Responsive Design ==== */

/* Tablet (768px - 1100px) - standard 2-column grid */
@media (min-width: 768px) and (max-width: 1100px) {
  .solutions-cards-grid {
    width: 95%;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ========================================================================= */
/* Mobile Screen (<= 767px) - 3D Horizontal Slider / Coverflow              */
/* ========================================================================= */
@media (max-width: 767px) {
  .solutions-section {
    padding: 35px 0 45px 0;
    overflow: hidden;
  }

  .solutions-container {
    padding: 0 12px;
    overflow: visible;
  }

  .solutions-main-title {
    font-size: 1.6rem;
  }

  .solutions-main-subtitle {
    font-size: 0.9rem;
  }

  .solutions-cards-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
  }

  .solutions-cards-grid {
    display: block;
    position: relative;
    width: 100%;
    min-height: 380px;
    margin: 0 auto;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
  }

  .solution-item-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 285px;
    max-width: 82%;
    margin: 0;
    transform: translate3d(-50%, 0, 0);
    transform-origin: center center;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
    will-change: transform, opacity;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-height: 360px;
  }

  .solution-item-card.is-dragging {
    cursor: grabbing;
    transition: none !important;
  }

  .solution-item-card.is-active {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    border-color: #cbd5e1;
  }

  .card-image-box {
    padding: 12px 12px 0 12px;
  }

  .solution-card-image {
    height: 150px;
    border-radius: 4px;
  }

  .card-text-body {
    padding: 24px 14px 20px 14px;
  }

  .card-item-title {
    font-size: 1.08rem;
    margin-bottom: 8px;
  }

  .card-item-description {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  /* Mobile Dots Navigation */
  .solutions-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    position: relative;
    z-index: 15;
  }

  .solutions-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(11, 26, 47, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .solutions-dot:hover {
    background-color: rgba(11, 26, 47, 0.5);
  }

  .solutions-dot.active {
    width: 24px;
    border-radius: 5px;
    background-color: #0b1a2f;
    box-shadow: 0 2px 8px rgba(11, 26, 47, 0.25);
  }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
  .solution-item-card {
    width: 255px;
    max-width: 86%;
    min-height: 340px;
  }

  .solution-card-image {
    height: 135px;
  }

  .card-text-body {
    padding: 18px 10px 16px 10px;
  }

  .card-item-title {
    font-size: 1rem;
  }

  .card-item-description {
    font-size: 0.8rem;
  }
}