

/* =========================================
   Home Image Size
   ========================================= */

/* Ensure slide is a positioning context */
#home .slide-wrap {
  position: relative;
}

/* Hero wrapper: span viewport, center content */
#home .software-hero-image {
  position: relative;
  z-index: 5;
  width: 100vw;                 /* critical for % scaling */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: 20px;
}

/* Image scaling + opacity fix */
#home .software-hero-image img {
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* Responsive down-scaling */
@media (max-width: 1600px) {
  #home .software-hero-image img { width: 100%; }
}

@media (max-width: 1200px) {
  #home .software-hero-image img { width: 100%; }
}

@media (max-width: 900px) {
  #home .software-hero-image img { width: 100%; }
}

@media (max-width: 600px) {
  #home .software-hero-image img { width: 100%; }
}


/* =========================================
   Contact Form deep-link (footer -> accordion)
   ========================================= */

/* So the accordion header doesn't get hidden under the fixed toolbar */
#contact-form {
  scroll-margin-top: calc(var(--toolbar-h, 80px) + 20px);
}


/* =========================================
   Remove focus/active outline from Contact Form jump link
   ========================================= */

#contact a.js-open-contact-form,
#contact a.js-open-contact-form:focus,
#contact a.js-open-contact-form:active {
  outline: none;
  box-shadow: none;
}

/* Optional: only remove focus when triggered by mouse */
#contact a.js-open-contact-form:focus:not(:focus-visible) {
  outline: none;
}

#contact a.js-open-contact-form {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================
   Connect compare (table + cards)
========================================= */

#connect-compare { color: var(--light-1); }

/* Wrapper */
#connect-compare .connect-compare-wrapper{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
  border: 1px solid var(--dark-4);
  border-radius: 8px;
}

/* Table base */
#connect-compare .connect-compare-table{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--fs-0);
  white-space: normal;
}

#connect-compare .connect-compare-table th,
#connect-compare .connect-compare-table td{
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--dark-4);
  text-align: left;
  vertical-align: top;
  font-weight: 300;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#connect-compare .connect-compare-table thead th{
  background-color: #000;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Indent feature rows (table view only) */
#connect-compare .connect-compare-table tbody tr:not(.connect-section) td:first-child {
  padding-left: 20px;
}

#connect-compare .connect-compare-table tbody tr:not(.connect-section) .col1-inner {
  padding-left: 20px;
}

#connect-compare .connect-compare-table tbody tr:nth-child(even){
  background-color: rgba(255,255,255,0.02);
}

#connect-compare .connect-compare-table tbody tr:hover{
  background-color: rgba(192,181,164,0.06);
}

/* Column widths (same 50/50 style as EX) */
#connect-compare .connect-compare-table th:nth-child(1),
#connect-compare .connect-compare-table td:nth-child(1){ width: 50%; }

#connect-compare .connect-compare-table th:nth-child(2),
#connect-compare .connect-compare-table td:nth-child(2){ width: 50%; }

/* Feature title wrapper */
#connect-compare .col1-inner{
  font-weight: 300;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Section heading rows (your “major headings”) */
#connect-compare .connect-section td{
  padding-top: 26px;
  padding-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #c0b5a4;
  background: rgba(255,255,255,0.02);
  border-bottom: none;
}

/* Dropdown styling (same vibe as EX) */
#connect-compare .connect-view-select{
  width: 355px;
  max-width: calc(100% - 2rem);
  margin: 0 auto 1.25rem auto;
}

#connect-compare .connect-select{
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--dark-4);
  color: var(--light-1);
  border: 1px solid var(--brown-1);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

/* Cards (JS toggles display) */
#connect-compare .connect-compare-cards{
  display: none;
  max-width: 900px;
  margin: 0 auto;
  gap: 14px;
}

/* Card */
#connect-compare .connect-card{
  border: 1px solid var(--dark-4);
  border-radius: 10px;
  background: #000;
  padding: 14px 16px;
}

/* Card title */
#connect-compare .connect-card-title{
  display: block;
  width: 100%;
  font-weight: 700 !important;
  font-size: var(--fs-1) !important;
  line-height: 1.25 !important;
  margin-bottom: 10px;
}

