/* ==========================================================================
   GLOBAL DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  --header-h: 70px;
  --bg-main: #0b1320;
  --bg-alt: #0e1828;
  --bg-card: rgba(18, 28, 45, 0.88);
  --bg-input: #121c2c;
  --ink: #f0f4f8;
  --ink-dim: #94a3b8;
  --accent: #2f6fed;
  --accent-hover: #2558c4;
  --accent-glow: rgba(47, 111, 237, 0.4);
  --accent-cyan: #38bdf8;
  --border: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(56, 189, 248, 0.5);
  --radius: 14px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   THEMES (متصل به متغیرهای صفحه اصلی)
   ========================================================================== */

/* ۱. تم پیش‌فرض تیره (Dark) */
body.theme-dark {
  --bg-main: #0b1320;
  --bg-alt: #0e1828;
  --bg-card: rgba(18, 28, 45, 0.88);
  --bg-input: #121c2c;
  --ink: #f0f4f8;
  --ink-dim: #94a3b8;
  --accent: #2f6fed;
  --accent-hover: #2558c4;
  --accent-glow: rgba(47, 111, 237, 0.4);
  --accent-cyan: #38bdf8;
  --border: rgba(255, 255, 255, 0.12);
}

/* ۲. تم روشن (Light Clean) */
body.theme-light {
  --bg-main: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --ink: #0f172a;
  --ink-dim: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --accent-cyan: #0284c7;
  --border: rgba(0, 0, 0, 0.1);
  --border-focus: rgba(37, 99, 235, 0.5);
}

/* ۳. تم مشکی و طلایی لوکس (Luxury Gold) */
body.theme-gold {
  --bg-main: #111111;
  --bg-alt: #181818;
  --bg-card: rgba(28, 28, 30, 0.95);
  --bg-input: #1f1f22;
  --ink: #fdfdfd;
  --ink-dim: #c5a880;
  --accent: #d4af37;
  --accent-hover: #b89628;
  --accent-glow: rgba(212, 175, 55, 0.35);
  --accent-cyan: #f3e5ab;
  --border: rgba(212, 175, 55, 0.2);
  --border-focus: rgba(212, 175, 55, 0.6);
}

/* ۴. تم سبز زمردی تجاری (Emerald Green) */
body.theme-emerald {
  --bg-main: #061c14;
  --bg-alt: #0a271c;
  --bg-card: rgba(11, 41, 31, 0.9);
  --bg-input: #0e3527;
  --ink: #e6f4ea;
  --ink-dim: #6ee7b7;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --accent-cyan: #34d399;
  --border: rgba(16, 185, 129, 0.25);
  --border-focus: rgba(16, 185, 129, 0.6);
}

/* ۵. تم آبی نفتی سلطنتی (Royal Navy) */
body.theme-navy {
  --bg-main: #0a192f;
  --bg-alt: #0d203d;
  --bg-card: rgba(17, 34, 64, 0.9);
  --bg-input: #172a45;
  --ink: #ccd6f6;
  --ink-dim: #8892b0;
  --accent: #64ffda;
  --accent-hover: #52e3c2;
  --accent-glow: rgba(100, 255, 218, 0.3);
  --accent-cyan: #38bdf8;
  --border: rgba(100, 255, 218, 0.2);
  --border-focus: rgba(100, 255, 218, 0.5);
}

/* استایل بدنه */
body {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* متصل کردن متغیرها به المان‌های صفحه
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
} */

/* body section */
/* body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
} */
.sp-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.sp-right h2, .sp-right h3 {
  color: var(--accent);
}

.sp-right .sp-text {
  color: var(--ink-dim);
}

.sp-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
}

.sp-block h2 {
  color: var(--accent);
}

.sp-block h4 {
  color: var(--ink-dim);
}



/* body section */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ==========================================================================
   HEADER (Inverted: Actions on Left, Links Center, Brand on Right)
   ========================================================================== */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg-main) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, 94%);
  margin: 0 auto;
  height: var(--header-h);
  gap: 1.5rem;
}

/* Brand on Right */
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  order: 3;
}

.brand-mark {
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
}

/* Links in Center */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  order: 2;
}

