/* ============================================================
   Aptomix — Technology Section CSS
   Enqueued by: Aptomix_Technology_Widget::get_style_depends()
   Google Fonts: enqueued globally via wp_enqueue_scripts
   ============================================================ */

/* ── Scoped reset ────────────────────────────────────────────── */
.aptomix-technology *,
.aptomix-technology *::before,
.aptomix-technology *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Section wrapper ─────────────────────────────────────────── */
.aptomix-technology {
  font-family: 'DM Sans', sans-serif;
  color: #1A2E3B;
  scroll-margin-top: 72px;
  --tech-bg: transparent;
  --tech-text: #3D5166;
  --tech-title: #0D1B2A;
  --tech-subtitle: #00B0F0;
  --tech-table-bg: #ffffff;
  --tech-cell-bg: #ffffff;
  --tech-cell-alt-bg: #F0F8FC;
  --tech-cell-hover-bg: #EAF5FC;
  --tech-border: #E0EAEF;
  --tech-border-width: 1px;
  --tech-bluebar-bg: #00B0F0;
  --tech-bluebar-text: #ffffff;
  --tech-bluebar-hover-bg: rgba(0, 176, 240, 0.18);
  --tech-bullet: #78C8E8;
  --tech-link: #00B0F0;
  --tech-link-hover: #0096CC;
  --tech-image-cell-bg: rgba(120, 200, 232, 0.06);
  --tech-note-bg: #EBF5FA;
  --tech-note-hover-bg: #D8EDF6;
}

/* ── Shared container ────────────────────────────────────────── */
.aptomix-technology__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Section header block (above first sub-section) ─────────── */
.aptomix-technology__head {
  padding: 100px 0 0;
  margin-bottom: 0;
}

.aptomix-technology__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #00B0F0;
  margin-bottom: 14px;
}

.aptomix-technology__heading {
  font-family: 'Outfit', sans-serif;
  font-size: 46px;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: -1px;
  line-height: 1.1;
  position: relative;
  padding-left: 20px;
  margin-bottom: 64px;
}

/* Blue vertical accent bar — consistent with About/Products */
.aptomix-technology__heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(to bottom, #00B0F0 0%, rgba(0, 176, 240, 0.5) 100%);
  border-radius: 2px;
}

/* ── Sub-sections ────────────────────────────────────────────── */
.aptomix-technology__subsection {
  padding: 72px 0;
}

/* Alternating background: gray / white / gray */
.aptomix-technology__problem    { background: #F4F7FA; }
.aptomix-technology__solution   { background: #ffffff; }
.aptomix-technology__comparison { background: #F4F7FA; }

/* ── Sub-section header ──────────────────────────────────────── */
.aptomix-technology__sub-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}

.aptomix-technology__sub-number {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00B0F0;
  flex-shrink: 0;
}

.aptomix-technology__sub-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: -0.5px;
  line-height: 1.2;
  position: relative;
  padding-bottom: 12px;
}

.aptomix-technology__sub-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #00B0F0;
  border-radius: 1px;
}

/* ── H4 headings ─────────────────────────────────────────────── */
.aptomix-technology__h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #0D1B2A;
  letter-spacing: -0.2px;
  margin-bottom: 16px;
  margin-top: 48px;
}

.aptomix-technology__h4:first-of-type {
  margin-top: 0;
}

/* ── Body paragraphs ─────────────────────────────────────────── */
.aptomix-technology__body {
  font-size: 16.5px;
  line-height: 1.78;
  color: #3D5166;
  max-width: 860px;
  margin-bottom: 32px;
}

.aptomix-technology__body p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin-bottom: 0;
}

.aptomix-technology__body strong {
  color: #0D1B2A;
  font-weight: 600;
}

.aptomix-technology__body--intro {
  max-width: 740px;
  font-size: 17px;
}

/* ═══════════════════════════════════════════════════════════════
   THE PROBLEM — Limitation cards
   ═══════════════════════════════════════════════════════════════ */

/* 2-col limitation cards grid */
.aptomix-technology__limitations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
  margin-top: 36px;
}

.aptomix-technology__limit-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.aptomix-technology__limit-img {
  overflow: hidden;
  height: 200px;
  background: #0D1B2A;
}

.aptomix-technology__limit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.aptomix-technology__limit-content {
  padding: 28px 28px 32px;
}

.aptomix-technology__limit-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.aptomix-technology__limit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aptomix-technology__limit-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: #3D5166;
  padding-left: 18px;
  position: relative;
}

.aptomix-technology__limit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #78C8E8;
}

