/* Custom overrides for tesisat.vizyontech.io */

/* Theme color hooks (set via admin settings and injected as CSS variables in the layout). */
.tt-list__color01 {
  color: var(--site-primary) !important;
}
.tt-list__color02 li:before {
  color: var(--site-accent) !important;
}
.table-price tr td:last-child {
  color: var(--site-primary) !important;
}
.tt-form__control:focus {
  border-color: var(--site-primary) !important;
}
.custom-select:after {
  border-color: var(--site-primary) transparent transparent !important;
}
.mainslider__wrapper:before {
  background-color: var(--site-accent) !important;
}

.mainslider__wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: hidden;
  min-height: 460px;
  height: clamp(460px, 66vh, 680px);
}

#js-mainslider {
  width: 100% !important;
  height: 100% !important;
  min-height: inherit;
}

#js-mainslider .swiper-wrapper {
  height: 100% !important;
}

#js-mainslider .swiper-slide {
  width: 100% !important;
  flex-shrink: 0;
  min-height: inherit;
}

#js-mainslider .swiper-slide,
#js-mainslider .mainslider__imgbg,
#js-mainslider .mainslider__imgbg .slide-inner,
#js-mainslider .mainslider__imgbg picture,
#js-mainslider .mainslider__imgbg img {
  width: 100%;
  height: 100%;
}

#js-mainslider .mainslider__imgbg img {
  display: block;
  object-fit: cover;
  object-position: center center;
}

#js-mainslider .mainslider__imgbg {
  transform: none !important;
}

#js-mainslider .mainslider__holder {
  height: 100%;
  pointer-events: none;
}

#js-mainslider .mainslider__img {
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: min(60vw, 890px) !important;
  height: min(100%, 690px) !important;
  pointer-events: none;
}

#js-mainslider .mainslider__img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: left bottom !important;
}

#js-mainslider .swiper-slide:has(.mainslider__layout02) .mainslider__img {
  left: 0 !important;
  width: min(52vw, 750px) !important;
  height: min(96%, 630px) !important;
}

#js-mainslider .mainslider__button {
  position: absolute;
  top: 50%;
  bottom: auto;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(12, 76, 147, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 38px rgba(12, 76, 147, 0.22);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#js-mainslider .mainslider__button:hover {
  background: rgba(81, 172, 251, 0.88);
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 18px 40px rgba(12, 76, 147, 0.28);
}

#js-mainslider .mainslider__button i {
  font-size: 18px;
  line-height: 1;
}

#js-mainslider .mainslider__button-prev {
  left: 24px !important;
  right: auto !important;
}

#js-mainslider .mainslider__button-next {
  right: 24px !important;
  left: auto !important;
}

@media (max-width: 1024.98px) {
  .mainslider__wrapper {
    min-height: 400px;
    height: clamp(400px, 58vh, 540px);
  }

  #js-mainslider .mainslider__img {
    width: min(64vw, 670px) !important;
    height: min(96%, 510px) !important;
  }

  #js-mainslider .swiper-slide:has(.mainslider__layout02) .mainslider__img {
    left: 0 !important;
    width: min(56vw, 550px) !important;
    height: min(84%, 430px) !important;
  }

  #js-mainslider .mainslider__button {
    width: 50px;
    height: 50px;
  }

  #js-mainslider .mainslider__button i {
    font-size: 16px;
  }

  #js-mainslider .mainslider__button-prev {
    left: 16px !important;
  }

  #js-mainslider .mainslider__button-next {
    right: 16px !important;
  }
}

