.page-hero__title {
  margin-left: 0;
  color: #000;
}

.page-hero__content .accent {
  width: 161px;
  height: 9px;
  background-image: url(../img/accents/generics/white-main-header.svg);
  margin-left: 0;
}

.main_container {
  width: 1240px;
  margin: 0 auto;
  padding-top: 40px !important;
}

.kr-tab {
  color: #999;
  text-decoration: none;
}
.kr-tab.active {
  color: #111;
  border-bottom: 2px solid #111;
  padding-bottom: 4px;
}

.kr-stack {
  margin-top: 100px;
}

.kr-stack-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
}

.kr-stack-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #f4c62a;
  margin-top: 8px;
  border-radius: 2px;
}
.kr-stack-content.grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

.kr-stack-content.list .event-resource-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

/* Wrapper that stacks sections */
.kr-stacks {
  margin: 100px 0;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* Headings */
.kr-h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px;
}

/* ————— GRID VIEW (one column) ————— */

.kr-one__grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

/* Masonry grid: 3 fixed columns */
.kr-one__grid {
  position: relative;
  margin-left: -32px; /* compensate for left gutter */
}

.rescard {
  width: 392px;
  margin-left: 32px; /* horizontal gap */
  margin-bottom: 32px; /* vertical gap */
}

/* ————— LIST VIEW (two columns) ————— */
.kr-two {
  display: grid;
  grid-template-columns: 1fr 816px; /* left label | right list */
  gap: 48px;
  align-items: start;
}
.kr-h2--sticky {
  position: sticky;
  top: 180px; /* adjust to sit below header */
  align-self: start;
}
.kr-two__list {
  display: flex;
  flex-direction: column;
  gap: 0; /* space between rows; rows come from crea_render_resource_row_list() */
}

.kr-two__list > .rr-item:first-child {
  border-top: none;
}

.rr-item.visited .rr-title a {
  color: #800080 !important;
}

.know-about-theme {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--Black, #000);
}
.know-more-button {
  margin-top: 24px;
}
/* Responsive collapse */
@media (max-width: 1024px) {
  .kr-two {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .kr-h2--sticky {
    position: static;
  }
}

/* Row */
.rr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid #cad4de;
}

/* Left meta block */
.rr-meta {
  min-width: 0;
}

/* Yellow type badge */
.rr-badges {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}

.rr-badge {
  display: inline-block;
  background: #ffc845;
  padding: 10px 14px;
  border-radius: 41px;
  margin-bottom: 24px;

  color: var(--Black, #000);
  text-align: center;
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px; /* 114.286% */
}

html {
  scroll-padding-top: 100px;
}

.rr-badge.pill_theme {
  display: none;
}

/* Title */
.rr-title {
  margin-bottom: 24px;
  font-size: 22px;
  line-height: 1.2;
}
.rr-title a {
  color: var(--Black, #000);
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 30px; /* 166.667% */
  text-decoration: none;
}

/* Topic pills */
.kr-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kr-pill {
  display: inline-block;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 14px;
  color: #111;
  text-decoration: none;
  background: #fff;
}

.rr-download {
  display: inline-flex;
  width: 40px;
  aspect-ratio: 1 / 1;
  padding: 11px 10px 9px 10px; /* match Figma-ish values */
  justify-content: center;
  align-items: center;
  border-radius: 41px;
  background: var(--500-Crea-Pink, #fa455c);
  text-decoration: none;
  flex: 0 0 auto;
}
.rr-download img {
  width: 20px;
  height: 20px;
  display: block;
}
.rr-download:hover {
  filter: brightness(0.95);
}

@media (max-width: 980px) {
  .main_container {
    width: 100%;
    padding: 40px 30px !important;
  }
  .archive-loader-hide {
    visibility: hidden; /* prevent flash but keep layout size */
  }
  .kr-view-toggle {
    display: none !important;
  }
  .kr-controls {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .kr-browse-tabs {
    gap: 0 !important;
    justify-content: space-between;
  }
  .kr-browse-tabs a {
    padding: 10px;
  }
  .kr-stacks {
    margin-top: 40px;
  }
  .rr-item {
    align-items: flex-start;
  }

}
