/* Sophistec Global brand surfaces. Keeps existing layouts intact. */
:where(h1, h2, h3, h4, h5, h6, [role="heading"]),
.rts-breadcrumb-area .bg-title {
  text-transform: capitalize !important;
}

:root {
  --sophistec-navy: #2d3c71;
  --sophistec-navy-deep: #20315f;
  --sophistec-sky: #8eddf8;
}

/* Neutral page surfaces are white; retain deliberately branded dark sections. */
.rts-breadcrumb-area:not(.bg_primary) {
  background: #fff;
}

/* The Story banner keeps its navy surface without the dark title rectangle. */
.rts-breadcrumb-area.history-breadcrumb .title-area-left .bg-title::after {
  content: none;
}

/* The decorative shapes need a light outline against the navy Story banner. */
.rts-breadcrumb-area.history-breadcrumb .shape-area img {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.our-conpamy-history .single-company-history:not(:hover) {
  background: #fff;
  border: 1px solid #e7ebf2;
}

.our-conpamy-history .history-intro-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  margin-top: 28px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(32, 49, 95, 0.12);
}

/* Keep the story introduction in view while the four cards scroll past it. */
@media (min-width: 992px) {
  .our-conpamy-history .history-intro-column {
    align-self: stretch;
  }

  .our-conpamy-history .history-sticky-intro {
    position: sticky;
    top: 100px;
  }
}

/* History cards: a flexible navy rule sits beside, never over, the heading. */
.our-conpamy-history .history-card-ecosystem {
  --history-hover-image: url("/assets/images/appoinment/06.webp");
  --history-hover-shade: rgba(32, 49, 95, 0.42);
}

.our-conpamy-history .history-card-products {
  --history-hover-image: url("/assets/images/project/23.jpg");
  --history-hover-shade: rgba(32, 49, 95, 0.74);
}

.our-conpamy-history .history-card-industries {
  --history-hover-image: url("/assets/images/blog/22.webp");
  --history-hover-shade: rgba(32, 49, 95, 0.76);
}

.our-conpamy-history .history-card-recognition {
  --history-hover-image: url("/assets/images/project/22.jpg");
  --history-hover-shade: rgba(32, 49, 95, 0.74);
}

.our-conpamy-history .single-company-history::after {
  background-image: linear-gradient(var(--history-hover-shade), var(--history-hover-shade)), var(--history-hover-image);
}

.our-conpamy-history .single-company-history {
  gap: 24px;
}

