/* Keep navbar item order stable */
#navmenu ul {
  display: flex;
  flex-direction: row !important;
}

/* English */
html[dir="ltr"] #navmenu ul {
  justify-content: flex-start;
}

/* Arabic */
html[dir="rtl"] #navmenu ul {
  justify-content: flex-end;
}
/* ===== Services Section ===== */
.services-wrapper {
  background-color: #f9fafb;
}

/* Tabs */
.tabs-wrapper .tab-btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  background: #e5e7eb;
  color: #7f7f90;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 10px 10px 0 0;
  transition: all 0.25s ease;
}

.tabs-wrapper .tab-btn:hover {
  background-color: #d1d5db;
}

.tabs-wrapper .tab-btn.active {
  background-color: #ffffff;
  color: #1a253e;
  border-bottom-color: #1a253e;
}

/* ============================================
   CUSTOM CARD STYLES - Bootstrap Enhancement
   ============================================ */

/* Base Card Styling */
.card {
  border-radius: 20px;
  border: 1px solid
    color-mix(in srgb, var(--default-color, #212529), transparent 90%);
  background-color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

/* Card Hover Effect */
.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Card Header */
.card-header {
  border-radius: 20px 20px 0 0;
  background-color: transparent;
  border-bottom: 1px solid
    color-mix(in srgb, var(--default-color, #212529), transparent 90%);
}

/* Card Footer */
.card-footer {
  border-radius: 0 0 20px 20px;
  background-color: transparent;
  border-top: 1px solid
    color-mix(in srgb, var(--default-color, #212529), transparent 90%);
}

/* Card Title - Heading Color */
.card-title,
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
  color: #1a253e;
  font-weight: 600;
  line-height: 1.4;
}

/* Card Text */
.card-text {
  color: #7f7f90;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Card Body Padding Enhancement */
.card-body {
  padding: 1.5rem;
}

/* Card Image */
.card-img-top {
  border-radius: 20px 20px 0 0;
}

.card-img-bottom {
  border-radius: 0 0 20px 20px;
}

/* ============================================
   DESCRIPTION CARD (for your products section)
   ============================================ */

#descriptionCard {
  border-radius: 20px;
  border: 1px solid
    color-mix(in srgb, var(--default-color, #212529), transparent 90%);
  background-color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
}

#descriptionCard h1,
#descriptionCard h2,
#descriptionCard h3,
#descriptionCard h4,
#descriptionCard h5,
#descriptionCard h6 {
  color: #1a253e;
  font-weight: 600;
}

/* ============================================
   PRODUCT CARDS (grid items)
   ============================================ */

#productsContainer .card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px !important;
}

/* ============================================
   SECTION STYLING (matching Tailwind bg-gray-50)
   ============================================ */

.section-services {
  background-color: #f9fafb; /* equivalent to bg-gray-50 */
  padding: 3rem 0;
}

/* Section Title Enhancement */
.section-title h2 {
  color: #1a253e;
  font-weight: 700;
}

.section-title .description-title {
  color: #1a253e;
  font-weight: 600;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.rounded-xl {
  border-radius: 20px !important;
}

.shadow-card {
  box-shadow: 0 4px 6px -1px #1a253e, 0 2px 4px -1px #1a253e;
}

.text-heading {
  color: #1a253e;
}

.text-muted-custom {
  color: #7f7f90;
}

#productsContainer .service-card:hover {
  transform: translateY(-3px);
}

/* Image inside card */
.service-card img {
  border-radius: 10px;
  max-height: 120px;
  object-fit: cover;
  width: 100%;
  margin-top: 10px;
}

/* RTL safety */
html[dir="rtl"] .tabs-wrapper {
  direction: rtl;
}
/* Default LTR styles (mobile menu opens from right) */
#navmenu {
  right: -300px; /* Hidden off-screen right */
}
#navmenu.active {
  right: 0; /* Sliding in from the right */
}

/* RTL specific styles (mobile menu opens from left) */
[dir="rtl"] #navmenu {
  left: -300px; /* Hidden off-screen left */
  right: auto; /* Reset right property */
}
[dir="rtl"] #navmenu.active {
  left: 0; /* Sliding in from the left */
}
[dir="rtl"] #navmenu ul {
  text-align: right;
  padding-right: 0; /* Reset any default LTR padding-left */
}
/* Mobile Responsive - Description below products */
@media (max-width: 767.98px) {
  /* Stack layout vertically on mobile */
  .d-flex.flex-column.flex-md-row {
    flex-direction: column !important;
  }

  /* Make description card full width on mobile */
  #descriptionCard {
    width: 100% !important;
    max-width: 100%;
    margin-top: 1.5rem;
    order: 2; /* Ensure it comes after products */
  }

  /* Products container takes full width */
  #productsContainer {
    width: 100%;
    order: 1; /* Products first */
  }
}

/* Tablet adjustments */
@media (min-width: 768px) {
  #descriptionCard {
    width: 20rem;
    flex-shrink: 0;
  }
}
#productsContainer img {
  margin-top: 10px;
  border-radius: 10px;
  width: 100%;
  height: 280px;
  object-fit: cover;
}
#products-card {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%) !important;
  transition: all 0.3s ease;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px !important;
}
#descriptionCard {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%) !important;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px !important;
  border-radius: 20px !important;
  transition: all 0.3s ease;
}
#products-card h3 {
  color: #1a253e;
}
#descriptionCard h3 {
  color: hsl(222, 41%, 17%);
}

#usp {
  border-left: 2px solid
    color-mix(in srgb, var(--default-color), transparent 50%);
  font-weight: 500;
}
.icons-wrapper {
  width: 80px;
  height: 30px;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ff0808;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-size: 2rem;
  color: #1a253e;
}
#products-card {
}
/* ============================================
   FIX: Center products above description on mobile
   ============================================ */
@media (max-width: 767.98px) {
  .d-flex.flex-column.flex-md-row {
    align-items: center !important;
  }

  #productsContainer {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #productsContainer .card {
    width: 100%;
    max-width: 420px; /* keeps cards centered nicely */
  }
}