.navbar__links a {
  color: var(--ink-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.navbar__links a:hover {
  color: var(--ink);
}

/* Actions on Left */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  order: 1;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.navbar__burger {
  display: none;
}

/* Language Dropdown */
.lang {
  position: relative;
}

.lang__btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  list-style: none;
  padding: 0.4rem;
  min-width: 140px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 100;
}

.lang__menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
}

.lang__menu button:hover {
  background: var(--accent);
}

/* ==========================================================================
   BUTTONS & COMMON UI
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.btn--outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.btn--block {
  width: 100%;
}

/* Section Headings */
.section-full {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.section-subheading {
  color: var(--ink-dim);
  font-size: 1rem;
}

/* ==========================================================================
   PIN & RUNWAY STORY SECTION
   ========================================================================== */
.story-runway {
  position: relative;
  width: 100%;
  height: 400vh;
  background: radial-gradient(circle at center, var(--bg-alt) 0%, var(--bg-main) 80%);
}

.story-stage {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  width: 100%;
  overflow: hidden;
}

.story-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  z-index: 50;
  transition: width 0.08s linear;
}

.story-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.wire {
  stroke: var(--accent-cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
}

.story-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
  transform: translate(-50%, -50%);
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}


.hub-node {
  left: 50%;
  top: 50%;
  width: 22vmin;
  height: 22vmin;
  min-width: 80px;
  min-height: 80px;
  max-width: 130px;
  max-height: 130px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  box-shadow: 0 0 35px var(--accent-glow);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}


.mid-node {
  width: 10vmin;
  height: 10vmin;
  min-width: 44px;
  min-height: 44px;
  max-width: 60px;
  max-height: 60px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink) ;
  opacity: 0;
  overflow: visible !important;
}

.mid-node {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  overflow: visible !important;
}

.mid-node span {
  display: block !important;
  color:var(--ink) !important;           /* رنگ سفید کاملاً واضح */
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;       /* جلوگیری از شکستن خط و رفتن زیر کادر */
  z-index: 10 !important;
}

.step-node {
  width: 16vmin;
  height: 16vmin;
  min-width: 68px;
  min-height: 68px;
  max-width: 96px;
  max-height: 96px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  flex-direction: column;
  gap: 2px;
  opacity: 0;
}

.step-node.active {
  opacity: 1;
  border-color: var(--accent);
  background: var(--bg-alt);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translate(-50%, -50%) scale(1.08);
}


.mid-node.reached {
  opacity: 1;
  border-color: var(--accent-cyan);
  color: var(--ink);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  transform: translate(-50%, -50%) scale(1.1);
}
.corner-tl { top: calc(10% + 7rem); left: calc(10% + 7rem); }
.corner-tr { top: calc(10% + 7rem); left: calc(90% - 7rem); }
.corner-br { top: calc(90% - 7rem); left: calc(90% - 7rem); }
.corner-bl { top: calc(90% - 7rem); left: calc(10% + 7rem); }

/* 1. Ensure the badge container is a square, circular, and clips content */
.step-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(40px, 16vmin, 98px); 
  height: clamp(40px, 16vmin, 98px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-alt);
}


/* 2. Force the image to fill the container perfectly */
.step-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This is the magic: fills area, crops excess */
  display: block;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
}

/* Flippable Card: Relative Width & Scaling */
.story-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  
  /* 
     Width: Scales with the board. 
     Never smaller than 260px (mobile readable), 
     never larger than 450px (desktop readability), 
     but defaults to 80% of the parent width to stay between nodes. 
  */
  width: clamp(260px, 80%, 450px);
  
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  
  /* Relative Padding: Adjusts based on the font size */
  padding: clamp(1rem, 2vmin, 1.5rem);
  z-index: 25;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card.pos-bottom {
  top: auto !important;
  bottom: 2rem !important;
}

.story-card.pos-top {
  bottom: auto !important;
  top: 2rem !important;
}

.panel__title {
  font-size: clamp(1.1rem, 2.5vmin, 1.4rem);
  margin-bottom: 0.5rem;
  color: var(--ink);
}



