
.news {
  padding-top: 80px;
  background-color: var(--color-bg-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  > div {
    width: 100%;
    padding: 0 32px 0 0;
    margin: 0 auto;
    min-height: calc(100vh - 82px);
    display: flex;
    gap: var(--space-32);

    .filter-section {
      position: sticky;
      top: 82px;
      width: 304px;
      flex-shrink: 0;
      align-self: flex-start;
      margin-top: 0px;
      background: var(--color-bg-secondary);
      border-radius: var(--border-radius-lg);
      padding: var(--space-20);

      .divider {
        height: 1px;
        background-color: var(--color-black);
        margin: var(--space-16) 0;
      }

      > div > div:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;

        h3 {
          font-size: var(--fs-h1);
          font-weight: var(--font-normal);
          margin-left: 20px;
        }

        img {
          width: 24px;
          height: 24px;

          &[data-hidden] {
            display: none;
          }
        }
      }

      > div > div[data-fusion--filter-target="content"] {
        max-height: 400px;
        overflow-y: auto;
        padding-right: 8px;

        &::-webkit-scrollbar {
          width: 4px;
        }

        &::-webkit-scrollbar-track {
          background: var(--color-bg-senary);
          border-radius: var(--border-radius-sm);
        }

        &::-webkit-scrollbar-thumb {
          background: var(--color-border-light);
          border-radius: var(--border-radius-sm);
        }

        &::-webkit-scrollbar-thumb:hover {
          background: var(--color-gray-light);
        }

        scrollbar-width: thin;
        scrollbar-color: var(--color-border-light) var(--color-bg-senary);

        &[data-hidden] {
          display: none;
        }
      }

      label {
        display: flex;
        align-items: center;
        gap: var(--space-12);
        padding: var(--space-8) 0;
        cursor: pointer;
        margin-left: 22px;

        input[type="checkbox"] {
          width: 20px;
          height: 20px;
          margin: 0;
          cursor: pointer;
          border: 1px solid var(--color-border-light);
          border-radius: var(--border-radius-sm);
          -webkit-appearance: none;
          -moz-appearance: none;
          appearance: none;
          background-color: var(--color-white);

          &:checked {
            background-color: var(--color-black);
            border-color: var(--color-black);
            position: relative;

            &::after {
              content: "";
              position: absolute;
              left: 6px;
              top: 2px;
              width: 6px;
              height: 12px;
              border: solid var(--color-white);
              border-width: 0 2px 2px 0;
              transform: rotate(45deg);
            }
          }
        }

        span {
          font-size: var(--fs-body);
          font-weight: var(--font-light);
          color: var(--color-black);
          transform: translateY(3px);
        }
      }
    }

    .content-section {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;

      .title-search-row {
        margin: 32px 0 32px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        
        .page-title {
          font-size: var(--fs-h1);
          font-weight: var(--font-normal);
          color: var(--color-black);
          margin: 0;
          line-height: 1.2;
        }

        .search {
          width: 378px;
          position: relative;

          img {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 14px;
            height: 14px;
            opacity: 0.5;
            pointer-events: none;
          }

          input {
            width: 100%;
            height: 40px;
            padding: 0 12px 0 36px;
            border: 1px solid var(--color-border-light);
            border-radius: var(--border-radius-lg);
            font-family: "DM Sans", sans-serif;
            font-size: var(--fs-small);
            font-weight: 200;
            background: var(--color-white);
            display: flex;
            align-items: center;

            &:focus {
              outline: none;
              border-width: 1.5px;
            }

          }
        }
      }

      > .card-grid {
        margin-top: 60px;
        display: grid;
        grid-template-columns: repeat(auto-fit, 378px);
        gap: clamp(16px, 2vw, 32px);
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        justify-content: space-between;
        padding-bottom: 44px;
        align-items: stretch;
      }
    }

    > .card-grid {
      margin-top: 60px;
      display: grid;
      grid-template-columns: repeat(auto-fit, 378px);
      gap: clamp(16px, 2vw, 32px);
      width: 100%;
      max-width: 100%;
      margin-left: 0;
      margin-right: 0;
      justify-content: space-between;
      padding-bottom: 44px;
      align-items: stretch;
    }
  }
}

