.support-page {
  position: relative;
}

.support-page__photo {
  position: relative;
  min-height: 500px;
  border-radius: 60px 60px 0 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 0 56px 56px;
}

.support-page__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .38) 100%);
  z-index: 0;
}

.support-page__title {
  position: relative;
  z-index: 1;
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.support-page__panel {
  position: relative;
  z-index: 32;
  background: #fff;
  border-radius: 65px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .06);
  padding: 48px 48px 80px;
  margin: -60px auto 0;
  min-height: 520px;
}

.support-page.support-detail .support-page__panel {
  border-radius: 65px 65px 0 0 ;
}

/* ---------------- support-filter ---------------- */
.support-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid #4d4a49;
}

.support-filter__item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  color: #4d4a49;
  user-select: none;
}

.support-filter__item input {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #4d4a49;
  border-radius: 50%;
  margin: 0;
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  transition: border-color .2s ease;
}

.support-filter__item input:checked {
  border-color: var(--ink-soft);
}

.support-filter__item input:checked::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: url('../img/checked-icon.png') no-repeat center / cover;
}

.support-filter__item:has(input:checked) {
  color: var(--ink-soft);
  font-weight: 400;
}

/* ---------------- support-grid ---------------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.support-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #E3E4EA;
  border-radius: 20px;
  padding: 32px 32px 40px;
  min-height: 320px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .08);
}

.support-card__cat {
  font-size: 18px;
  color: #4d4a49;
  text-align: center;
  margin: 0 0 6px;
}

.support-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
}

.support-card__img {
  flex: 1 1 auto;
  margin-top: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 280px;
}

/* ---------------- support-detail ---------------- */
.support-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 8px 0 48px;
}

.support-detail__head-text .support-card__cat {
  text-align: left;
  margin-bottom: 10px;
}

.support-detail__head-title {
  font-size: 30px;
  font-weight: 600;
  color: #4d4a49;
  margin: 0;
  line-height: 1.35;
}

.support-detail__head-img img {
  max-width: 600px;
  width: 100%;
}

/* ---------------- resource-panel ---------------- */
.resource-panel {
  background: #E3E4EA;
  border-radius: 56px;
  padding: 48px 56px;
  margin-top: -5rem;
  position: relative;
  z-index: 32;
}

.resource-note {
  text-align: right;
  margin: 0 0 28px;
}

.resource-note span {
  font-size: 15px;
  color: #6b6b6b;
  background-color: #f1f1f1;
  padding: 6px 8px;
  border-radius: 50px;
}

.resource-note i img{
  width: 17px;
  margin-right: 4px;
  padding-bottom: 3px;
}

.resource-group {
  margin-bottom: 36px;
}

.resource-group:last-child {
  margin-bottom: 0;
}

.resource-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.resource-group h3 i img {
  width: 20px;
  height: 20px;
}

.resource-list-head {
  display: flex;
  justify-content: flex-end;
  gap: 60px;
  font-size: 15px;
  color: #4d4a49;
  padding-bottom: 6px;
  border-bottom: 1px solid #4d4a49;
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid #4d4a49;
  color: #4d4a49;
  text-decoration: none;
  font-size: 16px;
}

.resource-list li:last-child a {
  border-bottom: none;
}

.resource-list .name {
  flex: 1;
}

.resource-list .meta {
  display: flex;
  gap: 60px;
  flex: 0 0 auto;
}

.resource-list .size,
.resource-list .date {
  width: 80px;
  text-align: right;
  color: #4d4a49;
  font-size: 16px;
}

@media (max-width: 991px) {
  .support-page__photo {
    min-height: 280px;
    padding: 0 28px 32px;
    border-radius: 40px 40px 0 0;
  }

  .support-page__title {
    font-size: 34px;
  }

  .support-page__panel {
    padding: 28px 0.5rem 48px;
    margin-top: -40px;
    border-radius: 30px;
  }

  .support-page.support-detail .support-page__panel{
     border-radius: 30px 30px 0 0 ;
  }

  .support-filter {
    /* flex-wrap: nowrap; */
    /* overflow-x: auto; */
    gap: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .support-filter__item {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .support-detail__head {
    flex-direction: column-reverse;
    padding: 8px 0 28px;
    gap: 20px;
    text-align: center;
  }

  .support-detail__head-text .support-card__cat {
    text-align: center;
  }

  .support-detail__head-title {
    font-size: 22px;
  }

  .support-detail__head-img img {
    max-width: 400px;
  }

  .resource-panel {
    padding: 28px 0.5rem;
    border-radius: 30px;
    margin-top: -2rem;
  }

  .resource-list-head span:first-child,
  .resource-list .size {
    display: none;
  }

  .resource-list li a {
    align-items: flex-start;
    gap: 12px;
  }

  .resource-list .meta {
    gap: 0;
  }

  .resource-note span{
        display: block;
        text-align: center;
  }
}

@media (max-width: 575px) {
  .support-page__photo {
    min-height: 210px;
  }
}