.panel__bars {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.panel__bar {
  /* Text scales relative to screen size */
  font-size: clamp(0.8rem, 1.5vmin, 0.95rem);
  color: var(--ink-dim);
}

.panel__bar--highlight {
  color: var(--accent-cyan);
  font-weight: 700;
}

.panel__cta {
  display: flex;
  gap: 0.5rem;
}

/* Relative Buttons inside the card */
.panel__cta .btn {
  /* Buttons shrink on small screens, grow on large ones */
  padding: clamp(0.4rem, 1vmin, 0.7rem) clamp(0.8rem, 1.5vmin, 1.2rem);
  font-size: clamp(0.75rem, 1.2vmin, 0.9rem);
}

/* ==========================================================================
   SECTION 1: MAIN ACTIVITY BANNER
   ========================================================================== */
.banner-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.banner-media {
  height: 480px;
  width: 100%;
}

.banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.banner-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 65%;
  right: 0;
  padding: 2.5rem;
  background: linear-gradient(0deg, var(--bg-main) 0%, color-mix(in srgb, var(--bg-main) 75%, transparent) 65%, transparent 100%);
  backdrop-filter: brightness(8px);
}

.banner-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.banner-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.banner-text {
  color: var(--ink-dim);
  max-width: 750px;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   SECTION 2: PRODUCTS GRID
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.product-card__thumb {
  height: 190px;
  position: relative;
  overflow: hidden;
}

.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__thumb img {
  transform: scale(1.05);
}

.product-card__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: color-mix(in srgb, var(--bg-card) 85%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.product-card__body {
  padding: 1.25rem;
}

.product-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.product-card__desc {
  font-size: 0.88rem;
  color: var(--ink-dim);
  margin-bottom: 1rem;
}

.product-card__cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* ==========================================================================
   SECTION 3: TIMELINE / PROGRESS PATH (RTL Layout)
   ========================================================================== */
.timeline-wrapper {
  overflow-x: auto;
  padding: 2rem 0;
}

.timeline-track {
  display: flex;
  gap: 1.5rem;
  min-width: 1000px;
  position: relative;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.timeline-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 2;
}

.timeline-step--highlight .timeline-dot {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan);
}

.timeline-label {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-cyan);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.timeline-img {
  height: 130px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
}

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

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* ==========================================================================
   SECTION 4: SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform var(--transition), border-color var(--transition);
}

.service-box:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(47, 111, 237, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin-bottom: 1.25rem;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.service-bullets li::before {
  content: "✓ ";
  color: var(--accent-cyan);
  font-weight: bold;
}

/* ==========================================================================
   SECTION 5: NEWS CARDS
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}

.news-card__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.news-card__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.news-card__logo--alt { background: #0284c7; }
.news-card__logo--wto { background: #16a34a; }

.news-card__meta {
  display: flex;
  flex-direction: column;
}

.news-card__source {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}


.news-card__time {
  font-size: 0.75rem;
  color: var(--ink-dim);
}

.news-card__headline {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
  line-height: 1.4;
}

.news-card__snippet {
  font-size: 0.88rem;
  color: var(--ink-dim);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

/* ==========================================================================
   SECTION 6 & 7: ANALYSIS & LOAD MORE
   ========================================================================== */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.analysis-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.analysis-card__media {
  height: 220px;
  position: relative;
}

.analysis-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.analysis-card__badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: color-mix(in srgb, var(--bg-main) 85%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

.analysis-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.analysis-card__date {
  font-size: 0.8rem;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
}

.analysis-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
  line-height: 1.35;
}

.analysis-card__title a:hover {
  color: var(--accent-cyan);
}

.analysis-card__text {
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Partners Marquee / Grid */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.partner-logo-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
}

.partner-logo-item:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.analysis-loadmore-wrapper {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.loadmore-prompt {
  color: var(--ink-dim);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   SECTION 8: CONTACT
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--ink-dim);
  margin-bottom: 2rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.contact-pill__icon {
  font-size: 1.5rem;
}

.contact-pill strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.contact-pill p {
  font-size: 0.88rem;
  color: var(--ink-dim);
}

.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay[hidden] {
  display: none;
}

.overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.overlay__panel {
  position: relative;
  width: min(600px, 90%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  z-index: 10;
  box-shadow: 0 25px 50px rgba(0,0,0,0.7);
}

.search-form {
  display: flex;
  gap: 0.75rem;
}


.search-form input {
  flex-grow: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--ink);
  font-size: 1rem;
}

.overlay__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 0;
  color: var(--ink-dim);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ==========================================================================
   FOOTER (5 Columns)
   ========================================================================== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 5rem 0 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-bio {
  font-size: 0.88rem;
  color: var(--ink-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--ink-dim);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

.footer-contact-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.f-icon {
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
/* container اصلی سوئیچر */
/* ظرف کلی سوئیچر */

.product-switcher {

  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  direction: rtl;

  /* فاصله از لبه‌های راست و چپ */
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
  padding-top:clamp(90px, 104vw, 90px);
  padding-bottom:clamp(90px, 104vw, 90px);
  /* اگر می‌خواهید در مانیتورهای بسیار عریض بیش از حد کشیده نشود */
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* --- ستون دسته‌ها (سمت راست) --- */
.product-switcher__tabs {
  display: flex;
  flex-direction: column; /* چیدمان بالا به پایین در دسکتاپ */
  gap: 10px;
}

/* دکمه هر دسته - متمایز از پس‌زمینه */
.switcher-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05); /* پس‌زمینه مات و متمایز */
  border: 1px solid rgba(255, 255, 255, 0.12); /* کادر نرم */
  border-radius: 12px;
  color: var(--ink-dim);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  text-align: right;
}

/* هاور دکمه‌ها */
.switcher-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(-3px);
}

/* حالت فعال دسته انتخابی */
.switcher-tab.is-active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--ink-dim);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.switcher-tab__badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 20px;
  color: #94a3b8;
}