/* Row in card */
#connect-compare .connect-card-row{
  display: block;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

#connect-compare .connect-card-row:first-of-type{
  border-top: none;
  padding-top: 0;
}

/* Label + value */
#connect-compare .connect-card-label{
  font-weight: 600;
  opacity: 0.95;
  color: #c0b5a4;
}

#connect-compare .connect-card-value{
  padding-left: 10px;
  font-weight: 300;
  font-size: var(--fs-0); 
  line-height: 1.7;
}

#connect-compare .connect-section-card{
  border: 1px solid var(--dark-4);
  border-radius: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  color: #c0b5a4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}


/* =========================================
   Rugged Tablet Image
========================================= */
#connect-compare .connect-hero-img {
  max-width: 1000px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}




/* =========================================
   Catmacs Connect Grid
   ========================================= */

/* Inner grid wrapper (tablet+ default) */
#ccintro-grid .ccintro-grid-inner{
  display: grid;
  grid-template-columns: 1fr;          /* 1 column */
  grid-template-rows: auto auto auto;  /* 3 rows */
  row-gap: 18px;
  width: 100%;
}

/* All main cells v-align start */
#ccintro-grid .ccintro-grid-inner .acc-cell{
  align-self: start;                  /* v-align start within the grid row */
}

/* === Cell 1 === */
#ccintro-grid .ccintro-grid-inner .acc-1{
  text-align: left;
  padding-bottom: 20px;
}

/* === Cell 2 Nested Grid === */
#ccintro-grid .ccintro-grid-inner .acc-nested{
  display: grid;
  grid-template-columns: 45% 55%;
  column-gap: 0px;
  width: 100%;
  align-items: stretch;               /* row height set by image */
}

/* Nested cell 1: image v-start, h-left */
#ccintro-grid .ccintro-grid-inner .acc-n1{
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

#ccintro-grid .ccintro-grid-inner .acc-n1 img{
  display: block;
  max-width: 100%;
  height: auto;
}

/* Nested cell 2: text v-center, h-center */
#ccintro-grid .ccintro-grid-inner .acc-n2{
  display: flex;
  align-items: center;                /* v-center to image height */
  justify-content: center;            /* FIX: was invalid 'left' */
  text-align: center;
}

/* Cell 3: text v-start, h-center */
#ccintro-grid .ccintro-grid-inner .acc-3{
  text-align: center;
}

/* Hide mobile line by default (tablet+) */
#ccintro-mobile{
  display: none;
}

#ccintro-grid h2,
#ccintro-grid h3{
  font-size: clamp(28px, 6vw, 100px);
}

@media (max-width: 700px){

  /* Hide ONLY the inner grid, not the whole section */
  #ccintro-grid .ccintro-grid-inner{
    display: none;
  }

  /* Show mobile single-line version */
  #ccintro-mobile{
    display: block;
    text-align: center;
	line-height: 1.15;
  }

  #ccintro-mobile a{
    line-height: inherit;
    margin: 0;
    padding: 0;
    display: inline;
  }
}




/* =========================================
   Nexus Cloud
========================================= */
#nexus-cloud {
  position: relative;
  overflow: hidden;           /* clip any scaled children */
  isolation: isolate;         /* start a new stacking context */
  z-index: 0;                 /* keep it within normal stacking order */
  padding-block: clamp(40px, 8vh, 120px); /* spacing without overlap */
}

/* New static layout */
#nexus-cloud .cloud-inner {
  position: relative;
  overflow: hidden;
}

#nexus-cloud .cloud-image{
  width: clamp(400px, 70vw, 1100px);
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 992px) {
  #nexus-cloud {
    padding-block: clamp(32px, 7vh, 96px);
  }
}



/* =========================
   Nexus Cloud: 3-column grid
   ========================= */

#nexus-cloud .nexus-cloud-grid-3{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 columns, 1fr each */
  gap: 20px;
  align-items: start; /* v-align top by default */
}

