/* ==========================================================================
   Screenotex Engineers Pvt. Ltd. - Market / Location Landing Page Styles
   File: css/market-page.css
   Reusable for ANY country / state / city page (Dhaka, Dubai, Lagos, etc.)
   All selectors are scoped with the "market-page-" prefix. No city names here.
   ========================================================================== */

:root {
  --mp-primary: #F07F1B;
  --mp-primary-hover: #e06d09;
  --mp-primary-dark: #a83f00;
  --mp-dark: #1a1c1f;
  --mp-dark-muted: #2d3035;
  --mp-charcoal: #474a51;
  --mp-body: #5a5d64;
  --mp-light-bg: #f8f7f5;
  --mp-alt-bg: #f4f4f2;
  --mp-border: rgba(71, 74, 81, 0.12);
  --mp-border-hover: rgba(240, 127, 27, 0.4);
  --mp-card-shadow: 0 4px 20px rgba(71, 74, 81, 0.08);
  --mp-card-hover-shadow: 0 16px 40px rgba(71, 74, 81, 0.14);
  --mp-radius: 4px;
  --mp-font-heading: "Rajdhani", sans-serif;
  --mp-font-body: "DM Sans", sans-serif;
  --mp-header-offset: 100px; /* sticky header height + gap, used by sidebar */
}

/* IMPORTANT: style.css sets `body{overflow-x:hidden}` which can break
   position:sticky. `clip` hides horizontal overflow WITHOUT creating a
   scroll container, so the sticky sidebar keeps working. */
html,
body {
  overflow-x: clip;
}

/* Page Wrapper */
.market-page-wrapper {
  background-color: #ffffff;
  color: #1a1c1f;
  font-family: var(--mp-font-body);
  font-size: 16px;
  line-height: 1.65;
}

.market-page-wrapper img {
  max-width: 100%;
  height: auto;
}

/* Hero / Breadcrumb Banner */
.market-page-hero-banner {
  position: relative;
  background: #111315 url('../images/breadcrumb-image.webp') center/cover no-repeat;
  padding: 55px 0 45px;
  color: #ffffff;
  border-bottom: 4px solid var(--mp-primary);
  overflow: hidden;
}

.market-page-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 19, 21, 0.95) 0%, rgba(17, 19, 21, 0.85) 60%, rgba(17, 19, 21, 0.7) 100%);
  z-index: 1;
}

.market-page-hero-banner .container {
  position: relative;
  z-index: 2;
}

.market-page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-family: var(--mp-font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.market-page-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
  text-decoration: none;
}

.market-page-breadcrumb a:hover {
  color: var(--mp-primary);
}

.market-page-breadcrumb .sep {
  color: var(--mp-primary);
}

.market-page-breadcrumb .current {
  color: #ffffff;
}

.market-page-banner-title {
  font-family: var(--mp-font-heading);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  overflow-wrap: anywhere;
}

.market-page-banner-title span {
  color: var(--mp-primary);
}

/* Main Layout Grid */
.market-page-main-layout {
  padding: 50px 0 80px;
  background-color: #faf9f7;
}

.market-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 40px;
  align-items: stretch; /* aside must be as tall as the content so sticky works */
}

/* Left Content Column */
.market-page-content-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

/* Section Box */
.market-page-section-box {
  background: #ffffff;
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 35px;
  box-shadow: var(--mp-card-shadow);
  transition: box-shadow 0.3s;
  min-width: 0;
}

.market-page-section-box:hover {
  box-shadow: var(--mp-card-hover-shadow);
}

/* Headings */
.market-page-heading-h2,
.market-page-heading-h3 {
  font-family: var(--mp-font-heading);
  font-weight: 700;
  color: var(--mp-dark);
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
  padding-left: 18px;
  border-left: 5px solid var(--mp-primary);
  overflow-wrap: anywhere;
}

.market-page-heading-h2 {
  font-size: clamp(22px, 2.5vw, 32px);
}

.market-page-heading-h3 {
  font-size: clamp(19px, 2vw, 26px);
}

