/* Resource Cards */

#resourceContainer,
#postContainer {
    max-width: 1366px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(5,1fr);
}

.resourceCard-light,
.postCard-light{
    background: var(--fl-global-light) !important;
}

.resourceCard,
.postCard {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0px;
    padding: 20px;
}

.resourcePublishDate,
.postPublishDate {
    margin-bottom: 15px;
    color: #434343;
    font-weight: 325;
    font-style: italic;
    font-size: 13px !important;
}

.resourceAction,
.postAction {
    margin-top: auto;
    color: var(--fl-global-secondary);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.resourceAction:hover,
.postAction:hover {
   color: var(--fl-global-secondary); 
}

.resourceTitle,
.postTitle {
    font-family: var(--font-serif) !important;
    margin: 0;
    text-transform: normal;
    font-size: 18px !important;
    line-height: 1.2;
    margin-bottom: 6px !important;
    font-weight: 400 !important;
}

.resourceAuthor,
.postAuthor {
    font-family: var(--font-sans) !important;
    margin: 0;
    font-size: 14px !important;
    text-transform: uppercase;
    font-weight: 700 !important;
}

/* Force icon + text on one line, vertically centered */
.contentGridCard .postType {
  display: inline-flex;      /* inline so it flows with other text if needed */
  flex-direction: row;
  align-items: center; 
  vertical-align: middle;
}

/* Make sure the icon isn't taking the full width */
.contentGridCard .postTypeIcon {
  display: inline-block;
  height: auto;

}

/* Text behaves normally next to the icon */
.contentGridCard .postTypeText {
  display: inline-block;
  white-space: nowrap;       /* optional: prevents the label from breaking */
}

.resourceTypeLabel,
.postTypeText {
    display: flex;
    align-items: center;
    color: #101820;
    text-transform: uppercase;
    font-size: 14px !important;
    font-weight: 700;
    margin-bottom: 16px;
}

.resourceTypeLabel:before,
.postTypeLabel:before,
.postTypeIcon {
    margin-right: 5px;
    width: 25px !important;
    height: 25px !important;
}

.type-post .resourceTypeLabel::before {
    content: url('/wp-content/img/articles.svg');
}

.type-book .resourceTypeLabel::before {
    content: url('/wp-content/img/books.svg');
}

.type-video .resourceTypeLabel::before {
    content: url('/wp-content/img/videos.svg');
}

.type-podcast .resourceTypeLabel::before {
    content: url('/wp-content/img/podcasts.svg');
}

.type-article .resourceTypeLabel::before,
.type-post .postTypeLabel::before {
    content: url('/wp-content/img/articles.svg');
}

.resourceAction {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.resourceAction i.fa-angle-right {
  font-size: 1em;
  line-height: 1;
}

@media (max-width: 1100px) {
    #resourceContainer,
    #postContainer {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width: 950px) {
    #resourceContainer,
    #postContainer {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 768px) {
    #resourceContainer,
    #postContainer {
        grid-template-columns: repeat(1,1fr);
    }
}