/* Column 1: top + center */
#nexus-cloud .nexus-cloud-grid-3__col--center{
  display: flex;
  flex-direction: column;
  align-items: center;   /* h-align center */
  justify-content: flex-start; /* v-align top */
  text-align: center;
}

/* Column 2: inner 3-row grid (each row top + center) */
#nexus-cloud .nexus-cloud-mid{
  display: grid;
  grid-template-rows: auto auto auto;
  row-gap: 20px;
  align-items: start;
}

#nexus-cloud .nexus-cloud-mid__row{
  display: flex;
  flex-direction: column;
  align-items: center;      /* h-align center */
  justify-content: flex-start; /* v-align top */
  text-align: center;
}

/* Column 3: top + left */
#nexus-cloud .nexus-cloud-grid-3__col--left{
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* h-align left */
  justify-content: flex-start; /* v-align top */
  text-align: left;
}

/* Reduce images in column 1 and column 2 */
#nexus-cloud .nexus-cloud-grid-3__col--center img,
#nexus-cloud .nexus-cloud-mid__row img{
  max-width: 80%;   /* 20% smaller than natural size */
  height: auto;
  display: block;
}


/* Ordered list numbering in Nexus Cloud column 3 */
#nexus-cloud .nexus-cloud-grid-3__col--left ol{
  list-style-type: decimal;
  list-style-position: inside; /* move numbers into padding box */
  padding-left: 15px;          /* indent numbers */
  margin-left: 0;
}

/* Fine-tune text alignment under the numbers */
#nexus-cloud .nexus-cloud-grid-3__col--left ol li{
  padding-left: 0;
}

@media (max-width: 992px){

  #nexus-cloud .nexus-cloud-grid-3{
    grid-template-columns: 1fr;
    row-gap: 35px;
  }

  #nexus-cloud .nexus-cloud-grid-3__col--center img{
    transform: none !important;
    width: clamp(180px, 60%, 320px);
    height: auto;
    display: block;
    margin: 0 auto;
  }

  #nexus-cloud .nexus-cloud-mid__row picture{
    width: 100%;
    display: block;
  }

  #nexus-cloud .nexus-cloud-mid__row img{
    transform: none !important;
    width: clamp(160px, 70%, 300px);
    height: auto;
    display: block;
    margin: 0 auto;
  }

  #nexus-cloud .nexus-cloud-mid{
    row-gap: 30px;
  }
  
  #nexus-cloud .nexus-cloud-mid__row:last-child{
    margin-bottom: 40px;
  }
}


/* =========================
   Nexus Cloud: 2x2 mini grid (column 3)
   ========================= */

#nexus-cloud .nexus-cloud-mini-grid{
  display: grid;
  grid-template-columns: 70px 1fr;
  row-gap: 40px;
  column-gap: 10px;
  margin-top: 40px;   /* space above the grid */
  align-items: start; /* v-align top */
}

/* Column 1: top + center */
#nexus-cloud .nexus-cloud-mini-grid__icon{
  display: flex;
  align-items: flex-start;   /* v-align top */
  justify-content: left;   /* h-align center */
  text-align: center;
}

/* Column 2: top + left */
#nexus-cloud .nexus-cloud-mini-grid__text{
  display: flex;
  flex-direction: column;   /* stack text and image */
  align-items: flex-start;   /* v-align top */
  justify-content: flex-start;
  text-align: left;
  font-size: var(--fs-1);
  font-weight: 300;
}

#nexus-cloud .nexus-cloud-mini-grid__text img{
  width: 160px;      /* image size */
  height: auto;      /* preserve aspect ratio */
  margin-top: 10px;  /* space above the image */
  display: block;
}

/* Optional: icon sizing */
#nexus-cloud .nexus-cloud-mini-grid__icon img{
  width: 70px;
  height: auto;
  display: block;
}





/* =========================================
   Nexus Table
   ========================================= */


#nexus-compare {
  color: var(--light-1);
}

/* Wrapper: no horizontal scrolling */
#nexus-compare .nexus-compare-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
  border: 1px solid var(--dark-4);
  border-radius: 8px;
}