.switcher-tab.is-active .switcher-tab__badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* --- ستون محصولات (سمت چپ) --- */
.product-switcher__content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 20px;
  min-height: 220px;
}

.switcher-panel {
  display: none; /* پیش‌فرض مخفی */
  animation: fadeIn 0.3s ease forwards;
}

.switcher-panel.is-active {
  display: block; /* فقط دسته فعال نمایش داده می‌شود */
}

/* شبکه چیدمان عکس‌ها و اسم‌ها */
.switcher-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); /* کارت‌های کوچک و جمع‌وجور */
  gap: 16px;
}

/* کارت محصول کوچک (فقط عکس و تایتل خیلی ریز) */
.mini-prod-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}


.mini-prod-card:hover {
  transform: translateY(-4px);
}

.mini-prod-card__img-box {
  width: 85px;
  height: 85px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.mini-prod-card__img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mini-prod-card:hover .mini-prod-card__img-box img {
  transform: scale(1.06);
}

.mini-prod-card__placeholder {
  color: #64748b;
}

/* متن نام محصول - خیلی ریز و تر و تمیز */
.mini-prod-card__title {
  font-size: 0.72rem; /* خیلی ریز */
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* سه نقطه در صورت طولانی بودن */
  padding: 0 2px;
}

.mini-prod-card:hover .mini-prod-card__title {
  color: #ffffff;
}

.switcher-panel__empty {
  color: #64748b;
  font-size: 0.85rem;
  padding: 40px 10px;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}


/* خط افقی اتصال مراحل */
.timeline-track {
  position: relative;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 10px; /* هم‌تراز با وسط دایره timeline-dot */
  left: 20px;
  right: 20px;
  height: 2px;
  /* background: var(--border, rgba(255, 255, 255, 0.15)); */
  z-index: 0;
}

.timeline-node {
  position: relative;
  z-index: 1; /* بالاتر از خط اتصال */
}

/* استایل نشان و زیرنویس */
.timeline-subtitle {
  font-size: 0.85em;
  opacity: 0.85;
  margin-top: 4px;
}

.timeline-badge {
  display: inline-block;
  background: rgba(var(--accent-rgb, 0, 200, 255), 0.15);
  color: var(--accent-cyan, #00c8ff);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-top: 8px;
}

/* دکمه‌های تایم‌لاین - چیدمان عمودی از بالا به پایین */
.timeline-actions {
  display: flex;
  flex-direction: column; /* چیدمان عمودی: از بالا به پایین */
  gap: 0.5rem;            /* فاصله بین دکمه‌ها */
  margin-top: auto;       /* چسباندن دکمه‌ها به پایین کارت */
  padding-top: 1rem;
  width: 100%;            /* اشغال عرض کامل کارت */
}

/* برای اینکه دکمه‌ها در حالت عمودی تمام‌عرض و یکدست باشند */
.timeline-actions > * {
  width: 100%;
  text-align: center;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}


/* ---- News List (Horizontal, 100% width) ---- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%; /* استفاده از کل فضای در دسترس */
}

.news-list-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: transform var(--transition), border-color var(--transition);
  gap: 1.25rem;
  text-decoration: none;
}