.our-conpamy-history .single-company-history .left {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.our-conpamy-history .single-company-history .left .title::after {
  content: none;
}

.our-conpamy-history .history-card-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.our-conpamy-history .history-card-heading .title {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}

.our-conpamy-history .history-card-line {
  flex: 1 1 28px;
  min-width: 28px;
  max-width: 177px;
  height: 3px;
  border-radius: 3px;
  background: var(--sophistec-navy);
}

.our-conpamy-history .single-company-history:hover .history-card-line {
  background: var(--sophistec-sky);
}

@media (max-width: 767px) {
  .our-conpamy-history .history-card-line {
    display: none;
  }
}

/* Contact: keep all three panels separate so the image never covers the form. */
@media (min-width: 992px) {
  .rts-contact-area-in-page.contact-equal-height > .container > .row {
    display: grid;
    grid-template-columns: minmax(0, 30%) minmax(0, 30%) minmax(0, 40%);
    --bs-gutter-x: 0;
    height: 582px;
  }

  .contact-equal-height > .container > .row > [class*="col-lg-"] {
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
  }

  .contact-equal-height .contact-info-area-wrapper-p {
    margin-right: 0;
    padding: 48px 28px;
    border-radius: 10px 0 0 10px;
  }

  .contact-equal-height .contact-info-area-wrapper-p .single-contact-info {
    gap: 14px;
    margin-bottom: 44px;
  }

  .contact-equal-height .contact-info-area-wrapper-p .single-contact-info:last-child {
    margin-bottom: 0;
  }

  .contact-equal-height .contact-info-area-wrapper-p .info-wrapper span {
    font-size: 14px;
  }

  .contact-equal-height .contact-info-area-wrapper-p .info-wrapper a {
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .contact-equal-height .thumbnail-contact-form {
    position: relative;
    height: 100%;
    margin: 0;
    overflow: hidden;
  }

  .contact-equal-height .thumbnail-contact-form img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
  }

  .contact-equal-height .contact-form-p {
    margin-left: 0;
    padding: 36px 32px;
    border-radius: 0 10px 10px 0;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .rts-contact-area-in-page.contact-equal-height > .container > .row {
    height: 650px;
  }
}

@media (max-width: 991px) {
  .contact-equal-height .thumbnail-contact-form {
    margin: 0;
  }

  .contact-equal-height .thumbnail-contact-form img {
    display: block;
    width: 100%;
    height: clamp(320px, 48vw, 480px);
    object-fit: cover;
    object-position: center 38%;
    border-radius: 10px;
  }
}

/* Carry the Sophistec palette through both footer variants. */
.footer-8-area-bg,
.rts-footer-area.footer-two.bg-footer-two {
  background-color: var(--sophistec-navy-deep);
  background-image: none;
}

.footer-8-area-bg .footer-logo-area-left-8 p.disc,
.footer-8-area-bg .footer-one-single-wized .quick-link-inner .links li a,
.footer-8-area-bg .footer-one-single-wized .signle-footer-contact-8 .inner-content a {
  color: #d5ddeb;
}

/* Footer links use a white underline on hover without shifting the layout. */
.footer-8-area-bg .footer-one-single-wized .quick-link-inner .links li a:hover,
.footer-8-area-bg .footer-one-single-wized .quick-link-inner .links li a:focus-visible,
.footer-8-area-bg .copyright-8-wrapper ul li a:hover,
.footer-8-area-bg .copyright-8-wrapper ul li a:focus-visible {
  color: #fff !important;
  text-decoration-line: underline;
  text-decoration-color: #fff;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.footer-8-area-bg .footer-one-single-wized .quick-link-inner .links li a:hover::after,
.footer-8-area-bg .footer-one-single-wized .quick-link-inner .links li a:focus-visible::after {
  background: #fff;
}

/* The bundled Font Awesome brand font has no TikTok glyph; render it as a local SVG mask. */
.social-area-wrapper-two li a[aria-label="TikTok"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-area-wrapper-two li a[aria-label="TikTok"] > i {
  display: none;
}

.social-area-wrapper-two li a[aria-label="TikTok"]::before {
  content: "";
  width: 17px;
  height: 17px;
  display: block;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 2c.2 1.9 1.3 3.1 3.3 3.3v3.2a8 8 0 0 1-3.3-.9v6.7a6.7 6.7 0 1 1-6.7-6.7h.8v3.3a3.4 3.4 0 1 0 2.6 3.4V2h3.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 2c.2 1.9 1.3 3.1 3.3 3.3v3.2a8 8 0 0 1-3.3-.9v6.7a6.7 6.7 0 1 1-6.7-6.7h.8v3.3a3.4 3.4 0 1 0 2.6 3.4V2h3.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Crisp white icon tiles contrast with the navy footer. */
.footer-8-area-bg .social-area-wrapper-two li a,
.footer-8-area-bg .footer-one-single-wized .signle-footer-contact-8 .icon {
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 4px 12px rgba(16, 30, 75, 0.14);
}

.footer-8-area-bg .social-area-wrapper-two li a {
  color: var(--sophistec-navy-deep);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.footer-8-area-bg .social-area-wrapper-two li a:hover,
.footer-8-area-bg .social-area-wrapper-two li a:focus-visible {
  background: var(--sophistec-sky);
  border-color: var(--sophistec-sky);
  color: var(--sophistec-navy-deep) !important;
  box-shadow: 0 10px 20px rgba(16, 30, 75, 0.28);
  transform: translateY(-2px);
}

.footer-8-area-bg .footer-one-single-wized .signle-footer-contact-8 .icon i {
  color: var(--sophistec-navy-deep);
}

.footer-8-area-bg .social-area-wrapper-two li a[aria-label="X"],
.footer-8-area-bg .social-area-wrapper-two li a[aria-label="TikTok"],
.footer-8-area-bg .social-area-wrapper-two li a[aria-label="Linktree"] {
  color: var(--sophistec-navy-deep) !important;
}

/* A compact three-column grid makes the essential footer navigation easy to scan. */
.footer-8-area-bg .footer-one-single-wized .quick-link-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
}

.footer-8-area-bg .footer-one-single-wized .quick-link-inner .footer-link-column {
  min-width: 0;
}

@media (max-width: 479px) {
  .footer-8-area-bg .footer-one-single-wized .quick-link-inner {
    gap: 10px 14px;
  }
}

/* Shared newsletter CTA: clear input and button contrast across every legacy page. */
.rts-cta-area-inner .cta-inner-content-inner-page form input {
  background: var(--sophistec-navy-deep);
  border: 1px solid rgba(142, 221, 248, 0.65);
  color: #fff;
  font-weight: 500;
}

.rts-cta-area-inner .cta-inner-content-inner-page form input::placeholder {
  color: #d9ebf7;
  opacity: 1;
}

.rts-cta-area-inner .cta-inner-content-inner-page form input:focus {
  border-color: var(--sophistec-sky);
  box-shadow: 0 0 0 3px rgba(142, 221, 248, 0.24);
  outline: none;
}

.rts-cta-area-inner .cta-inner-content-inner-page form button.rts-btn {
  background: var(--sophistec-sky);
  border: 1px solid var(--sophistec-sky);
  color: var(--sophistec-navy-deep);
  font-weight: 700;
  z-index: 1;
}

.rts-cta-area-inner .cta-inner-content-inner-page form button.rts-btn::before {
  background: #fff;
}

.rts-cta-area-inner .cta-inner-content-inner-page form button.rts-btn:hover,
.rts-cta-area-inner .cta-inner-content-inner-page form button.rts-btn:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--sophistec-navy-deep);
}

/* Product journey visuals and product-specific name accents. */
.testimonails-area-seven .thumbnail-testimoanis img {
  width: 100%;
  height: 445px;
  object-fit: cover;
  object-position: center;
}

.testimonails-area-seven .right-content-area-main-wrapper .botton-user .title.product-name-medicore {
  color: #00a6d6;
}

.testimonails-area-seven .right-content-area-main-wrapper .botton-user .title.product-name-omnichannel {
  color: #e67e22;
}

.testimonails-area-seven .right-content-area-main-wrapper .botton-user .title.product-name-aivora-nexus {
  color: #6554c8;
}

@media (max-width: 991px) {
  .testimonails-area-seven .thumbnail-testimoanis img {
    height: min(110vw, 520px);
  }
}

/* Replace template charcoal/black surfaces with Sophistec navy. */
.header-transparent-main-wrapper,
.easy-contact-left-funfacts-8,
.left-thumbnail-about-area-two .counter-about-area,
.thumbnail-accountent-why-choose .counter-about-area,
.rts-single-wized,
.bg_color-dark-1,
.bg-main,
.rts-footer-area-two,
.rts-project-area.without-bg-image .project-content-left-5,
.cta-style-10-wrapper.marketing-coach,
.testimonials-main-wrapper-two,
.testimonails-8-mian-wrapper,
.counter-main-wrapper-inner-seo,
.counter-main-wrapper-area-start-6,
.rts-offer-area,
.rts-trusted-user-area,
.progress-circle-main-wrapper .single-progress-area.ininner,
.footer-six .footer-one-single-wized.mid-bg {
  background-color: var(--sophistec-navy) !important;
}

/* The counter band in the supplied screenshot uses a background image. */
.counter-bg {
  background-color: var(--sophistec-navy) !important;
  background-blend-mode: multiply;
}

/* Small black controls and dark form fields. */
.single-service-signle-wrapper .information .arrow-right i,
.service-style-swiper-wrapper-two .swiper-slide-active .single-service-signle-wrapper .arrow-right i,
.nav-project-tab li button:hover,
.nav-project-tab li button.active,
.banner-contact-form-five .rts-btn::before,
.banner-contact-form-five input,
.banner-contact-form-five textarea,
.demo-technology .cta-style-10-wrapper .right-side form input {
  background-color: var(--sophistec-navy) !important;
}

/* The circular Read More control stays white on navy in every slide state. */
.single-service-signle-wrapper .information .arrow-right i,
.service-style-swiper-wrapper-two .swiper-slide-active .single-service-signle-wrapper .arrow-right i {
  color: #fff !important;
}

/* Newsletter field: keep typed text and its prompt readable on the navy surface. */
.cta-style-10-wrapper .right-side form input,
.cta-style-10-wrapper .right-side form input:focus {
  color: #fff;
}

.cta-style-10-wrapper .right-side form input::placeholder {
  color: #e4e8f4;
  opacity: 1;
}

/* Keep the subscribe button distinct from the navy field when hovered or focused. */
.cta-style-10-wrapper .right-side form .rts-btn.btn-primary.btn-white:hover,
.cta-style-10-wrapper .right-side form .rts-btn.btn-primary.btn-white:focus-visible {
  background: var(--sophistec-sky);
  color: var(--sophistec-navy-deep);
}

.cta-style-10-wrapper .right-side form .rts-btn.btn-primary.btn-white:hover::before,
.cta-style-10-wrapper .right-side form .rts-btn.btn-primary.btn-white:focus-visible::before {
  background: var(--sophistec-sky);
}

/* Preserve white content and give light-blue emphasis only on dark surfaces. */
.easy-contact-left-funfacts-8,
.left-thumbnail-about-area-two .counter-about-area,
.thumbnail-accountent-why-choose .counter-about-area,
.rts-single-wized,
.bg_color-dark-1,
.bg-main,
.rts-footer-area-two,
.rts-project-area.without-bg-image .project-content-left-5,
.cta-style-10-wrapper.marketing-coach,
.testimonials-main-wrapper-two,
.testimonails-8-mian-wrapper,
.counter-main-wrapper-inner-seo,
.counter-main-wrapper-area-start-6,
.rts-offer-area,
.rts-trusted-user-area,
.progress-circle-main-wrapper .single-progress-area.ininner {
  color: #fff;
}

[data-black-overlay]::before,
.reveal-animation.reveal-primary::before,
.reveal-animation.reveal-dark::before {
  background-color: var(--sophistec-navy-deep) !important;
}

/* Home contact panel: preserve a clear reading rhythm at every width. */
.map-information-2-footer {
  padding: 48px 48px 52px;
}

.map-information-2-footer .title-main {
  font-size: 34px;
}

.map-information-2-footer .contact-information-main-wrapper .signle-contact-information {
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
}

.map-information-2-footer .contact-information-main-wrapper .signle-contact-information:last-child {
  margin-bottom: 0;
}

.map-information-2-footer .contact-information-main-wrapper .signle-contact-information .icon {
  flex: 0 0 50px;
}

.map-information-2-footer .contact-information-main-wrapper .signle-contact-information .information-wrapper {
  min-width: 0;
  flex: 1 1 auto;
}

.map-information-2-footer .contact-information-main-wrapper .signle-contact-information .information-wrapper span {
  font-size: 18px;
  line-height: 1.35;
}

.map-information-2-footer .contact-information-main-wrapper .signle-contact-information .information-wrapper .title {
  color: #1b2b59;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-transform: none !important;
}

@media (max-width: 1199px) {
  .map-information-2-footer {
    padding: 35px 35px 44px;
  }
}

@media (max-width: 575px) {
  .map-information-2-footer {
    padding: 34px 28px 44px;
  }

  .map-information-2-footer .line {
    margin-bottom: 28px;
  }

  .map-information-2-footer .contact-information-main-wrapper .signle-contact-information {
    gap: 18px;
    margin-bottom: 34px;
  }

  .map-information-2-footer .contact-information-main-wrapper .signle-contact-information .information-wrapper span {
    font-size: 17px;
    line-height: 1.25;
  }

  .map-information-2-footer .contact-information-main-wrapper .signle-contact-information .information-wrapper .title {
    font-size: 16px;
    line-height: 1.38;
  }
}

/* Footer credits stay readable; interaction is indicated by an underline only. */
footer .footer-credit-link,
footer .footer-credit-link strong,
footer .footer-credit-link:hover,
footer .footer-credit-link:hover strong,
footer .footer-credit-link:focus-visible,
footer .footer-credit-link:focus-visible strong {
  color: #fff !important;
}

footer .footer-credit-link:hover,
footer .footer-credit-link:hover strong,
footer .footer-credit-link:focus-visible,
footer .footer-credit-link:focus-visible strong {
  text-decoration-line: underline !important;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
