/* THF archive content cards: Blog, News, and category archives */

/* Shared section rhythm */
.thf-blog-category-section,
.news-article-list .news-category {
  scroll-margin-top: 110px;
}

/* BLOG HUB */
.thf-blog-hub {
  display: grid;
  gap: 34px;
}

.thf-blog-category-nav {
  margin: 0 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: #0b1b21;
}

.thf-blog-nav-links {
  gap: 8px !important;
}

.thf-blog-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(0,215,160,.22);
  border-radius: 999px;
  background: rgba(0,215,160,.06);
  color: #cfe8df !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.thf-blog-nav-links a:hover,
.thf-blog-nav-links a:focus-visible {
  border-color: rgba(0,215,160,.7);
  background: rgba(0,215,160,.13);
  color: #fff !important;
}

.thf-blog-category-section {
  margin: 0;
  padding: 0 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.thf-blog-category-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.thf-blog-section-header {
  margin-bottom: 16px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.thf-blog-section-kicker {
  color: #7f949d !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.thf-blog-section-title h2,
.thf-blog-section-title h2 a {
  color: #fff !important;
}

.thf-blog-section-icon {
  background: rgba(0,215,160,.1) !important;
  border: 1px solid rgba(0,215,160,.25);
  color: #00d7a0 !important;
}

.thf-blog-view-all {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  color: #dce6e9 !important;
  text-decoration: none !important;
}

.thf-blog-view-all:hover {
  border-color: rgba(0,215,160,.55);
  color: #00d7a0 !important;
}

.thf-blog-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.thf-blog-grid > li {
  margin: 0 !important;
}

.thf-blog-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: #0b1b21;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.thf-blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,215,160,.34);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
}

.thf-blog-card-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #10262e;
}

.thf-blog-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform .35s ease;
}

.thf-blog-card:hover .thf-blog-card-image img {
  transform: scale(1.035);
}

.thf-blog-card-body {
  display: flex;
  flex-direction: column;
  min-height: 214px;
  padding: 17px 18px 18px !important;
}

.thf-blog-card-meta {
  margin-bottom: 9px !important;
  color: #90a3aa !important;
  font-size: 11px !important;
  font-weight: 700;
}

.thf-blog-card-title {
  margin: 0 0 9px !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.thf-blog-card-title a {
  color: #fff !important;
  text-decoration: none !important;
}

.thf-blog-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 15px !important;
  color: #b9c7cc !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.thf-blog-read-more,
.thf-news-read-more,
.thf-archive-list-read-more {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  width: max-content;
  margin-top: auto !important;
  color: #00d7a0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.thf-blog-read-more i,
.thf-news-read-more i,
.thf-archive-list-read-more i {
  font-size: 10px;
  transition: transform .18s ease;
}

.thf-blog-read-more:hover i,
.thf-news-read-more:hover i,
.thf-archive-list-read-more:hover i {
  transform: translateX(3px);
}

/* NEWS HUB */
.news-article-list .et_pb_text_inner > h2.news-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 14px !important;
  padding: 0 0 11px !important;
  border-bottom: 1px solid rgba(255,255,255,.09);
  font-size: 23px !important;
  line-height: 1.2 !important;
}

.news-article-list .et_pb_text_inner > h2.news-category:first-child {
  margin-top: 0 !important;
}

.news-article-list h2.news-category a {
  color: #fff !important;
  text-decoration: none !important;
}

.news-article-list h2.news-category a:after {
  content: "\f061";
  margin-left: 9px;
  color: #00d7a0;
  font-family: "Font Awesome 6 Free";
  font-size: 11px;
  font-weight: 900;
}

.news-article-list .et_pb_text_inner > ul:not(.canadian-cities-news):not(.cities-list) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  list-style: none !important;
}

.news-article-list .et_pb_text_inner > ul:not(.canadian-cities-news):not(.cities-list) > li {
  margin: 0 !important;
}

.news-article-list .thf-news-archive-card,
.news-article-list ul > li > article {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: #0b1b21;
  box-shadow: 0 10px 28px rgba(0,0,0,.11);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.news-article-list ul > li > article:hover {
  transform: translateY(-3px);
  border-color: rgba(0,215,160,.34);
  box-shadow: 0 16px 34px rgba(0,0,0,.17);
}

.news-article-list .news-image {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #10262e;
}

.news-article-list .thf-news-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.news-article-list .news-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-article-list article:hover .news-image img {
  transform: scale(1.035);
}

.news-article-list .news-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px 17px 17px !important;
}