.news-list-item:hover {
  transform: translateX(-5px); /* حرکت ریز به جای بالا رفتن */
  border-color: var(--accent-cyan);
}

.news-list-item__media {
  flex-shrink: 0;
}

/* عکس خبر در صورت وجود */
.news-list-item__img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

/* لوگوی متنی در صورت نبود عکس */
.news-list-item__logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.news-list-item__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-item__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.news-list-item__source { font-weight: 700; font-size: 0.85rem; color: var(--ink); }
.news-list-item__time { font-size: 0.75rem; color: var(--ink-dim); }

.news-list-item__headline {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--ink);
}

.news-list-item__snippet {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.5;
}

.news-list-item__action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.hidden-news {
  display: none !important;
}


/* ========================================================
   1. Footer Logo Styles
   ======================================================== */
.footer-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-mark-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color, #c8963e);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ========================================================
   2. Circular Horizontal Partner Logos
   ======================================================== */
.partner-logos-wrapper {
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
}

.partner-logos-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem 1.5rem 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 150, 62, 0.4) transparent;
}

.product-switcher-title-wrap {
  width: 100%;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 28px;
}

.product-switcher-title {
  display: inline-block;
  margin: 0;
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--ink, #1f2937);
  line-height: 1.3;
}



.partner-logos-scroll::-webkit-scrollbar {
  height: 6px;
}
.partner-logos-scroll::-webkit-scrollbar-thumb {
  background: rgba(200, 150, 62, 0.4);
  border-radius: 10px;
}

.partner-logo-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 120px;
}

.partner-circle {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  padding: 10px;
}

.partner-circle:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--accent-color, #c8963e);
  box-shadow: 0 8px 20px rgba(200, 150, 62, 0.2);
}

.partner-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.partner-fallback-initial {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-color, #c8963e);
}

.partner-name {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================================
   3. Floating Right-Center Contact Bar
   ======================================================== */
/* ==========================================================================
   FLOATING CONTACT BAR
   ========================================================================== */
/* Base floating contact bar (anchored to right) */
.floating-contact-bar {
  position: fixed !important;
  top: 50% !important;
  right: 18px !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99999;
  background: var(--bg-card, rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 6px;
  border-radius: 30px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Move to Left: Translate horizontally across screen */
.floating-contact-bar.is-left {
  transform: translate(calc(-100vw + 36px + 100%), -50%) !important;
}



.quick-contact-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.quick-contact-btn:hover {
  transform: scale(1.15);
  filter: brightness(1.15);
}

/* رنگ اختصاصی هر آیکون */
.phone-btn {
  background: #3b82f6; /* Blue */
}

.whatsapp-btn {
  background: #25d366; /* WhatsApp Green */
}

.email-btn {
  background: #ea4335; /* Red / Email */
}


/* ==========================================================================
   SECOND PAGE CUSTOM LAYOUT
   ========================================================================== */
.sp-main-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 40px);
  direction: rtl;
}

.sp-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 60px;
}



.sp-hero-texts .sp-text-card {
  margin-bottom: 24px;
}

