.page-home {
  background: #f6f8fc;
  color: #1f2937;
}

.page-home #main_header {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

.page-home #main_header .navbar-nav > li > a {
  color: #1f2937 !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1px;
  padding-left: 14px;
  padding-right: 14px;
}

.page-home #main_header .navbar-nav > li.active > a,
.page-home #main_header .navbar-nav > li > a:hover {
  color: #2563eb !important;
}

/* Company submenu — readable on white dropdown (overrides global #fff on .dropdown-menu a) */
.page-home #main_header .navbar-nav .dropdown-menu > li > a {
  color: #1f2937 !important;
  font-weight: 500;
}

.page-home #main_header .navbar-nav .dropdown-menu > li > a:hover,
.page-home #main_header .navbar-nav .dropdown-menu > li > a:focus,
.page-home #main_header .navbar-nav .dropdown-menu > li.active > a {
  color: #2563eb !important;
  background-color: #f3f4f6;
}

.home-modern #layerslider {
  position: relative;
  margin-bottom: 0;
}

.home-modern .container--head {
  background: transparent !important;
}

.home-modern #layerslider .carousel {
  background: #0f172a;
}

/* Override global responsive.css: fixed .item height + img height: auto caused a tall empty band below the image */
.home-modern #layerslider .carousel-inner > .item {
  position: relative;
  overflow: hidden;
  height: auto !important;
  line-height: 0;
}

.home-modern #layerslider .carousel-inner > .item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.45) 0%,
      rgba(15, 23, 42, 0.35) 40%,
      rgba(15, 23, 42, 0.88) 100%
    ),
    linear-gradient(100deg, rgba(15, 23, 42, 0.75) 0%, rgba(37, 99, 235, 0.4) 55%, rgba(59, 130, 246, 0.15) 100%);
}

.home-modern #layerslider .carousel-inner > .item img {
  display: block;
  line-height: normal;
  width: 100% !important;
  height: clamp(380px, 72vh, 720px) !important;
  object-fit: cover !important;
  vertical-align: middle;
}

.home-modern #layerslider .carousel-caption {
  text-align: left;
  left: 8%;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  max-width: min(640px, 92vw);
  z-index: 2;
  padding: 28px 32px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-modern #layerslider .carousel-caption,
.home-modern #layerslider .carousel-caption h1,
.home-modern #layerslider .carousel-caption p,
.home-modern #layerslider .carousel-caption .btn {
  font-family: 'Montserrat', sans-serif !important;
}

.home-modern #layerslider .carousel-caption h1 {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.18;
  margin-top: 0;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.home-modern #layerslider .carousel-caption p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
  max-width: 100%;
  margin-bottom: 8px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.home-modern #layerslider .carousel-caption .btn {
  margin-top: 16px;
}

.home-modern #layerslider .carousel-indicators {
  bottom: 22px;
  margin-bottom: 0;
  z-index: 3;
}

.home-modern #layerslider .carousel-indicators li {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.home-modern #layerslider .carousel-indicators .active {
  background: #3b82f6;
  border-color: #3b82f6;
}

.home-modern #layerslider .carousel-control {
  width: 44px;
  height: 44px;
  top: 50%;
  margin-top: -22px;
  bottom: auto;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 50%;
  text-shadow: none;
  opacity: 0.9;
  color: #fff;
}

.home-modern #layerslider .carousel-control.left {
  left: 16px;
}

.home-modern #layerslider .carousel-control.right {
  right: 16px;
}

.home-modern #layerslider .carousel-control .hero-carousel-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

.home-modern #layerslider .carousel-control:hover,
.home-modern #layerslider .carousel-control:focus {
  opacity: 1;
  background: rgba(37, 99, 235, 0.75);
}

