/* Main Container */
.resources-archive {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Layout Container */
.resources-archive-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* Filter Sidebar */
.resources-sidebar {
  position: sticky;
  top: 40px;
  height: fit-content;
}

.filter-header {
  padding: 16px;
  border: 1px solid #000;
  border-bottom: none;
  font-size: 18px;
  font-family: Archivo, sans-serif;
  font-weight: 600;
  letter-spacing: 0.18px;
}

/* Filter Groups */
.filter-group {
  border: 1px solid #000;
  margin-bottom: -1px;
}

.filter-group-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #fff;
}

.filter-group-header span {
  font-size: 18px;
  font-family: Archivo, sans-serif;
  font-weight: 400;
}

/* Filter Icons */
.filter-toggle-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.filter-toggle-icon img {
  width: 16px;
  height: 16px;
}

/* Radio Button Icons */
.filter-radio {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 8px 0;
}

.filter-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-icon {
  width: 20px;
  height: 20px;
}

.filter-options {
  display: none;
  background: #f5f5f5;
  padding: 16px;
}

/* Filter Radio Options */
.filter-radio span:first-child {
  font-size: 16px;
  font-family: Archivo, sans-serif;
  color: #000;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-radius: 50%;
  position: relative;
}

.filter-radio input[type="radio"]:checked + .checkmark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
}

/* Resources Grid */
.resources-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 0px;
}

/* .resources-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
} */

/* Resource Cards */
.resource-card {
  background: var(--Greys-100, #eeeeee);
  border-radius: 2px;
  width: 420px;
  outline: 1px var(--Greys-200, #b6babd) solid;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.resource-content-wrapper {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-text {
  margin-bottom: 8px;
}

.resource-text h2 {
  color: black;
  font-size: 18px;
  font-family: Archivo;
  font-weight: 600;
  line-height: 21.6px;
  letter-spacing: 0.18px;
  word-wrap: break-word;
  margin-bottom: 12px;
}

.resource-text p,
.resource-text li {
  color: black;
  font-size: 16px;
  font-family: Inter;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.48px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

/* Bold text styling in resource text */
.resource-text strong,
.resource-text b {
  color: var(--Blues-900, #0c2240);
  font-weight: 700;
  font-family: Archivo;
}

.resource-image {
  width: 100%;
  height: auto;
  position: relative;
}

.resource-image img {
  width: 100%;
  height: auto;
  display: block;
}

.resource-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-bottom: 0;
}

.resource-content h2 {
  margin: 0 0 16px;
}

.resource-content h2 a {
  color: #000;
  font-size: 18px;
  font-family: Archivo, sans-serif;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.resource-content p {
  color: #2a2e30;
  font-size: 16px;
  font-family: Inter, sans-serif;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 2px;
}

.read-more {
  color: var(--Blues-500, #264b77);
  font-size: 14px;
  font-family: Inter;
  font-style: italic;
  font-weight: 400;
  text-decoration: underline;
  line-height: 21px;
  letter-spacing: 0.7px;
  word-wrap: break-word;
  display: inline-block;
  margin-bottom: 16px;
  background: none;
  padding: 0;
  border: none;
}

/* Resource Tags */
.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.resource-tag {
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resource-tag.green {
  background: var(--Greens-200, #b9f8cf);
}
.resource-tag.yellow {
  background: var(--Yellows-200, #fef9c2);
}
.resource-tag.red {
  background: var(--Reds-300, #ffc9c9);
}

.resource-tag div {
  color: black;
  font-size: 18px;
  font-family: Archivo;
  font-weight: 600;
  line-height: 21.6px;
  letter-spacing: 0.18px;
  word-wrap: break-word;
}

/* Pagination */
.resources-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.resources-pagination .page-numbers {
  padding: 8px 16px;
  border: 1px solid #000;
  color: #000;
  font-family: Archivo, sans-serif;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.resources-pagination .current {
  background: #000;
  color: #fff;
}

.resources-pagination img {
  width: 24px;
  height: 24px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .resources-archive-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .resources-sidebar {
    position: static;
    margin-bottom: 32px;
  }

  .resources-grid-inner {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .resource-text h2 {
    font-size: 17px;
    line-height: 20.4px;
  }

  .resource-tag div {
    font-size: 17px;
    line-height: 20.4px;
  }
}

@media (max-width: 768px) {
  .resources-archive {
    padding: 40px 16px;
  }

  .resources-grid-inner {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }

  .resource-content {
    padding: 20px;
  }

  .resource-content h2 a {
    font-size: 18px;
  }

  .resource-content p {
    font-size: 14px;
  }

  .resource-text h2 {
    font-size: 16px;
    line-height: 19.2px;
    letter-spacing: 0.16px;
  }

  .resource-text p {
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 0.45px;
  }

  .read-more {
    font-size: 13px;
    line-height: 19.5px;
    letter-spacing: 0.65px;
  }

  .resource-tag div {
    font-size: 16px;
    line-height: 19.2px;
    letter-spacing: 0.16px;
  }
}

@media (max-width: 480px) {
  .resources-grid {
    padding: 0 0;
    gap: 20px;
  }
  .resource-card {
    width: 320px;
  }
  .resources-archive {
    padding: 32px 12px;
  }

  .resources-grid-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filter-group-header,
  .filter-radio {
    padding: 12px;
  }

  .filter-group-header span {
    font-size: 16px;
  }

  .resource-text h2 {
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 0.15px;
  }

  .resource-text p {
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0.42px;
  }

  .read-more {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.6px;
  }

  .resource-tag div {
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 0.15px;
  }
}
@media (max-width: 360px) {
  .resource-card {
    width: 280px;
  }
}
