/* Articles hub (articles.html) and individual article pages (article-*.html).
   Loaded after twigroup.webflow.css; uses its brand variables (--twi-group-blue, --dark-blue, etc). */

/* ---------- Hero banner (same treatment as .top-section-carnet-article) ---------- */
.articles-hero {
  /* Darker than the carnet banner so the white subtitle and date stay readable on bright photos */
  background-image: linear-gradient(180deg, var(--dark-blue) 0%, #0a1931b3 55%, #0a193166 100%), var(--hero-img, url('../images/banner.jpg'));
  background-position: 0 0, 50%;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 450px;
  padding: 120px 30px 60px;
}

.articles-hero-inner {
  width: 100%;
  max-width: 940px;
  text-align: center;
  color: var(--white);
}

.articles-hero h1 {
  color: var(--white);
  text-shadow: 0 1px 1px #0009;
  margin: 0;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.15;
}

.articles-hero-sub {
  color: var(--white);
  text-shadow: 0 1px 1px #0009;
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 18px;
  line-height: 1.4;
}

.articles-eyebrow {
  display: inline-block;
  background-color: var(--red-twi-group);
  color: var(--white);
  border-radius: 5px;
  margin-bottom: 16px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Hub: article card grid ---------- */
.articles-section {
  background-color: var(--grey-bg);
  padding: 60px 30px 80px;
}

.articles-container {
  max-width: 1140px;
  margin: 0 auto;
}

.articles-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--twi-group-blue);
  text-align: center;
  font-size: 18px;
  line-height: 24px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 5px #0003;
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px #0000002e;
}

.article-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--light-grey);
}

.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 28px;
}

.article-card-tag {
  color: var(--red-twi-group);
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article-card h2 {
  color: var(--twi-group-blue);
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.article-card h2 a {
  color: inherit;
  text-decoration: none;
}

.article-card p {
  color: #333;
  flex: 1;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 20px;
}

.article-card-meta {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 13px;
}

.article-card .button-testimonials {
  align-self: flex-start;
}

/* ---------- Article page ---------- */
.article-meta {
  text-shadow: 0 1px 1px #0009;
  margin-top: 16px;
  font-size: 15px;
}

.article-section {
  background-color: var(--white);
  padding: 60px 30px 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  max-width: 1140px;
  margin: 0 auto;
}

.article-back {
  display: inline-block;
  color: var(--twi-group-blue);
  margin-bottom: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.article-back:hover {
  color: var(--red-twi-group);
}

.article-body {
  max-width: 740px;
  color: #333;
  font-size: 17px;
  line-height: 1.65;
}

.article-body .article-lead {
  color: var(--twi-group-blue);
  font-size: 20px;
  line-height: 1.5;
}

.article-body h2 {
  color: var(--twi-group-blue);
  margin: 44px 0 14px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

/* Override the site-wide p/li sizing from twigroup.webflow.css so article copy stays readable */
.article-body p,
.article-body li {
  color: #333;
  font-size: inherit;
  line-height: inherit;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body .article-lead {
  color: var(--twi-group-blue);
}

.article-body ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body li::marker {
  color: var(--red-twi-group);
}

.article-body a {
  color: var(--twi-group-blue);
  font-weight: 600;
}

.article-figure {
  margin: 36px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.article-figure figcaption {
  color: var(--gray);
  margin-top: 10px;
  font-size: 13px;
}

/* Call-out boxes */
.article-callout {
  background-color: var(--light-grey);
  border-left: 5px solid var(--twi-group-blue);
  border-radius: 5px;
  margin: 28px 0;
  padding: 22px 26px;
}

.article-callout.is-warning {
  border-left-color: var(--red-twi-group);
}

.article-callout h3 {
  color: var(--twi-group-blue);
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.article-callout ul {
  margin-bottom: 0;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

.article-audio audio {
  display: block;
  width: 100%;
}

/* Carrier liability figures */
.liability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 28px;
}

.liability-card {
  background-color: var(--light-grey);
  border-radius: 20px;
  box-shadow: 0 2px 5px #0003;
  padding: 22px 16px;
  text-align: center;
}

.liability-card strong {
  display: block;
  color: var(--twi-group-blue);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

.liability-card span {
  display: block;
  color: #333;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
}

/* Sidebar */
.article-aside {
  position: sticky;
  top: 130px;
  align-self: start;
}

.article-cta {
  background-image: linear-gradient(180deg, var(--twi-group-blue), var(--dark-blue));
  border-radius: 20px;
  color: var(--white);
  padding: 30px 26px;
}

.article-cta h3 {
  color: var(--white);
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.article-cta p {
  color: var(--white);
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 20px;
}

.article-cta .button-hero {
  width: 100%;
  margin-bottom: 14px;
}

.article-cta a.article-cta-phone {
  display: block;
  color: var(--white);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.article-more {
  margin-top: 30px;
}

.article-more h3 {
  color: var(--twi-group-blue);
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article-more a {
  display: block;
  color: #333;
  border-top: 1px solid #e4ebf3;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.article-more a:hover {
  color: var(--red-twi-group);
}

/* ---------- Responsive (matches Webflow breakpoints) ---------- */
@media screen and (max-width: 991px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .article-aside {
    position: static;
  }
}

@media screen and (max-width: 767px) {
  .articles-hero {
    min-height: 360px;
    padding: 110px 16px 40px;
  }

  .articles-hero h1 {
    font-size: 34px;
  }

  .articles-section,
  .article-section {
    padding: 40px 16px 60px;
  }

  .articles-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-body {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 24px;
  }

  .liability-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