/* Table base: RFID typography + spacing */
#nexus-compare .nexus-compare-table {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--fs-0);
  white-space: normal;
}

/* Cells control row rhythm */
#nexus-compare .nexus-compare-table th,
#nexus-compare .nexus-compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--dark-4);
  text-align: left;
  vertical-align: top;
  font-weight: 300;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Header row (RFID style) */
#nexus-compare .nexus-compare-table thead th {
  background-color: #000;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Alternating rows + hover */
#nexus-compare .nexus-compare-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

#nexus-compare .nexus-compare-table tbody tr:hover {
  background-color: rgba(192, 181, 164, 0.06);
}

/* Desktop default: 35% / 65% */
#nexus-compare .nexus-compare-table th:nth-child(1),
#nexus-compare .nexus-compare-table td:nth-child(1) {
  width: 50%;
}

#nexus-compare .nexus-compare-table th:nth-child(2),
#nexus-compare .nexus-compare-table td:nth-child(2) {
  width: 50%;
}

/* Feature title wrapper */
#nexus-compare .col1-inner {
  font-weight: 300;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Smoothly move towards 50/50 */
@media (max-width: 1200px) {
  #nexus-compare .nexus-compare-table th:nth-child(1),
  #nexus-compare .nexus-compare-table td:nth-child(1) {
    width: 50%;
  }

  #nexus-compare .nexus-compare-table th:nth-child(2),
  #nexus-compare .nexus-compare-table td:nth-child(2) {
    width: 50%;
  }
}

@media (max-width: 900px) {
  #nexus-compare .nexus-compare-table th:nth-child(1),
  #nexus-compare .nexus-compare-table td:nth-child(1) {
    width: 50%;
    padding-left: 8px;
    padding-right: 8px;
  }

  #nexus-compare .nexus-compare-table th:nth-child(2),
  #nexus-compare .nexus-compare-table td:nth-child(2) {
    width: 50%;
  }
}

/* Mobile: 50 / 50 */
@media (max-width: 600px) {
  #nexus-compare .nexus-compare-table th:nth-child(1),
  #nexus-compare .nexus-compare-table td:nth-child(1),
  #nexus-compare .nexus-compare-table th:nth-child(2),
  #nexus-compare .nexus-compare-table td:nth-child(2) {
    width: 50%;
  }
}

/* Disclaimer sits under the table and matches table width */
#nexus-compare .nexus-compare-disclaimer {
  max-width: 1200px;          /* same as wrapper */
  margin: 10px auto 0 auto;   /* centered, small gap above */
  padding: 10px 16px 0 16px;  /* light inset */
  text-align: justify;
  opacity: 0.85;
  line-height: 1.6;
}

/* On small screens, justify can look weird — optional */
@media (max-width: 600px) {
  #nexus-compare .nexus-compare-disclaimer {
    text-align: left;
  }
}

/* Match table disclaimer typography in card view */
#nexus-compare .nexus-compare-card-footer {
  font-size: var(--fs-1);
  font-weight: 300;
  line-height: 1.6;
  text-align: center;
}



/* =========================================
   Nexus compare footer — table view (no borders)
   ======================================== */

#nexus-compare .nexus-compare-footer td {
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  background: transparent;
}

#nexus-compare .nexus-compare-footer {
  border-bottom: none !important;
}


/* ==========================================================
   Nexus mobile cards
   ========================================================== */

/* Cards container (JS toggles display) */
#nexus-compare .nexus-compare-cards {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  gap: 14px;
}

/* Card */
#nexus-compare .nexus-card {
  border: 1px solid var(--dark-4);
  border-radius: 10px;
  background: #000;
  padding: 14px 16px;
}

/* Nexus card title */
#nexus-compare .rfid-card-title {
  font-weight: 700 !important;
  font-size: var(--fs-1) !important;
  line-height: 1.25 !important;
  margin-bottom: 10px;
}

/* Nexus card title — force match */
#nexus-compare .nexus-card .nexus-card-title {
  display: block;
  width: 100%;
  font-weight: 700 !important;
  font-size: var(--fs-1) !important;
  line-height: 1.25 !important;
  margin-bottom: 10px;
}