@media (max-width: 767.98px) {
  .mainslider__wrapper {
    min-height: 340px;
    height: clamp(340px, 52vh, 440px);
  }

  #js-mainslider .mainslider__img {
    width: min(82vw, 450px) !important;
    height: min(78%, 390px) !important;
    left: -10px !important;
  }

  #js-mainslider .swiper-slide:has(.mainslider__layout02) .mainslider__img {
    left: 0 !important;
    width: min(70vw, 370px) !important;
    height: min(66%, 320px) !important;
  }

  #js-mainslider .mainslider__button {
    width: 44px;
    height: 44px;
    top: auto;
    bottom: 18px;
    transform: none;
  }

  #js-mainslider .mainslider__button:hover {
    transform: scale(1.03);
  }

  #js-mainslider .mainslider__button i {
    font-size: 14px;
  }

  #js-mainslider .mainslider__button-prev {
    left: 14px !important;
  }

  #js-mainslider .mainslider__button-next {
    right: 14px !important;
  }
}
.tt-back-to-top {
  color: var(--site-accent) !important;
}
.tt-back-to-top:hover {
  color: var(--site-primary) !important;
}
.tt-modal__close {
  background-color: var(--site-accent) !important;
}

.row-header-layout .tt-header-holder {
  background-color: #51acfb !important;
}

/* Rich text rendering (TinyMCE content, seeded HTML, etc.)
   Theme resets all UL/OL styles globally, so we re-enable them inside
   a scoped container. */
.site-richtext {
  color: #2b3137;
  line-height: 1.75;
}

.site-richtext > :first-child {
  margin-top: 0;
}

.site-richtext > :last-child {
  margin-bottom: 0;
}

.site-richtext p {
  margin: 0 0 14px;
}

.site-richtext h2,
.site-richtext h3,
.site-richtext h4 {
  color: var(--site-primary);
  font-family: Mulish, Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.25;
  margin: 26px 0 12px;
}

.site-richtext h2 { font-size: 26px; }
.site-richtext h3 { font-size: 20px; }
.site-richtext h4 { font-size: 17px; }

.site-richtext a {
  color: var(--site-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-richtext a:hover {
  color: var(--site-accent);
}

.site-richtext ul,
.site-richtext ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

.site-richtext ul { list-style: disc; }
.site-richtext ol { list-style: decimal; }

.site-richtext li {
  margin: 6px 0;
}

.site-richtext strong {
  color: #101418;
}

.site-richtext blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--site-accent);
  background: #f8f8fa;
}

.site-richtext img,
.site-richtext video,
.site-richtext iframe {
  max-width: 100%;
  height: auto;
}

.site-richtext table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: #fff;
}

.site-richtext th,
.site-richtext td {
  border: 1px solid #e7e9ee;
  padding: 10px 12px;
  vertical-align: top;
}

.site-richtext th {
  background: #f8f8fa;
  color: #101418;
  font-weight: 800;
}

/* Page title banners: ensure background image stretches full width on large screens. */
.tt-pagetitle__img {
  display: block;
  /* .tt-pagetitle has padding on all breakpoints; bleed the image into that padding
     so the banner looks full-bleed (no “small banner” effect on wide screens). */
  top: -40px;
  right: -40px;
  bottom: -40px;
  left: -40px;
  inset: -40px;
}
.tt-pagetitle__img img {
  object-position: center;
}

@media (max-width: 1024.98px) {
  .tt-pagetitle__img {
    top: -25px;
    right: -25px;
    bottom: -25px;
    left: -25px;
    inset: -25px;
  }
}

@media (max-width: 767.98px) {
  .tt-pagetitle__img {
    top: -15px;
    right: -15px;
    bottom: -15px;
    left: -15px;
    inset: -15px;
  }
}

/* The theme expects an SVG + text logo positioned absolutely.
   We switched to a single raster logo image, so we constrain size and
   let it participate in normal layout to avoid oversized rendering. */
.tt-obj-logo .tt-logo {
  position: static;
}

.tt-logo__img {
  display: block;
  height: 61px; /* reduced by 15px from the previous desktop size */
  width: auto;
  max-width: 420px;
}

.sticky-header .tt-logo__img {
  height: 49px;
}

@media (max-width: 1024.98px) {
  .tt-logo__img {
    height: 49px;
    max-width: 360px;
  }
  .sticky-header .tt-logo__img {
    height: 41px;
  }
}

@media (max-width: 767.98px) {
  .tt-logo__img {
    height: 33px;
    max-width: 300px;
  }
  .sticky-header .tt-logo__img {
    height: 29px;
  }
}
