/* ============================================================================
   TRADE DELEGATION PAGE — Markcon layout extensions
   Builds on css/home-markcon.css (the `.markcon-home` design tokens are in
   scope because the content is wrapped in `.markcon-home`). Reuses the
   homepage about/stat patterns and the services-page feature/timeline styles.
   ============================================================================ */

/* ----- Hero tuning ----- */
.trade-markcon .mc-hero {
  min-height: 760px;
}

.trade-markcon .mc-hero__inner {
  align-items: center;
}

.td-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.td-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.25s ease;
}

.td-breadcrumb a:hover {
  color: var(--mc-gold-2);
}

.td-breadcrumb span {
  color: var(--mc-gold-2);
}

.td-breadcrumb__icon {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===================== OVERVIEW ===================== */
.td-overview__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--mc-radius);
  background: var(--mc-blue);
}

.td-overview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-overview .mc-story h2 {
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
}

.td-overview__text {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--mc-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.td-stat-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.td-stat-row .mc-stat-card {
  min-height: 0;
  padding: 28px;
}

.td-stat-row .mc-stat-card strong {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
}

/* ===================== WHAT THE PROGRAM INCLUDES ===================== */
.td-benefits {
  padding: clamp(90px, 10vw, 160px) 0;
  color: #fff;
  background: #030812;
}

.td-benefits .mc-section-head h2 {
  color: #fff;
}

.td-benefits .mc-section-head--split > p:not(.mc-section-tag),
.td-why .mc-section-head--split > p:not(.mc-section-tag),
.td-process .mc-section-head--split > p:not(.mc-section-tag) {
  max-width: 420px;
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ----- Coverflow carousel: one benefit forward, the rest fanned in an arc ----- */
.mc-coverflow {
  margin-top: clamp(48px, 6vw, 84px);
}

.mc-coverflow__stage {
  position: relative;
  height: 440px;
  perspective: 1700px;
  transform-style: preserve-3d;
  outline: none;
}

.td-benefit {
  padding: 40px;
  border-radius: 22px;
  background: var(--mc-blue);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* In the carousel each benefit is absolutely stacked; JS sets the transform. */
.mc-coverflow__stage .td-benefit {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(420px, 84vw);
  height: 100%;
  margin-left: calc(min(420px, 84vw) / -2);
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease, box-shadow 0.5s ease;
  backface-visibility: hidden;
  cursor: pointer;
}

.mc-coverflow__stage .td-benefit p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mc-coverflow__stage .td-benefit.is-active {
  border-color: rgba(217, 173, 69, 0.55);
  box-shadow: 0 44px 90px rgba(0, 0, 0, 0.5);
}

.mc-coverflow__stage .td-benefit:not(.is-active) {
  filter: brightness(0.78);
}

/* ----- Controls (arrows + dots) ----- */
.mc-coverflow__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 44px;
}

.mc-coverflow__nav {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #07111f;
  background: var(--mc-gold-2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.mc-coverflow__nav:hover {
  transform: translateY(-3px);
}

.mc-coverflow__nav-icon {
  width: 22px;
  height: 22px;
}

.mc-coverflow__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mc-coverflow__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.mc-coverflow__dot.is-active {
  background: var(--mc-gold-2);
  transform: scale(1.3);
}

.td-benefit__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: #07111f;
  border-radius: 50%;
  background: var(--mc-gold-2);
}

.td-benefit__icon svg {
  width: 28px;
  height: 28px;
}

.td-benefit h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.td-benefit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
}

/* ===================== FORUM 2026 PACKAGE ===================== */
.td-package {
  padding: clamp(90px, 10vw, 160px) 0;
  background: var(--mc-cream);
  color: var(--mc-ink);
}

.td-package .mc-section-head h2 {
  color: var(--mc-ink);
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
}

.td-package .mc-section-head > p:not(.mc-section-tag) {
  color: var(--mc-muted);
}

.td-package__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.td-price {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 52px);
  border-radius: var(--mc-radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(217, 173, 69, 0.22), rgba(6, 20, 43, 0.86)),
    var(--mc-blue);
}

.td-price__tag {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mc-gold-2);
}

