/* =========================================================
   Shared page components (`tp-` classes)
   Reusable building blocks for the redesigned pages (Solutions,
   Solution detail, About, Projects, Project detail, Knowledge,
   Article detail). Loaded by those templates via
   techpro_enqueue_page_components() (functions.php); each page's
   own stylesheet only holds what is unique to that page.

   Breakpoints: 1360 (carousel arrows move inside), 1024 (tablet:
   2-column grids, stacked splits), 767 (mobile: 1 column).
   ========================================================= */

/* ---------- Layout ---------- */
.tp-page {
  background: #f1f3f5;
}
.tp-container {
  max-width: 1212px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.tp-section {
  padding: 80px 0 0;
}

/* ---------- Hero + breadcrumb ---------- */
.tp-hero {
  min-height: 300px;
}
.tp-hero h1 {
  max-width: 900px;
  padding: 0 20px;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.tp-breadcrumb-bar {
  background: #fff;
}
.tp-breadcrumb-bar .gp-breadcrumb {
  padding-top: 12px;
  padding-bottom: 12px;
  margin: 0 auto;
  font-size: 12px;
}
.tp-breadcrumb-bar .gp-breadcrumb a {
  color: inherit;
}
.tp-breadcrumb-bar .gp-breadcrumb strong {
  color: #121417;
  font-weight: 500;
}

/* ---------- Section heading ---------- */
.tp-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--green, #00a551);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tp-head {
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: center;
}
.tp-head--wide {
  max-width: 1110px;
}
.tp-head--left {
  max-width: 760px;
  margin: 0;
  text-align: left;
}
.tp-head h2,
.tp-h2 {
  margin: 0 0 14px;
  color: #121417;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
  text-wrap: balance;
}
.tp-head p {
  margin: 0;
  color: #4f4f4f;
  font-size: 15px;
  line-height: 1.6;
}
.tp-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.tp-row-head .btn {
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.tp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}
.tp-actions--center {
  justify-content: center;
  margin-top: 40px;
}
.tp-actions .btn,
.tp-btn-lg {
  min-width: 216px;
  min-height: 50px;
  justify-content: center;
}
.tp-btn-outline {
  background: transparent;
  color: #121417;
  border: 1px solid var(--green, #00a551);
}
.tp-btn-outline:hover {
  background: rgba(0, 165, 81, 0.08);
  color: #121417;
}
.tp-btn-outline-dark {
  background: transparent;
  color: #fff;
  border: 1px solid var(--green, #00a551);
}
.tp-btn-outline-dark:hover {
  background: rgba(0, 165, 81, 0.15);
  color: #fff;
}
.tp-btn-block {
  display: flex;
  width: 100%;
  min-height: 50px;
  justify-content: center;
  box-sizing: border-box;
}

/* ---------- Dark section (with decorative bolt) ---------- */
.tp-dark {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: #0a0d12;
}
.tp-dark::after {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: 200px;
  height: 400px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400'%3E%3Cpath d='M150 0 40 220h70L60 400 200 150h-75L190 0z' fill='%2300a551'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.09;
  pointer-events: none;
}
.tp-dark--bolt-left::after {
  right: auto;
  left: -60px;
}
.tp-dark--no-bolt::after {
  display: none;
}
.tp-dark > .tp-container {
  position: relative;
  z-index: 1;
}
.tp-dark .tp-head h2 {
  color: #fff;
}
.tp-dark .tp-head p {
  color: #aab3bd;
}

/* ---------- Text + image split ---------- */
.tp-split {
  display: grid;
  grid-template-columns: minmax(0, 636fr) minmax(0, 464fr);
  gap: 72px;
  align-items: center;
}
.tp-split.no-media {
  grid-template-columns: minmax(0, 1fr);
}
.tp-split-copy p {
  margin: 0 0 14px;
  color: #333;
  font-size: 14.5px;
  line-height: 1.55;
}
.tp-media {
  overflow: hidden;
  border-radius: 20px;
}
.tp-media img {
  display: block;
  width: 100%;
  object-fit: cover;
}

/* ---------- Ticked list ---------- */
.tp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #121417;
  font-size: 14.5px;
  line-height: 1.4;
}
.tp-check {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--green, #00a551);
}
.tp-check svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* ---------- Icon tile + bullet list (white cards) ---------- */
.tp-icon-tile {
  width: 55px;
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 8px;
  background: rgba(0, 165, 81, 0.1);
  color: var(--green, #00a551);
}
.tp-icon-tile svg,
.tp-icon-tile img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.tp-white-card {
  padding: 28px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 16px;
}
.tp-white-card h3 {
  margin: 0 0 16px;
  color: #121417;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}
.tp-bullets {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
}
.tp-bullets li {
  display: list-item;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}
.tp-bullets li::marker {
  color: #8a8f96;
}

/* ---------- Dark project / article card ---------- */
.tp-dark-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0b0f15;
  border: 1px solid #1d242e;
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tp-dark-card:hover,
.tp-dark-card:focus-visible {
  border-color: var(--green, #00a551);
}
.tp-dark-card__media {
  position: relative;
  height: 240px;
  background: #151b23;
}
.tp-dark-card--article .tp-dark-card__media {
  height: 208px;
}
.tp-dark-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tp-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 13, 18, 0.82);
  color: #2fd07a;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tp-dark-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 28px 24px;
}
.tp-dark-card__cat {
  margin-bottom: 10px;
  color: #2fd07a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tp-dark-card__body h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}
.tp-dark-card--article .tp-dark-card__body h3 {
  font-size: 19px;
  line-height: 1.3;
}
.tp-dark-card__body p {
  margin: 0 0 20px;
  color: #b9c1ca;
  font-size: 14px;
  line-height: 1.6;
}
.tp-dark-card--article .tp-dark-card__body p {
  font-size: 13.5px;
}
.tp-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #1d242e;
  color: var(--green, #00a551);
  font-size: 14px;
}
.tp-dark-card--article .tp-read-more {
  padding-top: 8px;
  border-top: 0;
}

/* ---------- Product card ---------- */
.tp-product-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tp-product-card:hover,
.tp-product-card:focus-visible {
  border-color: var(--green, #00a551);
  box-shadow: 0 10px 24px rgba(18, 20, 23, 0.08);
}
.tp-product-card__media {
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e4e4e4;
}
.tp-product-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.tp-product-card__badge {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 165, 81, 0.08);
  color: var(--green, #00a551);
  font-size: 12.5px;
}
.tp-product-card h3 {
  margin: 0 0 10px;
  color: #121417;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}
.tp-product-card__ref {
  margin: auto 0 0;
  color: #4f4f4f;
  font-size: 12.5px;
}
.tp-product-card__ref span {
  color: var(--green, #00a551);
}

/* ---------- Carousel (assets/js/project-detail.js: [data-pd-carousel]) ---------- */
.tp-carousel {
  position: relative;
  margin-top: 30px;
}
.tp-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 3);
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.tp-track::-webkit-scrollbar {
  display: none;
}
.tp-track > * {
  scroll-snap-align: start;
}
.tp-track--2 {
  grid-auto-columns: calc((100% - 30px) / 2);
}
.tp-track--padded {
  padding: 4px 0;
}
.tp-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e4e4;
  border-radius: 50%;
  background: #fff;
  color: var(--green, #00a551);
  cursor: pointer;
  transform: translateY(-50%);
}
.tp-arrow.is-prev {
  left: -80px;
}
.tp-arrow.is-next {
  right: -80px;
}
.tp-arrow:disabled {
  opacity: 0.45;
  cursor: default;
}
.tp-carousel.no-overflow .tp-arrow {
  display: none;
}
.tp-carousel--wide .tp-arrow {
  width: 72px;
  height: 72px;
  border: 0;
  box-shadow: 0 6px 20px rgba(18, 20, 23, 0.1);
}
.tp-carousel--wide .tp-arrow.is-prev {
  left: -92px;
}
.tp-carousel--wide .tp-arrow.is-next {
  right: -92px;
}

/* ---------- Listing: toolbar, grid, pagination ---------- */
.tp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.tp-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 371px;
  max-width: 100%;
  height: 50px;
  padding: 0 20px;
  gap: 12px;
  border: 1px solid #c9ced4;
  border-radius: 999px;
  background: #f1f3f5;
  box-sizing: border-box;
  color: #121417;
}
.tp-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #121417;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.tp-search input::placeholder {
  color: #6b7280;
}
.tp-search:focus-within,
.tp-select:focus-within {
  border-color: var(--green, #00a551);
}
.tp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.tp-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 18px 0 22px;
  gap: 4px;
  border: 1px solid #d9dde2;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
  color: #121417;
  font-size: 13px;
  cursor: pointer;
}
.tp-select-label {
  color: #6b7280;
  white-space: nowrap;
}
.tp-select select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 22px 0 2px;
  border: 0;
  background: transparent;
  color: #121417;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}
.tp-select svg {
  position: absolute;
  right: 18px;
  pointer-events: none;
}
.tp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.tp-empty {
  padding: 40px 0;
  color: #4f4f4f;
  text-align: center;
}
.tp-list-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}
.tp-pagination {
  display: flex;
  align-items: center;
  gap: 3px;
}
.tp-pnum,
.tp-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: #121417;
  text-decoration: none;
}
.tp-pnum {
  min-width: 32px;
  height: 36px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 15px;
}
.tp-pnum.is-current {
  width: 36px;
  border: 1px solid var(--green, #00a551);
}
.tp-pnum:hover,
.tp-page-arrow:hover {
  color: var(--green, #00a551);
}
.tp-page-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid #eceef1;
  border-radius: 50%;
  background: #fff;
  color: #3a3f45;
  box-shadow: 0 2px 6px rgba(18, 20, 23, 0.04);
}
.tp-page-arrow:first-child {
  margin-right: 14px;
}
.tp-page-arrow:last-child {
  margin-left: 14px;
}
.tp-page-arrow.is-disabled {
  color: #9aa1a8;
}
.tp-page-dots {
  min-width: 32px;
  color: #121417;
  text-align: center;
}
.tp-count {
  margin: 0;
  color: #4f4f4f;
  font-size: 13px;
}
.tp-count strong {
  color: #121417;
  font-weight: 600;
}

/* ---------- Contact block wrapper ---------- */
.tp-contact > .section {
  padding: 20px 0 40px;
  background: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .tp-arrow.is-prev,
  .tp-carousel--wide .tp-arrow.is-prev {
    left: -14px;
  }
  .tp-arrow.is-next,
  .tp-carousel--wide .tp-arrow.is-next {
    right: -14px;
  }
  .tp-arrow,
  .tp-carousel--wide .tp-arrow {
    width: 46px;
    height: 46px;
  }
}
@media (max-width: 1024px) {
  .tp-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .tp-split .tp-media {
    max-width: 560px;
  }
  .tp-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tp-track,
  .tp-track--2 {
    grid-auto-columns: calc((100% - 30px) / 2);
  }
}
@media (max-width: 767px) {
  .tp-hero {
    min-height: 220px;
  }
  .tp-hero h1 {
    font-size: 34px;
  }
  .tp-section {
    padding-top: 56px;
  }
  .tp-dark {
    padding: 64px 0;
  }
  .tp-head h2,
  .tp-h2 {
    font-size: 28px;
  }
  .tp-row-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .tp-actions {
    gap: 14px;
  }
  .tp-actions .btn,
  .tp-row-head .btn {
    min-width: 0;
    flex: 1 1 auto;
  }
  .tp-grid-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .tp-track,
  .tp-track--2 {
    gap: 16px;
    grid-auto-columns: 85%;
  }
  .tp-search,
  .tp-filters,
  .tp-select {
    width: 100%;
  }
  .tp-filters {
    gap: 12px;
  }
  .tp-select select {
    flex: 1;
  }
  .tp-list-footer {
    flex-direction: column;
  }
}
