/* ── Insights & Media – Single Post ──────────────────────────────── */

.insights-single-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Back link */
.insights-back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #0068a5;
  text-decoration: none;
  transition: color 0.2s;
}
.insights-back-link:hover {
  color: #004d7a;
  text-decoration: underline;
}

/* Date */
.insights-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

/* Title */
.insights-title {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1a1a1a;
}

/* Social sharing bar */
.insights-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 32px;
}

.insights-share-bar.insights-share-bar--bottom {
  margin-top: 40px;
  margin-bottom: 0;
}

.insights-share-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.insights-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0068a5;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.insights-share-link:hover {
  background: #004d7a;
  color: #fff;
  transform: scale(1.1);
}

.insights-share-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Post content */
.insights-body {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.insights-body p {
  margin-bottom: 1.4em;
}

.insights-body img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.insights-body h2,
.insights-body h3,
.insights-body h4 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: #1a1a1a;
}

.insights-body a {
  color: #0068a5;
  text-decoration: underline;
}

.insights-body a:hover {
  color: #004d7a;
}

/* Next post navigation */
.insights-next-post {
  margin-top: 48px;
}

.insights-next-post__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: #f7f8fa;
  border: 1px solid #e4e7eb;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.insights-next-post__link:hover {
  background: #eef1f5;
  border-color: #0068a5;
}

.insights-next-post__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  flex-shrink: 0;
}

.insights-next-post__title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #0068a5;
  line-height: 1.3;
}

.insights-next-post__arrow {
  width: 24px;
  height: 24px;
  color: #0068a5;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.insights-next-post__link:hover .insights-next-post__arrow {
  transform: translateX(4px);
}

/* Featured image – floated inline with content */
.insights-featured-image {
  float: right;
  width: 450px;
  max-width: 50%;
  margin: 0 0 24px 32px;
  border-radius: 8px;
  overflow: hidden;
}

.insights-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.insights-body::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 767px) {
  .insights-featured-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px 0;
  }
}

/* ── Insights & Media – Archive ──────────────────────────────────── */

.insights-archive-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Controls bar */
.insights-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
  align-items: stretch;
  padding: 20px 24px;
  background: #f7f8fa;
  border: 1px solid #e4e7eb;
}

.insights-search {
  flex: 1 1 280px;
}

/* Shared input/select base */
.insights-search input,
.insights-filters select,
.insights-sort select {
  width: 100%;
  height: 48px;
  margin: 0;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.insights-search input::placeholder {
  color: #999;
}

.insights-search input {
  padding: 0 16px 0 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px 18px;
}

.insights-filters,
.insights-sort {
  flex: 0 1 auto;
}

.insights-filters select,
.insights-sort select {
  padding: 0 42px 0 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px 6px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  min-width: 200px;
}

/* Hover */
.insights-search input:hover,
.insights-filters select:hover,
.insights-sort select:hover {
  border-color: #aab0b9;
}

/* Focus */
.insights-search input:focus,
.insights-filters select:focus,
.insights-sort select:focus {
  outline: none;
  border-color: #0068a5;
  box-shadow: 0 0 0 3px rgba(0, 104, 165, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Card grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.insights-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.insights-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Image area */
.insights-card__image {
  position: relative;
  padding-bottom: 75%;
  overflow: hidden;
  background: #ddd;
}

.insights-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.insights-card:hover .insights-card__image img {
  transform: scale(1.05);
}

.insights-card__image--placeholder {
  background: linear-gradient(135deg, #ccc 0%, #ddd 100%);
}

/* Category ribbon */
.insights-card__category {
  position: absolute;
  top: 16px;
  right: 12px;
  z-index: 2;
  display: inline-block;
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: rgba(80, 100, 115, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 50px;
  line-height: 1.3;
}

/* Card body */
.insights-card__body {
  padding: 24px 24px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insights-card__title {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 12px;
  color: #0068a5;
}

.insights-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 20px;
}

.insights-card__readmore {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #0068a5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.insights-card:hover .insights-card__readmore {
  text-decoration: underline;
}

.insights-card__date {
  font-size: 13px;
  color: #999;
  padding: 14px 24px;
  margin: auto -24px 0;
  border-top: 1px solid #ddd;
}

/* No results */
.insights-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #666;
}

/* Pagination */
.insights-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.insights-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.insights-pagination__btn:hover {
  background: #f7f8fa;
  border-color: #0068a5;
  color: #0068a5;
}

.insights-pagination__btn--active {
  background: #0068a5;
  border-color: #0068a5;
  color: #fff;
  cursor: default;
}

.insights-pagination__btn--active:hover {
  background: #0068a5;
  color: #fff;
}

.insights-pagination__btn:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.insights-pagination__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insights-pagination__ellipsis {
  font-size: 14px;
  color: #999;
  padding: 0 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .insights-single-content {
    padding: 24px 16px 60px;
  }

  .insights-title {
    font-size: 28px;
  }

  .insights-share-link {
    width: 32px;
    height: 32px;
  }

  .insights-share-link svg {
    width: 16px;
    height: 16px;
  }

  /* Archive responsive */
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .insights-controls {
    flex-direction: column;
    padding: 16px;
  }

  .insights-search {
    flex: 1 1 100%;
  }

  .insights-filters,
  .insights-sort {
    width: 100%;
  }

  .insights-filters select,
  .insights-sort select {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