.td-price__amount {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.td-price__amount small {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0;
}

.td-price__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.td-price__meta span {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.td-price__note {
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.7;
}

.td-price .mc-pill {
  align-self: flex-start;
}

.td-price__countries {
  margin-top: auto;
  padding-top: 28px;
}

.td-price__countries-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.td-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-chip {
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.td-includes {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 52px);
  border-radius: var(--mc-radius);
  background: rgba(11, 16, 32, 0.05);
}

.td-includes h3 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--mc-ink);
}

.td-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.td-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--mc-ink);
  font-weight: 600;
  line-height: 1.5;
}

.td-checklist__icon,
.td-req__icon {
  flex-shrink: 0;
  color: var(--mc-gold);
  margin-top: 1px;
}

.td-checklist__svg,
.td-req__svg {
  width: 20px;
  height: 20px;
}

/* ===================== WHY PARTICIPATE ===================== */
.td-why {
  padding: clamp(90px, 10vw, 160px) 0;
  color: #fff;
  background: #02060e;
}

.td-why .mc-section-head h2 {
  color: #fff;
}

.td-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.td-why-card {
  padding: clamp(28px, 3vw, 44px) clamp(8px, 2vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.td-why-card:nth-child(3n) {
  border-right: none;
}

.td-why-card:hover {
  background: rgba(217, 173, 69, 0.05);
}

.td-why-card__num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--mc-gold-2);
}

.td-why-card h3 {
  margin: 18px 0 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.td-why-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
}

/* ===================== REQUIREMENTS & SECTORS ===================== */
.td-detail {
  padding: clamp(90px, 10vw, 160px) 0;
  background: var(--mc-cream);
  color: var(--mc-ink);
}

.td-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.td-detail .mc-section-head {
  margin-bottom: 32px;
}

.td-detail .mc-section-head h2 {
  color: var(--mc-ink);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.td-req {
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-req li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  color: var(--mc-ink);
  font-weight: 600;
  border-bottom: 1px solid rgba(11, 16, 32, 0.1);
}

.td-sectors {
  display: grid;
  gap: 0;
}

.td-sector {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(11, 16, 32, 0.1);
}

.td-sector__num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--mc-gold);
}

.td-sector h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mc-ink);
}

.td-sector p {
  margin: 0;
  color: var(--mc-muted);
  line-height: 1.6;
}

/* ===================== REGISTRATION PROCESS ===================== */
.td-process {
  padding: clamp(90px, 10vw, 160px) 0;
  color: #fff;
  background: #030812;
}

.td-process .mc-section-head h2 {
  color: #fff;
}

.td-process__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.td-step {
  position: relative;
  padding: 32px;
  border-radius: 18px;
  background: var(--mc-blue);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.td-step:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 173, 69, 0.4);
}

.td-step__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(217, 173, 69, 0.85);
  line-height: 1;
}

.td-step h3 {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.td-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
}

/* ===================== ITINERARY ===================== */
.td-itinerary {
  padding: clamp(90px, 10vw, 160px) 0;
  background: var(--mc-cream);
  color: var(--mc-ink);
}

.td-itinerary .mc-section-head h2 {
  color: var(--mc-ink);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.05;
}

.td-timeline {
  margin-top: 20px;
  border-top: 1px solid rgba(11, 16, 32, 0.12);
}

.td-timeline__item {
  display: grid;
  grid-template-columns: minmax(120px, 0.26fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid rgba(11, 16, 32, 0.12);
  transition: background 0.3s ease;
}

.td-timeline__item:hover {
  background: rgba(217, 173, 69, 0.05);
}

.td-timeline__day {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--mc-gold);
}

.td-timeline__body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--mc-ink);
}

.td-timeline__body p {
  margin: 0;
  max-width: 760px;
  color: var(--mc-muted);
  line-height: 1.7;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1120px) {
  .td-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-why-card:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .td-why-card:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 960px) {
  .td-package__grid,
  .td-detail__grid {
    grid-template-columns: 1fr;
  }

  .td-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .trade-markcon .mc-hero {
    min-height: auto;
  }

  .td-process__grid,
  .td-why__grid {
    grid-template-columns: 1fr;
  }

  .mc-coverflow__stage {
    height: 410px;
  }

  .td-why-card {
    border-right: none !important;
  }

  .td-timeline__item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