.news-article-list .news-headline {
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1.28 !important;
}

.news-article-list .post-meta,
.news-article-list .thf-news-card-meta {
  order: -1;
  margin: 0 0 9px !important;
  color: #91a4ab !important;
  font-size: 11px !important;
  font-weight: 700;
}

.news-article-list .thf-news-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 14px !important;
  color: #b9c7cc !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* CATEGORY ARCHIVES: Blog + News */
.list-view-blog .et_pb_ajax_pagination_container {
  display: grid;
  gap: 15px;
}

.list-view-blog article.et_pb_post {
  display: grid !important;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  column-gap: 19px;
  align-items: stretch;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 12px;
  background: #0b1b21 !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.list-view-blog article.et_pb_post:hover {
  transform: translateY(-2px);
  border-color: rgba(0,215,160,.32) !important;
  box-shadow: 0 15px 34px rgba(0,0,0,.16);
}

.list-view-blog article.et_pb_post .entry-featured-image-url {
  grid-column: 1;
  grid-row: 1 / span 5;
  overflow: hidden;
  min-height: 170px;
  margin: 0 !important;
  background: #10262e;
}

.list-view-blog article.et_pb_post .entry-featured-image-url img {
  width: 100% !important;
  height: 100% !important;
  min-height: 170px;
  object-fit: cover;
  transition: transform .35s ease;
}

.list-view-blog article.et_pb_post:hover .entry-featured-image-url img {
  transform: scale(1.035);
}

.list-view-blog article.et_pb_post > .entry-title,
.list-view-blog article.et_pb_post > .post-meta,
.list-view-blog article.et_pb_post > .post-content {
  grid-column: 2;
  margin-right: 18px !important;
}

.list-view-blog article.et_pb_post > .entry-title {
  align-self: end;
  margin-top: 16px !important;
  margin-bottom: 7px !important;
  padding: 0 !important;
  font-size: 19px !important;
  line-height: 1.28 !important;
}

.list-view-blog article.et_pb_post > .entry-title a {
  color: #fff !important;
  text-decoration: none !important;
}

.list-view-blog article.et_pb_post > .post-meta {
  order: -1;
  margin-top: 0 !important;
  margin-bottom: 9px !important;
  color: #8fa2a9 !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
}

.list-view-blog article.et_pb_post > .post-meta a {
  display: inline-flex;
  align-items: center;
  margin: 0 5px 5px 0;
  padding: 4px 8px;
  border: 1px solid rgba(0,215,160,.2);
  border-radius: 999px;
  background: rgba(0,215,160,.06);
  color: #aeead8 !important;
  font-size: 10px !important;
  font-weight: 800;
  text-decoration: none !important;
}

.list-view-blog article.et_pb_post > .post-content {
  align-self: start;
  margin-bottom: 15px !important;
  color: #b9c7cc !important;
}

.list-view-blog article.et_pb_post .post-content-inner p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px !important;
  color: #b9c7cc !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-view-blog .pagination {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 980px) {
  .thf-blog-grid,
  .news-article-list .et_pb_text_inner > ul:not(.canadian-cities-news):not(.cities-list) {
    grid-template-columns: 1fr;
  }

  .list-view-blog article.et_pb_post {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .thf-blog-hub {
    gap: 28px;
  }

  .thf-blog-category-nav {
    padding: 12px;
  }

  .thf-blog-grid {
    gap: 12px !important;
  }

  .news-article-list .et_pb_text_inner > h2.news-category {
    font-size: 20px !important;
  }

  .list-view-blog article.et_pb_post {
    display: block !important;
  }

  .list-view-blog article.et_pb_post .entry-featured-image-url {
    display: block;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .list-view-blog article.et_pb_post .entry-featured-image-url img {
    min-height: 0;
  }

  .list-view-blog article.et_pb_post > .entry-title,
  .list-view-blog article.et_pb_post > .post-meta,
  .list-view-blog article.et_pb_post > .post-content {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .list-view-blog article.et_pb_post > .entry-title {
    margin-top: 15px !important;
  }

  .list-view-blog article.et_pb_post > .post-content {
    margin-bottom: 16px !important;
  }
}