/* ── 2-col receptor type comparison ──────────────────────────── */
.aptomix-technology__receptor-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.aptomix-technology__receptor-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 32px 28px;
  border-top: 3px solid #78C8E8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.aptomix-technology__receptor-fig {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(120, 200, 232, 0.40);
  background: rgba(120, 200, 232, 0.06);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aptomix-technology__receptor-fig img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.aptomix-technology__receptor-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.aptomix-technology__receptor-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.aptomix-technology__receptor-points li {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.aptomix-technology__receptor-points li span {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.aptomix-technology__receptor-pro       { color: #1A2E3B; }
.aptomix-technology__receptor-pro  span { color: #00B0F0; }
.aptomix-technology__receptor-con       { color: #3D5166; }
.aptomix-technology__receptor-con  span { color: #888; }

/* ═══════════════════════════════════════════════════════════════
   THE SOLUTION — Feature grid + diagrams
   ═══════════════════════════════════════════════════════════════ */

/* 6-feature grid on dark background */
.aptomix-technology__solution-features {
  background: #060E18;
  border-radius: 12px;
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 40px;
  margin-top: 0;
}

.aptomix-technology__solution-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Remove border from last row */
.aptomix-technology__solution-feature:nth-child(5),
.aptomix-technology__solution-feature:nth-child(6) {
  border-bottom: none;
}

/* Remove right border from right-column items */
.aptomix-technology__solution-feature:nth-child(even) {
  border-right: none;
}

.aptomix-technology__solution-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 176, 240, 0.12);
  border: 1px solid rgba(0, 176, 240, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.aptomix-technology__solution-feature > div:last-child {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
}

.aptomix-technology__solution-feature p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
}

.aptomix-technology__solution-feature p strong,
.aptomix-technology__solution-feature > div:last-child strong {
  color: #ffffff;
  font-weight: 600;
}

/* ── Mechanism / technology diagrams ────────────────────────── */
.aptomix-technology__diagrams {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin: 40px 0;
  align-items: start;
}

.aptomix-technology__diagram {
  background: #F4F7FA;
  border-radius: 10px;
  overflow: hidden;
}

.aptomix-technology__diagram img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.aptomix-technology__diagram figcaption {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(26, 46, 59, 0.55);
  letter-spacing: 0.5px;
  padding: 10px 16px 14px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   WHY CHOOSE APTOMIX — Comparison table
   ═══════════════════════════════════════════════════════════════ */

/* Scrollable wrapper for mobile */
.aptomix-technology__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  margin-top: 32px;
  outline: none;
}

.aptomix-technology__table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  color: #1A2E3B;
  background: #ffffff;
}

/* Header row */
.aptomix-technology__table thead tr {
  background: #0D1B2A;
}

.aptomix-technology__table thead th {
  padding: 14px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  border: none;
  white-space: nowrap;
}

/* APTOMIX header cell — stands out */
.aptomix-technology__table-aptomix-header {
  background: #00B0F0 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  letter-spacing: 1.5px;
}

/* Row label header (empty top-left) */
.aptomix-technology__table-rowlabel-header {
  background: #060E18 !important;
  min-width: 160px;
}

/* Body cells */
.aptomix-technology__table tbody td {
  padding: 14px 16px;
  vertical-align: top;
  border: 1px solid #E0EAEF;
  line-height: 1.55;
}

/* Alternating row bg */
.aptomix-technology__table tbody tr:nth-child(even) td {
  background: #F0F8FC;
}

.aptomix-technology__table tbody tr:nth-child(even) td.aptomix-technology__table-aptomix {
  background: rgba(0, 176, 240, 0.14);
}

/* Row label cells */
.aptomix-technology__table-label {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0D1B2A;
  background: #EBF5FA !important;
  white-space: nowrap;
  border-color: #C8DDE8 !important;
}

/* APTOMIX data column */
.aptomix-technology__table-aptomix {
  background: rgba(0, 176, 240, 0.08);
  font-weight: 500;
  color: #0A2235;
  border-left: 2px solid rgba(0, 176, 240, 0.30) !important;
  border-right: 2px solid rgba(0, 176, 240, 0.30) !important;
}

/* Hover highlight on rows */
.aptomix-technology__table tbody tr:hover td {
  background: #EAF5FC;
}

.aptomix-technology__table tbody tr:hover td.aptomix-technology__table-aptomix {
  background: rgba(0, 176, 240, 0.18);
}

.aptomix-technology__table tbody tr:hover td.aptomix-technology__table-label {
  background: #D8EDF6 !important;
}

/* ── Responsive ──────────────────────────────────────────────── */
.aptomix-technology {
  background: var(--tech-bg);
  color: var(--tech-text);
}

.aptomix-technology__heading,
.aptomix-technology__sub-heading,
.aptomix-technology__h4,
.aptomix-technology__limit-title,
.aptomix-technology__receptor-title,
.aptomix-technology__table-label {
  color: var(--tech-title);
}

.aptomix-technology__eyebrow,
.aptomix-technology__sub-number {
  color: var(--tech-subtitle);
}

.aptomix-technology__eyebrow svg circle {
  fill: var(--tech-subtitle);
}

.aptomix-technology__body,
.aptomix-technology__body p,
.aptomix-technology__limit-list li,
.aptomix-technology__receptor-pro,
.aptomix-technology__receptor-con,
.aptomix-technology__solution-feature p,
.aptomix-technology__solution-feature > div:last-child,
.aptomix-technology__table {
  color: var(--tech-text);
}

.aptomix-technology a {
  color: var(--tech-link);
}

.aptomix-technology a:hover {
  color: var(--tech-link-hover);
}

.aptomix-technology__limit-card,
.aptomix-technology__receptor-card,
.aptomix-technology__table-wrap,
.aptomix-technology__table {
  background: var(--tech-table-bg);
}

.aptomix-technology__limit-card,
.aptomix-technology__receptor-card {
  border-color: var(--tech-border);
  border-width: var(--tech-border-width);
}

.aptomix-technology__table tbody td {
  background: var(--tech-cell-bg);
  border-color: var(--tech-border);
  border-width: var(--tech-border-width);
}

.aptomix-technology__table tbody tr:nth-child(even) td {
  background: var(--tech-cell-alt-bg);
}

.aptomix-technology__table tbody tr:hover td,
.aptomix-technology__solution-feature:hover {
  background: var(--tech-cell-hover-bg);
}

.aptomix-technology__table-aptomix-header {
  background: var(--tech-bluebar-bg) !important;
  color: var(--tech-bluebar-text) !important;
}

.aptomix-technology__table-aptomix {
  border-left-color: var(--tech-bluebar-bg) !important;
  border-right-color: var(--tech-bluebar-bg) !important;
}

.aptomix-technology__table tbody tr:hover td.aptomix-technology__table-aptomix {
  background: var(--tech-bluebar-hover-bg);
}

.aptomix-technology__table-label {
  background: var(--tech-note-bg) !important;
  border-color: var(--tech-border) !important;
}

.aptomix-technology__table tbody tr:hover td.aptomix-technology__table-label {
  background: var(--tech-note-hover-bg) !important;
}

.aptomix-technology__limit-list li::before {
  background: var(--tech-bullet);
}

.aptomix-technology__solution-check {
  color: var(--tech-bullet);
}

.aptomix-technology__receptor-fig,
.aptomix-technology__limit-img,
.aptomix-technology__diagram {
  background: var(--tech-image-cell-bg);
}

@media (max-width: 1200px) {
  .aptomix-technology__heading  { font-size: 40px; }
  .aptomix-technology__diagrams { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .aptomix-technology__head            { padding-top: 80px; }
  .aptomix-technology__heading         { margin-bottom: 48px; }
  .aptomix-technology__subsection      { padding: 60px 0; }
  .aptomix-technology__solution-features { grid-template-columns: 1fr; }
  .aptomix-technology__solution-feature { border-right: none; }
  .aptomix-technology__solution-feature:nth-child(5) { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .aptomix-technology__solution-feature:last-child    { border-bottom: none; }
}

@media (max-width: 900px) {
  .aptomix-technology__heading         { font-size: 36px; letter-spacing: -0.6px; }
  .aptomix-technology__limitations     { grid-template-columns: 1fr; }
  .aptomix-technology__receptor-compare{ grid-template-columns: 1fr; }
  .aptomix-technology__diagrams        { grid-template-columns: 1fr; }
  .aptomix-technology__sub-heading     { font-size: 26px; }
}

@media (max-width: 600px) {
  .aptomix-technology__head                  { padding-top: 60px; }
  .aptomix-technology__container             { padding: 0 20px; }
  .aptomix-technology__heading               { font-size: 30px; padding-left: 16px; margin-bottom: 36px; }
  .aptomix-technology__subsection            { padding: 48px 0; }
  .aptomix-technology__solution-features     { padding: 32px 20px; }
  .aptomix-technology__solution-feature      { padding: 14px 12px; }
}
