  /* Innovation Section Styles - Optimized */

/* CSS Custom Properties */
:root {
  --border-color: #ccc;
  --border-width: 0.0625rem;
  --primary-color: #1f1f1f;
  --hover-bg: #f8eadd;
  --active-bg: #ab3300;
  --outline-color: #d64000;
}

/* Card List Layout */
.cardlist {
  display: flex;
  flex-wrap: wrap;
}

.cardlist .card {
  display: flex;
  width: 100%;
}

/* Responsive Card Layout */
@media (min-width: 768px) {
  .cardlist .card {
    width: 50%;
  }
}

@media (min-width: 1020px) {
  .cardlist .card {
    width: 33.3333%;
    border-right: var(--border-width) solid var(--border-color);
  }

  .cardlist .card:nth-child(3n) {
    border-right: none;
  }
  
}

/* Specific Card List Variations */
.more-answers-posts .cardlist,
.related-posts .cardlist {
  margin-bottom: calc(var(--border-width) * -1);
}

.article-sidebar .related-posts .cardlist .card,
.author-sidebar .related-posts .cardlist .card {
  min-height: 0;
}

/* Innovation Section Header */
.innovation-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top:1.5rem;
}

/* View All Button */
.view-all-btn {
  background-color: #fafafa;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.3s ease, outline 0.2s ease;
  white-space: nowrap;
  display: inline-block;
  margin-top: 0.7rem;
  min-width: 200px;
}

.view-all-btn:hover {
  background-color: var(--hover-bg);
  color: var(--primary-color);
  text-decoration: none;
  outline: 2px solid var(--outline-color);
  outline-offset: -2px;
}

.view-all-btn:active {
  background-color: var(--active-bg);
  color: #fff;
  border-color: var(--active-bg);
}

/* Button Link Styles */
.view-all-btn a {
  color: inherit;
  text-decoration: none;
}

.view-all-btn a:visited {
  color: inherit;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .innovation-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .view-all-btn {
    align-self: flex-end;
  }
}

/* Load More Control */
.load-more-disabled .load-more {
  display: none;
}

/* Legacy IE Support (if needed) */
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
  .cardlist {
    zoom: 1;
  }

  .cardlist::before,
  .cardlist::after {
    content: "";
    display: table;
  }

  .cardlist::after {
    clear: both;
  }

  .cardlist .card {
    float: left;
  }
}
