/**
 * Infoptic Ecosystem Widget Styles
 *
 * Cohesive, professional design system matching the Infoptic Ecosystem specification:
 * - Left Column: Section Badge, Headline, Lead Description, and 5-Row Ecosystem Channels White Card
 * - Right Column: High-Definition Bilingual SVG Ecosystem Diagram in a matching White Card
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@600;700;800&display=swap');

:root {
  --infoptic-eco-navy: #062345;
  --infoptic-eco-blue: #1947BA;
  --infoptic-eco-sky: #52C1F2;
  --infoptic-eco-kicker: #2589D8;
  --infoptic-eco-ink: #1B2330;
  --infoptic-eco-muted: #525E70;
  --infoptic-eco-muted-2: #7A8596;
  --infoptic-eco-line: #E4EAF2;
  --infoptic-eco-soft: #F3F6FA;
  --infoptic-eco-card-shadow: 0 10px 32px rgba(6, 35, 69, 0.055), 0 2px 6px rgba(6, 35, 69, 0.03);
}

/* Base section wrapper with subtle optical grid motif */
section.infoptic-ecosystem,
.elementor-widget-infoptic-ecosystem section.infoptic-ecosystem {
  position: relative;
  background-color: var(--infoptic-eco-soft) !important;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(82, 193, 242, 0.08) 0%, transparent 45%),
    linear-gradient(to right, rgba(6, 35, 69, 0.024) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 35, 69, 0.024) 1px, transparent 1px) !important;
  background-size: 100% 100%, 44px 44px, 44px 44px !important;
  padding: 84px 0;
  width: 100% !important;
  box-sizing: border-box !important;
}

section.infoptic-ecosystem *,
.elementor-widget-infoptic-ecosystem * {
  box-sizing: border-box !important;
}

/* Container */
.infoptic-ecosystem .infoptic-ecosystem__container,
.infoptic-ecosystem .container {
  width: 100% !important;
  max-width: 1260px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

/* ==========================================================================
   Top Section: 2-Column Split (Balanced Left & Right Cards)
   ========================================================================== */

.infoptic-ecosystem .infoptic-ecosystem__top,
.infoptic-ecosystem .ecosystem-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 32px !important;
  align-items: stretch !important;
}

.infoptic-ecosystem .infoptic-ecosystem__content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
}

/* Section Header Block */
.infoptic-ecosystem .infoptic-ecosystem__header-block,
.infoptic-ecosystem .section-header-block {
  display: inline-flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  align-self: flex-start !important;
  gap: 0 !important;
  margin: 0 0 20px 0 !important;
  width: fit-content !important;
}

