.press-title {
  margin-bottom: 64px;
}

@media (max-width: 797px) {
  .press-title {
    margin-bottom: 32px;
  }
}

/* 검색 영역 */
.press-search-input-wrapper {
  border-bottom: 2px solid var(--gray-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 10px 18px 10px;
  height: 68px;
}

.press-search-input-wrapper.active {
  border-bottom: 2px solid var(--blue-500);
}

.press-search-input-wrapper:hover {
  border-bottom: 2px solid var(--blue-500);
}

.press-search-input {
  width: 100%;
  font-size: 18px;
  border: none;
  outline: none;
  color: var(--gray-700);
}

.press-search-input::placeholder {
  color: var(--gray-500);
}

.press-close-icon {
  display: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 4px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.press-close-icon img {
  width: 24px;
  height: 24px;
}

.press-close-icon:hover {
  background-color: var(--gray-100);
}

.press-close-icon.active {
  display: flex;
}

/* filter 영역 */
.filter-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

@media (max-width: 767px) {
  .filter-wrapper {
    justify-content: flex-end;
  }
}

/* gird filter 영역 */
.list-grid-filter-wrapper {
  display: flex;
}

@media (max-width: 767px) {
  .list-grid-filter-wrapper {
    display: none;
  }
}

.filter-wrapper-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 4px;
  background-color: var(--white);
  cursor: pointer;
  border: none;
}

.filter-wrapper-icon img {
  width: 24px;
  height: 24px;
}

.list-filter-btn {
  border-right: 0.5px solid var(--gray-400);
  border-top: 1px solid var(--gray-400);
  border-bottom: 1px solid var(--gray-400);
  border-left: 1px solid var(--gray-400);
}

.list-filter-btn:hover {
  background-color: var(--gray-100);
}

.grid-filter-btn {
  border-left: 0.5px solid var(--gray-400);
  border-top: 1px solid var(--gray-400);
  border-bottom: 1px solid var(--gray-400);
  border-right: 1px solid var(--gray-400);
}

.grid-filter-btn:hover {
  background-color: var(--gray-100);
}

/* dropdown filter 영역 */
.dropdown-container {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

/* 드롭다운 버튼 */
.dropdown-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  padding-left: 10px;
  cursor: pointer;
}

.dropdown-label {
  color: var(--gray-600);
}

/* 드롭다운 아이콘 */
.dropdown-icon {
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--white);
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% +4);
  left: 0;
  width: 100%;
  border-radius: 4px;
  z-index: 100;
  display: none;
  overflow: hidden;
  padding: 4px 0px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--gray-100);
}

.dropdown-item {
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: var(--gray-600);
}

.dropdown-item:hover {
  background-color: var(--gray-000);
}

.dropdown-item.selected {
  color: var(--blue-500);
}

/* 보도자료 리스트 영역 */
.press-list-wrapper {
  margin-top: 60px;
}

@media (max-width: 767px) {
  .press-list-wrapper {
    margin-top: 32px;
  }
}

/* 보도자료 개수 */
.press-count-wrapper {
  display: flex;
  align-items: center;
}

.count-total {
  color: var(--gray-700);
}

.press-count {
  margin-right: 2px;
  margin-left: 5px;
  color: var(--black);
}

/* list 형식 보도자료 */
.press-list.press-list-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.press-list-container {
  display: flex;
  padding: 20px 12px 40px 12px;
  border-bottom: 1px solid var(--gray-100);
}

@media (max-width: 767px) {
  .press-list-container {
    padding: 20px 0px 40px 0px;
  }
}

.press-list-container:hover {
  background-color: var(--gray-000);
}

.press-item {
  text-decoration: none;
  display: flex;
  gap: 32px;
}

@media (max-width: 767px) {
  .press-item {
    flex-direction: column;
  }
}

.press-list-thumbnail {
  width: 300px;
  aspect-ratio: 300/200;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .press-list-thumbnail {
    width: 100%;
    aspect-ratio: 328/220;
  }
}

.press-list-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.press-list-title {
  color: var(--black);
  margin-bottom: 8px;
}

.press-list-content {
  color: var(--gray-700);
  max-height: 90px;
  overflow: hidden;
}

.press-list-info {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.press-list-category {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* 그리드 뷰 형식 */
.press-list.press-grid-view {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
}

@media (max-width: 1279px) {
  .press-list.press-grid-view {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .press-list.press-grid-view {
    grid-template-columns: repeat(1, 1fr);
  }
}

.press-grid-container {
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  flex: 1;
  padding: 20px 0px 40px 0px;
}

.press-grid-container:hover {
  background-color: var(--gray-100);
}

.press-grid-container .press-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.press-grid-thumbnail {
  width: 100%;
  height: 337px;
  overflow: hidden;
}

.press-grid-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.press-grid-container:hover .press-grid-thumbnail img {
  transform: scale(1.05);
}

.press-grid-content-container {
  padding: 12px 0px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.press-grid-title {
  margin-bottom: 12px;
  color: var(--black);
  flex-grow: 1;
}

.press-grid-content {
  color: var(--gray-700);
  max-height: 90px;
  overflow: hidden;
}

.press-grid-info {
  display: flex;
  gap: 12px;
  padding-top: 12px;
  align-items: center;
}

.press-grid-category {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
}

.press-grid-category img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.press-list-date {
  color: var(--gray-500);
}

.press-list-author {
  color: var(--gray-500);
}

.separator {
  width: 1px;
  height: 16px;
  background-color: var(--gray-300);
}

/* pagination */
.press-pagination {
  margin-top: 56px;
}
