/* Insights Page Specific Styles */
.page-insights {
  background: #f8fafc;
}

/* Hero Section */
.insights-hero {
  background: #01070d;
  color: #fff;
  padding: 56px 0;
  overflow: hidden;
  position: relative;
}

.insights-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 24%, rgba(249, 115, 22, 0.13), transparent 34%), linear-gradient(90deg, #01070d 0%, #01070d 38%, rgba(1, 7, 13, .92) 54%, #01070d 100%);
  pointer-events: none;
}

.insights-hero .shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 96px));
}

.insights-hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.84fr) minmax(0, 1.16fr);
  gap: 18px;
  align-items: center;
  min-height: 430px;
}

.insights-hero-content {
  max-width: 560px;
  padding: 34px 0;
  position: relative;
  z-index: 3;
}

.insights-hero .crumb {
  color: #f97316;
  font-size: 16px;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 900;
}

.insights-hero .h1 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(52px, 5.25vw, 82px);
  line-height: 0.98;
  margin: 0 0 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}

.insights-hero .highlight {
  color: #f97316;
}

.insights-hero .lead {
  color: #e4ebf3;
  font-size: 18px;
  line-height: 1.72;
  max-width: 545px;
  font-weight: 500;
  margin: 0;
}

.insights-hero-image {
  position: relative;
  height: 430px;
  margin-left: -92px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insights-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #01070d 0%, rgba(1, 7, 13, .96) 10%, rgba(1, 7, 13, .72) 28%, rgba(1, 7, 13, .18) 56%, rgba(1, 7, 13, .58) 100%), linear-gradient(180deg, #01070d 0%, rgba(1, 7, 13, 0) 18%, rgba(1, 7, 13, 0) 78%, #01070d 100%);
  pointer-events: none;
}

.insights-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 90px 46px #01070d;
  pointer-events: none;
}

.insights-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .74;
  filter: saturate(.96) contrast(1.08);
}

/* Generic shell container */
.shell {
  width: min(1220px, calc(100% - 96px));
  margin-left: auto;
  margin-right: auto;
}

/* Main Section */
.insights-main {
  padding: 40px 0 80px;
}

.insights-main .shell {
  width: min(1220px, calc(100% - 96px));
}

/* Filters */
.insights-filter-bar {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid #e9ecf0;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  flex: 1;
  min-width: 160px;
}

.filter-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dfe4ea;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.filter-group select:focus {
  border-color: #01070d;
}

.search-group {
  display: flex;
  position: relative;
  flex: 2;
  min-width: 240px;
}

.search-group input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #dfe4ea;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.search-group input:focus {
  border-color: #01070d;
}

.search-group button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #01070d;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.search-group button:hover {
  background: #f97316;
}

/* Grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

.insight-card {
  display: grid;
  grid-template-rows: 168px 1fr;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e9ecf0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  min-height: 410px;
  height: 100%;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.card-image-wrap {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: #eef3f8;
}

.card-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.card-image-wrap img.article-upload-image {
  display: block;
}

.insight-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-content {
  padding: 26px 24px 22px;
  display: grid;
  grid-template-rows: 30px 58px 1fr auto;
  row-gap: 16px;
  min-height: 0;
  overflow: hidden;
}

.card-tag {
  align-self: start;
  max-height: 26px;
  font-size: 9.5px;
  line-height: 1.18;
  font-weight: 800;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title {
  font-family: "Poppins", Arial, sans-serif;
  max-height: 50px;
  font-size: 19px;
  line-height: 1.22;
  font-weight: 700;
  color: #01070d;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: #5d6878;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.card-meta {
  grid-row: 4;
  align-self: end;
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: #8ba0b9;
  border-top: 1px solid #f0f2f5;
  padding-top: 16px;
  margin-top: 0;
}

.meta-date,
.meta-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-insights .card-meta svg,
.page-insights .newsletter-icon svg {
  color: #f97316 !important;
  stroke: currentColor !important;
}

.page-insights .search-group button svg {
  color: #fff !important;
  stroke: currentColor !important;
}

.page-insights .card-meta svg path,
.page-insights .card-meta svg circle,
.page-insights .card-meta svg rect,
.page-insights .card-meta svg line,
.page-insights .card-meta svg polyline,
.page-insights .card-meta svg polygon,
.page-insights .newsletter-icon svg path,
.page-insights .newsletter-icon svg circle,
.page-insights .newsletter-icon svg rect,
.page-insights .newsletter-icon svg line,
.page-insights .newsletter-icon svg polyline,
.page-insights .newsletter-icon svg polygon,
.page-insights .search-group button svg path,
.page-insights .search-group button svg circle,
.page-insights .search-group button svg rect,
.page-insights .search-group button svg line,
.page-insights .search-group button svg polyline,
.page-insights .search-group button svg polygon {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  vector-effect: non-scaling-stroke !important;
}

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

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #5d6878;
  border: 1px solid #dfe4ea;
  text-decoration: none;
  transition: all 0.2s;
  background: #fff;
}

.page-link:hover {
  border-color: #01070d;
  color: #01070d;
}

.page-link.active {
  background: #01070d;
  color: #fff;
  border-color: #01070d;
}

/* Newsletter */
.newsletter-banner {
  background: #0b1420;
  color: #fff;
  border-radius: 0;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
  border-left: none;
  border-right: none;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 40px;
}