/* Row in card */
#nexus-compare .nexus-card-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 10px;
}

#nexus-compare .nexus-card-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* Label + value */
#nexus-compare .nexus-card-label {
  font-weight: 600;
  opacity: 0.95;
  color: #c0b5a4;
}

#nexus-compare .nexus-card-value {
  padding-left: 10px;
  font-weight: 300;
}

#nexus-compare .nexus-card-value br {
  content: "";
  display: block;
  margin-bottom: 6px;
  padding-left: 10px;
}

/* If col1-inner ever appears inside a card title, don’t let it override typography */
#nexus-compare .nexus-card-title .col1-inner {
  font-weight: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  width: auto !important;
  max-width: none !important;
}



/* =========================================
   Dropdown styling
   ========================================= */

#nexus-compare .nexus-view-select {
  width: 355px;
  max-width: calc(100% - 2rem);
  margin: 0 auto 1.25rem auto;
}

#nexus-compare .nexus-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--dark-4);
  color: var(--light-1);
  border: 1px solid var(--brown-1);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}



/* ==============================================
   Nexus EASY GRID 
   ============================================== */

		#nexus-easy .nexus-easy-grid {
		  display: grid;
		  grid-template-columns: repeat(6, minmax(0, 1fr));  /* 6 equal columns */
		  gap: 1.5rem;
		  align-items: stretch;
		  justify-items: center;
		}

		#nexus-easy .nexus-easy-item {
		  text-align: center;
		  /* Optional styling: */
		  /* padding: 1rem; */
		  /* border: 1px solid rgba(255,255,255,0.08); */
		}

		/* < 992px 3 columns (2 rows, 3 cols = 2x3) */
		@media (max-width: 992px) {
		  #nexus-easy .nexus-easy-grid {
			grid-template-columns: repeat(3, minmax(0, 1fr));
		  }
		}

		/* < 768px 2 columns (3 rows, 2 cols = 3x2) */
		@media (max-width: 768px) {
		  #nexus-easy .nexus-easy-grid {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		  }
		}




/* =========================
   LINK Software
   ========================= */

#software .software-grid-3-wrap{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 100px;
  padding-left: 10px;
  padding-right: 10px;
}

#software .software-grid-3{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;

  /* Shared row tracks:
     1fr (top spacer)
     row1 content
     20px gap
     row2 content
     40px gap
     row3 content
     20px gap
     row4 content
     1fr (bottom spacer)
  */
  grid-template-rows: 1fr auto 20px auto 40px auto 20px auto 1fr;

  column-gap: 20px;
  align-items: stretch;
}

/* Column 2 image: true center in both axes */
#software .software-col--image{
  grid-column: 2;
  grid-row: 1 / -1;      /* still spans all rows */
  display: flex;
  align-items: flex-start; /* v-align TOP */
  justify-content: center; /* h-align CENTER */
  text-align: center;
}
#software .software-col--image img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Make left + right column wrappers not “block” the parent grid placement */
#software .software-col--left,
#software .software-col--right{
  display: contents;
}

/* Make the stack wrapper not “block” the parent grid placement */
#software .software-stack{
  display: contents;
}

/* Place Column 1 items into shared rows */
#software .software-col--left .software-r1{ grid-column: 1; grid-row: 2; }
#software .software-col--left .software-r2{ grid-column: 1; grid-row: 4; }
#software .software-col--left .software-r3{ grid-column: 1; grid-row: 6; }
#software .software-col--left .software-r4{ grid-column: 1; grid-row: 8; }

/* Place Column 3 items into shared rows */
#software .software-col--right .software-r1{ grid-column: 3; grid-row: 2; }
#software .software-col--right .software-r2{ grid-column: 3; grid-row: 4; }
#software .software-col--right .software-r3{ grid-column: 3; grid-row: 6; }
#software .software-col--right .software-r4{ grid-column: 3; grid-row: 8; }

/* Rounded rectangles (text centered inside rectangles only) */
#software .software-bevel{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 16px;
  color: #ffffff;
  border-radius: 10px;
}