.infoptic-ecosystem .infoptic-ecosystem__stripe,
.infoptic-ecosystem .sky-stripe {
  width: 7px !important;
  background: linear-gradient(180deg, #77C5F1 0%, #3caef5 100%) !important;
  background-color: #77C5F1 !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.infoptic-ecosystem h2.infoptic-ecosystem__badge-title,
.elementor-widget-infoptic-ecosystem h2.infoptic-ecosystem__badge-title,
.infoptic-ecosystem .section-header-block h2 {
  font-family: 'Orbitron', system-ui, -apple-system, sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  color: #FFFFFF !important;
  background-color: #062345 !important;
  padding: 10px 20px 10px 15px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  display: inline-block !important;
}

/* Headline */
.infoptic-ecosystem h3.infoptic-ecosystem__headline,
.elementor-widget-infoptic-ecosystem h3.infoptic-ecosystem__headline,
.infoptic-ecosystem__content h3 {
  font-family: 'Orbitron', system-ui, sans-serif !important;
  font-size: clamp(1.35rem, 1.95vw, 1.72rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.22 !important;
  color: #062345 !important;
  margin: 2px 0 10px 0 !important;
}

/* Lead Description */
.infoptic-ecosystem p.infoptic-ecosystem__description,
.elementor-widget-infoptic-ecosystem p.infoptic-ecosystem__description,
.infoptic-ecosystem p.lead {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: clamp(0.86rem, 0.92vw, 0.92rem) !important;
  line-height: 1.52 !important;
  color: var(--infoptic-eco-muted) !important;
  max-width: 64ch !important;
  margin: 0 0 16px 0 !important;
}

/* ==========================================================================
   Left Column: 5-Row Ecosystem Channels Card
   ========================================================================== */

.infoptic-ecosystem .infoptic-ecosystem__channels-card {
  background: #FFFFFF !important;
  border: 1px solid var(--infoptic-eco-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--infoptic-eco-card-shadow) !important;
  padding: 2px 18px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important;
}

.infoptic-ecosystem .infoptic-ecosystem__channel-row {
  display: grid !important;
  grid-template-columns: 138px 1fr auto !important;
  gap: 16px !important;
  align-items: center !important;
  padding: 13px 4px !important;
  border-bottom: 1px solid #EDF1F7 !important;
  flex: 1 !important;
  transition: background-color 0.2s ease !important;
}

.infoptic-ecosystem .infoptic-ecosystem__channel-row:last-child {
  border-bottom: none !important;
}

.infoptic-ecosystem .infoptic-ecosystem__channel-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.infoptic-ecosystem .infoptic-ecosystem__channel-kicker {
  display: block !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--infoptic-eco-kicker) !important;
  line-height: 1.2 !important;
}

.infoptic-ecosystem h4.infoptic-ecosystem__channel-title,
.elementor-widget-infoptic-ecosystem h4.infoptic-ecosystem__channel-title {
  font-family: 'Orbitron', system-ui, sans-serif !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  color: #062345 !important;
  line-height: 1.22 !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: -0.01em !important;
}

.infoptic-ecosystem p.infoptic-ecosystem__channel-desc,
.elementor-widget-infoptic-ecosystem p.infoptic-ecosystem__channel-desc {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 0.77rem !important;
  line-height: 1.42 !important;
  color: #5A6577 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.infoptic-ecosystem .infoptic-ecosystem__channel-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.infoptic-ecosystem a.infoptic-ecosystem__channel-link,
.elementor-widget-infoptic-ecosystem a.infoptic-ecosystem__channel-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 0.735rem !important;
  font-weight: 700 !important;
  color: var(--infoptic-eco-blue) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  transition: color 0.18s ease !important;
  cursor: pointer !important;
}

.infoptic-ecosystem a.infoptic-ecosystem__channel-link:hover,
.elementor-widget-infoptic-ecosystem a.infoptic-ecosystem__channel-link:hover {
  color: #062345 !important;
}

.infoptic-ecosystem .infoptic-ecosystem__channel-chevron {
  display: inline-block !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  transition: transform 0.18s ease !important;
}

.infoptic-ecosystem a.infoptic-ecosystem__channel-link:hover .infoptic-ecosystem__channel-chevron,
.infoptic-ecosystem .infoptic-ecosystem__channel-row:hover .infoptic-ecosystem__channel-chevron {
  transform: translateX(3px) !important;
}

/* Optional Bullet Points List */
.infoptic-ecosystem ul.infoptic-ecosystem__bullet-list,
.elementor-widget-infoptic-ecosystem ul.infoptic-ecosystem__bullet-list,
.infoptic-ecosystem ul.ecosystem-points {
  list-style: none !important;
  margin: 14px 0 0 0 !important;
  padding: 0 !important;
}

.infoptic-ecosystem li.infoptic-ecosystem__bullet-item,
.elementor-widget-infoptic-ecosystem li.infoptic-ecosystem__bullet-item,
.infoptic-ecosystem .ecosystem-points li {
  position: relative !important;
  padding-left: 22px !important;
  margin-bottom: 10px !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 0.94rem !important;
  color: var(--infoptic-eco-ink) !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  list-style: none !important;
}

.infoptic-ecosystem li.infoptic-ecosystem__bullet-item:last-child,
.infoptic-ecosystem .ecosystem-points li:last-child {
  margin-bottom: 0 !important;
}

.infoptic-ecosystem li.infoptic-ecosystem__bullet-item::before,
.infoptic-ecosystem .ecosystem-points li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 9px !important;
  width: 10px !important;
  height: 2px !important;
  background-color: var(--infoptic-eco-sky) !important;
  border-radius: 0 !important;
}

/* ==========================================================================
   Right Column: Diagram Card (.eco-map-wrapper)
   ========================================================================== */

.infoptic-ecosystem .infoptic-ecosystem__diagram-card,
.infoptic-ecosystem .eco-map-wrapper {
  background: #FFFFFF !important;
  border: 1px solid var(--infoptic-eco-line) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  box-shadow: var(--infoptic-eco-card-shadow) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  position: relative !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.infoptic-ecosystem .infoptic-ecosystem__diagram-card:hover,
.infoptic-ecosystem .eco-map-wrapper:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 40px rgba(6, 35, 69, 0.08), 0 4px 10px rgba(6, 35, 69, 0.04) !important;
}

.infoptic-ecosystem .infoptic-ecosystem__diagram-card svg,
.infoptic-ecosystem .eco-map-wrapper svg,
.infoptic-ecosystem .infoptic-ecosystem__diagram-img,
.infoptic-ecosystem .eco-map-wrapper img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 8px !important;
  object-fit: contain !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet Landscape & Below (max-width: 1024px) */
@media (max-width: 1024px) {
  .infoptic-ecosystem .infoptic-ecosystem__top,
  .infoptic-ecosystem .ecosystem-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .infoptic-ecosystem .infoptic-ecosystem__diagram-card,
  .infoptic-ecosystem .eco-map-wrapper {
    max-width: 680px !important;
    margin-inline: auto !important;
  }
}

/* Mobile (max-width: 680px) */
@media (max-width: 680px) {
  section.infoptic-ecosystem,
  .elementor-widget-infoptic-ecosystem section.infoptic-ecosystem {
    padding: 56px 0;
  }

  .infoptic-ecosystem .infoptic-ecosystem__container,
  .infoptic-ecosystem .container {
    padding: 0 16px !important;
  }

  .infoptic-ecosystem .infoptic-ecosystem__top,
  .infoptic-ecosystem .ecosystem-container {
    gap: 24px !important;
  }

  .infoptic-ecosystem .infoptic-ecosystem__channels-card {
    padding: 4px 16px !important;
    border-radius: 14px !important;
  }

  .infoptic-ecosystem .infoptic-ecosystem__channel-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 16px 0 !important;
    align-items: flex-start !important;
  }

  .infoptic-ecosystem .infoptic-ecosystem__channel-cta {
    justify-content: flex-start !important;
    margin-top: 2px !important;
  }

  .infoptic-ecosystem .infoptic-ecosystem__diagram-card,
  .infoptic-ecosystem .eco-map-wrapper {
    max-width: 100% !important;
    border-radius: 14px !important;
    padding: 12px !important;
  }

  .infoptic-ecosystem h2.infoptic-ecosystem__badge-title,
  .elementor-widget-infoptic-ecosystem h2.infoptic-ecosystem__badge-title,
  .infoptic-ecosystem .section-header-block h2 {
    font-size: 1rem !important;
    padding: 8px 16px 8px 12px !important;
  }
}
