@charset "UTF-8";

@import url("../inside/inside.css?v=20261019");

body {
  background: #ffffff;
}

.news-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 57, 111, 0.28) 0%, rgba(20, 57, 111, 0.12) 34%, rgba(20, 57, 111, 0) 66%);
}

.news-filter {
  --news-filter-offset: 80px;
  position: relative;
  z-index: 90;
  background: #ffffff;
  border-bottom: 1px solid #e9edf2;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease;
}

.news-filter.is-fixed {
  position: fixed;
  top: var(--news-filter-offset);
  left: 0;
  right: 0;
  width: 100%;
}

.news-filter-placeholder {
  display: none;
  width: 100%;
}

.news-filter-placeholder.is-active {
  display: block;
}

.news-filter__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 18px 0;
}

.news-filter__label {
  flex: 0 0 auto;
  color: #666666;
  font-size: 16px;
  line-height: 1;
}

.news-filter__tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
}

.news-filter__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #666666;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.news-filter__tab:hover {
  color: var(--color-primary);
  border-color: #c8deef;
  background: #f4fafe;
}

.news-filter__tab.is-active {
  color: #ffffff;
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.news-content {
  padding: 78px 0 88px;
  background: #ffffff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 520px);
  justify-content: space-between;
  gap: 34px 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  width: 520px;
  min-height: 430px;
  border: 1px solid #d9e6ef;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-6px);
}

.news-card__media {
  display: block;
  overflow: hidden;
  background: #eef4f8;
}

.news-card__image {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card__image {
  transform: scale(1.05);
}

.news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px 28px 22px;
}

.news-card__title {
  margin: 0;
  color: #333;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__summary {
  margin: 18px 0 0;
  color: #8f98a2;
  font-size: 14px;
  line-height: 1.9;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid #e8edf2;
}

.news-card__more {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #333333;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-card__more:hover {
  color: var(--color-primary);
}

.news-card:hover .news-card__more {
  color: var(--color-primary);
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.news-pagination__btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid #d9dde4;
  background: #ffffff;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s ease;
}

.news-pagination__btn:hover:not(:disabled):not(.is-active) {
  color: var(--color-primary);
  border-color: #bcd8eb;
  background: #eef7fd;
}

.news-pagination__btn.is-active {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.news-pagination__btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.news-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 1px solid #d8e3ea;
  border-radius: 20px;
  background: #ffffff;
  color: #7b8694;
  font-size: 16px;
}

@media screen and (min-width: 1200px) and (max-width: 1659px) {
  .news-filter {
    --news-filter-offset: 72px !important;
  }

  .news-filter__inner {
    min-height: 68px !important;
    gap: 16px !important;
    padding: 16px 0 !important;
  }

  .news-filter__tabs {
    gap: 10px !important;
  }

  .news-filter__tab {
    min-width: 68px !important;
    height: 32px !important;
    padding: 0 16px !important;
    font-size: 12px !important;
  }

  .news-content {
    padding: 42px 0 74px !important;
  }

  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  .news-card {
    width: 100% !important;
    max-width: 520px !important;
    min-height: 368px !important;
    justify-self: center !important;
  }

  .news-card__image {
    height: 208px !important;
  }

  .news-card__body {
    padding: 18px 18px 18px !important;
  }

  .news-card__title {
    font-size: 20px !important;
  }

  .news-card__summary {
    margin-top: 14px !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
  }

  .news-card__footer {
    padding-top: 22px !important;
  }
}

@media screen and (min-width: 769px) and (max-width: 1199px) {
  .news-filter {
    --news-filter-offset: 64px !important;
  }

  .news-filter__inner {
    align-items: center !important;
    flex-direction: row !important;
    gap: 12px !important;
    min-height: 64px !important;
    padding: 12px 16px 12px 22px !important;
    overflow: hidden !important;
  }

  .news-filter__label {
    flex: 0 0 auto !important;
    min-width: 60px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  .news-filter__tabs {
    flex-wrap: nowrap !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 8px !important;
    width: calc(100% - 72px) !important;
    margin: 0 !important;
    padding: 0 0 4px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .news-filter__tabs::-webkit-scrollbar {
    display: none !important;
  }

  .news-filter__tab {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    height: 32px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
  }

  .news-content {
    padding: 28px 0 64px !important;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .news-card {
    width: 100% !important;
    max-width: none !important;
    min-height: 350px !important;
  }

  .news-card__image {
    height: 198px !important;
  }

  .news-card__body {
    padding: 16px 16px 18px !important;
  }

  .news-card__title {
    font-size: 18px !important;
  }

  .news-card__summary {
    margin-top: 12px !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
  }

  .news-card__footer {
    padding-top: 18px !important;
  }
}

@media screen and (max-width: 768px) {
  .news-filter {
    --news-filter-offset: 52px !important;
  }

  .news-filter__inner {
    align-items: center !important;
    flex-direction: row !important;
    gap: 10px !important;
    min-height: 56px !important;
    padding: 10px 12px 10px 16px !important;
    overflow: hidden !important;
  }

  .news-filter__label {
    flex: 0 0 auto !important;
    min-width: 42px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .news-filter__tabs {
    flex-wrap: nowrap !important;
    flex: 1 1 auto !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .news-filter__tabs::-webkit-scrollbar {
    display: none !important;
  }

  .news-filter__tab {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    height: 30px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
  }

  .news-content {
    padding: 22px 0 56px !important;
  }

  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .news-card {
    width: 100% !important;
    min-height: 0 !important;
    border-radius: 16px !important;
  }

  .news-card__image {
    height: 192px !important;
  }

  .news-card__body {
    padding: 16px !important;
  }

  .news-card__title {
    font-size: 17px !important;
    line-height: 1.5 !important;
  }

  .news-card__summary {
    margin-top: 10px !important;
    font-size: 13px !important;
    line-height: 1.78 !important;
    line-clamp: 4 !important;
    -webkit-line-clamp: 4 !important;
  }

  .news-card__footer {
    padding-top: 16px !important;
  }

  .news-card__more {
    font-size: 14px !important;
  }

  .news-pagination {
    gap: 6px !important;
    margin-top: 28px !important;
    flex-wrap: wrap !important;
  }

  .news-pagination__btn {
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}