.market-page-subheading {
  font-family: var(--mp-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--mp-dark);
  margin: 20px 0 12px;
}

/* Paragraphs */
.market-page-section-box p {
  color: var(--mp-charcoal);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.market-page-section-box p:last-child {
  margin-bottom: 0;
}

/* CTA Buttons */
.market-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--mp-primary);
  color: #ffffff !important;
  font-family: var(--mp-font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(240, 127, 27, 0.3);
  transition: all 0.25s ease;
  margin-top: 15px;
}

.market-page-btn:hover {
  background-color: var(--mp-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240, 127, 27, 0.4);
}

.market-page-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.market-page-btn:hover svg {
  transform: translateX(4px);
}

/* Intro */
.market-page-intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 20px;
}

.market-page-intro-img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--mp-border);
}

.market-page-intro-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.market-page-intro-img:hover img {
  transform: scale(1.03);
}

/* Stats */
.market-page-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  background: var(--mp-light-bg);
  padding: 18px 20px;
  border-radius: 4px;
  border-left: 3px solid var(--mp-primary);
  margin: 20px 0 10px;
}

.market-page-stat-item {
  text-align: center;
}

.market-page-stat-num {
  font-family: var(--mp-font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--mp-primary);
  line-height: 1;
}

.market-page-stat-label {
  font-family: var(--mp-font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mp-charcoal);
  margin-top: 4px;
}

/* Product media */
.market-page-product-media-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: center;
  margin: 20px 0;
  background: var(--mp-light-bg);
  padding: 22px;
  border-radius: 4px;
  border: 1px solid var(--mp-border);
}

.market-page-product-media-img {
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  padding: 12px;
  border: 1px solid var(--mp-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-page-product-media-img img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.market-page-product-media-card:hover .market-page-product-media-img img {
  transform: scale(1.04);
}

.market-page-product-models-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0 20px;
}

.market-page-model-tag {
  background: #ffffff;
  border: 1px solid var(--mp-border);
  border-left: 3px solid var(--mp-primary);
  padding: 8px 16px;
  font-family: var(--mp-font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mp-dark);
  border-radius: 2px;
}

/* Two-column sub cards */
.market-page-two-col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.market-page-sub-card {
  background: var(--mp-light-bg);
  border: 1px solid var(--mp-border);
  border-top: 4px solid var(--mp-primary);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.market-page-sub-card-img {
  background: #ffffff;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  border: 1px solid rgba(71, 74, 81, 0.08);
}

.market-page-sub-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.market-page-sub-card h4 {
  font-family: var(--mp-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--mp-dark);
  margin-bottom: 10px;
}

.market-page-callout-box {
  background: rgba(240, 127, 27, 0.08);
  border: 1px solid rgba(240, 127, 27, 0.25);
  border-left: 4px solid var(--mp-primary);
  padding: 14px 20px;
  border-radius: 4px;
  margin: 20px 0 10px;
  font-size: 15px;
  color: var(--mp-dark);
}

/* Auxiliary */
.market-page-aux-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.market-page-aux-card {
  background: var(--mp-light-bg);
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  padding: 20px;
  min-width: 0;
}

.market-page-aux-card h4 {
  font-family: var(--mp-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--mp-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-page-aux-card h4 svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--mp-primary);
}

/* Specification table */
.market-page-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 25px;
  border-radius: 4px;
  border: 1px solid var(--mp-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.market-page-spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  min-width: 600px;
}

.market-page-spec-table th,
.market-page-spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--mp-border);
}

