/*
Theme Name: LAW Child
Template: law_tcd031
Version: 1.0
*/

.news-tabs-wrap {
  position: relative;
}

.news-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 25px;
  position: relative;
}

.news-tab-button {
  appearance: none;
  border: 1px solid #d9d9d9;
  background: #f5f5f5;
  color: #222;
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.news-tab-button.is-active,
.news-tab-button:hover {
  background: #063261;
  border-color: #063261;
  color: #fff;
}

.news-tab-button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid #063261;
  z-index: 2;
}

.news-tab-panels {
  position: relative;
}

.news-tab-panel {
  display: none;
}

.news-tab-panel.is-active {
  display: block;
}

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

.news-list li {
  border-bottom: 1px solid #e5e5e5;
  padding: 18px 0;
}

.news-tab-more {
  margin-top: 25px;
}

.news-empty {
  padding: 20px 0;
  color: #666;
}

@media screen and (max-width: 767px) {
  .news-tab-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 8px; /* ㉺12pxAE8px */
    overflow: visible;
    padding-bottom: 18px;
    margin-bottom: 12px;
  }

  .news-tab-button {
    min-width: 0;
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 14px 10px;
    font-size: 13px;
    line-height: 1.4;
  }

  .news-tab-button.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #063261;
    z-index: 2;
  }
}