.resources-filter-section {
  padding: 30px 0;
  background: #ffffff;
}

.resources-filter-panel {
  text-align: center;
}


/* GRID */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;

  align-items: stretch;
}


/* CARD */

.resource-card {
  position: relative;

  display: flex;
  flex-direction: column;
  
  justify-content: space-between;

  height: 100%;

  background: #ffffff;

  border: 1px solid #dfe5ea;
  border-radius: 14px;

  overflow: hidden;

  transition: all 0.28s ease;
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}


/* IMAGE */

.resource-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}


/* BODY */

.resource-body {

  display: flex;
  flex-direction: column;

  flex: 1;

  height: 100%;

  padding: 24px;
}


/* TITLE */

.resource-title {
  font-size: 1.2rem;
  font-weight: 800;

  line-height: 1.35;

  margin-bottom: 14px;
}


/* DESCRIPTION */

.resource-desc {

  flex-grow: 1;

  color: #667085;

  line-height: 1.7;
}


/* MAIN RESOURCE BUTTON */

#toggleResourceTypes {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 13px 26px;

  border-radius: 999px;

  border: 1.5px solid #39b54a;

  background: transparent;

  color: #39b54a;

  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;

  cursor: pointer;

  transition: all 0.25s ease;
}

#toggleResourceTypes:hover {

  background: #39b54a;
  color: #ffffff;
}


/* SUB BUTTON WRAPPER */

#resourceSubTabs {

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 18px;
}


/* RESOURCE BADGE */

.resource-badge {

  position: absolute;

  top: 18px;
  right: 18px;

  padding: 8px 14px;

  border-radius: 999px;

  color: #ffffff;

  font-size: 0.82rem;
  font-weight: 700;

  z-index: 5;
}

.resource-badge-video {
  background: #337bd1;
}

.resource-badge-article {
  background: #374151;
}

.resource-badge-tool {
  background: #39b54a;
}

.resource-badge-guide {
  background: #7c3aed;
}


/* META */

.resource-meta {

  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 18px;
}

.resource-type-pill {

  background: #ecfdf3;
  color: #39b54a;

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 0.82rem;
  font-weight: 700;
}

.resource-program-name {

  color: #667085;

  font-weight: 600;
}


/* FOOTER */

.resource-footer {

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: auto;

  padding-top: 24px;
  
}


/* BUTTON */

.resource-btn {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 22px;

  border-radius: 10px;

  border: 1.5px solid #39b54a;

  background: transparent;

  color: #39b54a !important;

  text-decoration: none;

  font-weight: 700;

  transition: all 0.25s ease;
}

.resource-btn:hover {

  background: #39b54a;

  color: #ffffff !important;
}


/* FOOTER TYPE */

.resource-footer-type {

  color: #98a2b3;

  font-weight: 500;
}


/* MOBILE */

@media (max-width: 768px) {

  .hero-back-link {

    display: block;

    text-align: center;

    margin-bottom: 50px;
  }

}

.resources-hero {

  background: #eaf6ff;

  width: 100vw;

  min-height: 40vh;

  margin-left: calc(50% - 50vw);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 90px 20px;

  text-align: center;
  
}

.resources-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.resources-hero-badge {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;

  border-radius: 999px;

  border: 1px solid #b7dfbf;

  background: #ffffff;

  color: #39b54a;

  font-size: 0.95rem;
  font-weight: 700;

  margin-bottom: 28px;
}

.resources-hero-title {

  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;

  margin-bottom: 24px;

  color: #000000;
}

.resources-hero-subtitle {

  max-width: 760px;

  margin: 0 auto 36px;

  color: #667085;

  font-size: 1.25rem;
  line-height: 1.7;
}

.resources-hero-pills {

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 14px;
}

.hero-pill {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 24px;

  border-radius: 999px;

  border: 1px solid #d0d5dd;

  background: #ffffff;

  font-weight: 700;
}

.hero-pill-green {

  color: #39b54a;

  border-color: #b7dfbf;
}

@media (max-width: 768px) {

  .resources-hero-title {
    font-size: 2.6rem;
  }

  .resources-hero-subtitle {
    font-size: 1rem;
  }

  .resources-hero {
    padding: 70px 20px 50px;
  }
}

.hero-pill-blue {
  color: #5b8def;
}

.resources-hero {
  margin-top: -150px;
}

.resources-search-wrap {

  display: flex;
  justify-content: center;

  margin-bottom: 30px;
}

.resources-search-input {

  width: 100%;
  max-width: 700px;

  padding: 16px 22px;

  border-radius: 14px;

  border: 1px solid #d0d5dd;

  font-size: 1rem;

  outline: none;

  transition: all 0.25s ease;
}

.resources-search-input:focus {

  border-color: #5b8def;

  box-shadow: 0 0 0 4px rgba(91,141,239,0.12);
}

.hero-back-link {
  flex-basis: 100%;
}