/* Copyright (c) Janyasi's Legal Associates. All Rights Reserved. */

/* ==========================================================================
   Legal Insights Section
   ========================================================================== */
.insights-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.insight-card {
  display: block;
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.insight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.insight-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Hovering anywhere on the card (not just the "Read More" text) animates
   the CTA, since the whole card is now the clickable target. */
.insight-card:hover .link-arrow {
  gap: 12px;
}

.insight-card:hover .link-arrow i {
  transform: translateX(2px);
}

.insight-thumb {
  height: 170px;
  background: linear-gradient(160deg, var(--black-softer), var(--black-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 30px;
}

.insight-body {
  padding: 24px;
}

.insight-format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.insight-body h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--black);
}

.insight-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .insights-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Legal Insights page
   ========================================================================== */
.page-legal-insights .insights-intro {
  padding: 54px 0 46px;
  background: var(--white);
}

.insights-intro .page-content {
  max-width: 850px;
}

.insights-intro .eyebrow {
  justify-content: center;
  margin-bottom: 16px;
}

.insights-intro h2 {
  margin-bottom: 18px;
}

.insights-intro p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
}

.insights-intro-actions {
  margin-top: 30px;
}

.insights-library {
  padding: 56px 0 48px;
  background: var(--cream);
}

.insights-library .section-heading {
  margin-bottom: 28px;
}

.insights-grid {
  align-items: stretch;
  gap: 24px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border-top: 3px solid transparent;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(20, 17, 15, 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.insight-card:hover,
.insight-card:focus-within {
  border-top-color: var(--gold);
  box-shadow: var(--shadow-card-hover);
}

.insight-thumb {
  position: relative;
  height: 140px;
  flex: 0 0 auto;
  background: linear-gradient(160deg, var(--black-softer), var(--black-soft));
  overflow: hidden;
  padding: 22px 26px;
  align-items: flex-end;
  justify-content: space-between;
}

.insight-thumb::before {
  position: absolute;
  top: -58px;
  right: -34px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(227, 201, 136, 0.24);
  border-radius: 50%;
  content: "";
}

.insight-thumb::after {
  position: absolute;
  top: -20px;
  right: 8px;
  width: 125px;
  height: 125px;
  border: 1px solid rgba(227, 201, 136, 0.12);
  border-radius: 50%;
  content: "";
}

.insight-thumb i,
.insight-thumb span {
  position: relative;
  z-index: 1;
}

.insight-thumb i {
  align-self: center;
  color: var(--gold);
  font-size: 37px;
}

.insight-thumb span {
  color: var(--text-on-dark-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.insight-thumb-criminal {
  background: linear-gradient(135deg, #221d19 0%, #171412 100%);
}

.insight-thumb-commercial {
  background: linear-gradient(135deg, #211d18 0%, #181513 100%);
}

.insight-thumb-property {
  background: linear-gradient(135deg, #241f19 0%, #171412 100%);
}

.insight-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 245px;
  padding: 22px 24px 24px;
}

.insight-format {
  margin-bottom: 12px;
  color: var(--gold-dark);
  font-weight: 700;
}

.insight-body h3 {
  font-size: 19px;
  line-height: 1.3;
}

.insight-body p {
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.65;
}

.insight-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.insight-meta i {
  color: var(--gold-dark);
}

.insight-body .link-arrow {
  margin-top: auto;
}

.insights-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  padding: 17px 20px;
  background: var(--white);
  border-left: 3px solid var(--gold);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.insights-disclaimer i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--gold-dark);
}

.insights-related {
  padding: 48px 0 56px;
  background: var(--white);
}

.insights-related-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 32px;
  border: 1px solid var(--border-light);
  background: var(--cream);
}

.insights-related h3 {
  margin-bottom: 5px;
  color: var(--black);
  font-size: 23px;
}

.insights-related p {
  color: var(--text-muted);
  font-size: 15px;
}

.insights-related .link-arrow {
  flex: 0 0 auto;
}

.insights-final-cta {
  padding: 62px 0;
  background: var(--white);
}

.insights-final-cta .cta-panel {
  max-width: 720px;
}

@media (max-width: 700px) {
  .page-legal-insights .insights-intro { padding: 42px 0 38px; }
  .insights-library { padding: 42px 0 36px; }
  .insights-final-cta { padding: 52px 0; }

  .insights-intro p {
    font-size: 15.5px;
  }

  .insights-intro-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .insights-related {
    padding: 40px 0 48px;
  }

  .insights-related-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .insight-body {
    min-height: 0;
  }
}