/* Colors */
#software .software-bevel--blue   { background: #404897; }
#software .software-bevel--pink   { background: #da6772; }
#software .software-bevel--purple { background: #815e9f; }
#software .software-bevel--teal   { background: #4c87a8; }

/* Bullet rows: top-left, and remove UL default margin so spacing is exact */
#software .software-bullets{
  text-align: left;
}
#software .software-bullets ul{
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
}
#software .software-bullets li{
  margin-bottom: 10px;
}

/* <= tablet: hide middle image col, stack col 3 under col 1 */
@media (max-width: 992px){
  #software .software-grid-3{
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 40px;
  }

  #software .software-col--image{
    display: none;
  }

  /* Return to normal stacked flow */
  #software .software-col--left,
  #software .software-col--right{
    display: block;
	padding-left: 30px;
	padding-right: 30px;
  }
  #software .software-stack{
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* Restore your gap rhythm on mobile */
  #software .software-stack > :nth-child(2){ margin-top: 20px; }
  #software .software-stack > :nth-child(3){ margin-top: 40px; }
  #software .software-stack > :nth-child(4){ margin-top: 20px; }
}


/* =========================================
   #software: features-style grid
   ========================================= */

/* Match Bootstrap container/col horizontal gutters */
#software-icons .software-features-grid-wrap{
  width: 100%;
  max-width: 1200px;                 /* keep your chosen max-width */
  margin: 0 auto;
  padding-top: 0px;

}

#software-icons .software-features-grid{
  display: grid;
  grid-template-columns: 15% 35% 15% 35%;
  column-gap: 0;
  row-gap: 40px;
  align-items: center;
}

/* Cell base */
#software-icons .software-feat{
  display: block;     /* critical: NOT flex */
  align-self: start;  
}

/* Icon cells */
#software-icons .software-feat.sm{
  text-align: center;
}

/* Text cells */
#software-icons .software-feat.lg{
  text-align: left;
  font-size: var(--fs-2);
  font-weight: 300;
}

/* Keep paragraphs tight */
#software-icons .software-features-grid p{
  margin: 0;
}

#software-icons .software-feat.sm img{
  width: 60%;
  height: auto;
  display: inline-block;
}

/* <= 1200px: match ex-features-grid behaviour exactly */
@media (max-width: 1200px){

  /* Font-size step-down (same as features) */
  #software-icons .software-feat.lg{
    font-size: var(--fs-1) !important;
	padding-right: 20px;
  }

  /* Collapse to 2 columns (30 / 70) */
  #software-icons .software-features-grid{
    grid-template-columns: 30% 70%;
  }

  /* Reorder to match ex-features-grid tablet behaviour
     Desktop order: 1 2 3 4 / 5 6 7 8
     Tablet order : 1 2 / 5 6 / 3 4 / 7 8
  */
  #software-icons .software-features-grid > :nth-child(1) { grid-row: 1; grid-column: 1; }
  #software-icons .software-features-grid > :nth-child(2) { grid-row: 1; grid-column: 2; }

  #software-icons .software-features-grid > :nth-child(5) { grid-row: 2; grid-column: 1; }
  #software-icons .software-features-grid > :nth-child(6) { grid-row: 2; grid-column: 2; }

  #software-icons .software-features-grid > :nth-child(3) { grid-row: 3; grid-column: 1; }
  #software-icons .software-features-grid > :nth-child(4) { grid-row: 3; grid-column: 2; }

  #software-icons .software-features-grid > :nth-child(7) { grid-row: 4; grid-column: 1; }
  #software-icons .software-features-grid > :nth-child(8) { grid-row: 4; grid-column: 2; }
}


/* =========================================
   #software-icons: 2-col image + 4-row grid
   ========================================= */

#software-icons .software-icons-2col-wrap{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 100px; /* space below software-features-grid-wrap */
}

#software-icons .software-icons-2col{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns, 1 row */
  column-gap: 40px;
  align-items: start; /* v-align top for both columns */
}

/* Col 1: image top + centered */
#software-icons .software-icons-2col__img{
  display: flex;
  align-items: flex-start;  /* v-align */
  justify-content: flex-end;  /* h-align */
  text-align: center;
}