@media (max-width: 1024px) {
  .news > div {
    flex-direction: column;
    gap: var(--space-20);
    padding: 0 16px;
  }
  .news > div .filter-section {
    width: 100%;
    max-width: 294px;
    margin: 0 auto;
  }
  .news > div .content-section .title-search-row {
    flex-direction: column;
    gap: var(--space-16);
    margin: var(--space-16) 0;
    align-items: center;
    text-align: center;
  }
  .news > div .content-section .title-search-row .page-title {
    display: block;
    font-size: var(--fs-h1);
    text-align: center;
    margin-bottom: var(--space-16);
  }
  .news > div .content-section .title-search-row .search {
    align-self: center;
  }
  .news > div .content-section > .card-grid {
    grid-template-columns: repeat(auto-fit, 378px);
    justify-content: center;
    gap: 16px;
    max-width: calc(2 * 378px + 16px);
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .news > div {
    flex-direction: column;
    gap: var(--space-16);
  }
  .news > div .filter-section {
    padding: var(--space-12);
  }
  .news > div .content-section .title-search-row {
    margin: 32px 0 0 16px;
    text-align: center;
  }
  .news > div .content-section .title-search-row .page-title {
    font-size: var(--fs-h1);
    margin: 0;
    display: block;
    text-align: center;
  }
  .news > div .filter-section > div > div:first-child h3 {
    font-size: var(--fs-body);
  }
  .news > div .filter-section label {
    gap: var(--space-8) !important;
    padding: var(--space-6) 0 !important;
    margin-left: 16px !important;
  }
  .news > div .filter-section label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    border-radius: var(--border-radius-sm) !important;
  }
  .news > div .filter-section label input[type="checkbox"]:checked::after {
    left: 4px !important;
    top: 1px !important;
    width: 5px !important;
    height: 10px !important;
  }
  .news > div .filter-section label span {
    font-size: var(--fs-small);
  }
  .news > div .filter-section .divider {
    margin: var(--space-12) 0;
  }
  .news
    > div
    .filter-section
    > div
    > div[data-fusion--filter-target="content"] {
    max-height: 300px;
  }
  .news > div .content-section > .card-grid {
    grid-template-columns: 378px;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .news > div {
    padding: 0 16px;
  }
  .news > div .filter-section {
    padding: var(--space-8);
  }
  .news > div .content-section .title-search-row {
    margin: 24px 0 0 12px;
    text-align: center;
  }
  .news > div .content-section .title-search-row .page-title {
    font-size: var(--fs-h1);
    margin: 0;
    display: block;
    text-align: center;
  }
  .news > div .filter-section > div > div:first-child h3 {
    font-size: var(--fs-body);
  }
  .news > div .filter-section label {
    gap: var(--space-6) !important;
    padding: var(--space-4) 0 !important;
    margin-left: 12px !important;
  }
  .news > div .filter-section label input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    border-radius: var(--border-radius-sm) !important;
  }
  .news > div .filter-section label input[type="checkbox"]:checked::after {
    left: 3px !important;
    top: 1px !important;
    width: 4px !important;
    height: 8px !important;
  }
  .news > div .filter-section label span {
    font-size: var(--fs-small);
  }
  .news > div .filter-section .divider {
    margin: var(--space-8) 0;
  }
  .news
    > div
    .filter-section
    > div
    > div[data-fusion--filter-target="content"] {
    max-height: 250px;
  }
  .news > div .content-section > .card-grid {
    grid-template-columns: 378px;
    justify-content: center;
    gap: 16px;
    margin: 0 auto;
    max-width: 378px;
  }
}

.card-grid {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: space-between !important;
}

@media (max-width: 1024px) {
  .card-grid {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Newsletter Article Display */
.news-article {
  padding-top: 80px;
  background-color: var(--color-bg-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.news-article .article-header {
  width: 100%;
  max-width: 800px;
  margin: 44px auto 32px;
  padding: 0 32px;
  text-align: center;
}

.news-article .article-header h1 {
  font-size: var(--fs-h1);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-16);
  color: var(--color-black);
}

.news-article .article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-24);
  font-size: var(--fs-body);
  color: var(--color-gray-dark);
}

.news-article .article-meta time {
  font-weight: var(--font-light);
}

.news-article .article-meta .from {
  font-weight: var(--font-normal);
}

.news-article .article-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 44px;
  padding: var(--space-32);
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-article .article-content iframe {
  width: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
}

.news-article .article-content h2 {
  font-size: var(--fs-h1);
  font-weight: var(--font-semibold);
  margin: var(--space-24) 0 16px;
  color: var(--color-black);
}

.news-article .article-content h3 {
  font-size: var(--fs-h2);
  font-weight: var(--font-medium);
  margin: var(--space-20) 0 12px;
  color: var(--color-black);
}

.news-article .article-content p {
  font-size: var(--fs-body);
  line-height: var(--leading-relaxed);
  margin: var(--space-16) 0;
  color: var(--color-black);
}

.news-article .article-content ul {
  margin: var(--space-16) 0;
  padding-left: 24px;
}

.news-article .article-content li {
  font-size: var(--fs-body);
  line-height: var(--leading-relaxed);
  margin: var(--space-8) 0;
  color: var(--color-black);
}

.news-article .article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  margin: var(--space-16) 0;
}

.news-article .article-content a {
  color: var(--color-black);
  text-decoration: none;
}

.news-article .article-content a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .news-article .article-header {
    padding: 0 16px;
  }

  .news-article .article-header h1 {
    font-size: var(--fs-h1);
  }

  .news-article .article-content {
    padding: var(--space-20);
    margin: 0 16px 32px;
  }
}

@media (max-width: 480px) {
  .news-article .article-header h1 {
    font-size: var(--fs-h2);
  }

  .news-article .article-meta {
    flex-direction: column;
    gap: var(--space-8);
  }

  .news-article .article-content {
    padding: var(--space-16);
    margin: 0 8px 24px;
  }
}
