/* =========================================================
   Markets landing page (page-templates/template-markets.php)
   Enqueued from that template only -- every rule is scoped to
   .mkp-* classes so no other page is affected.
   ========================================================= */

.mkp-page {
  background: #f1f3f5;
  padding-bottom: 40px;
}
.mkp-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero + breadcrumb */
.mkp-hero {
  min-height: 300px;
}
.mkp-hero h1 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.5px;
  padding: 0 20px;
}
.mkp-breadcrumb-bar {
  background: #fff;
}
.mkp-breadcrumb-bar .gp-breadcrumb {
  padding-top: 12px;
  padding-bottom: 12px;
  margin: 0 auto;
  font-size: 12px;
}

/* Shared section heading */
.mkp-section {
  padding: 80px 0 0;
}
/* Opened from a #mkp-tab-… link: keep the tabs clear of the sticky header. */
.mkp-deliver {
  scroll-margin-top: 90px;
}
.mkp-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px;
}
.mkp-head-left {
  text-align: left;
  max-width: none;
  margin-left: 0;
}
.mkp-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--green, #00a551);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mkp-head h2 {
  margin: 0 0 12px;
  color: #121417;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
}
.mkp-head p {
  margin: 0;
  color: #4f4f4f;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- What We Deliver: tabs ---------- */
.mkp-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.mkp-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 6px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.mkp-tabs::-webkit-scrollbar {
  display: none;
}
.mkp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #373737;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mkp-tab-btn:hover {
  color: var(--green, #00a551);
}
.mkp-tab-btn.is-active {
  background: var(--green, #00a551);
  color: #fff;
}
.mkp-tab-ico,
.mkp-tab-ico svg,
.mkp-tab-ico img {
  display: block;
  width: 16px;
  height: 16px;
}
.mkp-tab-ico img {
  object-fit: contain;
}
.mkp-tab-panel[hidden] {
  display: none;
}

/* Intro */
.mkp-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.mkp-intro-media {
  border-radius: 20px;
  overflow: hidden;
}
.mkp-intro-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.mkp-intro-copy h3 {
  margin: 0 0 14px;
  color: #121417;
  font-size: 32px;
  font-weight: 600;
}
.mkp-intro-copy p {
  margin: 0 0 14px;
  color: #4f4f4f;
  font-size: 14px;
  line-height: 1.7;
}
.mkp-intro-copy .mkp-intro-sub {
  color: #121417;
  font-weight: 600;
}

/* What Techpro Can Supply (dark box) */
.mkp-supply {
  margin-bottom: 80px;
  padding: 64px 48px;
  background: #0b0f17;
  border-radius: 24px;
}
.mkp-supply .mkp-head h2 {
  color: #fff;
}
.mkp-supply .mkp-head p {
  color: #a7b0bd;
}
.mkp-supply-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.mkp-supply-card {
  padding: 28px 24px;
  background: #121a26;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}
.mkp-supply-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: rgba(0, 165, 81, 0.18);
  color: #2fd47c;
}
.mkp-supply-ico svg,
.mkp-supply-ico img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.mkp-supply-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.mkp-supply-card p {
  margin: 0;
  color: #a7b0bd;
  font-size: 13px;
  line-height: 1.65;
}
.mkp-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.mkp-cta-row .btn {
  min-width: 170px;
}
.mkp-btn-outline-dark {
  background: transparent;
  color: #fff;
  border: 1px solid var(--green, #00a551);
}
.mkp-btn-outline-dark:hover {
  background: rgba(0, 165, 81, 0.15);
  color: #fff;
}

/* Relevant Solution */
.mkp-solution {
  margin-bottom: 80px;
}
.mkp-solution-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
}
.mkp-solution-card.no-media {
  grid-template-columns: 1fr;
}
.mkp-solution-copy {
  padding: 48px 44px;
}
.mkp-solution-copy h3 {
  margin: 0 0 14px;
  color: #121417;
  font-size: 24px;
  font-weight: 600;
}
.mkp-solution-copy p {
  margin: 0 0 22px;
  color: #4f4f4f;
  font-size: 14px;
  line-height: 1.7;
}
.mkp-solution-media {
  min-height: 340px;
}
.mkp-solution-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
.mkp-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mkp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #121417;
  font-size: 14px;
  line-height: 1.5;
}
.mkp-check {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--green, #00a551);
}
.mkp-check svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Related Products carousel */
.mkp-products {
  margin-bottom: 80px;
}
.mkp-products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.mkp-products-head .mkp-head {
  flex: 1;
  margin-bottom: 0;
  max-width: none;
}
.mkp-products-head .mkp-head p {
  max-width: 720px;
}
.mkp-btn-outline {
  flex-shrink: 0;
  background: transparent;
  color: #121417;
  border: 1px solid #c7c7c7;
}
.mkp-btn-outline:hover {
  border-color: var(--green, #00a551);
  color: var(--green, #00a551);
}
.mkp-carousel {
  position: relative;
}
.mkp-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px;
}
.mkp-carousel-track::-webkit-scrollbar {
  display: none;
}
.mkp-product-card {
  flex: 0 0 calc((100% - 72px) / 4);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 20px;
  background: #fff;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
}
.mkp-product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.mkp-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ebebeb;
  overflow: hidden;
}
.mkp-product-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.mkp-product-badge {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 165, 81, 0.08);
  color: var(--green, #00a551);
  font-size: 11px;
}
.mkp-product-title {
  margin: 0 0 8px;
  color: #121417;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.mkp-product-ref {
  margin: auto 0 0;
  color: #6b6b6b;
  font-size: 12px;
}
.mkp-product-ref span {
  color: var(--green, #00a551);
}
.mkp-carousel-arrow {
  position: absolute;
  top: 40%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #4f4f4f;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}
.mkp-carousel-arrow:hover {
  color: var(--green, #00a551);
}
.mkp-carousel-arrow.is-prev {
  left: -22px;
}
.mkp-carousel-arrow.is-next {
  right: -22px;
}
.mkp-carousel-arrow[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* Recommended References */
.mkp-refs {
  margin-bottom: 80px;
  padding: 44px 48px;
  border-radius: 20px;
  background: linear-gradient(100deg, #0d1626 0%, #1b2d4d 100%);
}
.mkp-refs h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
}
.mkp-refs .mkp-checklist li {
  color: #fff;
}
.mkp-refs .mkp-check {
  color: #2fd47c;
}
.mkp-refs a,
.mkp-refs .mkp-ref-text {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mkp-refs a:hover {
  color: #2fd47c;
}

/* Contact section wrapper (shared techpro_render_contact_section() markup) */
.mkp-contact {
  padding-top: 20px;
}
.mkp-contact > .section {
  padding: 20px 0 40px;
  background: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mkp-supply-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mkp-product-card {
    flex-basis: calc((100% - 48px) / 3);
  }
  .mkp-carousel-arrow.is-prev {
    left: -10px;
  }
  .mkp-carousel-arrow.is-next {
    right: -10px;
  }
}

@media (max-width: 860px) {
  .mkp-intro,
  .mkp-solution-card {
    grid-template-columns: 1fr;
  }
  .mkp-intro {
    gap: 28px;
  }
  .mkp-solution-media {
    min-height: 240px;
  }
  .mkp-products-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .mkp-product-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 767px) {
  .mkp-hero {
    min-height: 200px;
  }
  .mkp-hero h1 {
    font-size: 30px;
  }
  .mkp-section {
    padding-top: 50px;
  }
  .mkp-head {
    margin-bottom: 28px;
  }
  .mkp-head h2 {
    font-size: 28px;
  }
  .mkp-supply-grid {
    grid-template-columns: 1fr;
  }
  .mkp-tabs-wrap {
    justify-content: flex-start;
    margin-bottom: 32px;
  }
  .mkp-tab-btn {
    padding: 10px 14px;
    font-size: 11px;
  }
  .mkp-supply {
    margin-bottom: 50px;
    padding: 40px 18px;
    border-radius: 18px;
  }
  .mkp-intro,
  .mkp-solution,
  .mkp-products,
  .mkp-refs {
    margin-bottom: 50px;
  }
  .mkp-intro-copy h3 {
    font-size: 26px;
  }
  .mkp-solution-copy {
    padding: 30px 22px;
  }
  .mkp-refs {
    padding: 30px 22px;
  }
  .mkp-refs h2 {
    font-size: 24px;
  }
  .mkp-product-card {
    flex-basis: 78%;
  }
  .mkp-carousel-arrow {
    display: none;
  }
}