#software-icons .software-icons-2col__img img{
  width: 70%;
  max-width: 5000px;
  height: auto;
  display: block;
}

/* Col 2: six-row grid top/left */
#software-icons .software-icons-2col__list{
  display: flex;
  align-items: flex-start; /* v-align top */
  justify-content: flex-start;
  text-align: left;
}

#software-icons .software-icons-6rows{
  width: 100%;
  display: grid;
  grid-template-rows: repeat(6, auto);
  row-gap: 20px; /* spacing between the 6 rows */
  align-items: start;
}

#software-icons .software-icons-6rows__row{
  text-align: left;
}

@media (max-width: 992px){
  /* Stack columns */
  #software-icons .software-icons-2col{
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
  /* Center image horizontally */
  #software-icons .software-icons-2col__img{
    justify-content: center;
  }
  /* Center the list column */
  #software-icons .software-icons-2col__list{
    justify-content: center;
  }
  /* Center the 6-row block */
  #software-icons .software-icons-6rows{
    margin: 0 auto;
  }
  /* Override the desktop row alignment */
  #software-icons .software-icons-6rows__row{
    text-align: center;
  }
}


/* =========================================
   Download image swap (fade on hover)
   ========================================= */

#software-icons .download-swap{
  position: relative;
  display: inline-block;

  /* give the swap a real, centerable box */
  width: 240px;
  max-width: 100%;
}

#software-icons .download-swap img{
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease;
}

/* Hover image (initially hidden) */
#software-icons .download-swap img:last-child{
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Fade swap on hover */
#software-icons .download-swap:hover img:last-child{
  opacity: 1;
}

#software-icons .download-swap:hover img:first-child{
  opacity: 0;
}

@media (max-width: 992px){
  /* Center each row's content */
  #software-icons .software-icons-6rows__row{
    display: flex;
    justify-content: center;  /* h-align */
    text-align: center;
  }
}



/* =========================================
   Grids L-R & R-L
========================================= */

/* Grid */
.cg-grid{
  display: grid;
  grid-template-columns: 1fr;      /* mobile */
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1200px){
  .cg-grid{
    grid-template-columns: 1fr 1fr; /* tablet+ */
    align-items: start;             /* v-align start across row */
  }
}

/* Base cell: fill its column, no centering by default */
.cg-cell{
  width: 100%;
  align-self: start;               /* v-align start */
}

/* IMAGE cell: v-start, h-center */
.cg-cell--image{
  display: flex;
  justify-content: center;         /* h-center */
  align-items: flex-start;         /* v-start */
}

.cg-cell--image img{
  display: block;
  max-width: 100%;
  height: auto;
}

/* TEXT cell: v-start, h-left */
.cg-cell--text{
  display: flex;
  justify-content: flex-start;     /* h-left */
  align-items: flex-start;         /* v-start */
  text-align: left;
}

/* If your text content is wrapped, ensure it can expand */
.cg-cell--text > *{
  width: 100%;
}


@media (min-width: 1200px){
  .cg-grid-swap{
    direction:rtl;
  }
  .cg-grid-swap > *{
    direction:ltr;
  }
}



/* =========================================
   Text Hyperlink
========================================= */

/* Text link hover effect */
.text-link{
  color: #c0b5a4;
  transition: color 0.25s ease;
}

.text-link:hover{
  color: #f9f9f9;
}


/* =========================================
   Hide <br>
========================================= */
/* Hide by default */
.desktop-break {
  display: none;
}

/* Show line break only on >=1200px */
@media (min-width: 1200px) {
  .desktop-break {
    display: block;
  }
}




/* =========================================
   #your-data image lightbox
========================================= */

#your-data .cg-cell--image img{
  cursor: zoom-in;
}

/* Overlay */
.yd-lightbox{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.85);
}

.yd-lightbox.is-open{
  display: flex;
}

.yd-lightbox__img{
  max-width: min(1400px, 96vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
}

.yd-lightbox__close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 26px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
}

body.yd-no-scroll{
  overflow: hidden;
}