.market-page-spec-table th {
  background-color: var(--mp-dark);
  color: #ffffff;
  font-family: var(--mp-font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 3px solid var(--mp-primary);
}

.market-page-spec-table tr:nth-child(even) td {
  background-color: var(--mp-light-bg);
}

.market-page-spec-table tr:hover td {
  background-color: rgba(240, 127, 27, 0.05);
}

.market-page-spec-table td:first-child {
  font-weight: 600;
  color: var(--mp-dark);
  font-family: var(--mp-font-heading);
  font-size: 16px;
  width: 25%;
}

.market-page-spec-table td:nth-child(2),
.market-page-spec-table td:nth-child(3) {
  color: var(--mp-charcoal);
  width: 37.5%;
}

.market-page-spec-table.market-page-spec-4col { min-width: 720px; }
.market-page-spec-table.market-page-spec-4col td:first-child { width: 22%; }
.market-page-spec-table.market-page-spec-4col td:nth-child(2),
.market-page-spec-table.market-page-spec-4col td:nth-child(3),
.market-page-spec-table.market-page-spec-4col td:nth-child(4) { width: 26%; color: var(--mp-charcoal); }

/* Applications */
.market-page-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.market-page-app-card {
  background: var(--mp-light-bg);
  border: 1px solid var(--mp-border);
  border-left: 3px solid var(--mp-primary);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  transition: transform 0.25s, box-shadow 0.25s;
}

.market-page-app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-left-color: var(--mp-primary-dark);
}

.market-page-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(240, 127, 27, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mp-primary);
  flex-shrink: 0;
}

.market-page-app-icon svg {
  width: 18px;
  height: 18px;
}

.market-page-app-title {
  font-family: var(--mp-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--mp-dark);
  line-height: 1.3;
}

/* Timeline */
.market-page-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 25px 0;
}

.market-page-timeline-step {
  display: flex;
  gap: 20px;
  background: var(--mp-light-bg);
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  padding: 18px 22px;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.market-page-timeline-step:hover {
  border-color: var(--mp-border-hover);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.market-page-step-badge {
  width: 44px;
  height: 44px;
  background-color: var(--mp-primary);
  color: #ffffff;
  font-family: var(--mp-font-heading);
  font-size: 20px;
  font-weight: 700;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(240, 127, 27, 0.3);
}

.market-page-step-body {
  min-width: 0;
}

.market-page-step-body h4 {
  font-family: var(--mp-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--mp-dark);
  margin-bottom: 6px;
}

.market-page-step-body p {
  margin: 0;
  font-size: 15px;
  color: var(--mp-charcoal);
  line-height: 1.6;
}

/* Pricing factors */
.market-page-factors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.market-page-factor-item {
  background: var(--mp-light-bg);
  border: 1px solid var(--mp-border);
  border-left: 3px solid var(--mp-primary);
  border-radius: 3px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--mp-charcoal);
  min-width: 0;
}

.market-page-factor-item.full {
  grid-column: 1 / -1;
}

.market-page-factor-item svg {
  width: 18px;
  height: 18px;
  color: var(--mp-primary);
  flex-shrink: 0;
}

/* Features */
.market-page-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 20px 0;
}

.market-page-feature-card {
  background: var(--mp-light-bg);
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
}

.market-page-feature-card:hover {
  background: #ffffff;
  border-color: var(--mp-border-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.market-page-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(240, 127, 27, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mp-primary);
  flex-shrink: 0;
}

.market-page-feature-icon svg {
  width: 18px;
  height: 18px;
}

.market-page-feature-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--mp-dark);
}

/* Why choose */
.market-page-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}