.newsletter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-content h2 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 600;
  color: #fff;
}

.newsletter-content p {
  color: #a9bccc;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 300px;
}

.newsletter-form input {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 13px;
  outline: none;
}

.newsletter-form input:focus {
  border-color: #f97316;
}

.newsletter-form .btn-subscribe {
  padding: 12px 24px;
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form .btn-subscribe:hover {
  background: #e08b26;
}

.newsletter-form small {
  color: #788b9e;
  font-size: 10px;
  text-align: center;
}

.newsletter-status {
  margin: 4px 0 0;
  padding: 9px 10px;
  border: 1px solid rgba(36, 207, 127, .4);
  border-radius: 4px;
  background: rgba(36, 207, 127, .12);
  color: #eafff3;
  font-size: 11px;
  text-align: center;
}

.newsletter-status.is-error {
  border-color: rgba(255, 91, 91, .48);
  background: rgba(255, 91, 91, .13);
  color: #ffecec;
}

.newsletter-form .btn-subscribe:disabled {
  opacity: .7;
  cursor: progress;
}

/* Offices Section */
.offices-section {
  background: #01070d;
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 60px;
  position: relative;
}

.section-divider {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #f97316;
  letter-spacing: 0.1em;
  position: relative;
  margin: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(241, 158, 56, 0.3);
  max-width: 100px;
  margin: 0 16px;
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.office-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.office-info {
  flex: 1;
}

.office-label {
  font-size: 10px;
  color: #f97316;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.office-info h4 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 20px;
  margin: 0 0 16px;
  font-weight: 600;
  color: #fff;
}

.office-address,
.office-phone {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  color: #a9bccc;
  line-height: 1.5;
  margin: 0 0 12px;
}

.office-address a,
.office-phone a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.office-address a:hover,
.office-phone a:hover {
  color: #f97316;
}

.office-address svg,
.office-phone svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.office-map {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive safety layer for insights listing. */
@media(max-width:1200px) {
  .page-insights {
    max-width: 100%;
    overflow-x: hidden
  }

  .page-insights *,
  .page-insights *::before,
  .page-insights *::after {
    min-width: 0
  }

  .page-insights img,
  .page-insights video,
  .page-insights iframe,
  .page-insights canvas {
    max-width: 100% !important
  }

  .page-insights h1,
  .page-insights h2,
  .page-insights h3,
  .page-insights p,
  .page-insights a,
  .page-insights li,
  .page-insights span {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none
  }
}

@media(max-width:980px) {

  .insights-hero .shell,
  .insights-main .shell {
    width: calc(100% - 32px) !important;
    max-width: 100% !important
  }

  .insights-hero-grid,
  .newsletter-inner,
  .offices-grid {
    grid-template-columns: 1fr !important
  }

  .insights-hero-image {
    height: auto;
    min-height: 260px;
    margin-left: 0
  }

  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important
  }
}

@media(max-width:680px) {

  .insights-hero .shell,
  .insights-main .shell {
    width: calc(100% - 24px) !important
  }

  .insights-hero {
    padding: 42px 0 !important
  }

  .insights-hero .h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important
  }

  .insights-grid,
  .filter-form,
  .newsletter-inner,
  .offices-grid {
    grid-template-columns: 1fr !important
  }

  .filter-form,
  .office-card {
    display: grid !important
  }

  .search-group,
  .filter-group,
  .newsletter-form {
    min-width: 0 !important;
    width: 100% !important
  }

  .newsletter-inner,
  .offices-section {
    padding: 24px !important
  }
}

@supports (content-visibility:auto) {

  .insights-main,
  .newsletter-banner,
  .offices-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }
}

@media (max-width: 1000px) {
  .insights-hero {
    padding: 52px 0;
  }

  .insights-hero .shell {
    width: min(100% - 48px, 1180px);
  }

  .insights-hero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    text-align: center;
  }

  .insights-hero-content {
    max-width: 100%;
    padding: 24px 0 10px;
  }

  .insights-hero .h1 {
    font-size: clamp(36px, 8vw, 54px);
  }

  .insights-hero .lead {
    font-size: 15px;
    margin: 0 auto;
  }

  .insights-hero-image {
    height: 180px;
    margin-left: 0;
    width: 100%;
  }

  .insights-hero-image::after {
    box-shadow: inset 0 0 30px 15px #01070d;
  }

  .insights-hero-image img {
    opacity: 0.9;
  }

  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding: 30px;
  }

  .newsletter-icon {
    margin: 0 auto;
  }

  .newsletter-content p {
    margin: 0 auto;
  }

  .offices-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .office-card {
    flex-direction: column;
    text-align: center;
  }

  .office-address,
  .office-phone {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    min-width: 100%;
  }
}

/* Banner subheadings should not be bold. */
.insights-hero .lead {
  font-weight: 400 !important;
}