/* Compact single template styles for conductor and cable_solutions CPTs */
.apar-conductor-single {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: #ffffff;
  padding: 22px;
  border-radius: 12px;
}
.apar-conductor-image {
  flex: 0 0 300px;
  max-width: 300px;
}
.apar-conductor-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.apar-conductor-image .placeholder {
  width: 220px;
  height: 220px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  border: 1px solid #eef2f7;
}
.apar-conductor-content {
  flex: 1;
  min-width: 0;
}
.apar-conductor-content h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
}
.apar-conductor-content .label {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 12px;
}
.apar-conductor-body {
  color: #374151;
  line-height: 1.8;
  font-size: 15px;
}
.apar-conductor-meta {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.apar-adj-item {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.apar-adj-item:hover {
  background: rgba(2, 6, 23, 0.02);
}
.apar-adj-item img {
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
  display: block;
  width: 150px;
  height: 150px;
}
.apar-adj-item .meta {
  display: inline-block;
  vertical-align: top;
  max-width: calc(100% - 170px);
}
.apar-adj-item .meta .type {
  font-size: 12px;
  color: #6b7280;
}
.apar-adj-item .meta .title {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  margin-top: 6px;
}
.apar-conductor-nav {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.apar-back-button {
  background: #eef2ff;
  padding: 10px 14px;
  border-radius: 8px;
  color: #0b4da0;
  text-decoration: none;
  display: inline-block;
  border: 1px solid rgba(14, 76, 161, 0.08);
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
  .apar-conductor-single {
    flex-direction: column;
    padding: 16px;
  }
  .apar-conductor-image {
    flex: 0 0 auto;
    max-width: 100%;
  }
  .apar-conductor-image img,
  .apar-conductor-image .placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
  .apar-adj-item img {
    width: 96px;
    height: 96px;
  }
}

/* Page header styles */
.apar-page-header {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 260px;
  margin-bottom: 28px;
  overflow: hidden;
  z-index: 0;
  /* full-bleed when inside a constrained container */
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-repeat: no-repeat;
}
.apar-page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 15, 0.28) 0%,
    rgba(6, 10, 15, 0.22) 60%
  );
}
.apar-page-header-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.apar-page-header-title {
  color: #fff;
  font-size: 32px;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.2px;
}

@media (max-width: 640px) {
  .apar-page-header {
    height: 160px;
  }
  .apar-page-header-title {
    font-size: 20px;
  }
  .apar-page-header-inner {
    padding: 0 12px;
  }
}