.sp-heading-h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.sp-heading-h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.sp-heading-h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.sp-paragraph { font-size: 1rem; line-height: 1.8; color: var(--sp-muted, #cbd5e1); }

/* اسلایدر تک‌عکس سمت چپ */
.sp-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: #111;
}

.sp-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.sp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.sp-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.sp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-slider-controls .sp-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.sp-slide-btn.prev { right: 12px; }
.sp-slide-btn.next { left: 12px; }

.sp-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.sp-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.sp-dot.is-active {
  background: #fff;
  width: 24px;
  border-radius: 10px;
}

/* بلوک‌های تکرارشونده پایین */
.sp-blocks-section {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.sp-content-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
}

.sp-block-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.sp-block-subtitle {
  font-size: 1.1rem;
  color: var(--primary, #38bdf8);
  margin-bottom: 16px;
}

.sp-block-body {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 24px;
}

.sp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.sp-block-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.sp-block-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.sp-block-figure figcaption {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
}




.sp-sections-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 40px;
}

.sp-flow-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-flow-figure {
  margin: 12px 0 0 0;
  max-width: 850px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.sp-flow-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.sp-flow-figure figcaption {
  padding: 8px 12px;
  font-size: 0.88rem;
  color: #94a3b8;
  background: rgba(0,0,0,0.2);
}



/* MEDIA CODES  */

@media (max-width: 768px) {
  /* Ensure header container does not clip the fixed dropdown menu */
  .site-header {
    overflow: visible !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
  }

  .navbar {
    overflow: visible !important;
    position: relative !important;
  }

  /* Make sure the burger button is responsive to taps */
  .navbar__burger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10002 !important;
  }

  /* The Dropdown Menu Drawer */
  #navLinks.navbar__links {
    display: none; /* Hidden by default */
  }

  #navLinks.navbar__links.is-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 56px !important; /* height of header on mobile */
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-height: calc(100vh - 56px) !important;
    overflow-y: auto !important;
    background-color: var(--bg-card, #161b26) !important;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.12)) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8) !important;
    padding: 16px 20px 24px !important;
    gap: 8px !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 99999 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #navLinks.navbar__links.is-open li {
    display: block !important;
    width: 100% !important;
  }

  #navLinks.navbar__links.is-open li a {
    display: block !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    color: var(--ink, #ffffff) !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }
}



/* ==========================================================================
   MOBILE OVERRIDES FOR PIN & RUNWAY STORY SECTION
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Center the background image strictly behind the CORE hub node */
  .story-stage {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: center;
  }


  /* 5. Mobile Story Card: readable, centered, and kept off the very bottom edge */
  .story-card {
    width: calc(100% - 32px) !important;
    max-width: 360px !important;
    padding: 0.9rem 1rem !important;
  }

  .story-card {
    position: absolute;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 32px) !important;
    max-width: 360px !important;
    z-index: 40 !important;
  }

  .story-stage > img {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35; /* softens behind nodes on small screens */
  }

  /* 2. Scale down the central hub node */
  .hub-node {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    min-height: 72px !important;
    object-fit: cover !important;
  }

  .hub-node img {
    max-height: 22px !important;
  }

  /* 3. Scale down mid-nodes so text stays legible without crowding */
  .mid-node {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  .mid-node span {
    font-size: 9.5px !important;
  }

  /* 4. Pull the 4 corners in safely so they never clip off the screen */
  .corner-tl { top: 12% !important; left: 14% !important; }
  .corner-tr { top: 12% !important; left: 86% !important; }
  .corner-bl { top: 88% !important; left: 14% !important; }
  .corner-br { top: 88% !important; left: 86% !important; }

  .step-badge {
    width: 52px !important;
    height: 52px !important;
  }


  .story-card.pos-bottom {
    top: auto !important;
    bottom: 1.2rem !important;
  }

  .story-card.pos-top {
    bottom: auto !important;
    top: 1.2rem !important;
  }




  .panel__title {
    font-size: 1.05rem !important;
    margin-bottom: 0.3rem !important;
  }

  .panel__bar {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 768px) {
  /* 1. Reset the outer section/wrapper if it has extra spacing */
  .banner-section,
  .banner-wrapper {
    padding-top: 0 !important;
    padding-bottom: 16px !important;
    min-height: auto !important;
    height: auto !important;
  }

  /* 2. Force banner-card to tightly hug its children in a simple top-to-bottom stack */
  .banner-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
    row-gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    position: relative !important;
  }

  /* 3. Kill any fixed aspect-ratio, padding hacks, or height reservations on the media container */
  .banner-media,
  .banner-media picture,
  .banner-media a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important; /* kills inline font descent gap */
    font-size: 0 !important;
    flex: 0 0 auto !important; /* stops flex item from growing */
  }

  /* 4. The Image itself sets the exact height */
  .banner-media img {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 12px 12px 0 0 !important;
    vertical-align: bottom !important;
  }

  /* 5. Force content box to attach directly to the bottom of the image */
  .banner-content {
    position: static !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    flex: 0 0 auto !important;
    background: var(--bg-card, #121824) !important;
    box-shadow: none !important;
    border-radius: 0 0 12px 12px !important;
    padding: 14px 16px !important;
    margin: 0 !important; /* Absolutely zero margin separating from image */
  }

  /* 6. Clean inside typography margins */
  .banner-badge {
    display: inline-block !important;
    margin: 0 0 6px 0 !important;
  }

  .banner-title {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
  }

  .banner-text {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}




@media (max-width: 768px) {
  .product-switcher {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 2rem; /* your requested side spacing */
  }

  .product-switcher__tabs {
    display: grid;
    grid-template-columns: 1fr; /* full-width stacked buttons */
    gap: 10px;
  }

  .switcher-tab {
    width: 100%;
    justify-content: space-between;
  }

  .product-switcher__content {
    width: 100%;
  }

  .switcher-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 per row on mobile */
    gap: 12px;
  }

  .mini-prod-card__title {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .timeline-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .timeline-track {
    display: flex;
    gap: 14px;
    width: max-content; /* lets it extend beyond screen */
    padding-inline: 12px;
  }

  .timeline-step {
    flex: 0 0 78vw;     /* each step is a "card width" */
    max-width: 340px;
  }

  .timeline-card {
    padding: 12px;
  }

  .timeline-title { font-size: 1rem; }
  .timeline-subtitle,
  .timeline-desc { font-size: 0.92rem; }

  .timeline-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .timeline-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .service-box {
    padding: 12px;
  }

  .service-title { font-size: 1rem; }
  .service-desc,
  .service-bullets { font-size: 0.9rem; }
}

@media (max-width: 768px) {
  .news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .news-list-item {
    margin: 0 12px;          /* border to screen */
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 12px;
  }

  .news-list-item__action {
    margin-top: 10px;
  }

  .news-list-item__headline { font-size: 1rem; }
  .news-list-item__snippet  { font-size: 0.92rem; }
}


@media (max-width: 768px) {
  .partner-logos-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .partner-logos-scroll {
    display: flex;
    gap: 14px;
    width: max-content;
    padding: 8px 12px 14px;
  }

  .partner-logo-item {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
  }

  .partner-name { font-size: 0.9rem; }
}

/* ==========================================================================
   MOBILE FOOTER ORDER & SIDE-BY-SIDE LINKS
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Main Footer Container */
  .site-footer .footer-grid,
  .footer-container,
  .footer-content {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px 16px !important;
    justify-content: space-between !important;
  }

  /* 2. ALL Link Columns (Quick Links, Products, Services, etc.) Side by Side */
  #footer-quick-links,
  #footer-products,
  #footer-services,
  .footer-col:has(.footer-links) {
    order: 1 !important;
    /* Allows two columns side-by-side with a clean gap */
    flex: 1 1 calc(50% - 12px) !important;
    min-width: 140px !important;
    box-sizing: border-box !important;
  }

  /* Link styling inside the columns */
  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .footer-links li a {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
  }

  /* Section Title inside Link Columns */
  .footer-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    color: var(--ink, #ffffff) !important;
  }

  /* 3. Contact & Phone Information (Full Width, below the links) */
  #footer-contact,
  .footer-col-contact,
  .footer-col:has(.footer-contact-list) {
    order: 2 !important;
    flex: 1 1 100% !important; /* Forces full width to sit below links */
    width: 100% !important;
    margin-top: 10px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08)) !important;
  }

  .footer-contact-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .footer-contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.9rem !important;
  }

  /* 4. Logo, Bio, and Brand Block (At the very bottom) */
  #footer-logo,
  .footer-col-brand,
  .footer-col:has(.footer-logo) {
    order: 3 !important;
    flex: 1 1 100% !important; /* Full width */
    width: 100% !important;
    margin-top: 12px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  #footer-logo img,
  .footer-logo img {
    max-height: 48px !important;
    width: auto !important;
    margin-bottom: 10px !important;
  }

  #footer-logo p,
  .footer-brand-desc {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    color: var(--ink-dim, #94a3b8) !important;
  }
}


