/* Recovery overrides after the 2026-08-25 server restore. */

@media (min-width: 1200px) {
  .main-menu.indev-main-nav > .indev-menu-root > li.indev-mega-menu > .indev-mega-panel,
  .main-menu.indev-main-nav > .indev-menu-root > li.indev-news-menu > .indev-news-panel {
    top: calc(100% - 30px) !important;
  }

  .main-menu.indev-main-nav > .indev-menu-root > li.indev-mega-menu::after,
  .main-menu.indev-main-nav > .indev-menu-root > li.indev-news-menu::after {
    display: none;
    content: none;
  }
}

/* Match the reference header typography. */
.indev-site-header .indev-main-nav > ul > li > a {
  text-transform: uppercase !important;
}

.indev-site-header .indev-header-btn,
.indev-site-header .indev-header-btn span {
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* The SAB hero was only 12px from the viewport after the restore. */
@media (min-width: 992px) {
  .sab-hero .indev-home-container {
    width: calc(100% - 48px) !important;
    max-width: 1660px !important;
  }
}

.indev-site-header .contact-item-title {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  line-height: 1;
}

.indev-site-header .contact-item-title i {
  display: block;
  width: 18px;
  font-size: 16px;
  line-height: 18px;
  text-align: center;
}

.indev-site-header .indev-top-socials li,
.indev-side-menu .social-icon li,
.indev-mobile-menu .social-icon li,
.indev-footer4 .social-icon li,
.indev-contact-content .social-icon li,
.indev-error-page .social-icon li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0;
}

.indev-site-header .indev-top-socials,
.indev-side-menu .social-icon,
.indev-mobile-menu .social-icon,
.indev-footer4 .social-icon,
.indev-contact-content .social-icon,
.indev-error-page .social-icon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px !important;
}

.indev-site-header .indev-top-socials a,
.indev-side-menu .social-icon a,
.indev-mobile-menu .social-icon a,
.indev-footer4 .social-icon a,
.indev-contact-content .social-icon a,
.indev-error-page .social-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  line-height: 1;
}

.indev-site-header .indev-top-socials .social-icon-max,
.indev-side-menu .social-icon .social-icon-max,
.indev-mobile-menu .social-icon .social-icon-max,
.indev-footer4 .social-icon .social-icon-max,
.indev-contact-content .social-icon .social-icon-max,
.indev-error-page .social-icon .social-icon-max {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin: 0 !important;
}

.indev-site-header .indev-top-socials i,
.indev-side-menu .social-icon i,
.indev-mobile-menu .social-icon i,
.indev-footer4 .social-icon i,
.indev-contact-content .social-icon i,
.indev-error-page .social-icon i {
  display: block;
  width: 25px;
  height: 25px;
  font-size: 25px;
  line-height: 25px;
  text-align: center;
}

/* Gallery links share a class with compact homepage thumbnails. Restore them to
   full-width media inside the legacy photo + text blocks. */
.project-img7,
.project-img7 .blockSlider,
.project-img7 .swiper-wrapper,
.project-img7 .swiper-slide {
  width: 100%;
}

.project-img7 .indev-feature6-thumb {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  overflow: visible;
  border-radius: 15px;
}

.project-img7 .indev-feature6-thumb::before {
  display: none;
}

.project-img7 .indev-feature6-thumb::after {
  right: 12px;
  bottom: 12px;
}

.project-img7 .indev-feature6-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .project-sec7 .row > .col-lg-4,
  .page-news .blog-single-content .row > .col-lg-4,
  .project-sec7 .row > .col-lg-8,
  .page-news .blog-single-content .row > .col-lg-8 {
    width: 50%;
  }
}

.sab-hero .accordion-button:focus,
.sab-hero .accordion-button:focus-visible {
  outline: 0;
  box-shadow: none;
}

/* Restore the Bootstrap request modal used on the reference site. */
body.modal-open {
  overflow: hidden !important;
  position: relative !important;
  height: 100% !important;
  padding-right: 0 !important;
}

.modal-open .modal {
  padding-right: 0 !important;
}

.modal {
  z-index: 9999999;
}

.modal .form-control:focus {
  border-color: #ced4da !important;
  box-shadow: none !important;
}

.modal-content {
  border: 0;
  border-radius: 28px;
  padding: 10px;
  background:
    radial-gradient(circle at 18% 20%, rgba(177, 235, 255, 0.28) 0, rgba(177, 235, 255, 0) 28%),
    radial-gradient(circle at 82% 86%, rgba(180, 153, 255, 0.22) 0, rgba(180, 153, 255, 0) 24%),
    #fff;
  box-shadow: 0 30px 80px rgba(18, 31, 54, 0.2);
}

.modal-header .btn-close {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1a1a2e;
  background-image: none;
  opacity: 1;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.modal-header .btn-close:hover {
  background: #2a2a4e;
  transform: rotate(90deg);
}

.modal-header .btn-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #fff;
  content: "\00D7";
  font-size: 48px;
  font-weight: 300;
  transform: translate(-50%, -50%);
}

.modal-header .btn-close:focus,
.form-check-input:focus {
  box-shadow: none;
}

.modal-backdrop {
  background: rgba(10, 16, 24, 0.6);
  backdrop-filter: blur(10px);
}

@media (min-width: 992px) {
  .modal-dialog {
    max-width: 700px;
  }
}

.modal .form-control {
  border-width: 1px;
  border-color: #e0e4ec;
  border-radius: 12px;
  padding: 14px 18px;
  background: transparent;
  font-size: 16px;
}

.modal .form-control::placeholder {
  color: #8c8c8c;
}

.modal .form-check-label {
  color: #1a1a2e;
  font-size: 14px;
  cursor: pointer;
}

.modal .form-check-label a {
  color: #4a6cf7;
  text-decoration: none;
}

.modal .form-check-label a:hover {
  text-decoration: underline;
}

.modal textarea.form-control {
  width: 100% !important;
  min-height: 120px !important;
  resize: none !important;
}

.modal-title {
  letter-spacing: normal;
}

.modal .ibt-btn span {
  text-transform: none !important;
  letter-spacing: normal !important;
}

.form-check {
  padding-left: 25px;
}

.indev-popup__submit-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: indev-popup-spin 0.8s linear infinite;
}

.indev-popup__submit.is-loading .indev-popup__submit-spinner {
  display: inline-block;
}

.indev-popup__submit.is-loading .icon-arrow-top {
  display: none;
}

@keyframes indev-popup-spin {
  to { transform: rotate(360deg); }
}

.sc-widget button,
.sc-widget .btn {
  width: auto;
  min-width: 0;
  min-height: 30px;
  height: 30px;
  padding: 0 20px;
  font-size: 13px;
  line-height: 30px;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .sc-widget button,
  .sc-widget .btn {
    width: auto;
    max-width: 100%;
  }
}