.market-page-why-card {
  background: var(--mp-light-bg);
  border: 1px solid var(--mp-border);
  border-top: 3px solid var(--mp-primary);
  border-radius: 4px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.market-page-why-card-num {
  font-family: var(--mp-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--mp-primary);
  line-height: 1;
}

.market-page-why-card p {
  font-size: 15px;
  margin: 0;
  color: var(--mp-charcoal);
}

/* Pills / cities / links */
.market-page-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.market-page-pill-item {
  background: var(--mp-light-bg);
  border: 1px solid var(--mp-border);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--mp-font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--mp-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.market-page-pill-item svg {
  width: 14px;
  height: 14px;
  color: var(--mp-primary);
  flex-shrink: 0;
}

.market-page-pill-item:hover {
  background: var(--mp-primary);
  color: #ffffff !important;
  border-color: var(--mp-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 127, 27, 0.3);
}

.market-page-pill-item:hover svg {
  color: #ffffff;
}

.market-page-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.market-page-link-card {
  background: var(--mp-light-bg);
  border: 1px solid var(--mp-border);
  border-left: 3px solid var(--mp-primary);
  padding: 14px 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--mp-dark) !important;
  font-family: var(--mp-font-heading);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.market-page-link-card:hover {
  background: #ffffff;
  border-left-color: var(--mp-primary-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
  color: var(--mp-primary) !important;
}

.market-page-link-card svg {
  width: 16px;
  height: 16px;
  color: var(--mp-primary);
  flex-shrink: 0;
}

.market-page-link-card.mp-centre-card {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 16px 18px;
  font-family: var(--mp-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: #475569 !important;
  gap: 12px;
}

.market-page-link-card.mp-centre-card:hover {
  transform: translateY(-2px);
  color: #1e293b !important;
}

.market-page-link-card.mp-centre-card .mp-centre-text strong {
  font-family: var(--mp-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--mp-dark);
}

.market-page-link-card.mp-centre-card .mp-centre-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 4px;
  color: #c2410c;
  font-family: var(--mp-font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  transition: all 0.2s ease;
}

.market-page-link-card.mp-centre-card:hover .mp-centre-cta {
  background: var(--mp-primary);
  border-color: var(--mp-primary);
  color: #ffffff;
}

.market-page-link-card.mp-centre-card:hover .mp-centre-cta svg {
  color: #ffffff;
  transform: translateX(3px);
}

.market-page-link-card.mp-centre-card .mp-centre-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.market-page-search-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.market-page-search-card {
  background: var(--mp-light-bg);
  border: 1px solid var(--mp-border);
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 16px;
  color: var(--mp-charcoal);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.market-page-search-card a {
  color: var(--mp-dark);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.market-page-search-card a:hover {
  color: var(--mp-primary);
}

.market-page-search-card a .label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-page-search-card svg {
  width: 14px;
  height: 14px;
  color: var(--mp-primary);
  flex-shrink: 0;
}

/* Map */
.market-page-map-box {
  margin: 25px 0 10px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--mp-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.market-page-map-box iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* FAQ */
.market-page-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.market-page-faq-item {
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.market-page-faq-item.active {
  border-color: var(--mp-border-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.market-page-faq-question {
  width: 100%;
  text-align: left;
  background: var(--mp-light-bg);
  border: none;
  padding: 16px 20px;
  font-family: var(--mp-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--mp-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  outline: none;
  transition: background 0.2s, color 0.2s;
}

.market-page-faq-question:hover {
  background: #f0eeeb;
  color: var(--mp-primary);
}

.market-page-faq-question:focus-visible {
  outline: 2px solid var(--mp-primary);
  outline-offset: -2px;
}

.market-page-faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--mp-border);
  border-radius: 50%;
  color: var(--mp-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s;
}

.market-page-faq-item.active .market-page-faq-icon {
  transform: rotate(180deg);
  background: var(--mp-primary);
  color: #ffffff;
  border-color: var(--mp-primary);
}

.market-page-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 20px;
  background: #ffffff;
}

.market-page-faq-item.active .market-page-faq-answer {
  max-height: 500px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--mp-border);
}

.market-page-faq-answer p {
  margin: 0;
  font-size: 16px;
  color: var(--mp-charcoal);
  line-height: 1.7;
}

/* Final CTA */
.market-page-final-cta-card {
  background: linear-gradient(135deg, #1a1c1f 0%, #262a30 100%);
  border: 2px dashed var(--mp-primary);
  border-radius: 6px;
  padding: 40px 35px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-top: 40px;
}

.market-page-final-cta-card h3 {
  font-family: var(--mp-font-heading);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.market-page-final-cta-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto 24px;
}

.market-page-final-cta-card .market-page-btn {
  font-size: 17px;
  padding: 15px 32px;
  box-shadow: 0 6px 20px rgba(240, 127, 27, 0.4);
}

/* ==========================================================================
   Sidebar: sticky until the end of the grid (i.e. until the FAQ ends)
   ========================================================================== */

.market-page-sidebar {
  position: relative;
  align-self: stretch; /* full height of the content column */
  min-width: 0;
}

/* Sticky behaviour is driven by JS (see market page script) so it works
   regardless of parent overflow / fixed-header quirks:
   - default      : normal flow (top of the sidebar column)
   - .is-fixed    : follows the user while scrolling (position: fixed)
   - .is-bottom   : parks at the bottom of the column when the grid ends (after FAQ) */
.sidebar-sticky {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* never taller than the screen, so nothing gets cut off */
  max-height: calc(100vh - var(--mp-header-offset) - 20px);
}

.sidebar-sticky.is-fixed {
  position: fixed;
  top: var(--mp-header-offset);
  z-index: 50;
}

.sidebar-sticky.is-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}

.toc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px #0a192f1f;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;   /* lets the list shrink and scroll inside */
  flex: 1 1 auto;
}

.toc-title {
  background: linear-gradient(135deg, #1e1d1e 0%, #111 100%);
  color: #fff;
  font-family: var(--mp-font-heading);
  font-size: 17px;
  font-weight: 700;
  padding: 14px 20px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
  border-bottom: 3px solid var(--mp-primary);
  flex-shrink: 0;
}

.toc-title::before {
  content: "\2261";
  font-size: 20px;
  color: var(--mp-primary);
  font-weight: 800;
  line-height: 1;
}

.toc-list {
  list-style: none;
  padding: 6px 0;
  margin: 0;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.toc-list::-webkit-scrollbar {
  width: 5px;
}

.toc-list::-webkit-scrollbar-track {
  background: #f8fafc;
}

.toc-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.toc-list::-webkit-scrollbar-thumb:hover {
  background: var(--mp-primary);
}

.toc-list li {
  margin: 0;
  border-bottom: 1px solid #f1f5f9;
}

.toc-list li:last-child {
  border-bottom: none;
}

.toc-list a {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  font-family: var(--mp-font-body);
  font-size: 15px;
  font-weight: 400;
  color: #334155;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.toc-list a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  margin-right: 10px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.toc-list a:hover,
.toc-list a.active {
  background: #fff0ef;
  color: var(--mp-primary);
  padding-left: 15px;
  font-weight: 500;
}

.toc-list a:hover::before,
.toc-list a.active::before {
  background: var(--mp-primary);
  border-color: var(--mp-primary);
}

/* Sidebar contact card */
.sidebar-contact-card {
  background: linear-gradient(145deg, #2c2a2b 0%, #151415 100%);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 25px #00000026;
  border: 1px solid #373435;
  border-top: 4px solid var(--mp-primary);
  flex-shrink: 0;
}

.sidebar-contact-card h4 {
  font-family: var(--mp-font-heading);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: 0.5px;
}

.sidebar-contact-card p {
  font-family: var(--mp-font-body);
  font-size: 15px;
  color: #e2e8f0;
  margin-bottom: 8px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sidebar-contact-card a {
  color: #fff !important;
  text-decoration: none;
}

.sidebar-contact-card .btn-whatsapp-cta {
  display: block;
  text-align: center;
  padding: 12px 14px;
  border-radius: 6px;
  font-family: var(--mp-font-heading);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  margin-top: 12px;
  background: #25D366;
  border: 1px solid #25D366;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-contact-card .btn-whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
  .market-page-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
  }
  .market-page-section-box {
    padding: 30px 25px;
  }
}

/* Tablet & below: single column, sidebar is no longer sticky */
@media (max-width: 991px) {
  .market-page-main-layout {
    padding: 40px 0 60px;
  }
  .market-page-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .market-page-content-col {
    gap: 30px;
  }
  .market-page-sidebar {
    align-self: auto;
  }
  .sidebar-sticky,
  .sidebar-sticky.is-fixed,
  .sidebar-sticky.is-bottom {
    position: static !important;
    left: auto !important;
    width: 100% !important;
    max-height: none;
  }
  /* Desktop TOC card is replaced by the floating "Contents" button + bottom sheet */
  .toc-card {
    display: none;
  }
  .market-page-intro-grid {
    grid-template-columns: 1fr;
  }
  .market-page-product-media-card {
    grid-template-columns: 1fr;
  }
  .market-page-apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .market-page-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile & small tablets */
@media (max-width: 768px) {
  .market-page-hero-banner {
    padding: 35px 0 30px;
  }
  .market-page-breadcrumb {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .market-page-main-layout {
    padding: 30px 0 50px;
  }
  .market-page-section-box {
    padding: 22px 16px;
  }
  .market-page-heading-h2,
  .market-page-heading-h3 {
    padding-left: 12px;
    border-left-width: 4px;
  }
  .market-page-section-box p {
    font-size: 15px;
    line-height: 1.7;
  }
  .market-page-two-col-cards,
  .market-page-aux-grid,
  .market-page-apps-grid,
  .market-page-factors-grid,
  .market-page-why-grid,
  .market-page-links-grid,
  .market-page-search-grid {
    grid-template-columns: 1fr;
  }
  .market-page-factor-item.full {
    grid-column: auto;
  }
  .market-page-stats-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .market-page-product-media-card {
    padding: 14px;
    gap: 14px;
  }
  .market-page-product-media-img img {
    height: 180px;
  }
  .market-page-timeline-step {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .market-page-final-cta-card {
    padding: 28px 18px;
    margin-top: 30px;
  }
  .market-page-final-cta-card p {
    font-size: 15px;
  }
  .market-page-faq-question {
    font-size: 16px;
    padding: 14px 16px;
  }
  .market-page-faq-item.active .market-page-faq-answer {
    padding: 14px 16px 18px;
  }
  .market-page-map-box iframe {
    height: 240px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .market-page-btn {
    width: 100%;
    text-align: center;
    padding: 13px 16px;
    letter-spacing: 1px;
  }
  .market-page-section-box {
    padding: 20px 14px;
  }
  .market-page-pill-item {
    font-size: 13px;
    padding: 8px 14px;
  }
  .market-page-model-tag {
    font-size: 14px;
    padding: 6px 12px;
  }
  .market-page-sub-card {
    padding: 16px;
  }
  .market-page-sub-card-img {
    height: 150px;
  }
}

/* ==========================================================================
   Mobile / Tablet TOC (below 992px): floating button (bottom-left)
   that opens a bottom-sheet dropdown with all section links
   ========================================================================== */

.mp-toc-fab,
.mp-toc-overlay,
.mp-toc-sheet {
  display: none;
}

body.mp-toc-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .mp-toc-fab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9990;
    height: 48px;
    padding: 0 20px 0 14px;
    border: 0;
    border-bottom: 3px solid var(--mp-primary);
    border-radius: 50px;
    background: linear-gradient(135deg, #1e1d1e 0%, #111 100%);
    color: #ffffff;
    font-family: var(--mp-font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mp-toc-fab:active {
    transform: scale(0.96);
  }

  .mp-toc-fab svg {
    width: 20px;
    height: 20px;
    color: var(--mp-primary);
    flex-shrink: 0;
  }

  /* hide while the main mobile menu is open */
  body.header-contact .mp-toc-fab {
    display: none;
  }

  .mp-toc-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100000;
  }

  .mp-toc-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .mp-toc-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 70vh;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    z-index: 100001;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mp-toc-sheet.open {
    transform: translateY(0);
    visibility: visible;
  }

  .mp-toc-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1e1d1e 0%, #111 100%);
    border-radius: 16px 16px 0 0;
    border-bottom: 3px solid var(--mp-primary);
    flex-shrink: 0;
  }

  .mp-toc-sheet-title {
    font-family: var(--mp-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    margin: 0;
  }

  .mp-toc-sheet-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mp-toc-sheet-close svg {
    width: 16px;
    height: 16px;
  }

  .mp-toc-sheet .toc-list {
    max-height: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .mp-toc-sheet .toc-list a {
    padding: 13px 18px;
    font-size: 16px;
  }

  .mp-toc-sheet .toc-list a:hover,
  .mp-toc-sheet .toc-list a.active {
    padding-left: 22px;
  }
}

/* Highlighted in-content links */
.mp-content-link {
  color: var(--mp-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.mp-content-link:hover {
  color: #c9630c;
  text-decoration: underline;
}
