/* Professional structure layer: local overrides and utility styles */

:root {
  --site-max-width: 1200px;
  --site-text-color: #1f2937;
  --site-bg-color: #ffffff;
}

html,
body {
  background-color: var(--site-bg-color);
  color: var(--site-text-color);
}

/* Keep media elements predictable across sections */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Keep header logos at a consistent professional size */
.header-box .logo img {
  width: 170px !important;
  height: auto !important;
}

@media (max-width: 768px) {
  .header-box .logo img {
    width: 130px !important;
  }
}
/* Safety fallback if any demo panel markup remains in other mirrors */
.stm_theme_demos,
.pearl-envato-preview,
.pearl-envato-preview-holder,
#envato-sale-bar {
  display: none !important;
}

/* Remove "Elements" item from top navigation */
#menu-item-1874 {
  display: none !important;
}

/* Mobile readability improvements */
.top_bar_info_wr .top_bar_info {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
}

.top_bar_info_wr .top_bar_info li {
  white-space: normal;
}

.consulting-rev-title {
  line-height: 1.25 !important;
}

.consulting-rev-text {
  line-height: 1.5 !important;
}

.stm_services_tabs .services_categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.stm_services_tabs .services_categories ul li a {
  border-radius: 999px;
  padding: 8px 14px !important;
}

.stm_services_tabs .service_tab_item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
}

.service_cost {
  font-weight: 700;
  color: #001040;
}

.service-packages {
  margin-top: 24px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.package-card {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 16, 64, 0.06);
}

.package-card h4 {
  margin: 0 0 8px;
  color: #001040;
}

.package-price {
  color: #5f96ee;
  font-weight: 700;
  margin-bottom: 10px;
}

.package-list {
  margin: 0 0 14px;
  padding-left: 18px;
}

.package-list li {
  margin-bottom: 6px;
}

.package-order-btn {
  display: inline-block;
  background: #001040;
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none !important;
  font-weight: 600;
}

.package-order-btn:hover {
  background: #5f96ee;
}

@media (max-width: 992px) {
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #rev_slider_6_1_wrapper,
  #rev_slider_6_1_wrapper rs-module,
  #rev_slider_6_1_wrapper rs-slides,
  #rev_slider_6_1_wrapper rs-slide {
    min-height: 60vh !important;
    height: 60vh !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  #rev_slider_6_1_wrapper {
    position: relative !important;
    z-index: 1 !important;
  }

  #rev_slider_6_1_wrapper rs-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(8, 16, 40, 0.6) 0%,
      rgba(8, 16, 40, 0.32) 40%,
      rgba(8, 16, 40, 0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  #rev_slider_6_1_wrapper .rev-slidebg,
  #rev_slider_6_1_wrapper rs-slide > img.rev-slidebg {
    width: 100% !important;
    height: 100% !important;
    min-height: 60vh !important;
    object-fit: cover !important;
    object-position: 68% center !important;
  }

  #slider-6-slide-18-layer-1,
  #slider-6-slide-18-layer-3,
  #slider-6-slide-18-layer-4,
  #slider-6-slide-18-layer-5 {
    left: 12px !important;
    right: 12px !important;
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    transform: none !important;
    z-index: 8 !important;
  }

  #slider-6-slide-18-layer-1 {
    top: 14vh !important;
    text-align: center !important;
    white-space: normal !important;
  }

  #slider-6-slide-18-layer-3 {
    display: block !important;
    top: 24vh !important;
    text-align: center !important;
    height: auto !important;
    min-height: 0 !important;
    white-space: normal !important;
  }

  #slider-6-slide-18-layer-4 {
    left: 50% !important;
    right: auto !important;
    top: 35vh !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    transform: translateX(-104%) !important;
  }

  #slider-6-slide-18-layer-5 {
    left: 50% !important;
    right: auto !important;
    top: 35vh !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    transform: translateX(4%) !important;
  }

  .consulting-rev-title {
    font-size: clamp(24px, 6.5vw, 32px) !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em;
    font-weight: 700 !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 4px;
    text-wrap: balance;
  }

  .consulting-rev-text {
    display: block !important;
    font-size: clamp(13px, 3.4vw, 15px) !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 8px;
  }

  #slider-6-slide-18-layer-4 a,
  #slider-6-slide-18-layer-5 a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 140px !important;
    max-width: 140px;
    min-height: 44px;
    padding: 10px 10px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    margin: 0 auto !important;
  }

  /* Hide decorative signature in slider for clean mobile view */
  #slider-6-slide-18-layer-7 {
    display: none !important;
  }

  .vc_row .vc_col-sm-6,
  .vc_row .vc_col-sm-4,
  .vc_row .vc_col-sm-8,
  .vc_row .vc_col-sm-2 {
    width: 100% !important;
  }

  .vc_row .vc_col-sm-2 {
    display: none !important;
  }

  .stm_services_tabs .services_categories ul {
    justify-content: flex-start;
  }

  .stm_services_tabs .services_categories ul li {
    width: calc(50% - 6px);
  }

  .stm_services_tabs .services_categories ul li a {
    display: block;
    text-align: center;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .package-card {
    padding: 16px;
  }

  .package-order-btn {
    width: 100%;
    text-align: center;
  }
}