.home-modern .btn_default {
  border-radius: 999px;
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  padding: 12px 24px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.home-modern .btn_default:hover,
.home-modern .btn_default:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.home-modern .full_row {
  padding: 84px 0;
}

.home-modern .section_title {
  color: #111827;
  letter-spacing: -0.4px;
}

.home-modern .sub_tittle {
  color: #6b7280 !important;
}

.home-modern .text_block_2,
.home-modern .service_block_1,
.home-modern .text_block_6,
.home-modern .thumbnail_block_3 {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-modern .text_block_2:hover,
.home-modern .service_block_1:hover,
.home-modern .text_block_6:hover,
.home-modern .thumbnail_block_3:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
}

.home-modern .text_block_2 {
  padding: 34px !important;
}

.home-modern .service_block_1 .overflow_hidden img,
.home-modern .thumbnail_block_3 > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.home-modern .service_block_1 .py_20,
.home-modern .text_block_6 {
  padding: 24px;
}

.home-modern .service_block_1 p,
.home-modern .company_status_info p,
.home-modern .text_block_2 p,
.home-modern .text_block_6 p,
.home-modern .effiency_area p {
  color: #4b5563;
}

.home-modern .bg_gray {
  background: #eef3fb;
}

.home-modern #question_answer {
  background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
}

.home-modern #question_answer .form_style_1 {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

.home-modern #question_answer .form_style_1 .form-control {
  border-radius: 12px;
  border: 1px solid #d1d5db;
  min-height: 46px;
}

.home-modern #question_answer .section_title,
.home-modern #question_answer .white_color,
.home-modern #question_answer p {
  color: #fff !important;
}

.home-modern .partner_slider .item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 14px;
}

/* Equal-height card rows (fixes staggered / uneven grid) */
.home-modern .home-features-row,
.home-modern .home-clients-row,
.home-modern .home-services-row,
.home-modern .home-reseller-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.home-modern .home-features-row > [class*="col-"],
.home-modern .home-clients-row > [class*="col-"],
.home-modern .home-services-row > [class*="col-"],
.home-modern .home-reseller-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  float: none;
}

.home-modern .home-features-row .text_block_2,
.home-modern .home-clients-row .thumbnail_block_3,
.home-modern .home-services-row .service_block_1,
.home-modern .home-reseller-row .home-reseller-card {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.home-modern .home-features-row .text_block_2_details {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.home-modern .home-features-row .text_block_2_details p {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.home-modern .home-services-row .service_block_1 .py_20 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.home-modern .home-services-row .service_block_1 .py_20 p {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.home-modern .home-clients-row .thumbnail_block_3 {
  position: relative;
}

.home-modern .home-reseller-row .home-reseller-card p {
  margin-bottom: 0;
  flex: 1 1 auto;
}

/* Consultation: vertically align columns on desktop */
.home-modern .home-consultation-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.home-modern .home-consultation-row > [class*="col-"] {
  float: none;
}

@media (min-width: 768px) {
  .home-modern .home-consultation-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .home-modern #layerslider .carousel-inner > .item img {
    height: clamp(320px, 58vh, 580px) !important;
  }

  .home-modern #layerslider .carousel-caption {
    left: 6%;
    max-width: min(520px, 88vw);
    padding: 22px 24px;
  }

  .home-modern #layerslider .carousel-caption p {
    font-size: 16px;
  }

  .home-modern .full_row {
    padding: 64px 0;
  }

  .home-modern .home-consultation-row {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .home-modern #layerslider .carousel-inner > .item img {
    height: clamp(280px, 56vh, 460px) !important;
  }

  .home-modern #layerslider .carousel-caption {
    left: 5% !important;
    right: 5% !important;
    top: auto;
    bottom: 16% !important;
    transform: none;
    max-width: none;
    padding: 18px 16px;
  }

  .home-modern #layerslider .carousel-control {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .home-modern #layerslider .carousel-control.left {
    left: 8px;
  }

  .home-modern #layerslider .carousel-control.right {
    right: 8px;
  }

  .home-modern .home-features-row,
  .home-modern .home-clients-row,
  .home-modern .home-services-row,
  .home-modern .home-reseller-row {
    display: block;
  }

  .home-modern .home-features-row > [class*="col-"],
  .home-modern .home-clients-row > [class*="col-"],
  .home-modern .home-services-row > [class*="col-"],
  .home-modern .home-reseller-row > [class*="col-"] {
    display: block;
    float: left;
  }
}
