/* News Section Styles */
#news {
    scroll-margin-top: 120px;
}

.news .inner {
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 0;
}

.news p {
  line-height: 1;
  padding-top: 5px;
}
.news .inner > div:first-child {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.news dl {
    color: #333;
    display: flex;
    gap: 20px;
    flex: 1;
    line-height: 2;
}

.news .more-wrapper {
    position: relative;
}

/* Accordion More Section */
.news .more {
    margin-top: 20px;
    max-height: 7.2em; /* Approximately 4 lines (line-height: 1.8 * 4) */
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.3s ease;
    line-height: 1.8;
    position: relative;
}

.news .more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3.6em; /* 2 lines gradient */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.news .more.is-open {
    max-height: 500px;
    margin-top: 20px;
}

.news .more.is-open::after {
    opacity: 0;
}

/* View More Toggle Button */
.news .view-more-toggle {
    display: inline-block;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.news .view-more-toggle:hover {
    opacity: 0.7;
}

.news .view-more-toggle::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    transform: rotate(45deg);
    margin-left: 8px;
    transition: transform 0.3s ease;
    position: relative;
    top: -2px;
}

.news .view-more-toggle.is-open::after {
    transform: rotate(-135deg);
    top: 2px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    #news {
        scroll-margin-top: 30px;
    }
  .news p {
    padding-bottom: 10px;
  }
  .news .inner > div:first-child {
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
  }

  .news dl {
      flex-direction: column;
      gap: 0;
  }

  .news .view-more-toggle {
      display: block;
      text-align: center;
      width: 100%;
  }
}
@media (max-width: 640px) {
  .news .view-more-toggle {
    margin-left: 0;
  }
}
